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

大型语言模型是校准不佳的上下文学习器

Large Language Models are Miscalibrated In-Context Learners

Language Technology Lab, University of Cambridge(剑桥大学语言技术实验室);Center for Artificial Intelligence and Data Science, University of Würzburg(乌尔姆大学人工智能与数据科学中心)

Chengzu Li, Han Zhou, Goran Glavaš, Anna Korhonen, Ivan Vulić

AI总结:

本研究揭示低资源下所有ICL学习方法均存在校准不佳问题,提出基于最大概率的自集成策略,在提升任务性能的同时改善校准,并给出学习范式选择指南。

摘要:

在采用或不采用微调进行上下文学习(ICL)时,我们好奇指令调优的语言模型是否能够凭借其强大的指令遵循能力,在如此有限的数据设置下,获得良好校准的结果而不受过度自信(即校准不佳)问题的影响。在这项工作中,我们从性能和校准两个角度,对不同学习方法选择的行为进行了深入分析。通过大量受控实验,我们观察到在校准不佳问题在低资源设置下的所有学习方法中都存在。为了在任务内性能和校准方面同时获得提升,我们随后研究了在不同建模阶段(例如,上下文示例的变化、提示的变化或不同的集成策略)应用自集成(self-ensembling)的潜力,以使预测更加校准,并具有可比甚至更好的性能。我们发现,使用最大概率的自集成能够产生稳健且校准良好的预测。我们的工作揭示了尽管任务性能有所提升,但使用ICL仍存在潜在的校准问题,并阐明了应选择哪种学习范式。我们还根据模型之前是否见过数据,提供了选择学习范式的实用指南,并通过自集成提供了一种有价值的解决方案,以增强语言模型的任务性能和校准,我们希望这能鼓励进一步的研究。

英文摘要:

When adapting ICL with or without fine-tuning, we are curious about whether the instruction-tuned language model is able to achieve well-calibrated results without suffering from the problem of overconfidence (i.e., miscalibration) considering its strong instruction following ability, especially in such limited data setups. In this work, we deliver an in-depth analysis of the behavior across different choices of learning methods from the perspective of both performance and calibration. Through extensive controlled experiments, we observe that the miscalibration problem exists across all learning methods in low-resource setups. To achieve simultaneous gain for both in-task performance and calibration, we then study the potential of self-ensembling applied at different modeling stages (e.g., variations of in-context examples or variations in prompts or different ensembling strategies) to make the predictions more calibrated and have comparable or even better performance. We find that self-ensembling with max probability produces robust and calibrated predictions. Our work reveals the potential calibration problem of using ICL despite the improvements in task performance and sheds light on which learning paradigm to choose. We also provide practical guidelines for choosing learning paradigms depending on whether the data has been seen by the model before and a worthwhile solution via self-ensembling on how to enhance both task performance and calibration of LMs, which we hope could encourage further study.

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

↑