Token置信度仅仅是链长吗?对推理轨迹的信号处理审计
Is Token Confidence Just Chain Length? A Signal-Processing Audit of Reasoning Traces
AI总结:
该研究通过信号处理分析发现,推理模型思维链的Token置信度评分主要反映链长,仅按链长排序效果相当,且错误链的微弱波动信号无法提升投票,提前终止也无需复杂方法。
摘要:
推理语言模型通过书写长思维链来解答数学问题,针对每个问题采样多条思维链并进行多数投票可提升准确率,但会产生生成文本的高昂成本。一种流行的降低成本的方法是,根据模型对每条思维链中每个Token(即单词或单词的一部分)的置信度对其进行评分,该方法会在2048个Token的滑动窗口上对置信度取平均值,并根据最低平均值决定保留或终止思维链。我们将逐Token记录的置信度视为音频或无线电意义上的信号,并使用频谱分析、突变检测统计检验等标准信号处理工具对该方法进行检验。我们从两个数学基准中各采样了500个问题,每个问题对应16条思维链,采用的是小型开源推理模型。结果表明,滑动窗口最低评分主要衡量的是思维链的长度;仅按长度对思维链进行排序,其效果与置信度评分相当甚至更好,且在考虑长度后,该评分不再携带任何关于正确性的信息。信号处理对此的解释是:缓慢漂移信号的较长片段的最小值仅因偶然因素就会更低,而置信度信号的漂移足够缓慢,使得这种效应占据主导。频谱中确实存在长度无法解释的微弱信号,因为错误的思维链会携带更快速的Token间波动,但该信号太弱,无法提升投票效果。对于提前终止思维链,无论是滑动平均还是经典突变检测器,都无法胜过采样更少思维链这一更简单的选择。
英文摘要:
Reasoning language models answer math problems by writing long chains of thought, and sampling many chains per problem and taking a majority vote raises accuracy at a large cost in generated text. A popular way to cut that cost scores each chain by the model's confidence in each token it writes, where a token is a word or part of a word. The method averages this confidence over a sliding window of 2048 tokens and keeps or stops chains based on the lowest average. We treat the confidence, recorded token by token, as a signal in the sense of audio or radio, and examine the method with standard signal-processing tools such as spectral analysis and statistical tests for detecting a sudden change. We sampled 16 chains for each of 500 problems from two math benchmarks with a small open reasoning model. The windowed-minimum score turns out to measure mostly how long a chain is. Ranking chains by length alone does as well as or better than the confidence score, and once length is accounted for the score carries no information about correctness. Signal processing explains why: the minimum of a longer stretch of a slowly drifting signal is lower by chance alone, and the confidence signal drifts slowly enough that this effect dominates. The spectrum does hold a small signal that length does not explain, since incorrect chains carry more rapid token-to-token fluctuation, but it is too weak to improve the vote. For stopping chains early, neither the sliding average nor a classical change detector beats the simpler choice of sampling fewer chains.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。