arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.29466cs.LGcs.AIcs.CL
收藏

基于梯度范数的高效不确定性量化方法

An Isotropic Approach to Efficient Uncertainty Quantification with Gradient Norms

IT University of Copenhagen(哥本哈根信息技术大学);Pioneer Centre for Artificial Intelligence(人工智能先锋中心);Technical University of Denmark(丹麦技术大学)

Nils Grünefeld, Jes Frellsen, Christian Hardmeier

AI总结:

本文提出一种轻量级方法,通过梯度范数和参数协方差的近似,实现对神经网络预测不确定性的高效量化,验证了其在不同基准测试中的有效性。

摘要:

现有方法在量化神经网络预测不确定性时,要么对大语言模型计算不可行,要么需要访问通常不可用的训练数据。本文通过两种近似方法提出轻量级替代方案:一种是利用预测梯度和参数协方差的一阶泰勒展开,另一种是对参数协方差的各向同性假设。这两种方法共同产生epistemic不确定性作为梯度范数的平方,以及aleatoric不确定性作为点预测的伯努利方差,仅需一次正向反向通过未经修改的预训练模型。通过非训练数据构建的协方差估计引入了结构化扭曲,而各向同性协方差避免了这种扭曲,并且大网络的谱性质理论结果支持了该近似。在合成问题上与参考马尔可夫链蒙特卡罗估计的验证显示,结果与模型规模成正比。随后利用这些估计,研究了在大语言模型问答任务中,每种不确定性类型对预测答案正确性的有用信号,揭示了基准依赖的分歧:联合估计在TruthfulQA上达到最高均AUROC,但TriviaQA上则接近偶然,表明参数级不确定性捕捉了不同于自评估方法的基本信号。

英文摘要:

Existing methods for quantifying predictive uncertainty in neural networks are either computationally intractable for large language models or require access to training data that is typically unavailable. We derive a lightweight alternative through two approximations: a first-order Taylor expansion that expresses uncertainty in terms of the gradient of the prediction and the parameter covariance, and an isotropy assumption on the parameter covariance. Together, these yield epistemic uncertainty as the squared gradient norm and aleatoric uncertainty as the Bernoulli variance of the point prediction, from a single forward-backward pass through an unmodified pretrained model. We justify the isotropy assumption by showing that covariance estimates built from non-training data introduce structured distortions that isotropic covariance avoids, and that theoretical results on the spectral properties of large networks support the approximation at scale. Validation against reference Markov Chain Monte Carlo estimates on synthetic problems shows strong correspondence that improves with model size. We then use the estimates to investigate when each uncertainty type carries useful signal for predicting answer correctness in question answering with large language models, revealing a benchmark-dependent divergence: the combined estimate achieves the highest mean AUROC on TruthfulQA, where questions involve genuine conflict between plausible answers, but falls to near chance on TriviaQA's factual recall, suggesting that parameter-level uncertainty captures a fundamentally different signal than self-assessment methods.

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

↑