arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.26045cs.CLcs.AI
收藏

激活预言机的置信度与校准:用于语言模型内部的可信解释

Confidence and Calibration of Activation Oracles for Reliable Interpretation of Language Model Internals

University of Turin(都灵大学);University of Southern Denmark(南丹麦大学)

Federico Torrielli, Peter Schneider-Kamp, Lukas Galke Poech

AI总结:

本文研究了6种激活预言机置信度估计方法,发现bootstrap模式频率在校准上优于其他方法(ECE 5.7% vs 25.5%),而log-prob基线可作为快速分诊信号。

摘要:

激活预言机旨在使其他模型的激活对人类可读,并且与白盒可解释性技术相比取得了有希望的结果。然而,此类激活预言机自然语言输出的不确定性量化(UQ)迄今研究不足。本文研究了6种不同的激活预言机置信度估计方法,并评估其置信度分数的校准程度。我们在每个预言机6000个样本(变化动词和上下文提示)上的实验表明,bootstrap模式频率是测试中校准最好的方法(在Qwen3-8B上ECE 5.7% vs 答案词对数概率的25.5%;在Qwen3.6-27B上10.3% vs 13.1%),并且log-prob基线可以以极低的成本作为快速分诊信号。代码和修补后的训练器可在https://github.com/federicotorrielli/probabilistic_activation_oracles获取。

英文摘要:

An activation oracle is a language model trained to convert the activations of another model into natural language. However, it is so far unclear to what extent these verbalizations are calibrated. Crucially, the oracle's verbalization come without any measure of confidence. Here, we compare five methods for estimating the confidence of an activation oracle. Our experiments cover four oracles from two model families (Qwen and Gemma, from 8B to 27B parameters), tested on the secret word task, whereby the oracle is supposed to recover a secret word, that has been fine-tuned into a model but does not appear in the model outputs. Our results with $6{,}000$ samples per method/oracle combination show that the best calibration depends on the availability of a hypothesis space or a calibration set: When an assumed auditor can list the possible answers in advance, the oracle should score each candidate answer directly. Scoring the candidates gives a higher accuracy on every oracle and a confidence that separates correct from incorrect answers better than any other method. When the oracle has to write its answer as free text, the agreement over twenty sampled answers gives the best calibrated confidence, which needs only five labeled secret words to be tuned. When a calibration set is available, a rescaled probability of the answer is as good as re-sampling, at the cost of one generation instead of twenty. Asking the oracle to write a number for its confidence, on the other side, gives no useful signal on any oracle. Code and the patched trainer are available at https://github.com/federicotorrielli/probabilistic_activation_oracles.

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

↑