A transformer layer takes activations in and produces activations out. Existing tools study this indirectly:
Probing — what information is linearly accessible
Ablation — what is causally necessary
SAEs — what features are present
These characterize what information exists and where it matters — but none directly approximates the transformation itself.
Forward self-models: the idea
Core intuition
Train a small auxiliary network to predict a model's later-layer activations from its earlier-layer activations — learning how the intervening layers transform their inputs.
What the forward model captures
The compressible component of the layer's computation
An executable, causally faithful approximation
What the residual reveals
Computational novelty — the genuinely hard-to-compress part
Tracks complexity, not prediction difficulty
Dissociating representation from computation
Model compression
Must jointly solve:
●Representation(discover good features)
●Computation(learn useful circuits)
→ condition on activations
Forward self-model
Representation is given. Only needs to learn:
●Computation(transform \(a_i \to a_j\))
⇒ 1–3% of parameters
This dissociation explains both the parameter efficiency and the interpretability of the prediction errors.
SECTION 02
Method
Architecture
Loss is MSE between predicted and actual activations, with no gradient to the main model:
\(\;\mathcal{L} = \frac{1}{T}\sum_t \lVert \hat{a}_{j,t} - a_{j,t}\rVert^2\)
Recovery ranges 72–78% across all categories — no behavior-specific failure at either scale.
Per-head decomposition: error maps onto the attention/MLP boundary
cos
corr
32 heads
0.019
0.07
MLP
0.410
0.577
Attention: 84% of output norm — but the forward model captures it almost perfectly.
Prediction error aligns with the MLP: pointwise nonlinear computation that resists compression.
Recovered via MSE on frozen activations alone.
Why the decomposition falls along this boundary
Attention
Gauge symmetry \((QR)(KR)^\top = QK^\top\)
One compressed head learns a “principal attention pattern” — compresses 32 heads at 16×.
cos ≈ 0.02 with residual
vs
MLP (SwiGLU)
Pointwise nonlinearity Hidden 8192 → forward 4096
Each neuron: independent computation. No rotation trick — 2× compression leaves information behind.
cos = 0.41 with residual
SECTION 05
Discussion
What kind of object is a forward self-model?
Probe
What information is accessible?
linear readout
Ablation
What is causally necessary?
counterfactual
Forward self-model
What does the layer do?
executable approximation
The forward self-model approximates the transformation itself — not what information exists, not what is necessary, but how the layer transforms its inputs.
The representation–computation dissociation
Neural networks must simultaneously:
Discover representations Find a basis encoding the data domain's regularities
Perform computation Use that basis to produce valid outputs
Capacity limitation is helpful for computation (prevents memorization) but harmful for representation (limits abstraction).
Forward self-models dissociate these:
The main model's activations provide the optimal representation. The forward model only needs to learn the computational function \(a_i \to a_j\).
Consequence
This explains both:
The parameter efficiency (1–3%)
The interpretable residuals
Forward self-models as a primitive
A compact, causally faithful, computation-specific model of a neural network's dynamics.
For mechanistic interpretability
The residual reveals what is genuinely hard to compress
Automatic decomposition along architecturally meaningful boundaries
Complements probes and ablations — a different lens on the same object
For future architectures
An explicit model of a network's own computational dynamics
Predictions about what its own layers will do
Primitive for self-monitoring, metacognition, or adaptive computation