Share from 0:00
0:00
/

Understanding and Mitigating Language Confusion in LLMs

Generated this podcast on this Paper with Google's Illuminate, a specialized tool to create podcast from arXiv papers only

New benchmark, LCB, proposed in this paper, reveals why LLMs struggle with language consistency and how to fix their linguistic mix-ups.

πŸ“š https://arxiv.org/abs/2406.20052

Original Problem 🎯:

LLMs often fail to consistently generate text in users' desired languages, exhibiting "language confusion" where they mix languages at word, line, or response levels. This significantly impacts non-English users' experience.

-----

Solution in this Paper πŸ› οΈ:

β€’ Created Language Confusion Benchmark (LCB) covering 15 diverse languages

β€’ Evaluated models on monolingual generation (queries in language L, expecting response in L)

β€’ Tested cross-lingual generation (English instructions to generate in target language)

β€’ Developed metrics: Line-level Pass Rate (LPR), Word-level Pass Rate (WPR), Language Confusion Pass Rate (LCPR)

β€’ Implemented mitigation strategies: few-shot prompting, multilingual instruction tuning, beam search decoding

-----

Key Insights πŸ’‘:

β€’ Base models perform better than English-centric instruction-tuned variants

β€’ Complex prompts increase language confusion

β€’ High sampling temperatures aggravate the problem

β€’ Multilingual instruction tuning helps reduce confusion

β€’ Position of language instruction impacts model performance

-----

Results πŸ“Š:

β€’ Command R and OpenAI models excel in monolingual generation (LPR 98.6-99.3%)

β€’ Llama 2/3 and Mistral models struggle with consistency (LPR 48.3-73.0%)

β€’ Cross-lingual performance: Command R+ Refresh leads with 95.4% LPR

β€’ Few-shot prompting improves base model performance from 1.1% to 95.0% LPR

β€’ Reducing temperature to 0.3 and using beam search significantly reduces confusion

Discussion about this video

User's avatar

Ready for more?