the.ai

Multilingual / Regimes

verified

Code-Switching

People switch languages mid-sentence, and they do it by rules rather than at random. Most multilingual systems are built as though each input has one language — a language identifier at the front, a tokenizer tuned for it — and that assumption breaks on a great deal of ordinary speech and writing.

Viz primitive · budget-splitswitched-tokens = 4

switched-tokens holds 13% of the budget; rest holds the remaining 87%.

Tokens from the embedded language against tokens from the matrix language, in tokens. Drag the switching up to watch the single-language assumption fail — a router had to pick one before any of this was visible.

4

Reviewed by opendroid · 2026-08-18

  • arXiv:2003.11080 — XTREME: A Massively Multilingual Multi-task Benchmark for Evaluating Cross-lingual Generalization