arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2307.11316cs.CLcs.LG
收藏

让预训练语言模型同时成为任务求解器与自校准器

Making Pre-trained Language Models both Task-solvers and Self-calibrators

UIUC(伊利诺伊大学厄巴纳-香槟分校)

Yangyi Chen, Xingyao Wang, Heng Ji

AI总结:

针对预训练语言模型预测过度自信且现有校准方法依赖大量额外数据的问题,提出LM-TOAST训练算法,在有限样本等挑战下让模型兼顾任务性能与合理置信度估计,可应用于多类下游场景。

摘要:

预训练语言模型(PLMs)是各类实际系统的骨干架构。对于高风险应用而言,为预测结果提供合理的置信度估计同样至关重要。尽管PLMs的原始置信度分数已能得到有效利用,但PLMs始终会对其错误预测表现出过度自信,这在实际应用中并不可取。已有研究表明,引入额外的校准任务可以缓解这一问题,其核心思路是获取额外数据来训练模型,使其能够预测自身初始预测的置信度。但这类研究仅证明了该方法的可行性,其前提是假设引入的校准任务有充足的额外可用样本。\n在本研究中,我们考虑了需要有效利用训练样本让PLMs同时兼具任务求解与自校准能力的实际场景,该场景存在三大挑战:训练样本有限、数据不平衡以及分布偏移。我们首先开展了预实验,对校准任务中的各类决定性因素进行量化。基于实证分析结果,我们提出了LM-TOAST训练算法以应对上述挑战。实验结果表明,LM-TOAST能够有效利用训练数据,让PLMs在保持原有任务性能的同时,具备合理的置信度估计能力。此外,我们还考察了选择性分类、对抗防御和模型级联三种下游应用,以验证LM-TOAST的实际实用性。代码将在https://github.com/Yangyi-Chen/LM-TOAST 公开发布。

英文摘要:

Pre-trained language models (PLMs) serve as backbones for various real-world systems. For high-stake applications, it's equally essential to have reasonable confidence estimations in predictions. While the vanilla confidence scores of PLMs can already be effectively utilized, PLMs consistently become overconfident in their wrong predictions, which is not desirable in practice. Previous work shows that introducing an extra calibration task can mitigate this issue. The basic idea involves acquiring additional data to train models in predicting the confidence of their initial predictions. However, it only demonstrates the feasibility of this kind of method, assuming that there are abundant extra available samples for the introduced calibration task. In this work, we consider the practical scenario that we need to effectively utilize training samples to make PLMs both task-solvers and self-calibrators. Three challenges are presented, including limited training samples, data imbalance, and distribution shifts. We first conduct pilot experiments to quantify various decisive factors in the calibration task. Based on the empirical analysis results, we propose a training algorithm LM-TOAST to tackle the challenges. Experimental results show that LM-TOAST can effectively utilize the training data to make PLMs have reasonable confidence estimations while maintaining the original task performance. Further, we consider three downstream applications, namely selective classification, adversarial defense, and model cascading, to show the practical usefulness of LM-TOAST. The code will be made public at \url{https://github.com/Yangyi-Chen/LM-TOAST}.

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

↑