Manuscript Offprint

arXiv:2608.26887

Planting a Latent Variable in Natural-Looking Text: a More Realistic Test of Belief States in LLMs and Their Link to Concept Geometry

Alexandru-Iulius Jerpelea

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

LLMs are thought to track “belief states,” i.e., running probability distributions over the latent variables that govern language (Shai et al., 2024; Sarfati et al., 2026), but so far this has only been comprehensively demonstrated on toy synthetic data and in a few isolated case studies. It has also never been empirically connected to the geometry of LLM features (the concepts interpretability finds in model activations). In this work, we plant a controllable latent variable inside natural-looking text. An LLM teacher writes ordinary text while we “subliminally” steer 1^{1} it along one of K=8K = 8 unrelated sparse autoencoder directions at each token, with the active directions following a ring-shaped Markov chain. A small transformer model trained on this corpus does indeed track the Bayesian posterior belief about our planted latent variable. Moreover, it also arranges the 8 states themselves on a ring, in the exact order of the Markov chain, which is supporting evidence that a concept’s geometry can be formed by the statistical dynamics of the latent variable behind it.

1 Introduction

It is thought that natural language is governed by a set of latent variables, so a good predictor of language must infer their state, gaining a sort of world model. 2^{2} Shai et al. (2024) train small transformers on token sequences emitted by a Hidden Markov Model (HMM), and find that the residual stream linearly encodes a belief state, i.e., a running probability distribution over the state of the HMM, updating at each token.

But the paper’s setup is purely synthetic, as the HMM dictates the whole toy language, and just because transformers can model belief states, it does not mean they will in a real natural language

Data Generating Structure

Theoretical Prediction

Figure

Residual Stream Geometry

Training

Figure 1: Figure from Shai et al. (2024), showing how given a data-generating process, a model learns to model optimal beliefs sitting on the probability simplex at any token.

setting. 3^{3} A realistic controlled experiment is hard to set up as we can’t model English with a bunch of Markov Models. LLMs would not be needed if we could.

In parallel, the interpretability literature is documenting the geometry of concepts. The Linear Representation Hypothesis (Park et al., 2023), which proposes features as linear directions, has been weakened to allow concepts to sit on low-dimensional manifolds, like days of the week on a circle, or calendar years on a helix (Engels et al., 2024). There is no full proof of why these concept manifolds form. 4^{4}

In a follow-up paper, Shai et al. (2026) show

1^{1}Term borrowed from Morgulis and Hewitt (2026).

3^{3}Notably, related work like Sarfati et al. (2026) shows that a pretrained LLM fed a sequence of numbers drawn from a Gaussian will track its distribution’s mean and variance, and adapt when they change. But this is just a singular case study on in-context inference, with a considerably different setup, so we let it aside as a proof to Shai et al.’s hypothesis.

2^{2}Ilya Sutskever, e.g., in a podcast: https://www.youtube.com/watch?v=YEUclZdj_Sc

4^{4}There are some attempts at explaining manifold geometry, like Modell et al. (2025) tying distance and relatedness in representation space, or Karkada et al. (2026) finding a correlation between concept geometry and training corpus statistics.

Figure

Figure 2: Belief state geometry (each point a probability vector over the latent variable's values) versus concept geometry (the arrangement of the values themselves), both read from the residual stream. The two are different objects.

that when text is modeled by multiple HMMs at once (not just a singular latent variable as before, but multiple at once), the transformer learns a belief state per factor, each living in its own near-orthogonal subspace. The authors suggest that multi-dimensional feature manifolds could be stemming from here. However, this requires further explanation. First of all, their models are once again trained on synthetic HMM tokens, which is not a sufficient argument. Second of all, probing the belief state, which gives a probability distribution over a latent variable's values, is not the same as asking how the values themselves that the latent variable takes are geometrically arranged.

Figure 2 better illustrates the difference between belief states and concepts/features within the residual stream. It is unclear whether belief dynamics are actually correlated with concept geometry.

This paper tries to tie both ends by introducing a method for generating natural-looking text influenced by a latent variable with a Markov structure of our choosing. We use an LLM teacher that writes ordinary text while we “subliminally” steer it (Morgulis and Hewitt, 2026) along one of K=8K = 8 unrelated and orthogonal sparse autoencoder directions. Switching from one autoencoder direction to another is dictated by a ring-shaped Markov chain that we fully control. We then train a small transformer from scratch on the generated corpus and ask two questions. Does it track the belief state of our variable? (Yes, confirming the Shai et al. (2026) hypothesis in a more realistic scenario). And do the 8 states themselves inherit the geometry of the Markov Model? (Yes, they sit on a ring, in the exact neighbor order).

References (11)