LGAICLJan 17, 2023

Tracing and Manipulating Intermediate Values in Neural Math Problem Solvers

arXiv:2301.06758v1292 citationsh-index: 43
Originality Incremental advance
AI Analysis

This work addresses interpretability for researchers and practitioners in AI, but it is incremental as it builds on existing tracing methods with causal interventions.

The paper tackled the problem of understanding how language models process multi-step inference by analyzing intermediate values in arithmetic problems, finding that specific model weights are causally related to these values and predictions.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes