The Local Interaction Basis: Identifying Computationally-Relevant and Sparsely Interacting Features in Neural Networks
Lucius Bushnaq, Stefan Heimersheim, Nicholas Goldowsky-Dill, Dan Braun, Jake Mendel, Kaarel Hänni, Avery Griffin, Jörn Stöhler, Magdalena Wache, Marius Hobbhahn
TL;DR
This work tackles mechanistic interpretability by introducing the Local Interaction Basis (LIB), a two-stage, Jacobian-aligned transformation intended to produce a sparsely interacting, computationally-relevant feature basis for neural networks. By combining PCA whitening with an SVD-based rotation of layer-to-layer Jacobians and using integrated gradients to build interaction graphs, LIB seeks to reveal modular circuits and key feature interactions. Across a modular addition transformer and CIFAR-10 MLP, LIB identifies more computationally-relevant features and tends to yield sparser interactions than PCA, though interpretability gains are modest. On language models (GPT2-small and TinyStories-1M), LIB produces limited interpretability improvements and unreliable modular structure, suggesting that the assumption of a linear, non-overcomplete basis may not hold for large LMs and motivating future work on overcomplete representations or alternative bases.
Abstract
Mechanistic interpretability aims to understand the behavior of neural networks by reverse-engineering their internal computations. However, current methods struggle to find clear interpretations of neural network activations because a decomposition of activations into computational features is missing. Individual neurons or model components do not cleanly correspond to distinct features or functions. We present a novel interpretability method that aims to overcome this limitation by transforming the activations of the network into a new basis - the Local Interaction Basis (LIB). LIB aims to identify computational features by removing irrelevant activations and interactions. Our method drops irrelevant activation directions and aligns the basis with the singular vectors of the Jacobian matrix between adjacent layers. It also scales features based on their importance for downstream computation, producing an interaction graph that shows all computationally-relevant features and interactions in a model. We evaluate the effectiveness of LIB on modular addition and CIFAR-10 models, finding that it identifies more computationally-relevant features that interact more sparsely, compared to principal component analysis. However, LIB does not yield substantial improvements in interpretability or interaction sparsity when applied to language models. We conclude that LIB is a promising theory-driven approach for analyzing neural networks, but in its current form is not applicable to large language models.
