Abstract
Large language models (LLMs) represent prompt-conditioned beliefs (posteriors over answers and claims), but we lack a mechanistic account of how these beliefs are encoded in representation space, how they update with new evidence, and how interventions reshape them. We study a controlled setting in which Llama-3.2 generates samples from a normal distribution by implicitly inferring its parameters (mean and standard deviation) given only samples from the distribution in context. We find representations of curved "belief manifolds" for these parameters form with sufficient in-context learning and study how the model adapts when the distribution suddenly changes. While standard linear steering often pushes the model off-manifold and induces coupled, out-of-distribution shifts, geometry and field-aware steering better preserves the intended belief family. Our work demonstrates an example of linear field probing (LFP) as a simple approach to tile the data manifold and make interventions that respect the underlying geometry. We conclude that rich structure emerges naturally in LLMs and that purely linear concept representations are often an inadequate abstraction.
Introduction: Beyond the Linear Representation Hypothesis
In the field of mechanistic interpretability, a dominant theory is the Linear Representation Hypothesis: the idea that LLMs represent concepts (like "truthfulness" or "sentiment") as simple vectors or directions in high-dimensional space. Under this view, steering a model's behavior is as simple as adding a specific vector to its internal activations.
However, LLMs do not just track static facts; they maintain dynamic "beliefs" (posteriors) about the world that evolve as they receive new evidence. This paper investigates whether these probabilistic beliefs are truly linear or if they inhabit more complex, curved geometric structures. If the underlying representation is non-linear, standard linear interventions might inadvertently push the model into "off-manifold" states, leading to inconsistent or nonsensical outputs.
Methodology
To study this in a controlled environment, the researchers utilized a synthetic task where Llama-3.2 was fed sequences of numbers sampled from a normal distribution $\mathcal{N}(\mu, \sigma)$. The model’s objective was to predict the next number in the sequence, requiring it to implicitly infer the mean ($\mu$) and standard deviation ($\sigma$) from the context.
The study employed several key analytical techniques:
- Linear Field Probing (LFP): Instead of using one global linear probe, the authors used a family of local linear probes that "tile" the representation space, allowing them to map out curved surfaces.
- Intensive PCA (inPCA): A specialized version of Principal Component Analysis designed for probability distributions.
- Manifold-Aware Steering: A comparison between standard "linear steering" (moving in a straight line toward a target) and interventions that follow the discovered geometry of the belief manifold.
Key Insights: The Geometry of Beliefs
The researchers found that when the model learns the distribution of the input, its internal activations form smooth, curved surfaces (manifolds). Visualizing these shows that the "mean" and "variance" of the distribution are encoded as distinct, intersecting geometric structures rather than simple linear directions.
The "Off-Manifold" Problem
A critical discovery was the failure of linear steering. Because the model's belief structure is curved, moving in a straight linear direction to change a parameter (e.g., "make the mean higher") quickly exits the valid part of the model's representation space. This "off-manifold" movement causes the model to become "confused," often leading to high-entropy, out-of-distribution outputs where the variance spikes or collapses inconsistently.
Two-Speed Learning Dynamics
When the input distribution suddenly shifts (e.g., the mean jumps from 300 to 700), the model updates its belief at two different scales. It adjusts its estimate of the mean almost instantly, but its estimate of the variance takes much longer to settle, passing through a temporary phase of high uncertainty.
Key Results
- High-Fidelity Inference: Llama-3.2 is remarkably effective at this task, converging to the true underlying distribution after seeing roughly 100 samples.
- Probing Accuracy: Linear Field Probes (LFP) achieved near-perfect accuracy (>99%) in decoding the distribution parameters from internal layers, proving the manifold is locally linear and highly structured.
- Superior Steering: By steering "along the manifold" (following the curve) rather than in a straight line, the researchers could change the model's predicted mean while keeping the variance stable.
- Layer Dynamics: The "intrinsic dimensionality" of these belief manifolds increases in deeper layers, suggesting the representation becomes richer and more complex before being compressed for the final output.
Conclusion
This work demonstrates that rich, non-linear geometric structures emerge naturally in LLMs. While linear probes are excellent for reading information, they are often insufficient for manipulating it. By respecting the underlying geometry of representation manifolds, we can develop more robust methods for steering model behavior. While this study was confined to synthetic numerical distributions, it raises important questions about whether abstract concepts like bias or sentiment follow similarly curved manifolds.
Summary updated