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










