arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.18366cs.LGstat.ML
收藏

通过证据知识蒸馏实现语言模型高效不确定性量化

Toward Efficient Uncertainty in LLMs through Evidential Knowledge Distillation

Department of Computer Science and Engineering, Indian Institute of Technology Hyderabad(计算机科学与工程系,印度理工学院海得拉巴分校);Jagiellonian University, Faculty of Mathematics and Computer Science(雅盖隆大学,数学与计算机科学学院)

Lakshmana Sri Harsha Nemani, P. K. Srijith, Tomasz Kuśmierczyk

AI总结:

研究针对标准语言模型准确量化不确定性的挑战,介绍通过证据知识蒸馏在语言模型中估计不确定性的方法,对比两种蒸馏策略,经分类任务实证评估,单步学生模型能达可比性能。

摘要:

准确的不确定性量化仍是标准语言模型的关键挑战,促使采用贝叶斯和基于集成的方法。然而,此类方法通常需要计算昂贵的采样,涉及多次前向传递以有效估计预测不确定性。本文介绍一种在语言模型中进行不确定性估计的方法,无需承担与采样方法相关的高推理延迟。具体而言,我们将原本需要多次前向传递的不确定性感知教师模型提炼为单步学生模型,使用LoRA进行微调。我们比较两种不同的蒸馏策略:一种是学生采用基于传统softmax的输出,另一种是学生利用狄利克雷分布的输出通过证据学习明确建模认知不确定性。在分类任务上的实证评估表明,这样的学生模型相对于其教师模型可以实现可比的预测和不确定性量化性能,同时只需要一次前向传递。

英文摘要:

Accurate uncertainty quantification remains a key challenge for standard LLMs, prompting the adoption of Bayesian and ensemble-based methods. However, such methods typically necessitate computationally expensive sampling, involving multiple forward passes to effectively estimate predictive uncertainty. In this paper, we introduce an approach enabling uncertainty estimation in LLMs without incurring the heavy inference latency typically associated with sampling methods. Specifically, we distill uncertainty-aware teachers - originally requiring multiple forward passes - into single-pass students, fine-tuned using LoRA. We compare two distinct distillation strategies: one in which the student employs traditional softmax-based outputs, and another in which the student leverages Dirichlet-distributed outputs to explicitly model epistemic uncertainty via evidential learning. Empirical evaluation on classification tasks demonstrate that such students can achieve comparable predictive and uncertainty quantification performance relative to their teachers, while requiring only a single forward pass.

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

↑