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

LLM在正确的时候发出信号吗?关于Neuron Agreement

Do LLMs Signal When They're Right? Evidence from Neuron Agreement

Institute of Trustworthy Embodied AI, Fudan University(可信具身人工智能研究院,复旦大学);Harbin Institute of Technology(哈尔滨工业大学)

Kang Chen, Yaoning Wang, Kai Xiong, Zhuoka Feng, Wenhe Sun, Haotian Chen, Yixin Cao

摘要:

大语言模型(LLM)通常通过样本评估集成解码器来增强推理,从而在没有地面实况的情况下实现无标签增益。然而,流行的策略只使用外部输出(如令牌概率,熵或自我评估)对候选人进行评分,并且这些信号在训练后可能会校准不良。相反,我们基于神经元激活来分析内部行为,并发现了三个发现:(1)外部信号是更丰富的内部动力学的低维投影;(2)在整个世代中,正确的反应比不正确的反应激活了更少的独特神经元;(3)正确反应的激活表现出更强的跨样本一致性,而不正确的反应则会出现分歧。受这些观察结果的启发,我们提出了神经元一致性解码(NAD),这是一种无监督的N中最佳方法,它使用激活稀疏性和交叉样本神经元一致性来选择候选者,仅在内部信号上操作,而不需要可比的文本输出。NAD支持在前32个生成的令牌内进行早期正确性预测,并支持积极的早期停止。在具有可验证答案的数学和科学基准测试中,NAD与多数投票相匹配;在多数投票不适用的开放式编码基准测试中,NAD始终优于Avg@64。通过早期修剪不希望的轨迹,NAD将令牌使用量减少了99%,生成质量损失最小,表明内部信号为无标签集成解码提供了可靠,可扩展和有效的指导。

英文摘要:

Large language models (LLMs) commonly boost reasoning via sample-evaluate-ensemble decoders, achieving label free gains without ground truth. However, prevailing strategies score candidates using only external outputs such as token probabilities, entropies, or self evaluations, and these signals can be poorly calibrated after post training. We instead analyze internal behavior based on neuron activations and uncover three findings: (1) external signals are low dimensional projections of richer internal dynamics; (2) correct responses activate substantially fewer unique neurons than incorrect ones throughout generation; and (3) activations from correct responses exhibit stronger cross sample agreement, whereas incorrect ones diverge. Motivated by these observations, we propose Neuron Agreement Decoding (NAD), an unsupervised best-of-N method that selects candidates using activation sparsity and cross sample neuron agreement, operating solely on internal signals and without requiring comparable textual outputs. NAD enables early correctness prediction within the first 32 generated tokens and supports aggressive early stopping. Across math and science benchmarks with verifiable answers, NAD matches majority voting; on open ended coding benchmarks where majority voting is inapplicable, NAD consistently outperforms Avg@64. By pruning unpromising trajectories early, NAD reduces token usage by 99% with minimal loss in generation quality, showing that internal signals provide reliable, scalable, and efficient guidance for label free ensemble decoding.

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

↑