paper-with-me

Papers

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

2025-10-20 · Collin Zhang, Fei Huang, Chenhan Yuan, Junyang Lin 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.

📄 PDF Abstract BibTeX arXiv:2510.17555

Code (0)

등록된 구현이 없습니다.

Tasks

Text Generation

Similar Papers 제목 키워드 기반

Language-Aware Token Boosting: LLM Language Confusion Reduction Without Tuning

2026-06-08 · Trapoom Ukarapol, Pakhapoom Sarapat, Nut Chukamphaeng arxiv

Large language models (LLMs) sometimes exhibit language confusion when generating non-English text. Existing approaches typically rely on fine-tuning to mitigate this issue. In contrast, we propose a tuning-free paradigm…

Adapting Whisper for Code-Switching through Encoding Refining and Language-Aware Decoding

2024-12-21 · Jiahui Zhao, Hao Shi, Chenrui Cui, Tianrui Wang 외

Code-switching (CS) automatic speech recognition (ASR) faces challenges due to the language confusion resulting from accents, auditory similarity, and seamless language switches. Adaptation on the pre-trained multi-lingu…

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)DecoderSentence+2

Controlling Language Confusion in Multilingual LLMs

2025-05-25 · Nahyun Lee, Yeongseo Woo, Hyunwoo Ko, Guijin Son

Large language models often suffer from language confusion, a phenomenon where responses are partially or entirely generated in unintended languages. This can critically impact user experience in low-resource settings. W…

Understanding and Mitigating Language Confusion in LLMs

2024-06-28 · Kelly Marchisio, Wei-Yin Ko, Alexandre Bérard, Théo Dehaze 외

We investigate a surprising limitation of LLMs: their inability to consistently generate text in a user's desired language. We create the Language Confusion Benchmark (LCB) to evaluate such failures, covering 15 typologi…

Handling Imbalanced Pseudolabels for Vision-Language Models with Concept Alignment and Confusion-Aware Calibrated Margin

2025-05-04 · Yuchen Wang, Xuefeng Bai, Xiucheng Li, Weili Guan 외

Adapting vision-language models (VLMs) to downstream tasks with pseudolabels has gained increasing attention. A major obstacle is that the pseudolabels generated by VLMs tend to be imbalanced, leading to inferior perform…

Concept Alignment