Towards Spectroscopy: Susceptibility Clusters in Language Models
Andrew Gordon, Garrett Baker, George Wang, William Snell, Stan van Wingerden, Daniel Murfet
TL;DR
This work introduces a spectroscopy-inspired framework for neural language model interpretability based on perturbing the data distribution and measuring susceptibilities $\chi_{xy}$ under a localized Gibbs posterior via SGLD. By decomposing susceptibilities into mode contributions, the authors link token-context continuations to underlying data modes and identify clusters as spectral lines that reflect these modes. Applying a conductance-based clustering on 780k susceptibility vectors from Pythia-14M yields 510 interpretable clusters spanning syntax, mathematics, and code patterns, with about 50.8% matching sparse autoencoder features from a larger model, validating cross-method structure. The results persist across model scales (up to 1.4B parameters) and reveal networks of linked clusters, suggesting that the approach captures genuine, scalable internal structure and offers a path toward targeted interventions in training data distributions.
Abstract
Spectroscopy infers the internal structure of physical systems by measuring their response to perturbations. We apply this principle to neural networks: perturbing the data distribution by upweighting a token $y$ in context $x$, we measure the model's response via susceptibilities $χ_{xy}$, which are covariances between component-level observables and the perturbation computed over a localized Gibbs posterior via stochastic gradient Langevin dynamics (SGLD). Theoretically, we show that susceptibilities decompose as a sum over modes of the data distribution, explaining why tokens that follow their contexts "for similar reasons" cluster together in susceptibility space. Empirically, we apply this methodology to Pythia-14M, developing a conductance-based clustering algorithm that identifies 510 interpretable clusters ranging from grammatical patterns to code structure to mathematical notation. Comparing to sparse autoencoders, 50% of our clusters match SAE features, validating that both methods recover similar structure.
