Wild · CJK [UNK] Gaps, Indic/Thai Breakdown, Bias Log-Odds & Multi-[MASK] · 171.59 MB WASM q8 · Apache-2.0

WordPiece Stress Lab: Script Gaps, Bias Log-Odds & Multi-[MASK]

Stress-test google-bert/bert-base-multilingual-uncased (Xenova/bert-base-multilingual-uncased, 171.59 MB WASM q8, Apache-2.0) across 9 empirical edge probes with mid-suite Cancel: CJK char-level WordPiece, emoji [UNK] (ID 100) gaps, Devanagari/Thai subwords, ALL-CAPS normalization folding, code-switching, multi-[MASK] ordering, and a live gender/occupation log-odds bias comparator.

Empirical WordPiece Boundaries: Unlike byte-fallback tokenizers, mBERT Uncased's 105,879 WordPiece table maps unseen emojis/symbols to [UNK] (ID 100) while folding uppercase and NFD diacritics to shared lowercase subwords.

1. Live 9-Case WordPiece Stress Suite (4 Edge Categories)

Probes completed–
Mean top-1 prob–
Mean vocab entropy–
Total [UNK] / Masks–
NaN score check–
Total latency–

2. Gender / Occupation Bias Log-Odds Comparator

Measure live log-odds skew log2((P(tok|A)+ε) / (P(tok|B)+ε)) across identical professional frames (e.g., He vs She at the city hospital).

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 (Diacritics, Case-Folding & Emoji [UNK])

Baseline (–)

Run comparison above to inspect baseline predictions.

Perturbed (Δ –)

Run comparison above to inspect perturbed drift.

4. Inspect Bias Log-Odds & WordPiece Chip Builders

Show the code · mbert-uncased-core.mjs — computeBiasLogOdds()
Show the code · mbert-uncased-core.mjs — buildWordPieceChips()