Abstract: Multilingual pre-trained Large Language Models (LLMs) are incredibly effective at Question Answering (QA), achieving high accuracies on several multilingual benchmarks. However, little is known about how well their confidences are calibrated. In this paper, we comprehensively benchmark the calibration of several multilingual LLMs (MLLMs) on a variety of QA tasks. We study different dimensions of calibration in in-distribution, out-of-distribution, and cross-lingual transfer settings, and investigate strategies to improve it, including post-hoc methods and regularized fine-tuning. For decoder-only LLMs such as LlaMa2, we additionally find that in-context learning improves confidence calibration on multilingual data. Our experiments suggest that the multilingual QA models are poorly calibrated for languages other than English and incorporating a small set of cheaply translated multilingual samples during fine-tuning/calibration effectively enhances the calibration performance.
Introduction
In the deployment of Large Language Models (LLMs), accuracy is often the primary metric of success. However, for high-stakes applications in fields like medicine or law, it is equally important that a model "knows what it doesn't know." This property is called calibration: a model is perfectly calibrated if a predicted confidence of 80% translates to an actual accuracy of 80%.
While current Multilingual LLMs (MLLMs) like XLM-R or LLaMa2 excel at cross-lingual transfer, their calibration often falters outside of English. This paper investigates the "calibration gap" in multilingual QA and proposes effective strategies to bridge it.
Methodology
The researchers benchmarked five prominent models across two categories:
- Extractive Models: mBERT and XLM-R (which select answer spans).
- Generative Models: mT5, mBART, and LLaMa2-7B (which generate text answers).
Evaluation was conducted across four diverse datasets: SQuAD 1.1 (English), XQuAD (12 languages), MLQA (7 languages), and TyDiQA-GoldP (9 typologically diverse languages). The study explored three main avenues for improvement: post-hoc Temperature Scaling (TS), Data Augmentation via machine translation, and In-Context Learning (ICL) for decoder-only architectures.
Key Insights
The study revealed several critical factors influencing multilingual calibration:
- The Linguistic Distance Penalty: Calibration error (ECE) is highly correlated with how syntactically different a language is from English. The further a language is on the linguistic tree, the more overconfident the model tends to be.
- Model Scale: In contrast to some trends observed in other domains, larger MLLMs generally exhibited better calibration than their smaller counterparts.
- The Power of "Cheap" Data: High-quality human translation isn't strictly necessary for calibration. Adding a small set of machine-translated samples during fine-tuning improved calibration by nearly 75% in certain scenarios.
- Adaptive Examples: For LLaMa2, "Adaptive ICL"—providing few-shot examples semantically similar to the query—significantly outperformed random example selection.
Results and Analysis
The experiments confirmed a significant "Calibration Gap": on average, the Expected Calibration Error (ECE) for non-English languages was 145% higher than for English, even when accuracy remained high. This suggests that models can be "smart but arrogant" in zero-shot settings.
As illustrated in the reliability diagrams above, while baseline models (a) are poorly calibrated, applying Temperature Scaling (b) or increasing English training data (c) provides some benefit. However, the most effective strategy is incorporating data from the target language (d), which brings the model's confidence much closer to the ideal diagonal line.
Conclusion
This research highlights that high zero-shot accuracy in MLLMs does not imply reliable calibration. Models are frequently overconfident in languages they have not seen during fine-tuning. Fortunately, simple interventions—specifically Temperature Scaling on multilingual validation sets and the inclusion of machine-translated target-language data—can significantly enhance the reliability of multilingual QA systems.
Summary updated