NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Unifying Perspective on Language Model Representations: From Filler-Role Structure to Mechanistic Interpretability

Zhang Enyan, R. Thomas McCoyNeurIPS 2026

TL;DR

Right now, understanding how language models work feels like the parable of the blind men and the elephant: we poke them with linear probes, sparse autoencoders, and causal interventions, getting useful—yet disconnected—clues. This paper proposes a single mathematical blueprint, Tensor Product Representations (TPRs), that acts as the "whole elephant" underlying neural network activations. Even better, once you approximate a model's hidden state using this blueprint, you can mathematically derive and build all those popular interpretability tools directly from scratch, and they work just as well as the originals.

What Problem Does This Paper Address?

Mechanistic interpretability has handed us an impressive toolkit. We know model activations support vector arithmetic ("king - man + woman = queen"), can be decoded by linear probes, decomposed into concepts via Sparse Autoencoders (SAEs), and edited mid-flight using activation patching.

Figure 1: Left: Partial observations of an elephant point to a variety of properties — e.g., the trunk is snake-like and the ears are fan-like. All these partial observations can together be explained by the elephant’s overall structure. Right: Similarly, different language model interpretability methods expose consistent but partial descriptions of the same underlying model. Here we ask what the model’s underlying structure could be such that it supports all of these observations.

Yet these findings live in silos. What is the actual geometry of a neural network's hidden state such that all of these methods work? The prevailing candidate is the Linear Representation Hypothesis, which views an activation vector as a simple sum of concept vectors. However, simple addition creates a "bag-of-concepts" problem: summing the vectors for dog, bites, and man gives you the exact same representation as man, bites, dog. Treating every possible word-position combo as a separate atomic concept causes a combinatorial explosion. We need a unifying theory of representation that handles compositional structure natively.

Methods

The authors reach into cognitive science to revive Tensor Product Representations (TPRs), introduced by Paul Smolensky in 1990. Instead of just summing concepts, TPRs separate what is there (fillers, like the word chef or digit 7) from where it is (roles, like subject or 3rd position).

To encode a structure, you take the outer product (tensor product) of each filler vector with its corresponding role vector, and sum those bound pairs together. Because roles are distinct, you can later multiply the representation by an "unbinding" vector to cleanly extract whichever filler occupies a specific role.

Figure 2: Training a Tensor Product Encoder to approximate the represen- tations of a frozen neural network.

To test whether real neural networks implicitly use TPRs, the authors train a Tensor Product Encoder (TPE)—a lightweight module that explicitly builds a TPR from known filler-role pairs and passes it through a single linear layer—to mimic the frozen hidden states of target models (from toy RNNs up to 20B-parameter LLMs).

What’s novel here is what comes next: analytical construction. Instead of training linear probes, SAEs, or running extra forward passes for analogies and activation patching, the authors use pure linear algebra on their trained TPE to derive the exact weights and vector offsets for all four interpretability methods.

Datasets

Because the authors want to study how concepts are structured rather than guessing which concepts exist, they construct two controlled, fixed-structure synthetic datasets where ground truth is guaranteed:

  • Synthetic Digit Sequences: 50,000 random sequences of 6 digits (vocabulary of 20) used to train small RNNs, GRUs, and LSTMs on copying and reversal tasks.
  • SVO Sentences: Structured English sentences following the template "the <subject> will <verb> the <object>." sampled from 77 occupations and 5 verbs. For activation patching, a passive follow-up clause ("the <object> will be seen by the ___") is appended. These are fed into embedding models (ModernBERT, EmbeddingGemma, Qwen3-Embedding-8B) and autoregressive LLMs (Qwen3-8B, OLMo2-13B, GPT-OSS-20B).

Key Insights and Ideas

  • Vector analogies are filler-role swaps: Why does vector subtraction isolate relationships? Under TPRs, subtracting two representations cancels out shared context and bias terms, leaving behind a clean difference between two fillers bound to the exact same role.
  • Different linear probes share the same vocabulary: A subject probe and an object probe aren't learning completely independent features. Mathematically, they act as TPR "unbinding" operators—pulling out different structural roles while projecting onto the exact same underlying dictionary of filler vectors.
  • SAE features have internal compositional anatomy: Sparse autoencoders typically treat features as a flat dictionary. Deriving an SAE from a TPE reveals that individual sparse features actually correspond to specific filler-role bindings (e.g., actor-as-subject).
  • Activation patching edits bindings: Patching a hidden state from a source prompt into a destination prompt works because you are linearly swapping the filler bound to a specific role—meaning you can compute a causal patch analytically without even running a forward pass on the source prompt!

Key Results

  • Approximating Hidden States: TPEs reconstruct toy RNN/GRU/LSTM states with $R^2 = 0.94$ and 99.97% substitution accuracy (the frozen model behaves identically when swapped with the TPE vector). On natural language, TPEs capture $R^2 > 0.90$ for embedding models and $R^2 > 0.64$ for LLM final-period tokens.
  • Constructed Analogies & Probes: Analogy vectors built directly from TPE equations match or beat standard 3-vector analogies while needing only one forward pass instead of three. TPE-predicted offsets align tightly with true ModernBERT embedding shifts (cosine similarity $0.94$). Analytically constructed probes closely mirror the accuracy of standard trained probes across models—even failing on the exact same sequence positions in GRUs/LSTMs where trained probes struggle.
Figure 4: PCA projection of Mod- ernBERT encodings for sentence triplets that differ only in subject. TPE-predicted embedding differ- ences (arrows) closely align with those of sentence triplets.
  • Constructed SAEs: SAEs built straight from TPE weights achieve an average reconstruction $R^2 = 0.96$ and over 94.9%–99.9% feature quality, rivaling supervised SAEs.
  • Constructed Activation Patching: Across all layers and token positions of Qwen3-8B, OLMo2-13B, and GPT-OSS-20B, TPE-constructed patches reproduce standard activation patching restoration scores almost identically (Pearson $r \ge 0.9998$).

Limitations and Future Work

The experiments rely on rigid, pre-defined structures (6-digit strings and strict Subject-Verb-Object templates) where the authors manually specify the fillers and roles fed into the TPE. Real-world text features messy, variable syntax trees and nested clauses. Scaling this framework to naturalistic language—potentially by combining it with unsupervised role-filler discovery—and extending the mathematical derivations to other interpretability techniques remain open frontiers.

Summary updated

BibTeX
@inproceedings{enyan2026unifying,
  author = {Zhang Enyan and R. Thomas McCoy},
  title = {{A Unifying Perspective on Language Model Representations: From Filler-Role Structure to Mechanistic Interpretability}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=y9mExa1HH7},
}
Figure