Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Understanding and Mitigating Language Confusion in LLMs

About

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 typologically diverse languages with existing and newly-created English and multilingual prompts. We evaluate a range of LLMs on monolingual and cross-lingual generation reflecting practical use cases, finding that Llama Instruct and Mistral models exhibit high degrees of language confusion and even the strongest models fail to consistently respond in the correct language. We observe that base and English-centric instruct models are more prone to language confusion, which is aggravated by complex prompts and high sampling temperatures. We find that language confusion can be partially mitigated via few-shot prompting, multilingual SFT and preference tuning. We release our language confusion benchmark, which serves as a first layer of efficient, scalable multilingual evaluation at https://github.com/for-ai/language-confusion.

Kelly Marchisio, Wei-Yin Ko, Alexandre B\'erard, Th\'eo Dehaze, Sebastian Ruder• 2024

Related benchmarks

TaskDatasetResultRank
ReasoningBBH
Accuracy56.52
726
Multitask Language UnderstandingMMLU
Accuracy46.54
520
Graduate-level Question AnsweringGPQA
Accuracy28.24
215
Math Word Problem SolvingGSM8K
Accuracy63.34
158
Mathematical Problem SolvingMATH
Accuracy41.35
75
Instruction FollowingMIF en
Accuracy61.14
10
Instruction FollowingMIF (target)
Accuracy39.91
10
Language AdherenceLCB monolingual
RPR99.9
5
Language AdherenceMIF (target)
RPR99.54
5
Language AdherenceGSM8K (cross)
RPR99.72
5
Showing 10 of 27 rows

Other info

Follow for update