Lune

ICLR2026顶会

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

Collin Zhang, Fei Huang, Chenhan Yuan, Junyang Lin

摘要

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.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

可以从这些问题问起

Lune 可以查阅

全文 · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • The Impact of Language Mixing on Bilingual LLM Reasoning 引用了 Understanding and Mitigating Language Confusion in LLMs
  • Understanding and Mitigating Language Confusion in LLMs 引用了 A Survey of Code-switching: Linguistic and Social Perspectives for Language Technologies
  • Understanding and Mitigating Language Confusion in LLMs 引用了 The Decades Progress on Code-Switching Research in NLP: A Systematic Survey on Trends and Challenges
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

它引用的 Paper7

  1. XL-Sum: Large-Scale Multilingual Abstractive Summarization for 44 LanguagesTahmid Hasan, Abhik Bhattacharjee, Md. Saiful Islam, Kazi Samin Mubasshir 等ACL Findings 2021 · 228 次引用
  2. The Decades Progress on Code-Switching Research in NLP: A Systematic Survey on Trends and ChallengesGenta Indra Winata, Alham Fikri Aji, Zheng Xin Yong, Thamar SolorioACL Findings 2023 · 46 次引用
  3. Understanding and Mitigating Language Confusion in LLMsKelly Marchisio, Wei-Yin Ko, Alexandre Berard, Théo Dehaze 等EMNLP 2024 · 10 次引用
  4. The Impact of Language Mixing on Bilingual LLM ReasoningYihao Li, Jiayi Xin, Miranda Muqing Miao, Qi Long 等EMNLP 2025 · 8 次引用
  5. A Survey of Code-switching: Linguistic and Social Perspectives for Language TechnologiesA. Seza Dogruöz, Sunayana Sitaram, Barbara E. Bullock, Almeida Jacqueline ToribioACL 2021

相关 Paper

  1. SASFT: Sparse Autoencoder-guided Supervised Finetuning to Mitigate Unexpected Code-Switching in LLMsBoyi Deng, Yu Wan, Baosong Yang, Fei Huang 等ICLR 2026 · 2 次引用
  2. Self-Ensemble: Mitigating Confidence Distortion for Large Language ModelsZicheng Xu, Guanchu Wang, Guangyao Zheng, Yu-Neng Chuang 等EMNLP Findings 2025
  3. Code-Switching Curriculum Learning for Multilingual Transfer in LLMsHaneul Yoo, Cheonbok Park, Sangdoo Yun, Alice Oh 等ACL Findings 2025 · 4 次引用
  4. TLPO: Token-Level Policy Optimization for Mitigating Language Confusion in Large Language ModelsJinho Choo, JunSeung Lee, Jimyeong Kim, Yeeho Song 等ACL 2026
  5. CodeMixBench: Evaluating Code-Mixing Capabilities of LLMs Across 18 LanguagesYilun Yang, Yekun ChaiEMNLP 2025 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖