arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.08669cs.CLcs.LG
收藏

多语言问答大语言模型的校准研究

On the Calibration of Multilingual Question Answering LLMs

University of Pennsylvania(宾夕法尼亚大学);IBM Research(IBM研究院)

Yahan Yang, Soham Dan, Dan Roth, Insup Lee

AI总结:

该研究针对多语言问答大语言模型校准效果不明的问题,全面测试不同架构、规模的多语言LLM在多场景下的校准表现,探究优化策略,发现非英语语言校准较差,加入少量翻译样本可有效提升校准效果。

摘要:

多语言预训练大语言模型(LLMs)在问答(QA)这一自然语言理解核心任务上表现极为出色,在多个多语言基准上达到了高准确率。然而,人们对其置信度的校准水平知之甚少。本文针对多款多语言大语言模型(MLLMs)在各类QA任务上的校准情况开展了全面基准测试。我们开展了大量实验,覆盖仅编码器、编码器-解码器、仅解码器三类QA模型(参数规模从1.1亿到70亿不等),涉及高资源与低资源在内的多种语言。我们研究了分布内、分布外以及跨语言迁移场景下的不同校准维度,并探究了提升校准效果的策略,包括事后校准方法和正则化微调。对于LlaMa2这类仅解码器LLM,我们还发现上下文学习能提升其在多语言数据上的置信度校准效果。我们还开展了多项消融实验,研究语言距离、语言语料库规模、模型规模对校准的影响,以及多语言模型在不同任务和语言上与单语言模型的对比表现。实验表明,多语言QA模型对英语以外的语言校准效果较差,在微调/校准过程中加入少量低成本翻译的多语言样本可有效提升校准性能。

英文摘要:

Multilingual pre-trained Large Language Models (LLMs) are incredibly effective at Question Answering (QA), a core task in Natural Language Understanding, 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 perform extensive experiments, spanning encoder-only, encoder-decoder, and decoder-only QA models (size varying from 110M to 7B parameters) and diverse languages, including both high- and low-resource ones. 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. We also conduct several ablation experiments to study the effect of language distances, language corpus size, and model size on calibration, and how multilingual models compare with their monolingual counterparts for diverse tasks and languages. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑