Entropy-Lens: Uncovering Decision Strategies in LLMs
Riccardo Ali, Francesco Caso, Christopher Irwin, Pietro Liò
TL;DR
Entropy-Lens introduces a low-dimensional, per-layer entropy profile to summarize token-space dynamics in Transformer residual streams. By projecting activations through logit-lens and measuring the entropy of decoded next-token distributions, the method reveals two core token-prediction strategies: expansion and pruning. Across model families, tasks, and output formats, entropy profiles exhibit systematic, depth-rescaled patterns, enabling family-specific fingerprints and task-format discriminability while remaining robust to Rényi-entropy variants. Interventions disrupting expansion phases tend to degrade downstream performance, indicating expansion often plays a more critical role for accuracy. Overall, Entropy-Lens advances mechanistic interpretability by linking information-theoretic measures to layer-wise decision strategies and information processing across depth, with implications for model analysis and design.
Abstract
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.
