Manuscript Offprint

arXiv:2610.20748

Interpreting Language Model Parameters

Lucius Bushnaq, Dan Braun, Oliver Clive-Griffin, Bart Bussmann, Nathan Hu, Michael Ivanitskiy, Linda Linsefors, Lee Sharkey

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Mechanistic interpretability aims to uncover how neural networks use their parameters to implement their impressive neural algorithms. Although previous work has uncovered substantial structure in the intermediate representations that networks use, little progress has been made to understand how the parameters and nonlinearities of networks perform computations on those representations. In this work, we present a method that brings us closer to this understanding by decomposing a language model's parameters into subcomponents that each implement only a small part of the model's learned algorithm, while simultaneously requiring only a small fraction of those subcomponents to account for the network's behavior on any input. The method, adVersarial Parameter Decomposition (VPD), optimizes for decompositions of neural network parameters into simple subcomponents that preserve the network's input-output behavior even when many subcomponents are ablated, including under ablations that are adversarially selected to destroy behavior. This encourages learning subcomponents that provide short, mechanistically faithful descriptions of the network's behavior that should aggregate appropriately into more global descriptions of the network's learned algorithm. We study how sequences of interactions between these parameter subcomponents produce the network's output on particular inputs, enabling a new kind of 'circuit' analysis. While more work remains to be done to deepen our understanding of how neural networks use their parameters to compute their behavior, our work suggests an approach to identify a small set of simple, mechanistically faithful subcomponents on which further mechanistic analysis can be based.

This paper was written to be read online, with interactive figures, at https://www.goodfire.com/research/interpreting-lm-parameters.

Contents

1 Introduction 5

2 The core method: adVersarial Parameter Decomposition 7

2.1 Parameter components consist of subcomponents ..... 8

2.2 Enforcing parameter faithfulness with Δ\Delta-components ..... 9

2.3 Optimizing for minimality ..... 9

2.4 Optimizing for mechanistic faithfulness ..... 10
2.5 Optimizing for simplicity ..... 11
2.6 Summary of loss terms ..... 12

3 Analyzing language model parameter subcomponents ..... 12
3.1 Target language model ..... 12
3.2 The decomposition model behaves similarly to the target model ..... 14
3.3 VPD has a better tradeoff between reconstruction versus sparsity compared with transcoders ..... 15
3.4 Parameter subcomponents are highly interpretable ..... 17
3.5 VPD does not suffer from feature splitting ..... 19

4 Decomposing attention behaviors that are distributed across attention heads ..... 21
4.1 Attention layer parameter subcomponents have specific interpretable roles ..... 21
4.2 Attention layer parameter subcomponents typically span multiple heads ..... 22
4.3 The QK circuit consists of interactions between pairs of parameter subcomponents ..... 23
4.3.1 QK Circuit - Metric 1: Static Interaction strength ..... 24
4.3.2 QK Circuit - Metric 2: Data-Dependent Interaction Strength ..... 25
4.4 Decomposing attention behavior 1: Previous token behavior ..... 25
4.4.1 Previous token behavior employs non-overlapping subspaces in the OV circuit ..... 30
4.5 Decomposing attention behavior 2: Previous syntax boundary movement ..... 31
4.6 Decomposing attention behavior 3: Detecting Existential vs. Expletive Constructions ..... 33
4.6.1 Subcomponent 1.attn.q:308 activates on a subset of copula verbs ..... 34
4.6.2 Subcomponent 1.attn.q:308 interacts with two specific WKW_K subcomponents ..... 36
4.6.3 Subcomponents 1.attn.k:218 and 1.attn.q:308 make an “it + copula verb” detector ..... 36
4.6.4 The 1.attn.k:485-1.attn.q:308 interaction plays a mostly overlapping role to the 1.attn.k:218-1.attn.q:308 interaction ..... 38
4.6.5 Both QK subcomponent interactions have similar OV circuits ..... 38

5 Interpreting circuits of parameter subcomponents ..... 40
5.1 Attribution calculations ..... 41
5.2 Pruning for specific behaviors ..... 41
5.3 Case study 1: Gendered possessive pronoun ..... 44
5.4 Case study 2: Bracket closing ..... 51

6 Editing a language model’s parameters by hand to modify its neural algorithm ..... 59

7 Discussion ..... 63

7.1 Parameter decomposition makes fewer assumptions about neural networks' representations than other methods ..... 63
7.2 Explanations of attribution graphs are not explanations of computational graphs ..... 64
7.3 Robustness to adversarial ablations permits aggregation of explanations ..... 64
7.4 Interpretability demands Minimum Description Length, but of what kind of description? ..... 66
7.5 Other limitations and future work ..... 66
7.6 Related work ..... 69
7.6.1 Ablation-based parameter decomposition ..... 69
7.6.2 Identifying computational subgraphs in architectural unit basis ..... 69
7.6.3 Identifying computational subgraphs using learned decompositions ..... 69
8 Conclusion ..... 70
9 Contributions statement ..... 70
9.0.1 Funding declarations ..... 72
9.0.2 Acknowledgements ..... 72
9.0.3 Citation ..... 73
A Methods ..... 73
A.1 Δ\Delta-L2 penalty ..... 73
A.2 Causal Importance Function Architecture ..... 73
A.3 Reconstruction losses ..... 75
A.3.1 Formal Setup ..... 75
A.3.2 Stochastic reconstruction losses ..... 76
A.3.3 Stochastic Subset reconstruction loss ..... 77
A.3.4 Adversarial reconstruction loss ..... 77
A.4 Frequency minimality loss ..... 79
A.4.1 Information theory motivation ..... 80
A.5 p-annealing ..... 81
A.6 A training recipe for VPD ..... 81
A.7 Training Details and Hyperparameters ..... 84
A.8 Clustering Subcomponents into Components ..... 87
A.8.1 Minimum Description Length Clustering ..... 87
A.8.2 Stochastic Hierarchical Merging ..... 88
A.8.3 Choosing alpha ..... 89
A.9 Automated subcomponent labeling ..... 89

References (67)