Tracing and Manipulating Intermediate Values in Neural Math Problem Solvers
Not on the map. Why?
Abstract (arXiv)
How language models process complex input that requires multiple steps of inference is not well understood. Previous research has shown that information about intermediate values of these inputs can be extracted from the activations of the models, but it is unclear where that information is encoded and whether that information is indeed used during inference. We introduce a method for analyzing how a Transformer model processes these inputs by focusing on simple arithmetic problems and their intermediate values. To trace where information about intermediate values is encoded, we measure the correlation between intermediate values and the activations of the model using principal component analysis (PCA). Then, we perform a causal intervention by manipulating model weights. This intervention shows that the weights identified via tracing are not merely correlated with intermediate values, but causally related to model predictions. Our findings show that the model has a locality to certain intermediate values, and this is useful for enhancing the interpretability of the models.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 9 of its 11 references that are in the map. First posted on arXiv 17 Jan 2023.
Builds on
9 of 11 references.
References · 9
- 2017Attention Is All You Needcited by 59,932
- 2016Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependenciescited by 350
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
- 2020Injecting Numerical Reasoning Skills into Language Modelscited by 133
- 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
- 2021Linear algebra with transformerscited by 62
- 2018The Importance of Being Recurrent for Modeling Hierarchical Structurecited by 42
- 2015Tree-structured composition in neural networks without tree-structured architecturescited by 23
- 2020How LSTM Encodes Syntax: Exploring Context Vectors and Semi-Quantization on Natural Textcited by 2
Built on by
Citing papers per year: 2024: 2.
2 papers.
- 2024Representational Analysis of Binding in Language Modelscited by 27
- 2024Monotonic Representation of Numeric Properties in Language Modelscited by 15