mlsanityData to 13 Oct 2026

Language Confusion Gate: Language-Aware Decoding Through Model Self-Distillation

arXiv 2510.17555 ↗First posted 20 Oct 2025cs.CLcited by 1

On the map: Knowledge distillation → Knowledge distillation for LLMs

Abstract (arXiv)

Large language models (LLMs) often experience language confusion, which is the unintended mixing of languages during text generation. Current solutions to this problem either necessitate model retraining or cannot differentiate between harmful confusion and acceptable code-switching. This paper introduces the Language Confusion Gate (LCG), a lightweight, plug-in solution that filters tokens during decoding without altering the base LLM. The LCG is trained using norm-adjusted self-distillation to predict appropriate language families and apply masking only when needed. Our method is based on the findings that language confusion is infrequent, correct-language tokens are usually among the top predictions, and output token embedding norms are larger for high-resource languages, which biases sampling. When evaluated across various models, including Qwen3, GPT-OSS, Gemma3, Llama3.1, LCG decreases language confusion significantly, often by an order of magnitude, without negatively impacting task performance. Code is available at https://github.com/collinzrj/language_confusion_gate.

Key facts. Cited by 1 paper in the map (data through 13 Oct 2026). Placed in Knowledge distillation for LLMs, one of 12 directions in Knowledge distillation. Builds on 15 of its 19 references that are in the map. First posted on arXiv 20 Oct 2025.

Builds on

15 of 19 references.

References · 15

  1. 2024The Llama 3 Herd of Modelscited by 14,486
  2. 2025Qwen3 Technical Reportcited by 8,510
  3. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,247
  4. 2025Gemma 3 Technical Reportcited by 1,748
  5. 2021XL-Sum: Large-Scale Multilingual Abstractive Summarization for 44 Languagescited by 346
  6. 2024Aya Dataset: An Open-Access Collection for Multilingual Instruction Tuningcited by 174
  7. 2024HumanEval-XL: A Multilingual Code Generation Benchmark for Cross-lingual Natural Language Generalizationcited by 85
  8. 2024Understanding and Mitigating Language Confusion in LLMscited by 75
  9. 2023A Survey of Code-switching: Linguistic and Social Perspectives for Language Technologiescited by 59
  10. 2025PolyMath: Evaluating Mathematical Reasoning in Multilingual Contextscited by 54
  11. 2022The Decades Progress on Code-Switching Research in NLP: A Systematic Survey on Trends and Challengescited by 35
  12. 2025The Impact of Language Mixing on Bilingual LLM Reasoningcited by 12
3 more
  1. 2025Mechanistic Understanding and Mitigation of Language Confusion in English-Centric Large Language Modelscited by 8
  2. 2025Controlling Language Confusion in Multilingual LLMscited by 3
  3. 2025Smoothie-Qwen: Post-Hoc Smoothing to Reduce Language Bias in Multilingual LLMscited by 2

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2026: 1.

1 paper.