Wild · Code-Switching, RTL Punctuation, Diacritics & Multi-<mask> Lab · 297.4 MB WASM q8 · MIT

Multilingual Edge Stress Lab: Code-Switching, RTL, Diacritics & Multi-<mask>

Probe FacebookAI/xlm-roberta-base (Xenova/xlm-roberta-base, 297.4 MB WASM q8, MIT) on tricky real-world edge cases: mixed-script code-switching, Arabic right-to-left punctuation, stripped French diacritics, units/unsupported emojis, and multiple simultaneous <mask> tokens — plus a live perturbation sandbox.

SentencePiece Edge Behavior: Stripping accents forces SentencePiece into smaller subword fallback pieces, while unseen emojis map to <unk> (ID 3). Multiple <mask> slots are evaluated independently in one forward pass.

1. Live 12-Case Multilingual Edge Stress Suite

Probes completed–
Mean top-1 prob–
Mean vocab entropy–
Total masks scored–
NaN score check–
Total latency–

2. Interactive Perturbation Sandbox (Baseline vs Perturbed)

Transform a prompt deterministically (strip diacritics, drop trailing punctuation, wrap with emojis, or duplicate <mask>) and compare live SentencePiece tokenization and predictions.

Baseline Prompt (–)

Run comparison above to inspect baseline predictions.

Perturbed Prompt (Δ –)

Run comparison above to inspect perturbed drift.

3. Inspect Perturbation & Subword Chip Builders

Show the code · xlmr-core.mjs — applyWildPerturbation()
Show the code · xlmr-core.mjs — buildSubwordChips()