Abstract
Multilingual Large Language Models (LLMs) often suffer from "language confusion," where they inadvertently mix languages or respond in the wrong one. This paper demonstrates that standard training objectives fail to penalize this behavior because models learn to treat code-mixing as a valid statistical pattern during pretraining. By using Odds Ratio Preference Optimization (ORPO) to explicitly penalize undesired language mixing, researchers can significantly improve linguistic consistency—particularly at high decoding temperatures—without sacrificing general reasoning or QA performance.
Introduction
When prompted in a specific language, a multilingual LLM is expected to respond in that same language. However, models frequently exhibit language confusion, manifesting as "code-mixing" (inserting English words into a non-English sentence) or "full unexpected language" responses. This issue is particularly prevalent in low-resource languages. The authors identify a fundamental gap in standard training: Supervised Fine-Tuning (SFT) maximizes the likelihood of correct tokens but does not inherently penalize "incorrect" styles.
The Indifference of Pretraining
The researchers first investigated whether models naturally learn to favor monolingual text over mixed-language text during pretraining. By tracking the training loss of the SmolLM2 and OLMo2 model families, they found that the perplexity for code-mixed text decreases at nearly the same rate as monolingual text.
This suggests that models do not "realize" mixing is undesirable; they simply treat it as another pattern to predict. This indifference persists regardless of model size, up to at least 7B parameters.
Methodology: ORPO as a Linguistic Guardrail
To correct this behavior, the authors employed Odds Ratio Preference Optimization (ORPO). Unlike standard SFT, ORPO uses preference triplets consisting of an input, a "chosen" (pure language) response, and a "rejected" (mixed or wrong language) response. ORPO adds a penalty term that increases the "odds ratio" between the chosen and rejected outputs, effectively teaching the model to actively avoid the rejected style.
By explicitly penalizing the "rejected" mixed-language samples, ORPO creates a much larger loss gap, making the model far more robust to the randomness introduced by higher decoding temperatures.
Key Results
The most significant gains were observed at high decoding temperatures (T=1.2), where linguistic consistency typically collapses. For example, the OLMo2-7B base model's Language Precision Rate (LPR) plummeted from 93.7% at T=0.7 to 30.4% at T=1.2. In contrast, the ORPO-tuned model maintained an LPR of 98.8% at the same high temperature.
Furthermore, evaluations on the HAE-RAE Benchmark (a Korean multiple-choice QA suite) showed that ORPO-tuned models performed as well as SFT and Base models on general knowledge tasks. This indicates that fixing language confusion does not impose a "performance tax" on the model's reasoning capabilities.
Conclusion
Language confusion is a structural issue arising from the indifference of standard training objectives to linguistic purity. By incorporating preference-based penalties through ORPO, researchers can establish "linguistic guardrails" that ensure consistency across varying decoding conditions without compromising the model's underlying intelligence. Future work may explore incorporating these penalties directly into the pretraining phase.
Summary updated