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

FIRST:通过高效可信蒸馏训练可靠的大语言模型

FIRST: Teach A Reliable Large Language Model Through Efficient Trustworthy Distillation

The Hong Kong University of Science and Technology(香港科技大学);NVIDIA(英伟达);Purdue University(普渡大学);Wuhan University(武汉大学)

KaShun Shum, Minrui Xu, Jianshu Zhang, Zixin Chen, Shizhe Diao, Hanze Dong, Jipeng Zhang, Muhammad Omer Raza

AI总结:

本文针对微调导致大语言模型误校准的问题,提出高效可信蒸馏方法FIRST,通过识别“集中知识”现象降低计算成本,并利用可信性最大化过程优化知识迁移,在域内外场景中同时提升准确率并降低误校准。

摘要:

大语言模型(LLMs)在我们的日常生活中日益普及,这使得人们期望 LLMs 具备可信性——既准确又具有良好的校准性(预测置信度应与其真实正确性概率一致)。如今,微调已成为将模型适配到实际应用中最流行的方法,它能显著提高下游任务的准确率。尽管微调取得了很高的准确率,但我们发现由于“微调引起的误校准”,微调在可信性方面仍远不能令人满意。在本文中,我们深入探究了微调模型中误校准存在的原因和方式,以及蒸馏如何缓解这一问题。随后,我们进一步提出了一种名为高效可信蒸馏(FIRST)的全新方法,该方法利用一小部分教师知识,以低成本高效的方式获得可靠的语言模型。具体而言,我们识别出蒸馏过程中的“集中知识”现象,这可以显著降低计算负担。然后,我们应用“可信性最大化”过程,在将这一小部分集中知识迁移给学生模型之前,优化对其的利用。实验结果证明了我们方法的有效性,在域内和域外场景中平均取得了更高的准确率(+2.3%)和更低的误校准(-10%),表明其具有更好的可信性。

英文摘要:

Large language models (LLMs) have become increasingly prevalent in our daily lives, leading to an expectation for LLMs to be trustworthy -- - both accurate and well-calibrated (the prediction confidence should align with its ground truth correctness likelihood). Nowadays, fine-tuning has become the most popular method for adapting a model to practical usage by significantly increasing accuracy on downstream tasks. Despite the great accuracy it achieves, we found fine-tuning is still far away from satisfactory trustworthiness due to "tuning-induced mis-calibration". In this paper, we delve deeply into why and how mis-calibration exists in fine-tuned models, and how distillation can alleviate the issue. Then we further propose a brand new method named Efficient Trustworthy Distillation (FIRST), which utilizes a small portion of teacher's knowledge to obtain a reliable language model in a cost-efficient way. Specifically, we identify the "concentrated knowledge" phenomenon during distillation, which can significantly reduce the computational burden. Then we apply a "trustworthy maximization" process to optimize the utilization of this small portion of concentrated knowledge before transferring it to the student. Experimental results demonstrate the effectiveness of our method, where better accuracy (+2.3%) and less mis-calibration (-10%) are achieved on average across both in-domain and out-of-domain scenarios, indicating better trustworthiness.

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

↑