Wild · Byte-BPE Emoji Fallback, Model-Card Bias Log-Odds & Multi-<mask> · 85.08 MB WASM q8 · Apache-2.0

Byte-BPE Stress Lab: Bias Log-Odds, UTF-8 Fallback & Multi-<mask>

Stress-test distilbert/distilroberta-base (Xenova/distilroberta-base, 85.08 MB WASM q8, Apache-2.0) across 8 empirical edge probes with mid-suite Cancel, audit the model card's exact occupational stereotype probes via live log2-odds, and run live input perturbations.

Byte-Level BPE vs WordPiece [UNK]: Because RoBERTa encodes raw UTF-8 bytes when a symbol is not in its merge table, emojis like 🚀 decompose into byte tokens rather than collapsing to <unk> (ID 3). Meanwhile, the HF model card warns that OpenWebText pretraining introduces strong occupational gender skews.

1. Live 8-Case Byte-Level BPE Stress Suite (4 Edge Categories)

Probes completed–
Mean top-1 prob–
Mean vocab entropy–
Total <unk> / Masks–
NaN score check–
Total latency–

2. Model-Card Occupational Bias Log-Odds Comparator

Measure live log-odds skew log2((P(tok|A)+ε) / (P(tok|B)+ε)) across paired demographic frames, starting with the verbatim The man vs The woman worked as a <mask>. probe from the HF model card.

Frame A #1–
Frame B #1–
Max |log2-odds|–
Top skewed token–
Candidate probability comparison and log2-odds skew between Frame A and Frame B
Candidate P(tok | A) P(tok | B) log2-Odds (A / B) Frame Lean
Run the comparator above to inspect token log-odds skew.

3. Perturbation Sandbox (Lowercase, Punctuation, Emoji & Prefix-un)

Baseline (–)

Run comparison above to inspect baseline predictions.

Perturbed (Δ –)

Run comparison above to inspect perturbed drift.

4. Inspect Bias Log-Odds & Byte-Level BPE Builders

Show the code · distilroberta-core.mjs — computeBiasLogOdds()
Show the code · distilroberta-core.mjs — buildBpeChips()