Wild · Code-Switching, CJK/Indic Gaps, Cased vs Uncased & Bias Log-Odds · 139.32 MB WASM q8 · Apache-2.0

DistilmBERT Stress Lab: Code-Switching, Bias Log-Odds & Multi-[MASK]

Stress-test distilbert/distilbert-base-multilingual-cased (onnx-community/distilbert-base-multilingual-cased-ONNX, 139.32 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, code-switching, multi-[MASK] ordering, gender/occupation log-odds bias, and a live cased vs uncased perturbation sandbox.

6-Layer Distillation Edges: With half the layers of mBERT (n_layers: 6) over the same 119,547-piece WordPiece table, unseen emojis map to [UNK] (ID 100) and high-entropy non-Latin frames can expose cross-script candidate leakage.

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. Cased vs Uncased & Perturbation Sandbox

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 · distilbert-mbert-core.mjs — computeBiasLogOdds()
Show the code · distilbert-mbert-core.mjs — buildWordPieceChips()