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

关于上下文学习校准的研究

A Study on the Calibration of In-context Learning

Harvard University(哈佛大学);MBZUAI(穆罕默德·本·扎耶德人工智能大学);UC Berkeley(加州大学伯克利分校);Amazon(亚马逊公司);Carnegie Mellon University(卡内基梅隆大学)

Hanlin Zhang, Yi-Fan Zhang, Yaodong Yu, Dhruv Madeka, Dean Foster, Eric Xing, Himabindu Lakkaraju, Sham Kakade

AI总结:

本文研究上下文学习中性能与校准的平衡,发现少样本下误校准更明显,微调和思维链提示可能降低校准可靠性,并提出缩放分箱校准器可有效减少校准误差。

摘要:

准确的不确定性量化对于机器学习模型的安全部署至关重要,先前的研究已经表明现代语言模型(LMs)的校准有所改善。我们研究了上下文学习(ICL),这是一种通过定制提示来适配静态语言模型的流行方法,并考察了在广泛的自然语言理解与推理任务中性能与校准之间的平衡。通过全面的实验,我们观察到,随着ICL示例数量的增加,模型最初会表现出更高的误校准,之后才实现更好的校准,并且误校准往往出现在少样本设置中。此外,我们发现旨在提高可用性的方法,如微调和思维链(CoT)提示,可能导致误校准和不可靠的自然语言解释。进一步地,我们探索了重校准技术,并发现一种缩放分箱校准器能够一致地减少校准误差。

英文摘要:

Accurate uncertainty quantification is crucial for the safe deployment of machine learning models, and prior research has demonstrated improvements in the calibration of modern language models (LMs). We study in-context learning (ICL), a prevalent method for adapting static LMs through tailored prompts, and examine the balance between performance and calibration across a broad spectrum of natural language understanding and reasoning tasks. Through comprehensive experiments, we observe that, with an increasing number of ICL examples, models initially exhibit increased miscalibration before achieving better calibration and miscalibration tends to arise in low-shot settings. Moreover, we find that methods aimed at improving usability, such as fine-tuning and chain-of-thought (CoT) prompting, can lead to miscalibration and unreliable natural language explanations. Furthermore, we explore recalibration techniques and find that a scaling-binning calibrator can reduce calibration errors consistently.

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

↑