SemRF: A Semantic Reference Frame for Residual-Stream Dynamics in Language Models
Abstract
Residual-stream analysis asks how language-model computation evolves across depth, but intermediate decoding requires comparable readout coordinates across layers. If embedding anchors and unembedding readout disagree on the chosen span, apparent motion may reflect measurement drift rather than computation. We introduce Semantic Reference Frames (SemRF), an anchor-based formalism separating semantic measurement from residual dynamics. A SemRF fixes anchors and measures states against them. Pseudo-inverse tying gives exact synchronization; under restricted bi-invertibility, SemRF yields stable semantic-basis coordinates, distortion bounds, and near-identity changes. With the frame fixed, residual computation becomes a depthwise semantic trajectory. The anchors induce a semantic Voronoi diagram: distance, or evidence such as logits, assigns each layer to a coarse cell, while coordinates retain within-cell motion and margins. We define layerwise steps, contribution profiles, and imbalance diagnostics, then use the Voronoi trace to define a margin-relaxed tube. The canonical trace is the minimum-action path inside this tube; when nonempty with positive quadratic weight, it is unique and obeys a discrete spline equation away from active constraints. Excess action controls step, curvature, and profile mismatch. Low curvature implies piecewise-linear compressibility and local knowledge density: lower trace complexity means fewer semantic knots. Through the parameter-to-trajectory map, this gives a conditional link to parameter efficiency: among admissible settings fitting data, lower-action and lower-complexity traces use fewer semantic degrees of freedom. The guarantees require controlled interface error and small projection residual under explicit tube constraints.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL
- Comments
- an early-stage version
Related papers
LAF-ECG: Multi-Resolution Lead-Aware Fusion of Time-Series and Language Foundation Models for ECG Classification
Shared title terminologycs.LGKiana Taktehrani, Maryam Hosseini, Amir Keynia et al.
From States to Dynamics: Detecting Rule Violations in OthelloGPT
Shared title terminologycs.LGDavid L. Cao, Sai Sumedh R. Hindupur, Demba Ba
How Seasonal Reference Choice Changes the Apparent Gains of Chronos Models in Electricity Load Forecasting
Shared title terminologycs.LGChandraMohan K
Adaptation or Poisoning? Security Risks of Conversational Test-Time Learning in Large Language Models
Shared title terminologycs.LGHonghao Feng, Shanhan Qu, Kai Tong et al.
OnCache: Learning Dynamic Caching Schedules for Efficient Diffusion Inference
Shared title terminologycs.LGZhikang Xie, Xichen Ye, Yifan Wu et al.
Hybrid state-space and attention neural operators for nonlinear structural dynamics under environmental loading
Shared title terminologycs.LGAnastasios Stamou, Rui Teixeira, Maria Nogal et al.