Observable Propagation: Uncovering Feature Vectors in Transformers
Jacob Dunefsky, Arman Cohan
TL;DR
Observable propagation (ObProp) offers a data-free framework to uncover linear feature vectors in transformer activations by treating task signals as linear functionals on logits. Observables $n$ map logits via measurements $n^T y$, enabling feature vectors to be derived along OV circuits and extended through attention, MLPs, and LayerNorms with first-order linearizations. Theoretical contributions include a LayerNorm invariance result and a coupling coefficient $C(y_1,y_2)$, along with data-free norms and coupling analyses, and empirical demonstrations on gender pronoun prediction and occupational bias that ObProp can outperform data-heavy probes in low-data regimes. The work reveals shared internal features driving different bias-related tasks, discusses debiasing implications, and outlines limitations related to QK circuits, while highlighting the practical impact of a reproducible, data-efficient interpretability toolkit. Overall, ObProp advances mechanistic interpretability by linking task observables to internal feature vectors with minimal data, enabling scalable insights into bias mechanisms and model behavior.
Abstract
A key goal of current mechanistic interpretability research in NLP is to find linear features (also called "feature vectors") for transformers: directions in activation space corresponding to concepts that are used by a given model in its computation. Present state-of-the-art methods for finding linear features require large amounts of labelled data -- both laborious to acquire and computationally expensive to utilize. In this work, we introduce a novel method, called "observable propagation" (in short: ObProp), for finding linear features used by transformer language models in computing a given task -- using almost no data. Our paradigm centers on the concept of "observables", linear functionals corresponding to given tasks. We then introduce a mathematical theory for the analysis of feature vectors, including a similarity metric between feature vectors called the coupling coefficient which estimates the degree to which one feature's output correlates with another's. We use ObProp to perform extensive qualitative investigations into several tasks, including gendered occupational bias, political party prediction, and programming language detection. Our results suggest that ObProp surpasses traditional approaches for finding feature vectors in the low-data regime, and that ObProp can be used to better understand the mechanisms responsible for bias in large language models.
