Patterning: The Dual of Interpretability
George Wang, Daniel Murfet
TL;DR
This work defines patterning as the reverse problem of interpretability: given a desired form of generalization, identify training data that realizes it. It builds on singular learning theory and susceptibilities to connect data perturbations with changes in internal structure, and derives a minimum-norm data intervention via a patterning framework. The authors demonstrate the approach in two settings: (1) a small language model where reweighting data along a principal susceptibility direction accelerates or delays the emergence of an induction circuit, and (2) a parenthesis-balancing task where data perturbations shift the posterior toward one of two competing algorithms by manipulating local learning coefficients. These results establish a principled method to write internal structure by data, with potential implications for AI alignment and robust generalization, while noting current limitations in scale, computational cost, and online control extensions.
Abstract
Mechanistic interpretability aims to understand how neural networks generalize beyond their training data by reverse-engineering their internal structures. We introduce patterning as the dual problem: given a desired form of generalization, determine what training data produces it. Our approach is based on susceptibilities, which measure how posterior expectation values of observables respond to infinitesimal shifts in the data distribution. Inverting this linear response relationship yields the data intervention that steers the model toward a target internal configuration. We demonstrate patterning in a small language model, showing that re-weighting training data along principal susceptibility directions can accelerate or delay the formation of structure, such as the induction circuit. In a synthetic parentheses balancing task where multiple algorithms achieve perfect training accuracy, we show that patterning can select which algorithm the model learns by targeting the local learning coefficient of each solution. These results establish that the same mathematical framework used to read internal structure can be inverted to write it.
