Token-axis Predictive Decomposition: What Information Does Each Token Add to the Hidden States of a Language Model?
Abstract
Interpretability research on large language models commonly relies on the decomposition along the layer axis provided by the architecture, . Along the token axis, however, the architecture provides no such decomposition. We decompose the hidden state at position into its expectation conditioned only on the past hidden states, , and the residual . Since the true conditional expectation cannot be computed, we approximate it with several predictors of different architectures and also examine how much the observed properties depend on the choice of predictor. At five layers of Pythia-410m-deduped, we evaluate this decomposition from three perspectives: temporal structure, linguistic information, and effect on the output. First, using a Transformer as the predictor reduces the squared error only slightly in the middle layers, but when the predictor aggregates the entire past, the autocorrelation of exceeds that of , while that of is nearly zero. Second, when linear probes trained on are applied unchanged to both components, attributes determined by the context (e.g., the document source) can be read out from and token-local attributes (e.g., noun number) from ; in deeper layers, the component that carries the attributes shifts toward . Third, the KL divergence of the next-token distribution when is replaced with is generally smaller for better predictors, and the output is more sensitive to reducing than to increasing it by the same amount. These results suggest that the predictive decomposition along the token axis, like the decomposition along the layer axis, can serve as a unit for analyzing internal representations.
Then back it, or bet against it.
Related papers
Open the market on this paper to see 7 more related papers.