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

熵透镜:揭示大语言模型中的决策策略

Entropy-Lens: Uncovering Decision Strategies in LLMs

Department of Computer Science University of Cambridge Cambridge, UK(计算机科学系剑桥大学剑桥英国)

Riccardo Ali, Francesco Caso, Christopher Irwin, Pietro Liò

AI总结:

熵透镜通过分析LLM残差流的熵剖面,揭示令牌预测动态及决策策略对模型性能的影响。

摘要:

在大型语言模型(LLMs)中,每个块都通过残差流将输入令牌序列映射到输出令牌分布。然而,大多数可解释性文献专注于内部潜在表示,使令牌空间动态未被充分研究。令牌分布的高维性和类别性阻碍了其分析,因为标准统计描述符不适用。我们表明,logit-lens预测的熵克服了这些问题。为此,它提供了一个每层标量、排列不变的度量。我们引入熵透镜,将残差流的令牌空间动态压缩成低维信号。我们将此信号称为熵剖面。我们对各种模型大小和家族应用了我们的方法,显示(i)熵剖面揭示了由扩展和剪枝策略驱动的令牌预测动态;(ii)这些动态是家族特定的,并且在深度重新缩放下不变;(iii)它们具有任务类型和输出格式的特征;(iv)这些策略对下游性能的影响不均,通常扩展策略更为关键。最终,我们的发现进一步增强了对残差流的理解,使能够对模型深度中信息处理进行细致评估。

英文摘要:

In large language models (LLMs), each block operates on the residual stream to map input token sequences to output token distributions. However, most of the interpretability literature focuses on internal latent representations, leaving token-space dynamics underexplored. The high dimensionality and categoricity of token distributions hinder their analysis, as standard statistical descriptors are not suitable. We show that the entropy of logit-lens predictions overcomes these issues. In doing so, it provides a per-layer scalar, permutation-invariant metric. We introduce Entropy-Lens to distill the token-space dynamics of the residual stream into a low-dimensional signal. We call this signal the entropy profile. We apply our method to a variety of model sizes and families, showing that (i) entropy profiles uncover token prediction dynamics driven by expansion and pruning strategies; (ii) these dynamics are family-specific and invariant under depth rescaling; (iii) they are characteristic of task type and output format; (iv) these strategies have unequal impact on downstream performance, with the expansion strategy usually being more critical. Ultimately, our findings further enhance our understanding of the residual stream, enabling a granular assessment of how information is processed across model depth.

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

↑