TL;DR
Lexical reference frames read a transformer’s intermediate hidden states by pushing them through the model’s own remaining layers with a chosen number of attention hops, recovering the model’s vocabulary-space meaning where fixed Logit lens-style methods are provably bounded by context sensitivity.
Why It Matters
A transformer’s hidden states only have a defined vocabulary meaning at two places: the input embedding and the output unembedding. Everything in between is just a vector in the Residual stream. But a lot of practical tooling pretends those middle vectors mean something in token space: Early exit decoders stop computing when the current state “already looks like” the answer, hallucination detectors score hidden states, and knowledge editors write facts into specific layers.
The standard tool for reading those states is a lens: a fixed linear map per layer that projects a hidden state to vocabulary logits. The simplest is the logit lens (apply the output unembedding to every layer). Fancier variants like the Tuned lens or the Jacobian lens learn one matrix per layer. The authors’ claim: all of these are structurally wrong, because the directions the model actually uses to read a state depend on the prefix tokens, and no single map per layer can track that. In OLMo3-7B at mid-depth, the logit lens direction for a token is 75 degrees off the direction the model itself uses.
How It Works
The intuition: to find out what a hidden state means to the model, run it through the layers that come after it, and see what comes out. That is the ground-truth “native frame.” The problem is that this just reproduces the model’s final output, which is uninformative. So the authors introduce a knob: how many rounds of attention between token positions you keep above the current layer.
•
LexFrame[0] transports the state through every remaining layer but replaces each layer’s attention output with a typical attention output. That typical output is a per-layer ridge regression fit once on unlabeled text. The state is read in isolation, with no cross-token information above this layer.
•
LexFrame[1] lets the state do real attention to its prefix once per remaining layer, but the prefix tokens themselves evolve in isolation (LexFrame[0]-style).
•
LexFrame[2] lets prefix tokens also exchange information once. Each order adds one hop.
•
LexFrame[∞] is the real model.
From these transports you get two things per label v: a lexical readout (the gradient of v's logit with respect to the state, saying which direction encodes more of v) and a lexical basis vector (the direction you should push the state to raise v's logit most selectively). Nothing is fit to the model’s output, so agreement with the model is a result, not a tautology.
There is also a clean impossibility result: because the true readout direction varies across contexts, any method with one fixed direction per layer has mean cosine with the true readout bounded by the square root of the readout’s cross-context coherence. At mid-depth that ceiling is 0.30 and 0.35 for the two models tested.
# Read state x at layer L using LexFrame[n], prefix given
def lexframe_read(x, prefix, layer, n, model):
streams = [(x, prefix)] # order-n stream plus lower-order prefix streams
for k in range(layer+1, model.L+1):
for stream_idx, (h, pref) in enumerate(streams):
if stream_idx < n: # real attention using lower-order prefix
a = model.attn[k](h, pref)
else: # typical attention output from ridge fit
a = model.typical_attn[k](h)
streams[stream_idx] = (model.block[k](h, a), pref)
return model.unembed(model.norm(streams[0][0]))
What They Found
Tested on SmolLM3-3B and OLMo3-7B across layers and training checkpoints, using WikiText-103 text:
•
Readout fidelity. At mid-depth, LexFrame[1] reaches cosine 0.97 and 0.97 with the true readout, versus a theoretical ceiling of 0.30 and 0.35 for any fixed-per-layer method. The Jacobian lens stays at or below that ceiling, as the proof requires.
•
Reading quality. Averaged over layers, LexFrame[1]'s KL divergence from the model’s output is 0.16 and 0.15 nats, versus several nats for both lenses. LexFrame[1] names the model’s top token on 86% and 86% of states, and its calibration against the actual next token (0.027, 0.018) is nearly as good as the model’s own.
•
Early-exit potential. Setting a confidence threshold for 95% agreement with the model, LexFrame[1] would let you skip 45% and 42% of layers. The lenses skip at most 4%, because their confidence does not track whether they are right. The paper notes LexFrame[1] does not itself save compute (it runs the later layers to read), but it bounds how much a lens-based early exit leaves on the table.
•
Point clouds mislead. Cosine or geodesic distance between two states predicts the output change from swapping them with rank correlation at most 0.28. LexFrame[1]'s reading divergence predicts it at 0.94 and 0.95. Lexical readouts live almost entirely outside the directions the point cloud varies in, so cloud geometry describes variation the remaining layers mostly ignore.
•
Steering. Moving a state along the lexical basis flips the top-1 prediction to the runner-up in 73% and 85% of cases while barely perturbing other tokens (0.009 and 0.004 nats change in the rest). The readout direction flips slightly more often but spreads the change across many tokens.
•
Attribution. The change in a label’s LexFrame[1] coefficient when a component is ablated correlates with the measured logit effect at 0.88 and 0.90, beating Attribution Patching (0.62 and 0.68) and both lenses (at most 0.20). The gap is largest for feed-forward writes, which the remaining layers process nonlinearly.
•
Training dynamics. As models train, the logit lens degrades sharply (SmolLM3: divergence grows from 4.82 to 29.06 nats). LexFrame[1] barely moves. The authors attribute this to the model’s mid-depth frame rotating away from the output frame during training, not to the model becoming harder to read.
What’s Useful
•
If you build interpretability tooling that reads intermediate states (early exit, hallucination probes, knowledge editing, distillation targets), the paper gives you a drop-in replacement for lenses that needs no training beyond one calibration pass per checkpoint. Code is released. Worth testing on your actual downstream task; the paper demonstrates fidelity and intervention quality but does not run the full end-to-end applications. •
If you were planning to use point-cloud geometry (CKA, intrinsic dimension, cosine distances between states) to argue something about what the model does with those states, the substitution experiment is a direct warning that cloud geometry mostly tracks variation the model ignores. The paper’s framing: use distances to describe distributions, not computation.
•
If you want selective steering (push toward token u without disturbing unrelated tokens), prefer the lexical basis direction over the readout gradient. The basis is the minimum-norm move whose first-order effect at the output is u-only.
•
The method requires full access to model weights and the ability to run forward and backward passes through later layers. It is not something you can run through a hosted API, and reading at order n costs roughly (n+1)(L+1)/2 forward passes per sequence. Cheaper than fitting a Jacobian lens from scratch, more expensive than applying a trained lens.
•
For comparing checkpoints across training or models within a family, the frame is calibrated anew per checkpoint and expresses states in the shared vocabulary, so it gives you a reference that does not drift as the model updates.
Caveats
•
Evaluated on two open-weight models (3B and 7B) and WikiText-103 only. Behavior on larger models, instruction-tuned models, or non-English/code text is not shown.
•
LexFrame[1] does not reduce the compute of inference by itself. The early-exit numbers show how much depth a lens-based exit wastes, not a working faster decoder. Realizing the savings would require an exit mechanism that uses the frame’s confidence without paying for the transport, which the paper does not build.
•
The downstream applications (hallucination detection, knowledge editing, distillation) are flagged as expected beneficiaries but left to future work. Fidelity on readout and attribution does not automatically translate to wins on those tasks.
•
The frames assume you can compute Jacobian-vector products through the model’s later layers in appropriate precision. In half precision this works to within rounding; the lexical-basis test required 32-bit arithmetic.