Manuscript Offprint

arXiv:2610.22169

Lexical Reference Frames: Interpreting LM Residual Streams in Native Semantics

Jian Gu, Hongyu Zhang, Chunyang Chen, Aldeida Aleti

Abstract

The vocabulary of a language model is its native semantics: the embedding and the unembedding fix the meaning of a state at the two ends of the residual stream. Between them, existing methods either reuse a fixed lens or treat the states as a point cloud, and neither reads a state the way the model does. We argue that every hidden state has a native reference frame, induced by the layers that read it next and adaptive to the context. Lexical reference frames approximate it by reading a state through the model's own remaining layers with a stated number of rounds of attention between positions and a typical attention output for the rest, without fitting to the model's output. No lens, with fixed directions per layer, can exceed the square root of the native frame's coherence, 0.30 and 0.35 at mid-depth of SmolLM3-3B and OLMo3-7B, whereas the first-order frame, LEXFRAME[1], reaches 0.97 and 0.97 and reads a state within 0.16 nats of the model's output. Its coefficients attribute predictions more faithfully than attribution patching, its lexical basis steers a prediction while sparing other tokens, and its confident readings would let an early exit skip 0.45 and 0.42 of the layers, where lenses skip almost none. In this way, lexical reference frames make every hidden state of the model readable, attributable and steerable. 1^{1}

1 Introduction

Between its input and output tokens, a language model computes nothing but states of its residual stream, which every layer reads and writes (Elhage et al., 2021). Its vocabulary is in this sense the native semantics of the model, the only units of meaning that it is designed to receive and to express. The model defines the lexical meaning of a state at the two ends of the stream: the embedding assigns each token a state, and the unembedding maps a final state to logits over tokens. Intermediate states lack such a definition, although interpretability research and its applications read them constantly: early exit and self-speculative decoding stop the computation at a layer whose reading already names the output (Schuster et al., 2022; Elhoushi et al., 2024), hallucination detectors judge an answer by its hidden states (Orgad et al., 2025; Zhang et al., 2025), and knowledge editors locate and rewrite facts at intermediate layers (Meng et al., 2023; Fang et al., 2025). Each depends on how faithfully a tool such as a lens reads these states, and model compression, which distils a smaller or pruned student by matching the intermediate states of its teacher, relies on what these states mean (Romero et al., 2015; Dasgupta and Cohn, 2025; Muralidharan et al., 2024). This meaning is set by the remaining layers, which read each state in the context of its prefix.

Two families of methods address these states and fail in opposite ways. The first reads a state with a lens: the logit lens applies the output frame to every layer unchanged (nostalgebraist, 2020), the tuned lens learns one affine map per layer fitted to the model's output (Belrose et al., 2023), and the Jacobian lens averages the Jacobian of the remaining layers over positions and prompts (Gurnee et al., 2026). Each fixes one linear map per layer, so every state of a layer is read identically, regardless of its prefix. The second family keeps every state and does without a reading. It treats the states of a layer as a point cloud and reports its rank, intrinsic dimension, anisotropy or similarity to other layers (Kornblith et al., 2019; Ansuini et al., 2019; Garrido et al., 2022; Skean et al., 2025). Such statistics describe how the states are distributed rather than how the model uses them: two states close in the cloud may lead to different predictions, and two distant ones to the same.

Both families omit the frame in which the model itself reads a state: the directions along which a state changes the logit of a token are a property of the remaining layers and therefore differ from

1^{1}https://github.com/jianguda/lexframe

Figure

Figure 1: Angle between the lexical readout of LEXFRAME[ ∞\infty] for a token (grey) and the direction each method offers, after every fourth layer of OLMo3-7B: medians over states and tokens, zero at the output by definition.

layer to layer; because these layers attend to the preceding tokens, they also differ between contexts, so no method with one map per layer can follow them, however it is fitted. In OLMo3-7B (Figure 1), after layer 16 of 32, the logit-lens direction for a token deviates by 75 degrees from the model's own lexical readout and the Jacobian-lens direction by 77 degrees, and four layers before the output both still deviate by at least 40 degrees.

Our starting point is that these directions, the lexical readouts, form a reference frame: we call their family at a state its lexical reference frame, and the frame that the complete model induces its native frame. The native frame returns the model's output at every layer, so a useful frame withholds a stated part of this computation: the frame of order n, written LEXFRAME[n], transports a state through the model's own layers with n rounds of attention between positions and replaces the remaining attention by a typical attention output, estimated once per layer from unlabelled text. LEXFRAME[0] reads what a state holds by itself, LEXFRAME[1] what it draws from its prefix, and LEXFRAME[∞] is the native frame. The idea is simple: read a state the way the model reads it, through the layers that remain and with the context it sees. A lens ignores the context and is therefore bounded; a frame uses it, as far as its order allows. As nothing is fitted to the model's output, lexical reference frames are comparable across layers, checkpoints and models.

We evaluate lexical reference frames at every layer of SmolLM3-3B (Hugging Face, 2025) and OLMo3-7B (Team OLMo, 2025) and at 16 of their training checkpoints, against the logit lens, the Jacobian lens, a supervised probe and distances on the point cloud. From the middle layers on, LEXFRAME[1] recovers the native frame's lexical readouts beyond the bound of every lens and matches the model's output in content and confidence, which lenses do only near the output; one round of attention to the prefix closes most of the gap that LEXFRAME[0] leaves. Its readings settle on the model's prediction early enough for an early exit to skip more than two fifths of the layers, and they stay faithful along training while the logit lens degrades. Distances on the point cloud barely predict the effect of replacing a state, as lexical readouts lie almost entirely outside the directions in which the states vary. In the coordinates of the frame, the lexical basis writes a prediction into the stream more selectively than the readout, and differences of coefficients attribute it to layers and sublayers more faithfully than attribution patching. We therefore expect lexical reference frames to be a strong alternative to lenses in these applications. In summary, this paper makes three contributions.

• We show that the layers that remain give every hidden state its own frame in the vocabulary, and we prove that no lens with one map per layer can follow this frame across the different contexts in which a state occurs.

• We define frames that read a hidden state in the model’s native semantics through its own layers with a chosen amount of context, and we compute them in closed form from unlabelled text, without any training.

• We show on two model families and their training checkpoints that these frames follow the model from the middle layers on, where lenses fail, and support early exit, steering and attribution at every layer of the model.

References (64)