WorksComputer Science
Deep Latents, Long Memory: Latent persistence explains temporal correlations in transformer activations
Abstract
The hidden layers of Large Language Models (LLMs) are believed to encode representations of the data whose abstraction increases with depth. However, in the absence of an operational notion of abstraction, this statement is hard to test quantitatively. Here, we propose an alternative view, building on the principle that the correlations of a sequence reflect the structure of the process that generated it. We define the autocorrelation function of a layer as the average dot product between its activations at two context positions separated by a lag. Latent variables encoded persistently along the context create slowly decaying tails in the autocorrelation, and we find these tails to grow across layers in both synthetic and natural data. In synthetic data with controlled hierarchical latent structure, this growth stems from the encoding of abstract latent variables, which govern long stretches of the input. Indeed, the persistence of latent codes predicts the qualitative structure of autocorrelations and accounts for most of the empirical measures. In real text, we take sparse-autoencoder features as proxies for latent variables, and find that their persistence correlates strongly with the magnitude of autocorrelations across datasets and LLMs. In particular, the persistence time increases with depth, as do autocorrelations, implying that deeper latent features persist for longer context spans. We complement this analysis by explicitly ablating the persistent sparse-autoencoder features and observing a consequent decrease in the autocorrelations.
Introduction
Language is structured across many temporal scales: local constructions constrain nearby tokens, while abstract concepts such as topic and discourse states can remain relevant over much longer spans. Large Language Models (LLMs) adapt to this structure over training, developing representations of syntactic [41, 47, 36, 14] and semantic features [16, 24, 1]. Understanding such representations, including their content and the mechanism of their formation, remains a central challenge for a theory of LLMs and deep learning at large [38].
On the empirical side, a growing collection of methods probes the content of LLMs’ representations, as well as their organisation across layers. Sparse autoencoder (SAE) features [27] change or emerge with depth [5], shifting from positional and structural signals in early layers to context-binding, semantic features in intermediate layers, and then to output-oriented signals in the final layers [46]. Features shared across languages are likewise most common in the middle layers [32]. Temporal extensions of SAEs [34, 6, 35] find that semantic features vary slowly along the context, whereas rapidly changing ones capture lexical and syntactic patterns. Geometric measures, both local [26, 29] and global [12], also indicate that representations become more abstract with depth, as the superficial properties captured by the early layers gradually give way to high-level semantic information. Abstract representations can be identified via similarity measures between points in semantic correspondence, such as image-caption pairs [28] and translations [2]. However, we still lack a framework that unifies these observations and characterises the layerwise information processing in LLMs without relying on prior assumptions about the represented concepts.
On the theoretical side, training LLMs on synthetic data with controlled latent structure ([9, 43, 3]) enables quantitative studies of how representations are acquired and of the sample cost of recovering abstract variables. In particular, these analyses show how deeper latent structures and longer-range statistical dependencies emerge progressively with data, training, and network depth ((Cagnetta & Wyart, 2024; Garnier-Brun et al., 2025; Zhou et al., [49]; Schulz et al., [42]). However, the quantitative application of these results to real data, where the true latent structure is unknown, remains an open problem.
Our contribution
Bridging theoretical and empirical approaches requires translating insights obtained from synthetic datasets into observables that can also describe the behaviour of pretrained language models. Here, we propose the autocorrelation function of neural activations across context positions as one such bridge. Given a set of LLM activations (layer , token position ) standardised so that , , we define2 an autocorrelation function of neural activations as
Eq. (1) generalises token-coincidence probabilities to the continuous inner representations of LLMs, as described in § 2. Under the linear representation hypothesis (Park et al., [39]), a latent variable contributes to autocorrelations when it is encoded at both positions in aligned directions. We measure Eq. (1) in synthetic data, where scope and identity of the underlying latent variables are known, as well as natural data, where SAE features offer an imperfect but tractable proxy for latent content.
Our main results are summarised graphically in Figure 1: 1a) and 1b) show that autocorrelations grow with depth in both synthetic (Random Hierarchy Model, RHM) and natural language (see Appendix § 12 for an extension to different models). We propose this is due to the latent hierarchical structure of language data (1c, d): if more abstract latents govern a longer stretch of text, and their code persists over that stretch, we expect them to produce a longer autocorrelation tail. We support this hypothesis by showing that:
Figure 1. Neural autocorrelations (Eq. (1)) develop with depth due to persistently encoded abstract latent features. a) 5-block transformer trained on the Random Hierarchy Model (RHM) and evaluated on RHM sentences (dashed: exact token-level curve; dotted: span ends of the latents governing the next token, cf. panel d). b) Pre-trained Gemma 2 9B (Gemma Team et al. [21]) evaluated on The Pile. In both a) and b), deep layers show a slower decay with the lag. c), d) illustrate the relationship between long-range autocorrelations and the persistent encoding of abstract latent features. c) shows our idealised representation of the latent hierarchical structure of natural language data: pairs of adjacent input tokens (blue) are generated by a single, latent parent variable (orange); pairs of adjacent parent variables are generated by a single latent grandparent (green), and so on. Deep latent variables correspond to abstract concepts and influence large portions of the input. d) Deep learning methods reconstruct the data structure layer by layer ([9] (Cagnetta & Wyart 2024)), here illustrated schematically in a deep autoregressive transformer. Each row represents the variables encoded by the activations in a given layer, assuming that layer can only compute latent variables of depth —see the main text for a detailed breakdown. Deeper latent variables emerge in later layers, and persist for longer across context positions: E.g., depth-1 (orange) variables persist for two slots in layers 2 and 3, whereas depth-2 variables (green) persist for 4 slots, but only in layer 3. This scheme implies a specific pattern of decay of , highlighted with dotted lines in panel a) and approximately respected by the measured autocorrelations.
Persistent encoding explains autocorrelations when the latents are known, as in the synthetic data represented in Figure 1c, where the construction of Figure 1d explains a significant fraction of the measured correlations (Figure 2);
The development of autocorrelations during training follows the learning of the latents: In synthetic data, each branch of the autocorrelation function emerges over training precisely when the model discovers the corresponding latent variable (Figure 3);
The relationship between correlations and persistence holds in pretrained LLMs, where the median and mean persistence length of SAE features correlate strongly with the integrated autocorrelation (Figure 4);
Persistent latent features carry the autocorrelations, as removing them from the activations decreases autocorrelations significantly, whereas removing a non-persistent variable does not (Table 1).

Figure 2. RHM: composition of the autocorrelations of layer 4. Left: the relevant latents , and in the subtree of the anchor (red ring), with the lag axis below the leaves. Right: measured autocorrelation (dashed) against the same-node terms of Eq. (7) of the three relevant latents (spans in brackets) and their sum (grey). Vertical dashed lines: the span ends of (between lags 1 and 2), (between lags 3 and 4), and (between 7 and 8).

Figure 3. RHM: the autocorrelations develop stage by stage. Left: Validation loss of the last token, given , against the training step. Dashed lines: the plateau values of the stages, i.e. the conditional entropy of depth- subtrees. Dotted lines: the checkpoints of panel b, coloured by stage. Right: Absolute value of the autocorrelation of layer 4 at initialisation (dashed) and at the four checkpoints; dotted vertical lines at lags 1.5, 3.5, 7.5 and 15.5 as in Figure 1a, corresponding to the predicted locations of the steps in the autocorrelations.
Figure 4. Panel a): Layer dependence of the integrated autocorrelation for different models (see Eq. (8)). Panel b): Layer dependence of the median of the distribution of per-latent persistencies (see § 4). Panel c): Median persistence against the integrated autocorrelation , one point per layer; is the per-model Pearson correlation. In all panels, error bars show one standard deviation computed from results on the Wikitext and The Pile datasets.
| Model (, %) | corpus | 1 latent | 3 latents | all latents | a-control | |||
| Gemma 2 2B | Pile | −3.9 | −7.5 | −58.8 | −0.0 | −0.4 | +0.0 | +0.2 |
| Gemma 2 2B | WikiText | −3.2 | −5.8 | −68.3 | +0.0 | −0.5 | −0.2 | +0.0 |
| Gemma 2 9B | Pile | −3.2 | −6.2 | −53.0 | −0.0 | −1.2 | −1.3 | −1.2 |
| Gemma 2 9B | WikiText | −3.0 | −4.6 | −53.1 | +0.0 | −1.3 | −1.0 | −1.1 |
| Pythia-160M | Pile | −12.2 | −18.0 | −43.7 | −0.7 | −8.4 | −9.4 | −7.0 |
| Pythia-160M | WikiText | −13.3 | −24.3 | −60.4 | −0.7 | −8.1 | −8.6 | −9.0 |
| Llama-3-8B | Pile | −4.4 | −5.6 | −68.1 | −0.1 | −2.1 | −1.7 | −1.5 |
| Llama-3-8B | WikiText | −4.2 | −4.4 | −64.3 | +0.0 | −1.8 | −1.4 | −1.2 |
| Qwen3-8B | Pile | −6.8 | −20.3 | −65.8 | −0.2 | −4.2 | −4.6 | −3.5 |
| Qwen3-8B | WikiText | −7.3 | −10.3 | −67.6 | −0.1 | −3.8 | −3.7 | −3.5 |
Table 1. Change (Eq. (10)) of the mean integrated autocorrelations generated by the ablation of SAE-features, across models and two different corpora, and expressed as a percentage of the value of the baseline correlations in each model. See Figure 5 for a scheme of the ablation setup, and § 4.2 for the full discussion about the experiment. Columns: the chosen persistent latent; it plus its two most persistent co-active latents; every active feature latent using the SAE’s intermediate representation; an active but non-persistent latent (a-control); and the latent itself with the reference moved to , and token positions, where the latent of interest was not found to be active.
Further related work
Correlations at the token level. Two-point statistics of the tokens identify the underlying generative processes. In written texts, long-range correlations have been traced to the hierarchical structure of paragraphs and chapters (Alvarez-Lacalle et al., [4]). Power-law decay is indeed typical of hierarchical structures such as context-free grammars (Lin & Tegmark, [31]), whereas a Markovian structure would imply exponential decay. The same statistics govern learning: the decay of pairwise token correlations with the separation, combined with the decay of the next-token conditional entropy with the context length, predicts the exponents of data-limited neural scaling laws (Cagnetta et al., [11]). All these works characterise input statistics. Eq. (1) extends the same observable to representations, with the token-level function as its layer-0 limit.
Temporal structure of LLM representations. Several of the works cited in the introduction also track representations along context and layers, with different statistics. The curvature of Hosseini & Fedorenko [26]; King et al. [29] can be thought of as a local autocorrelation, confined to time lag 1 and averaged across end positions. Our measure, instead, captures local as well as long-range structure. Skrill & Norman-Haignere [44] use token perturbations to quantify effective integration windows, or receptive fields, finding a crossover from short-range, exponential behaviour in the early layers to long-range, power-law behaviour in the deeper layers. Gurnee et al. [25] measure the autocorrelation of the dominant concept read out by a Jacobian lens, and find it largest in the intermediate layers. This observation supports the emergence of a global workspace, carrying abstract content that persists across the context. Our approach is complementary, as it focuses on raw activations, independently of how they affect the model’s output.
Representations of models trained on data with controlled latent structure. Our analysis of synthetic data belongs to a line of work that trains networks on data with known latent variables and asks how these are represented. Allen-Zhu & Li [3] train GPT-2 models on synthetic context-free grammars and show that the hidden states linearly encode the latent variables at the boundaries of their spans. Shai et al. [43] show that transformers trained on hidden Markov models linearly represent, in the residual stream, the belief state over the hidden variables of the generator, reproducing its geometry within the probability simplex. In this language, the persistence of a code over the span of a latent variable is a belief about that variable that stays fixed until the span closes. On hierarchical data, attention maps and linear probes show that latent variables are resolved sequentially over training and depth [20, 10, 49]. These works establish that latent variables are linearly readable from the activations. The regression of Eq. (6) is the analogue of their probes, which we use to ask how long latent variables remain encoded in the activations. Then, we turn the answer into an observable that transfers to natural language.
Autocorrelations of neural activity
In this section, we explain how the autocorrelation function of Eq. (1) generalises token-coincidence probabilities.
Let be discrete tokens with vocabulary size , and denote with the one-hot encodings,
The mean one-hot vector over the data distribution coincides with the marginal probability, while the mean scalar product between two one-hot vectors is the coincidence probability,
Centering by subtracting removes the coincidences expected from the marginal token frequency, i.e., the spurious probability of two i.i.d. tokens. Assuming translational invariance of the marginal probabilities, we get the following (non-standardised) token autocorrelation
After the embedding, layer-0 (non-standardised) activations read , where is the embedding matrix and the positional encoding. Centering removes , thus
The only difference from Eq. (4) is the matrix between the two centered encodings, with entries equal to the dot-product between the embedding vectors of tokens and . If the embedding vectors were orthogonal with equal norm, would be a multiple of the identity. Standardisation would then cancel this multiple exactly, so that the autocorrelation of the embeddings and one-hot encodings coincide. For random embeddings, this coincidence is approximate: random vectors in high dimension are close to orthogonal, with cosines of order . Appendix B.1 shows that random embeddings indeed leave the autocorrelation function’s shape unchanged on the logarithmic scale.
The linear representation hypothesis extends this relationship from tokens to deeper layers:
where the one-hot encodings of the tokens are replaced by those of the latent features , the embedding vectors by feature directions, i.e. the columns of , and represents a residual component uncorrelated from the latent features . Where the two positions share feature directions, the autocorrelation counts how often the latent features they encode coincide beyond chance, as it does for tokens. Substituting Eq. 6 into Eq. (1) splits the autocorrelation into linear codes and residuals,
Expanding over pairs of nodes splits further into same-node terms, with one variable encoded at both positions along aligned directions, and cross-node terms, arising in the presence of correlations between latent variables. Same-node terms represent persistence.
Autocorrelations with controlled hierarchical structure
In this section, we look at a GPT-2-style model trained on synthetic data, and describe how neural autocorrelations across layers reflect the latent hierarchical structure of the data.
Random Hierarchy Model (RHM). The RHM is a family of data-generating processes with controlled hierarchical structure, introduced in [9] as a testbed for studying deep representation learning. A sentence of tokens is generated top-down along a binary tree of fixed depth (Figure 1c): Starting from the root, every symbol is replaced by a pair of symbols of the next level according to fixed rules. This hierarchy of hidden variables constitutes the latent hierarchical structure of the data. Since the rules are fixed, the entropy of the distribution of generated sentences is known. Hence, we can track precisely the progress of any learning model trained on RHM data by comparing the cross-entropy loss to such entropy. Here, we consider a deep GPT-2-style LLM with enough layers to represent the latent hierarchical structure of the RHM, and given just enough data, parameters and training time to reach the optimal cross-entropy loss (details in Appendix § 7). Specifically, we use vocabulary size , rules per symbol, and depth 5 for both transformer and data-generating process. All sequences have length ; The model reads a beginning-of-sequence token [BOS] followed by and predicts .
Content of the trained network. We now compare the activations of the trained LLM to the sketch in Figure 1d. The ground truth latent variables of every sentence are the hidden nodes of the tree (Figure 1c). Hence, we can ask directly if any activation encodes them linearly. More specifically, following the notation of Eq. (6), we: i) Collect the one-hot encodings of all nodes of the tree, including the 32 tokens, in a single vector ; ii) Fit the matrices via ordinary least squares on the activations. Note that is a -by- matrix, assigning a different -vector to each possible value (out of ) of any of the 63 values . We refer to each block of -vectors as the code of . In addition, the residuals are uncorrelated with every node by construction. Hence, Eq. 6 is the best approximation of the activation as a sum of single-variable codes, with the residual collecting non-additive contributions. Appendix C details the regression method, its distinction from linear probes, and complete encoding maps with the share of activation’s variance explained by each latent variable. Here we summarise the results and compare them to the construction of Figure 1d, which assumes that each layer resolves one level of parent-child dependencies.
Layer 0 (embedding layer) follows the sketch exactly: each activation can only represent the corresponding input token (blue in the figure). In fact, because of causal masking, the activations in position 1 depend only on at all layers. Hence, position-1 activations encode independently of layer.
In layer 1, the encoding of position 2 changes to the parent latent variable (orange) as predicted. The parent perfectly summarises the effect of the input pair on future tokens: its encoding is favourable for both representational and sample efficiency. The token-parent pattern of positions 1 and 2 repeats periodically across the whole context.
in layer 1 (sketch in Figure 1d and measured codes in Figure 11). This is compatible with the assumption that each LLM layer resolves one RHM layer. For example, the correlation between and is not visible in layer 1, because it stems from the depth-2 dependency between the parents and .

Figure 11. Codes of layer 1 on the data tree, positions – (one panel each, in the top-left corner). Each panel shows the depth-4 subtree of (root in the figures), whose leaves are the last 16 tokens . Squares mark the production rules. The colour of each node is the strength of its code in the activation at position (log scale, colourbar on the right), with printed percentages for selected nodes. The share of the non-additive residual is in the top-right corner. The red ring marks the current token , while the tokens already read are surrounded by black rings. Layer 1 holds one dominant code per position, alternating with the parity of : odd positions encode the current token; even positions encode the pair they complete. Even ’s also hold a small code of the children, and a small code of the previous parent (see ). No variable deeper than a pair is encoded, and the residual’s share is at most 2%.
Layer 2 resolves the second RHM layer as predicted, and the encodings of positions 3 and 4 change accordingly. Position 3 acquires an encoding of the last parent (illustrated as a 2-slot box in Figure 1d), whose influence on is now visible. Position 4 summarises the length-4 input with the corresponding grandparent variable (green). The resulting length-4 pattern repeats periodically across the whole context (sketch in Figure 1d), reproduced by the measured codes in Figure 12.

Figure 12. Codes of layer 2 on the data tree, as in Figure 11. Layer 2 adds the depth-2 variables at the positions that complete them (with a multiple of 4, the span length of depth-2 subtrees). The code of a pair now persists over the span of its parent, as at , 27 and , 31 (code formed at , then kept at the next position next to the current token).
Layer 3 follows this construction: position 8 encodes the great-grandparent (red), and positions 5-to-7 acquire an encoding of the last grandparent . However, the measured codes also reveal structures expected to be found in layer 4: a partial encoding of the depth-4 variable in the first half of the context, and persistence of the encoding of the great-grandparents beyond their first emergence, albeit with decreased strength (e.g., in Figure 13). In simple terms, the one-to-one correspondence between LLM and RHM layers is not as clean for layers 3 and 4 as it was for layers 1 and 2.

Figure 13. Codes of layer 3 on the data tree, as in Figure 11; the top-left corner also reports the strength of , the depth-4 variable outside the subtree. The depth-3 variable is formed at (90%) and persists, fading, over the rest of the span of its parent (79% at down to 2.6% at ), while the local pattern of layer 2 repeats beneath it (pairs at , 30, the 4-span at ). From the still-open depth-4 variable receives a partial code (7% at the root of the subtree), whereas the completed is not encoded at any of these positions. The residual is small where one code dominates (2–3% at , 25) and reaches 20–46% elsewhere. At , the three variables whose spans contain both and the earlier positions (, , at 28, 7.4 and 2.6%) are the ones that carry the plateaus of the autocorrelation (Figure 14).
Composition of the autocorrelations. Persistence alone predicts the shape of the curves in Figure 1a, as explained by Figure 2 for layer 4 (see Appendix § 10 for additional details and the other layers). The reference activation is the previous-to-last position , since is never an input. Due to the tree structure, the latent variables sitting on the tree diagonal (left panel) perfectly summarise the influence of their descendants on the probability of (Cagnetta & Wyart, 2024): , then , parent of , then , grandparent of , and , great-grandparent of (superscripts count levels from the root). The right panel compares the measured autocorrelation with the same-node terms of the three relevant latent variables (colour code in the key). Each term is non-zero only over the descendants of its latent variable, following the sketch of Figure 1d, and vanishing as soon as the target position leaves the corresponding subtree: at lag 2 for , lag 4 for and lag 8 for . Figure 14 in Appendix § 10 stacks the shares of the measured autocorrelation: the predicted codes account for 55–95% of the measurement, the rest stemming mostly from the non-additive residual and confined to the first plateau.

Figure 14. Composition of the autocorrelations of layer 3 (top) and layer 4 (bottom). Left: measured autocorrelation (dashed) against the same-node terms of the three carriers , and and their sum (grey), as in Figure 2. Right: share of the measured autocorrelation accounted for, from bottom to top, by the three carriers, by the open ancestors of the anchor, by all other node codes including the cross-node terms, and by the non-additive residual; the four bands sum to 100%. Dotted lines at the span ends of the carriers.
Development over training. Persistence also predicts how the autocorrelation function changes during training. For deep transformers trained on RHM data, the learning curves proceed in stages, each corresponding to the resolution of one more level of the latent hierarchy [10] (Cagnetta & Wyart 2024). Figure 3a shows this for the validation loss of the last token, , given the preceding ones, which decreases through a sequence of plateaus (the full autoregressive loss has identical stages; see Appendix § 11). The plateaus sit at the theoretical entropies of depth- subtrees (dashed lines), compatibly with a model that has learned only a portion of the latent hierarchical structure, hence treats blocks of tokens as independent. Like the optimal loss, these plateau values are exact functions of the rules (Appendix § 7). We measure the autocorrelations at initialisation and at one checkpoint on each plateau (vertical dotted lines). Figure 3b shows the result for layer 4: the staircase is built outward, one plateau per stage. At initialisation, the autocorrelation is flat and independent of the lag, as attention is nearly uniform over the context (Appendix § 11). Training removes this uniform component, and the staircase grows one plateau at a time. At stage 2, where depth-2 subtrees are learned, only lag 1 stands out (note the logarithmic scale). At stage 3, the plateau at lags 1–3 is in place; at stage 4, the plateau at lags 4–7 appears, then it settles at stage 5. The other layers follow the same stagewise behaviour, with their own reach (Appendix § 11).
Autocorrelations in natural language
In this section, we verify the relationship between autocorrelations, persistence, and depth of latent features in open LLMs trained on natural language. We used five LLMs for which open source trained SAE features are available: Gemma 2 2B and Gemma 2 9B (Gemma Team et al., [21]) with the residual-stream JumpReLU SAEs of Gemma Scope (Lieberum et al., [30]), Pythia-160M (Biderman et al., [7]) and Llama-3-8B (Grattafiori et al., [23]) with the top- SAEs (Gao et al., [19]) released by EleutherAI (EleutherAI, [15]), and Qwen3-8B (Yang et al., [48]) with the top- SAEs of Qwen-Scope (Deng et al., [13]). For datasets we used WikiText (Merity et al., [37]) and The Pile (Gao et al., [18]), standard open source corpora in English.
Integrated autocorrelation. By summing over time lags we get a scalar value quantifying the amount of autocorrelation of each layer, the integrated autocorrelation
is called susceptibility in equilibrium statistical mechanics, where integrated correlations are related to linear response to perturbations via the fluctuation–dissipation relations Goldenfeld [22]. For systems in which correlations change signs, Eq. (8) could average to zero even for finite values of , but this is not observed in our setup.
SAE and Persistence. SAE features are human-interpretable components extracted from the dense, entangled activation spaces of LLMs. SAEs do not represent the entire activation space: we report the fraction of the activation’s variance explained by the SAE reconstructions in Appendix § 16. An SAE feature is active at a token position when its code is non-zero. The persistence of a firing episode of an SAE feature is the number of consecutive tokens on which it is active: for starting position and ending position (see Figure 5, upper row). We report persistencies averaged per feature: record for each firing episode of a given feature and average over firing episodes.
Figure 5. Scheme of the intervention experiment: In the gray areas, a given SAE-feature of interest is firing. and denote the starting and ending token positions of the firing episode. In the upper row, we measure the mean autocorrelations inside the feature’s firing episode, taking as reference the last token of the firing episode, signaled with a green box. Then, we ablate SAE-features of the tokens colored in red using different protocols, and recompute the mean autocorrelation, to quantify how the ablation of SAE-features influences the autocorrelation. Results are reported in Table 1. In the bottom row, we show an example of a control experiment in which the reference token is outside the firing episode, for which the decrease in autocorrelations generated by ablating SAE-features is smaller, since the feature is not active in it.
Layer dependencies
Figure 4a and Figure 4b show the layer dependence of the integrated autocorrelations (Eq. (8)) and the median persistence time of SAE features, respectively, across models and datasets. Both quantities increase roughly monotonically with depth, although the median persistence tends to plateau or slightly decrease in the last quarter of the networks (see Appendix § 14 for the mean, showing a similar trend). Accordingly, they are strongly correlated across layers, as shown in Figure 4c for all models.
This correlation could, however, originate from the activation frequency of the features rather than from their persistence. On the one hand, a frequently active feature has longer runs by chance. On the other hand, at large lags the autocorrelations of Figure 1b approach a plateau that grows with depth: a sequence-wide component, given by the mean representation of each sequence, which depends on how often each feature is active in that sequence and not on when. Appendix § 13 separates the two origins by randomly shuffling the token positions of each sequence, which preserves the activation frequencies and destroys the temporal order. After shuffling, the growth of persistence with depth largely disappears, whereas the autocorrelation reduces to the sequence-wide component (Figure 20). Hence, frequency does not explain the growth of persistence, and its contribution to the autocorrelations can be removed by subtracting from the activations the mean of their sequence. The resulting integrated autocorrelation remains strongly correlated with persistence, in most cases more than (see Table 7). Furthermore, has non-monotonic layer dependence with an approximate plateau in the second half of the network (see Figure 21). Interestingly, this layer profile is compatible with recent results in which measures of representational abstraction peak or saturate in intermediate layers Cheng et al. (2025); Acevedo et al. (2026b;a); Gurnee et al. (2026).
Figure 20. Shuffle control, Gemma 2 2B on The Pile. (a) Autocorrelation of every layer after permuting at random the token positions of each sequence. (b) The same with the mean of each sequence subtracted, . (c) Mean persistence of the 1000 most active latents of each layer (strict episodes) in the real order, with the positions shuffled within each sequence, and with the tokens shuffled across the whole corpus; dotted line: expectation for latents active independently at each token with their corpus frequency. (d) Mean persistence against the integrated autocorrelation, (hollow) and (filled), both measured in the real order, one point per layer; is the Pearson correlation over the 26 layers.
Figure 21. Layer dependence of the integrated autocorrelation with the mean token of each sample removed, , for the five models, as Figure 4a for . Markers are the average of The Pile and WikiText, error bars half the difference between the two corpora.
| Model | corpus | mean persistence | mean persistence | median persistence | median persistence |
| Gemma 2 2B | The Pile | 0.90 | 0.95 | 0.87 | 0.87 |
| Gemma 2 2B | WikiText | 0.92 | 0.95 | 0.85 | 0.88 |
| Gemma 2 9B | The Pile | 0.60 | 0.54 | 0.93 | 0.78 |
| Gemma 2 9B | WikiText | 0.59 | 0.53 | 0.87 | 0.84 |
| Pythia-160M | The Pile | 0.81 | 0.96 | 0.69 | 0.88 |
| Pythia-160M | WikiText | 0.68 | 0.84 | 0.50 | 0.72 |
| Llama-3-8B | The Pile | 0.71 | 0.83 | 0.68 | 0.79 |
| Llama-3-8B | WikiText | 0.71 | 0.80 | 0.53 | 0.74 |
| Qwen3-8B | The Pile | 0.72 | 0.79 | 0.62 | 0.67 |
| Qwen3-8B | WikiText | 0.89 | 0.91 | 0.78 | 0.78 |
Table 7. Each entry is the Pearson correlation, across the swept layers of one model and corpus, between the persistence of a layer (mean or median over its 1000 most active latents, strict episodes) and the integrated autocorrelation of the same layer, standard () or with the mean token of each sample removed (). Vertical lines separate the pairs.
Intervening on activations: ablation of SAE features
In this section, we verify that projecting out persistent features from the activations significantly decreases autocorrelations. Given the neural activity of an LLM layer and an SAE feature , ablation is performed by removing the projection of along the decoding vector of the SAE decoder:
We ablate token positions , such that the reference token is not simultaneously ablated, then report the mean change in autocorrelations
is further averaged over the 500 longest firing episodes of the layer’s 400 most persistent latents, with at most 2 episodes per latent, and expressed as a percentage of the average clean value 5.
The third and fourth columns of Table 1 show the largest value of obtained by removing one and three SAE features, as depicted in Figure 5. The fifth column (a-control) shows the value of a control experiment in which we remove an SAE feature that was active at position , but not persistent inside the window, for which we expect a much smaller . The ablation of all active latents (sixth column) using the SAE intermediate representation does not remove all the baseline autocorrelations (i.e., ), as expected from imperfect SAE reconstructions (reported in Appendix § 16). The last three columns of Table 1 show the magnitude of for the case in which the reference token is outside the measured firing episode of the latent (, , , see Figure 5 bottom row). As expected, the effect of the ablation is not negligible, but smaller than that measured using position as reference (third column), and moreover it decays with the distance to the token, for all models except Pythia.
Discussion and perspectives
In this work, we explored the connection between the autocorrelations of neural activations, Eq. (1), and the encoding of latent variables. At the token level, with one-hot representations, Eq. (1) reduces to the centered probability of token coincidence. Under the linear representation hypothesis, it extends the coincidence to latent codes, i.e., the persistence of variables encoded along aligned directions at both positions. Therefore, as at the token level, the functional form of autocorrelations reveals the structure of the underlying process. Note that autocorrelations are read from the raw activations, without downstream tasks or predefined features: the organisation of the encoded variables is probed without even identifying their content. Thus, our results highlight the value of geometric observables for studying high-dimensional neural representations, taking a step toward connecting the geometry of LLM representations to the information they encode [43].
Eq. (1) is invariant under a common change of orthonormal basis: a latent variable contributes only if it is encoded along aligned directions at both positions. While this property makes Eq. (1) a measure of persistence, nothing forces a model to write a variable along the same direction at different positions. Measures that include such an effect would rely on the full cross-covariance matrix, . Comparing these measures with Eq. (1), which corresponds to the trace of the matrix, could establish how much of the persistence of a layer is carried by fixed directions, as in our reading of Eq. (1), and how much by codes that change orientation across positions.
As a perspective for incoming research, we would like to connect correlations to the response to perturbations. In equilibrium statistical mechanics, fluctuation–dissipation relations link the correlations of the unperturbed system to its linear response to weak external perturbations. Transformer representations do not constitute an equilibrium dynamical system, so such a relation is not expected to hold a priori. Nevertheless, first-order response matrices, such as the Jacobian lens Gurnee et al. [25], have the potential to help us better understand how transformers process information internally. In this context, our results motivate asking whether the temporal structure of predicts the lag-resolved response to small perturbations of earlier tokens or activations—for instance, whether layers with longer-ranged correlations also propagate perturbations over longer context ranges. Establishing such a fluctuation–response relation, or characterising its violations, would connect the passive geometrical observable studied here to causal measures of information propagation.
Acknowledgements
The authors would like to thank Matthieu Wyart, Konstantin Nikolaou and Jasmina Urdshals for useful discussions and feedback on the manuscript. For part of this project, the work of FC was supported by the European Union’s Horizon Europe program under the Marie Skłodowska-Curie grant agreement No. 101154584.
Random Hierarchy Model: data, learning model and training
Generative process. The RHM [9] generates sentences of tokens along a binary tree of depth , all of whose variables, latent and visible, take values in a set of symbols. At each level below the root, each symbol is assigned production rules , replacing it with a pair of symbols of level . Rules are unambiguous: The right-hand sides are sampled uniformly without replacement among the possible pairs, so that no pair is produced by two different symbols. Sentence generation proceeds as follows. First, the root is drawn uniformly. Secondly, the root symbol is expanded by one of its rules, chosen uniformly and independently of everything else. Each of the resulting symbols is itself expanded by one of its rules, chosen uniformly and independently of everything else. The iterative expansion ends after levels. The -th variable at level is denoted with , having depth (i.e. distance from the input tokens) . spans the tokens . The root spans the whole sentence, while depth-1 variables span pairs of adjacent input tokens. We use , and : input tokens, 31 hidden nodes and grammatical pairs per level out of . Unambiguity makes the map from a sentence to its tree of latent variables deterministic, and we recover the latent variables of every sentence by parsing it bottom-up.
Optimal loss. Since the generative model is a tree, the next-token probability is computed exactly by belief propagation, and its conditional entropy , averaged over contexts, is the optimal cross-entropy loss at position . The average over all positions,
is the optimal autoregressive loss.
Model. We consider a decoder-only GPT-2-style transformer: learned token and absolute positional embeddings of dimension , 5 pre-LayerNorm blocks with 12 attention heads and an MLP of width , a final LayerNorm and a linear readout; no dropout, no weight decay. Weights are initialised as standard Gaussians with the factors applied in the forward pass, and the readout is scaled by , so that the initial predictions are close to uniform. The input is a [BOS] (beginning-of-sequence) token followed by the first 31 tokens of a sentence, and the model predicts autoregressively. Layer of the main text is the residual stream after block , and layer 0 is the sum of the token and positional embeddings.
Training. The model is trained on the standard cross-entropy loss using Adam, with learning rate , batch size 1024, linear warm-up over 8 steps and cosine decay to learning rate over steps. The training set consists of sentences, and the model is trained for steps (four passes over the training set). The validation loss of the final checkpoint is within 0.033 nats per sentence of the optimal loss, and within 0.007 nats of the optimal at every position. All results are for a single grammar and a single training run.
Token and activation statistics in the RHM
This appendix details the measurement of activation statistics for models trained on the RHM data of Appendix A, including comparisons with analytical predictions of the autocorrelation function based on the construction of Figure 1d.
Activation statistics. We compute all activation statistics, including autocorrelations, from sentences sampled from the grammar independently of the LLM’s training set. For each layer, including tokens and embeddings, we compute the mean and the second moments of the activations at all positions, from which standardised activations are formed:
In terms of the original, non-standardised activations, the autocorrelation function of Eq. (1) reads (layer index omitted for clarity)
For two independent centered activations, the sampling variance of their average dot product is , so the sampling variance on is with the effective rank . This noise floor lies below at every lag and layer, and the curves are stable in wherever they lie above it.
Token- and embedding-level autocorrelations
This appendix supports the discussion of § 2 for RHM data. We first compute the token-level autocorrelation of Eq. (4) analytically from the RHM’s production rules, then show that embedding the tokens, with either random or trained vectors, leaves it unchanged. We repeat both steps for the idealised first-layer construction of Figure 1d in Sec. B.2.
We define the token-level correlation matrix as the cross-covariance of the one-hot encodings,
Eq. (4) is the trace of . In the RHM, two tokens are coupled only through the rule drawn at their lowest common ancestor. Let be this ancestor, its marginal, and the set of pairs that the symbol can produce. Call the probability that a node with value has the descendant of value at position is the product of one-step transition matrices along the path, and the same along the path to position . Then
and Eq. (4) follows by summing the diagonal and subtracting the product of the marginals. The marginal , the set of pairs and the transition probabilities and are all given in the RHM. Hence, Eq. (4) is available analytically. Figure 6, left compares the result (black dashed) with the empirical token-level autocorrelation (blue): the two agree within 2 standard deviations of the sampling noise, (Appendix A, blue dashed line in the figure), at every lag.

Figure 6. Token-level trace between the one-hot encodings of and : measured on sentences (blue), exact from the rules (Eq. (15), black), the scale of Eq. (16) (orange) and the sampling noise (horizontal lines). Left: signed values on a symmetric-log axis; right: absolute values. Dotted lines at the lags where the lowest common ancestor of the two tokens moves up one level.
The scale of autocorrelations. While the sign and specific value of each point depend on the specific instance of the grammar, the overall scale of the autocorrelations is fixed by the structure of the tree and the parameters (vocabulary size of input and latent variables) and (number of rules per symbol). Specifically, is a random variable with zero mean over the random draw of the rules, while the standard deviation gives its typical size. We estimate its standard deviation by treating the diagonal entries of as entries of typical size and random sign, which gives . The Frobenius norm follows from Cagnetta & Wyart [9] in the large limit with : the two children of a uniform parent give exactly, and each further step down the tree divides it by about , since the centred rows of the transition matrices are nearly orthogonal with squared length [40]. For two nodes and levels below their lowest common ancestor,
For two tokens, , this is a staircase with one step per level of the ancestor (orange dashed in Figure 6). The exact trace scatters around the scale with an order-one ratio, 0.9–2.3 in root-mean-square over each level. From lag 7 on, the scale is below the sampling noise.
Embedding-level autocorrelations. The embedding layer maps to the -dimensional activation , resulting in the (non-standardised) cross-covariance matrix
Its trace is , with . Splitting with separates a multiple of the token trace from an anisotropic part, in which the overlap of the embedding vectors of two different tokens couples them across the two positions. For with i.i.d. Gaussian entries of variance , and the anisotropic part has standard deviation , a fraction of order of : smaller than the scale by . Therefore, after standardisation, which divides Eq. (1) by , the autocorrelation of a random embedding follows the token-level one within a fraction of the scale. Figure 7 shows that this holds for eight random draws, for the embedding at initialisation and also for the trained embedding, where no argument of this kind applies a priori: from lag 2 on, the four normalised curves coincide on the logarithmic scale. The one exception is lag 1, where the token-level value is six times smaller than its typical scale, and the trained embedding flips its sign.

Figure 7. Token-level trace pushed through an embedding, (left), and the normalised autocorrelation (right), for the one-hot tokens (), the trained and initial embedding matrices of the transformer, and random Gaussian with (mean and spread over 8 draws). Symmetric-log axes; dotted lines as in Figure 6.
Latent-level layer-1 autocorrelations
We can repeat the analysis of Sec. B.1 for layer-1 activations, using the idealised construction of Figure 1d as ground truth for the latent content of activations. In particular, the sketch of Figure 1d assigns to layer 1 the following sequence of latent variables
i.e. , , , , , , : the current token at odd positions and the parent of the pair just completed at even positions. We call the covariance matrix of the one-hot encodings of this latent sequence . Since tokens and parents take values in the same set of symbols, the exact covariances can be computed via Eq. (15), having a shorter path on the parent side. However, the matching of labels is arbitrary, as relabelling the parent symbols by a random permutation is a symmetry of the RHM. Therefore, the absolute value of the trace at odd lags has no intrinsic meaning. The scale, instead, is given by Eq. (16), with at odd lags, where the target is a parent, while at even lags, where the target is a token. As a result, the scale curve coincides with the token-level one at even lags; and is times larger at odd lags. Figure 8 shows the exact curve, the trace measured on sampled trees, which agrees with it within 2 noise units, and the expected scale.

Figure 8. As Figure 6, for the idealised layer-1 sequence (current token at odd , parent of the last completed pair at even ): trace between the one-hot encodings of and , measured on sampled trees in blue, exact from the rules in black dashed, with the scale of Eq. (16) in orange dashed and the sampling noise as a blue dashed line.
Layer-1 autocorrelations. Figure 9 compares the measured autocorrelation of layer 1 (in green) with those of the idealised latent sequence (blue) and its random embeddings (-by- random with i.i.d. Gaussian entries, orange). Random embeddings follow the one-hot curve as for the token- and embedding-level autocorrelations of Sec. B.1, with standardisation removing the extra scale factor. For the trained curve, the sign does not always match, but this is expected due to the symmetry for relabelling of the parent symbols. Indeed, as shown in Figure 10, the absolute value of (right panel) lies within a small factor of the scale of the corresponding one-hot sequence, as does (left panel). Exceptions can be understood within the departures of the layer-1 encodings from the sketch of Figure 1d (cf. Appendix § 9). For instance, the activation in position 31 of layer 1 retains a small copy of the previous parent (3.7% of its variance), which is partially aligned with the code of at position 30. This is a same-node term, producing stronger correlations than a cross-node term. Hence, the resulting contribution competes with the , despite the attenuation due to the low fraction of explained variance.

Figure 9. Same as Figure 7, one layer up: trace of the idealised layer-1 sequence pushed through an embedding, (left), and the normalised autocorrelation (right), for the one-hot sequence (), random Gaussian , and the measured layer 1 of the trained transformer (for which the left panel shows the trace of the cross-covariance of the activations).

Figure 10. Measured autocorrelations (left) and (right) of the trained transformer, as in Figure 1a, against the scale of Eq. (16) (dashed steps), for the token sequence (left) and for the idealised layer-1 sequence (right), normalised by the one-hot variance . Dotted lines at lags 1.5, 3.5, 7.5 and 15.5 as in Figure 1a; the steps of the scale sit instead at the levels of the lowest common ancestor of the two positions (2.5, 6.5, 14.5 for tokens).
Linear decomposition of the activations into latent codes
This appendix details the encoding regression of Eq. (6), its relation to linear probes, and the encoding maps of the five layers that the item list of § 3 summarises. Throughout, is the activation of a fixed layer and position, its covariance, and every node of the tree, latent or visible, is represented by its centered one-hot encoding , , with covariance ; stacks the 63 encodings.
The joint regression. A linear function of the one-hot encoding of a discrete variable assigns a distinct arbitrary number to all possible values of . This is an arbitrary function of the symbol . Therefore, the linear functions of are exactly the sums of single-node functions. Moreover, the least-squares solution of Eq. (6), , is the best approximation of the activation by such a sum. The residual , uncorrelated with every node by construction, collects what no sum of single-node functions can capture, e.g. functions of several nodes at once. The only linear dependencies among the encodings are the sum-to-zero constraints, one per node, because no node is a sum of single-node functions of the others: a parent is determined by the pair of its children, but not by a function of one child plus a function of the other. has therefore rank exactly .
Partialling out. The coefficients of a joint regression obey the Frisch–Waugh–Lovell theorem [17, 33]: the block multiplying equals the regression of on , the residual of after its own regression on the encodings of all the other nodes. Importantly, this property distinguishes Eq. (6) from a linear probe. Consider, for instance, an activation that encodes only the token , . and its parent are correlated through the rules, so is correlated with , and a linear readout of the parent from will give a positive signal. In the joint regression, instead, the initial regression of on all the other nodes, including , leaves a residual orthogonal to . Thus, exactly. In simple terms, requires a component of the activation that correlates with the value of beyond what any single other node implies.
Latent codes. The code of is the block of vectors in , one per value of , and its strength is the fraction of the total activation variance explained by the variance of . The total explained fraction is the variance of the sum of all codes, and its complement is the fraction of variance explained by the residual.
Relation to linear probes. A linear probe for is the regression in the opposite direction, from to . The least-squares solution is , with . The quality of the probe is measured as the fraction of the variance of that it recovers,
This is the infinite-data, unregularised limit of the probes trained by gradient descent in the works of Sec. 1.2. Tree correlations between the latent variables inflate : a parent, for instance, reads at 11–23% wherever its children are encoded. measures how much of the activation is a code of , without preventing readability. For instance, a code of a few per cent can be read perfectly if it occupies directions of its own, as happens for the depth-3 variable in layer 3: it can be read perfectly () while only explaining of the activation variance. There is one more caveat with probes. At positions 1 and 2, there are only and possible prefixes, respectively. Both are smaller than the embedding dimension , so any injective map, including a randomly initialised layer, makes every function of the prefix linearly readable. Even at later positions, a random layer is a random-feature map of the prefix, and a probe can still recover parts of any variable without implying a particular structure in the activations. For these reasons we report encoding strengths throughout and use only for cross-checks such as the one above.
Statistical controls. Regression is performed using the moments of sentences and evaluated against those of , both sets drawn independently from the training set and the set used for measuring autocorrelations. A node whose code is pure noise picks up a fraction of the residual variance, about at . This spurious part scales as , whereas the true code does not. Every strength we report is required to change by less than a factor 2 between and , where pure noise changes by a factor 4.
Encoding maps. Tables 2–5 list the strengths of all codes at every position of the five layers (only positions 1–16 for layers 1 and 2, where the second half repeats the first). To keep the tables readable, the codes of the tokens and of the depth-1 and depth-2 variables, which come and go with the position, are listed by their role relative to the position (current token, last completed pair, and so on). The tables of layers 1, 2 and 3 are accompanied by figures, Figs. 11, 12, 13, illustrating the distribution of latent codes on the data tree. For the sake of clarity, we focus on the rightmost depth-4 subtree, descending from the second-level-1/depth-4 variable (highlighted at the root of each subtree in the figures) and generating the last tokens of each sentence (the leaves of each subtree in the figures). Each figure consists of 8 subtrees, reporting the fractions of explained variance of the activations of layers 1, 2 and 3 in the last 8 positions, to 31 (indicated in the top-left corner of each sub-figure). The fraction of variance explained by each latent variable is reported as the colour of the corresponding node (colourbar on the right). The fraction of the nonlinear residual is reported in the top-right corner of each sub-figure. Together, tables and figures give the numbers behind the item list of Sec. 3.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | |
| closes depth | – | 1 | – | 2 | – | 1 | – | 3 | – | 1 | – | 2 | – | 1 | – | 4 |
| 100 | 0.5 | 91.5 | 2.3 | 100 | 0.6 | 91.6 | 5.3 | 100 | 0.6 | 93.3 | 6.1 | 100 | 0.9 | 86.9 | 3.1 | |
| other | 0.2 | 1.4 | 1.2 | 0.2 | 1.5 | 1.0 | 0.2 | 1.3 | 1.1 | 0.2 | 2.4 | 1.2 | ||||
| 99.1 | 5.1 | 95.1 | 98.8 | 4.9 | 91.8 | 98.7 | 3.8 | 90.5 | 98.3 | 7.4 | 94.6 | |||||
| sum of codes | 100 | 99.8 | 98.0 | 98.7 | 100 | 99.6 | 98.0 | 98.2 | 100 | 99.5 | 98.4 | 97.7 | 100 | 99.5 | 96.8 | 99.0 |
| explained | 100 | 99.7 | 99.2 | 98.8 | 100 | 99.7 | 99.3 | 98.5 | 100 | 99.7 | 99.4 | 98.5 | 100 | 99.7 | 98.4 | 98.7 |
| residual | 0.3 | 0.8 | 1.2 | 0.3 | 0.7 | 1.5 | 0.3 | 0.6 | 1.5 | 0.3 | 1.6 | 1.3 | ||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | |
| closes depth | – | 1 | – | 2 | – | 1 | – | 3 | – | 1 | – | 2 | – | 1 | – | 4 |
| 100 | 0.1 | 34.3 | 100 | 0.1 | 39.8 | 0.2 | 99.4 | 0.1 | 38.2 | 0.1 | 99.3 | 0.2 | 29.1 | 0.5 | ||
| 0.8 | 0.8 | 0.9 | 0.9 | |||||||||||||
| other | 0.2 | 0.1 | 0.2 | 0.1 | 0.2 | 0.1 | 0.4 | 0.3 | ||||||||
| 99.8 | 48.6 | 0.4 | 99.7 | 42.9 | 1.1 | 99.6 | 42.9 | 0.3 | 99.4 | 43.6 | 12.7 | |||||
| 0.3 | 0.7 | 0.1 | 0.2 | 5.4 | ||||||||||||
| 0.8 | 0.8 | 0.9 | 1.2 | |||||||||||||
| other | 3.3 | 0.1 | 0.3 | 0.1 | 0.1 | |||||||||||
| 99.1 | 78.5 | 0.2 | 98.7 | 70.3 | ||||||||||||
| 1.8 | 0.2 | 0.1 | ||||||||||||||
| 0.7 | 0.7 | 0.7 | 1.9 | |||||||||||||
| [1–8] | 2.6 | |||||||||||||||
| sum of codes | 100 | 99.9 | 85.5 | 99.8 | 100 | 99.9 | 85.3 | 88.3 | 99.8 | 99.8 | 84.0 | 99.4 | 99.8 | 99.8 | 77.4 | 89.3 |
| explained | 100 | 99.9 | 86.7 | 99.4 | 100 | 99.9 | 86.7 | 89.0 | 99.9 | 99.9 | 85.4 | 99.5 | 99.9 | 99.9 | 80.5 | 87.8 |
| residual | 0.1 | 13.3 | 0.6 | 0.1 | 13.3 | 11.0 | 0.1 | 0.1 | 14.6 | 0.5 | 0.1 | 0.1 | 19.5 | 12.2 |
Table 2. Encoding maps of layers 1 and 2, positions 1–16 (positions 17–31 repeat the pattern). Cells: percentage of the activation variance occupied by the code of each node at position (), blank below 0.05%, bold at or above 20%. The row closes depth gives the depth of the deepest variable whose span ends at . Tokens and depth-1 and depth-2 variables are listed by their role relative to , with and the numbers of completed pairs and 4-spans: is the current token and the next; is the last completed pair, the one before it and the current open pair for odd , or the following one for even . Likewise for the 4-spans , , . The other rows sum the remaining nodes of that depth. Deeper variables are listed by name, with their span in brackets. Sum of codes adds the strengths of all 63 nodes, explained is the variance of the sum of the codes, and residual its complement, i.e. the part of the activation that is not a sum of single-node functions. Layer 1 holds essentially one code per position, with odd positions encoding the current token (100% at positions and 87–94% at positions , where the variable of the pair just completed is retained at 3.5–7.4%), and even positions the depth-1 parent of the completed pair (97.5–99.1% at positions ), and 89–95% at the multiples of 4, where the current token takes 2–7%). Layer 2 adds depth-2 variables at the multiples of 4: at 98–99% at positions 4, 12, 20 and 28, and at 70–79% at positions 8, 16 and 24, where all latent variables of the completed 8-span linger (c.f. tree of Figure 12). Note positions , where the depth-1 variable of the last completed pair is kept at 37–49% next to the current token at 29–43%. This is persistence: the code of a pair survives the position after the pair closes, and is dropped at the next one, when the span of its parent closes.
Composition of the autocorrelations: details
This appendix derives the split of Eq. (7), uses it to break down the autocorrelations of layers 3 and 4, and summarises the other layers.
Derivation of Eq. 7. In this appendix we call the reference position the anchor and the position the target. Write the activations at both positions as in Eq. (6), and , with the same : the regression at each position uses all 63 nodes, whether their span is complete at that position or not. Expanding the dot product of Eq. (1) gives four terms,
and the two mixed terms vanish because each residual is uncorrelated with every node, , which is the normal equation of least squares at position . Dividing by , the normalisation of Eq. (1), gives Eq. (7). The split holds for any pair of positions and involves no cross-position moment: the code part is a prediction of the autocorrelation from the single-position regressions alone. Expanding over its blocks splits the code part into a sum over pairs of nodes,
the same-node and the cross-node terms of the main text. The same-node term of is the expected dot product of the code of at the anchor with the code of at the target, : the autocorrelation that the variable would produce on its own. A cross-node term couples two different variables through their correlation, which in the tree runs through the rule drawn at their lowest common ancestor. In practice the code part is computed from the regressions at and the measurement at (Appendix § 7), and the residual part is their difference. The identity is exact within the regression sample, and the sampling error of the measurement is negligible, so the residual part inherits the resolution of the regression discussed in Appendix § 9; a same-node term is linear in the strength of a faint code, with the loud code at the other position acting as a matched filter, so it resolves retained codes fainter than the strengths of Tables 2–5 can certify, provided it is stable in . Beyond lag 16 the cross-node terms rest on the covariance of nodes in different halves of the sentence, which is at its sampling floor at , and we do not use them.
Layers 3 and 4. The strengths of the codes at the anchor determine how much each of them contributes to the autocorrelation, through the same-node terms of Eq. (21). Figure 14 shows this for layers 3 and 4, the two layers whose autocorrelation is a staircase. The left panels repeat the right panel of Figure 2; the right panels split the measured autocorrelation at lags 1–8 into four shares that sum to 100%: the same-node terms of the three carriers, those of the open ancestors and the root, whose spans contain the unseen , all other terms of , i.e. the same-node terms of the other nodes and all the cross-node terms, and the residual . The two layers have the same composition. The carriers give 34–55% (layer 3) and 32–52% (layer 4) at lags 1–3, and 77–83% and 74–83% at lags 4–7. The acts alone; the open ancestors add 11–19% and 14–19% at lags 1–3; the residual is 30–42% and 30–44% at lags 1–3, and 4–6% and 4–9% at lags 4–7; the cross-node terms stay within 1–9% up to lag 7 (Table 6). The amplitude is what differs: the carriers hold 28, 7.4 and 2.6% of the anchor variance in layer 3 and 17, 3.9 and 1.3% in layer 4 (Table 3 and Table 4), and the autocorrelation of layer 4 is 2–4 times smaller over lags 1–7 (Figure 15), with the same steps at the span ends (a factor 7 between lags 3 and 4 and 13 between lags 7 and 8, against 8.5 and 24 in layer 3). What layer 4 adds to the encoding of layer 3 leaves little trace in the autocorrelation. The louder prediction codes contribute little: the pair , encoded in 18% by the target of lag 1 but at 1.4% by the anchor, gives 4% of the lag-1 value. The completed depth-4 variable , whose window would cover lags 8–15, is not retained at the anchor above the resolution of the regression (0.007%, at the noise floor of Appendix § 9), so it contributes nothing there. At lag 8, beyond the span of , the autocorrelation drops by more than a factor ten and the carriers give only 5% of it; from there on, the cross-node terms grow to 21–35% and change sign from lag to lag.
| Layer 3, positions 1–16 | ||||||||||||||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | |
| closes depth | – | 1 | – | 2 | – | 1 | – | 3 | – | 1 | – | 2 | – | 1 | – | 4 |
| 100 | 0.1 | 33.7 | 27.0 | 28.4 | 0.1 | 26.6 | 32.3 | 19.9 | 11.4 | 0.2 | ||||||
| 1.5 | 1.3 | 0.3 | ||||||||||||||
| other | 0.2 | 0.1 | 0.2 | 0.1 | 0.1 | 0.2 | 0.2 | 0.2 | 0.2 | 0.3 | 0.4 | |||||
| 99.8 | 41.1 | 0.3 | 39.5 | 24.9 | 0.3 | 41.9 | 30.2 | 0.1 | 23.6 | 12.5 | 6.3 | |||||
| 0.2 | 0.2 | 0.1 | 3.9 | |||||||||||||
| 1.1 | 0.7 | 1.1 | 0.1 | 0.9 | 0.2 | 0.6 | ||||||||||
| other | 0.1 | 0.1 | 0.1 | 0.6 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | ||||||
| 99.2 | 70.2 | 36.0 | 16.3 | 9.9 | 0.1 | 30.0 | 19.8 | 11.0 | 9.9 | 33.7 | ||||||
| 0.8 | 0.1 | 0.1 | 24.9 | |||||||||||||
| 0.8 | 1.3 | 0.9 | 0.1 | 0.7 | 2.9 | 5.3 | 3.1 | 2.7 | ||||||||
| other | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | ||||||||||
| [1–8] | 1.0 | 0.3 | 82.5 | 71.4 | 42.0 | 6.5 | 14.1 | 8.5 | 7.1 | 9.4 | ||||||
| [9–16] | 0.1 | 2.2 | 1.7 | 4.0 | 3.4 | 10.9 | ||||||||||
| [1–16] | 0.1 | 8.1 | 3.7 | 12.4 | 10.3 | |||||||||||
| sum of codes | 100 | 99.9 | 78.5 | 99.7 | 97.3 | 78.7 | 73.2 | 94.4 | 98.1 | 84.6 | 72.3 | 58.1 | 59.3 | 62.0 | 61.1 | 80.4 |
| explained | 100 | 99.9 | 80.0 | 99.5 | 97.5 | 79.5 | 74.4 | 95.0 | 98.2 | 84.9 | 73.7 | 59.9 | 61.7 | 61.9 | 62.1 | 72.5 |
| residual | 0.1 | 20.0 | 0.5 | 2.5 | 20.5 | 25.6 | 5.0 | 1.8 | 15.1 | 26.3 | 40.1 | 38.3 | 38.1 | 37.9 | 27.5 | |
| Layer 3, positions 17–31 | ||||||||||||||||
| 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | ||
| closes depth | – | 1 | – | 2 | – | 1 | – | 3 | – | 1 | – | 2 | – | 1 | – | |
| 92.5 | 0.1 | 37.1 | 27.3 | 32.1 | 17.5 | 39.9 | 25.2 | 0.1 | 30.4 | |||||||
| 1.6 | 1.1 | 1.3 | 1.0 | |||||||||||||
| other | 0.2 | 0.1 | 0.2 | 0.1 | 0.2 | 0.2 | 0.2 | 0.2 | 0.2 | |||||||
| 1.1 | 97.3 | 36.9 | 0.2 | 34.8 | 25.9 | 0.1 | 33.6 | 28.6 | 0.1 | 30.1 | 28.3 | |||||
| 0.4 | 0.4 | 0.1 | 0.2 | 0.1 | 0.1 | |||||||||||
| 1.1 | 0.8 | 1.1 | 0.1 | 1.0 | 0.2 | 0.9 | ||||||||||
| other | 0.2 | 0.1 | 0.3 | 0.3 | 0.3 | 0.1 | 0.7 | 0.5 | 0.4 | 0.1 | 0.4 | 0.3 | 0.3 | 0.1 | ||
| 4.4 | 1.5 | 0.2 | 97.7 | 69.0 | 35.3 | 12.8 | 4.6 | 26.0 | 20.0 | 14.4 | 7.4 | |||||
| 1.0 | 0.8 | 0.7 | 0.1 | 0.4 | ||||||||||||
| 0.8 | 1.5 | 0.9 | 0.1 | 0.8 | 3.9 | 4.6 | 4.3 | 1.3 | ||||||||
| other | 1.1 | 1.4 | 1.2 | 0.2 | 1.0 | 0.6 | 0.8 | 0.1 | ||||||||
| [17–24] | 1.2 | 0.2 | 89.6 | 78.6 | 44.0 | 3.5 | 12.5 | 7.7 | 6.6 | 2.6 | ||||||
| [25–32] | 0.1 | 2.2 | 1.4 | 1.6 | 0.4 | |||||||||||
| [17–32] | 0.1 | 7.0 | 2.9 | 4.5 | 0.7 | |||||||||||
| sum of codes | 98.4 | 99.4 | 78.0 | 99.4 | 97.4 | 74.9 | 74.5 | 96.7 | 98.1 | 79.9 | 75.5 | 53.6 | 63.1 | 63.2 | 73.3 | |
| explained | 97.3 | 99.0 | 79.4 | 99.0 | 97.4 | 75.5 | 76.0 | 96.9 | 97.8 | 79.8 | 77.0 | 54.5 | 65.1 | 63.9 | 75.3 | |
| residual | 2.7 | 1.0 | 20.6 | 1.0 | 2.6 | 24.5 | 24.0 | 3.1 | 2.2 | 20.2 | 23.0 | 45.5 | 34.9 | 36.1 | 24.7 |
Table 3. Encoding map of layer 3, all positions; conventions as in Table 2, with the second half of the context shown in full and the depth-3 and depth-4 variables listed by name. Part of layer 3 extends the pattern of layer 2 by one level. The depth-2 variables now persist over the span of their parent: , formed at (99%), is kept at 70, 36 and 16% for –7 and dropped at , where its parent closes. The depth-3 variables are formed at and 24 (83 and 90%). In addition, layer 3 starts doing part of the job of layer 4. The depth-3 variables persist over the span of their parent: is kept at 71 and 42% for , 10 and at 7–14% up to , and dropped at $t = 16; likewise , from 79% at to 26% at . The depth-4 variables receive partial codes while their span is still open ( at 4–12% for –15, at 1–7% for –31), but are not kept once complete: at the layer holds the children and (25 and 34%) rather than . The residual grows with the number of coexisting codes: from at most 5% where a single variable dominates, to up to $\sim$45% when variables of multiple depths are present.
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | ||
| — | 1 | — | 2 | — | 1 | — | 3 | — | 1 | — | 2 | — | 1 | — | 4 | ||
| 100 | 34.4 | 53.3 | 32.5 | 0.1 | 66.4 | 35.1 | 43.1 | 25.5 | 0.2 | ||||||||
| 5.7 | 0.2 | 4.7 | 5.0 | 1.0 | 1.6 | ||||||||||||
| other | 0.2 | 0.1 | 0.2 | 0.2 | 0.1 | 0.2 | 0.2 | 0.2 | 0.2 | 0.2 | 0.3 | 0.4 | |||||
| 99.9 | 20.2 | 0.2 | 29.2 | 12.9 | 0.3 | 49.9 | 15.0 | 0.1 | 22.2 | 8.2 | 5.4 | ||||||
| 0.2 | 0.2 | 3.2 | |||||||||||||||
| 1.5 | 0.1 | 8.7 | 1.6 | 0.8 | 1.4 | 0.3 | 13.9 | 0.9 | |||||||||
| other | 0.1 | 0.1 | 0.1 | 0.1 | 0.6 | 0.1 | 0.1 | 0.1 | 0.2 | 0.1 | 0.1 | 0.1 | |||||
| 99.3 | 28.8 | 13.9 | 7.9 | 9.6 | 24.1 | 6.2 | 4.5 | 5.5 | 29.1 | ||||||||
| 0.8 | 21.8 | ||||||||||||||||
| 1.0 | 0.1 | 2.0 | 0.9 | 0.3 | 0.8 | 11.0 | 4.2 | 4.8 | 2.2 | ||||||||
| other | 0.1 | 0.2 | 0.1 | 0.1 | 0.1 | 0.1 | |||||||||||
| [1–8] | 0.1 | 1.2 | 0.2 | 82.9 | 26.0 | 15.1 | 3.0 | 8.7 | 2.4 | 2.4 | 4.9 | 0.3 | |||||
| [9–16] | 0.2 | 2.0 | 0.7 | 1.7 | 2.0 | 9.7 | |||||||||||
| [1–16] | 0.1 | 4.2 | 0.9 | 3.6 | 5.0 | 7.5 | |||||||||||
| sum of codes | 100 | 100 | 63.2 | 99.7 | 82.8 | 55.4 | 61.2 | 94.5 | 92.6 | 66.8 | 60.8 | 50.7 | 59.4 | 53.7 | 56.6 | 77.8 | |
| explained | 100 | 100 | 66.7 | 99.5 | 83.7 | 58.6 | 64.0 | 95.0 | 92.7 | 68.3 | 64.0 | 55.2 | 61.4 | 57.1 | 58.9 | 71.7 | |
| residual | 33.3 | 0.5 | 16.3 | 41.4 | 36.0 | 5.0 | 7.3 | 31.7 | 36.0 | 44.8 | 38.6 | 42.9 | 41.1 | 28.3 | |||
| Layer 4, positions 17–31 | |||||||||||||||||
| 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | |||
| — | 1 | — | 2 | — | 1 | — | 3 | — | 1 | — | 2 | — | 1 | — | — | ||
| 87.4 | 36.9 | 53.4 | 35.8 | 48.6 | 42.6 | 47.7 | 36.4 | ||||||||||
| 5.7 | 0.2 | 4.6 | 4.1 | 1.0 | 3.8 | 1.0 | 3.8 | ||||||||||
| other | 0.1 | 0.2 | 0.2 | 0.1 | 0.2 | 0.2 | 0.2 | 0.1 | 0.2 | 0.2 | 0.3 | 0.2 | 0.2 | 0.2 | |||
| 0.2 | 84.8 | 17.4 | 0.1 | 24.8 | 14.3 | 0.1 | 30.5 | 15.7 | 24.2 | 16.8 | 0.1 | 0.1 | 0.1 | 0.1 | |||
| 0.1 | 0.1 | 0.1 | 0.1 | ||||||||||||||
| 1.6 | 0.1 | 9.8 | 1.6 | 2.3 | 1.4 | 0.3 | 17.8 | 1.4 | 0.3 | 17.8 | 1.4 | ||||||
| other | 0.1 | 0.1 | 0.2 | 0.2 | 0.2 | 0.1 | 0.5 | 0.2 | 0.3 | 0.1 | 0.2 | 0.3 | 0.2 | 0.1 | |||
| 0.6 | 0.4 | 0.1 | 62.4 | 23.7 | 11.4 | 6.5 | 3.0 | 13.3 | 5.8 | 4.6 | 3.9 | 0.4 | 0.2 | 0.2 | |||
| 0.4 | 0.2 | 0.2 | 0.3 | ||||||||||||||
| 0.9 | 0.7 | 0.2 | 2.2 | 0.9 | 0.6 | 0.8 | 22.0 | 4.6 | 5.6 | 1.2 | |||||||
| other | 0.1 | 0.6 | 0.4 | 0.6 | 0.1 | 0.3 | 0.2 | 0.2 | 0.1 | ||||||||
| [9–16] | 0.1 | ||||||||||||||||
| [17–24] | 0.2 | 0.1 | 1.1 | 0.2 | 51.8 | 20.0 | 10.7 | 1.7 | 4.4 | 2.0 | 1.9 | 1.3 | |||||
| [25–32] | 0.1 | 6.1 | 3.3 | 1.9 | 2.5 | 0.7 | 0.9 | 0.2 | |||||||||
| [1–16] | 7.3 | 3.6 | 0.1 | 5.0 | 0.6 | 0.6 | 3.1 | 1.3 | 1.3 | 0.7 | 0.1 | 0.1 | |||||
| [17–32] | 0.1 | 1.5 | 0.7 | 0.6 | 2.7 | 0.8 | 1.3 | 0.3 | |||||||||
| [1–32] | 0.1 | 0.6 | 0.3 | 0.2 | 0.1 | ||||||||||||
| sum of codes | 95.8 | 89.3 | 63.1 | 69.6 | 78.8 | 50.7 | 64.4 | 68.0 | 75.0 | 49.3 | 66.7 | 46.6 | 63.6 | 57.0 | 65.7 | ||
| explained | 95.6 | 89.4 | 66.4 | 70.2 | 79.7 | 53.6 | 67.3 | 69.2 | 75.9 | 50.9 | 69.5 | 49.5 | 64.9 | 60.3 | 68.9 | ||
| residual | 4.4 | 10.6 | 33.6 | 29.8 | 20.3 | 46.4 | 32.7 | 30.8 | 24.1 | 49.1 | 30.5 | 50.5 | 35.1 | 39.7 | 31.1 |
Table 4. Table 4: Encoding map of layer 4, all positions; conventions as in Table 2. Layer 4 keeps the persistent codes of layer 3 over the same spans, at lower strength: e.g. goes from 52% at to 1.3% at (90 and 2.6% in layer 3). The completed depth-4 variable is now encoded at and after the end of its span (7.5, 7.3 and 3.6% at –18, 5% at , 3% at ), and the root receives a first code (0.6% at ). Predictions of unseen variables get stronger: the next pair at 9–18% for , the next 4-span at 11 and 22% at , and the next token at up to 6% for . The residual is 30–50% at most positions.

Figure 15. Autocorrelation of all six layers of the transformer trained on the RHM, as in Fig. 1a with layer 5 added: absolute values on a log scale, dotted lines at lags 1.5, 3.5, 7.5 and 15.5. The embedding is drawn with hollow markers. Layer 4 repeats the staircase of layer 3 at a lower amplitude; layer 5 is negative at lag 1 (absolute value shown), peaks at lag 2, ten times below layer 3, and lies within a few noise floors at most lags beyond 8.
| layer | share of | ||||||||
| 1 | same-node | 80 | 72 | – | – | – | – | – | – |
| cross-node | 16 | 30 | – | – | – | – | – | – | |
| residual | 4 | -2 | – | – | – | – | – | – | |
| 2 | same-node | 93 | -5 | 32 | – | 82 | 65 | 64 | – |
| cross-node | 7 | 100 | 56 | – | 8 | 21 | 35 | – | |
| residual | 0 | 6 | 12 | – | 10 | 14 | 1 | – | |
| 3 | same-node | 67 | 62 | 54 | 92 | 86 | 88 | 88 | 76 |
| cross-node | 3 | 3 | 3 | 5 | 8 | 8 | 9 | 21 | |
| residual | 30 | 35 | 42 | 4 | 6 | 4 | 4 | 2 | |
| 4 | same-node | 66 | 59 | 52 | 95 | 86 | 91 | 88 | 70 |
| cross-node | 4 | 2 | 4 | 1 | 5 | 3 | 7 | 35 | |
| residual | 30 | 39 | 44 | 4 | 9 | 6 | 5 | -4 |
Table 6. Composition of the autocorrelations of layers 1–4 at lags 1–8. Same-node, cross-node and residual parts of Eq. (7), in percent of the measured (the three rows of each layer sum to 100). Cells are left blank where the measured value lies within 20 noise floors (Appendix § 7), as at lag 4 of layer 2, where the terms cancel. The code part is computed from the regression at and the measurement at .
Other layers. Figure 15 shows the autocorrelation of all six layers, the embedding and the five blocks (Figure 1a is its restriction to layers 0–4), and Table 6 the composition of layers 1–4 at lags 1–8. Layer 1 is above the noise only at lags 1–2, where the codes account for 96–102% of the measurement, mostly through same-node terms of faint retentions overlapping with loud codes: at lag 1, for instance, the anchor retains the pair at 3.7% of its variance, while the target, position 30, holds it at 97.5%. Layer 2 is the one layer whose autocorrelation is carried by cross-node terms beyond lag 1: at lags 2 and 3, where the measured value is 40–100 times smaller than at lag 1, they give 100 and 56% of it, coupling the anchor’s code of with the codes of its child (lag 2) and of , the sibling of its parent (lag 3). Layer 5 is organised around the output. Its variance is concentrated in a few directions (the effective rank of Appendix A is 6–25 across lags, against 250–460 for layers 1–4), its loud codes are predictions whose content changes from position to position (Table 5), and the additive decomposition is no longer quantitative: the code part is 2.6 times the measurement at lag 1 and 0.2–0.4 times it at lags 2–4, the residual dominating. For this reason, layer 5 is left out of Table 6.
| Layer 5, positions 1–16 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | |
| closes depth | – | 1 | – | 2 | – | 1 | – | 3 | – | 1 | – | 2 | – | 1 | – | 4 |
| 100 | 13.0 | 56.6 | 6.6 | 0.1 | 72.3 | 13.5 | 32.3 | 10.3 | 0.4 | |||||||
| 6.3 | 0.2 | 17.8 | 8.8 | 2.8 | 18.5 | |||||||||||
| other | 0.3 | 0.1 | 0.2 | 0.3 | 0.3 | 0.3 | 0.1 | 0.1 | 0.3 | 0.3 | 0.3 | 0.3 | 0.2 | 0.3 | 1.0 | |
| 100 | 7.0 | 0.1 | 21.2 | 2.1 | 0.4 | 69.8 | 5.4 | 9.2 | 1.7 | 6.5 | ||||||
| 0.3 | 0.4 | 5.9 | ||||||||||||||
| 2.5 | 0.1 | 11.0 | 2.3 | 0.2 | 1.6 | 0.5 | 37.0 | 5.3 | ||||||||
| other | 0.2 | 0.2 | 0.1 | 0.2 | 0.1 | 0.2 | 0.6 | 0.1 | 0.1 | 0.2 | 0.2 | 0.4 | 0.1 | 0.2 | 0.1 | |
| 99.0 | 4.3 | 6.3 | 1.5 | 7.4 | 18.4 | 1.2 | 1.0 | 0.7 | 32.5 | |||||||
| 0.9 | 19.7 | |||||||||||||||
| 1.5 | 0.1 | 1.9 | 0.8 | 0.2 | 1.1 | 7.8 | 1.4 | 3.8 | 0.9 | |||||||
| other | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | ||||||
| [1–8] | 0.1 | 1.4 | 0.5 | 83.7 | 4.2 | 7.8 | 0.4 | 8.5 | 0.6 | 0.5 | 0.6 | 0.7 | ||||
| [9–16] | 0.1 | 0.1 | 3.2 | 0.3 | 0.5 | 0.3 | 8.5 | |||||||||
| [1–16] | 0.1 | 2.1 | 0.2 | 0.2 | 0.5 | 4.6 | ||||||||||
| sum of codes | 100 | 100 | 31.0 | 99.5 | 62.0 | 42.4 | 32.4 | 94.0 | 76.8 | 78.4 | 31.5 | 40.7 | 40.1 | 52.6 | 39.3 | 80.1 |
| explained | 100 | 100 | 32.9 | 99.5 | 62.9 | 46.2 | 36.3 | 92.2 | 76.8 | 79.6 | 35.5 | 39.3 | 44.1 | 58.6 | 47.1 | 67.5 |
| residual | 67.1 | 0.5 | 37.1 | 53.8 | 63.7 | 7.8 | 23.2 | 20.4 | 64.5 | 60.7 | 55.9 | 41.4 | 52.9 | 32.5 | ||
| Layer 5, positions 17–31 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | ||
| closes depth | – | 1 | – | 2 | – | 1 | – | 3 | – | 1 | – | 2 | – | 1 | – | |
| 90.2 | 15.0 | 72.8 | 8.0 | 84.7 | 12.6 | 25.3 | 7.0 | |||||||||
| 7.0 | 0.2 | 19.2 | 13.3 | 5.6 | 30.6 | |||||||||||
| other | 0.3 | 0.2 | 0.1 | 0.3 | 0.3 | 0.4 | 0.1 | 0.3 | 0.3 | 0.3 | 0.3 | 0.1 | 0.2 | |||
| 96.5 | 9.1 | 20.1 | 2.8 | 0.1 | 33.0 | 4.1 | 7.8 | 2.2 | ||||||||
| 2.5 | 0.1 | 13.9 | 3.0 | 3.0 | 2.2 | 1.0 | 51.0 | 5.3 | ||||||||
| other | 0.2 | 0.1 | 0.1 | 0.1 | 0.2 | 0.3 | 0.2 | 0.2 | 0.2 | 0.6 | 0.1 | 0.1 | 0.2 | |||
| 27.6 | 2.1 | 5.2 | 1.9 | 0.4 | 5.8 | 0.8 | 0.5 | 0.5 | 0.1 | 0.1 | ||||||
| 0.1 | 0.1 | |||||||||||||||
| 1.3 | 0.3 | 0.1 | 2.2 | 0.9 | 0.9 | 0.9 | 1.0 | 23.8 | 4.3 | 4.6 | 1.1 | |||||
| other | 0.1 | 0.1 | 0.1 | 0.1 | 0.3 | 0.3 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | ||||
| [17–24] | 0.3 | 0.1 | 1.1 | 0.3 | 12.4 | 0.8 | 2.2 | 0.3 | 0.9 | 0.2 | 0.1 | 0.2 | ||||
| [25–32] | 0.1 | 2.8 | 0.5 | 0.7 | 0.1 | 4.7 | 0.3 | 0.4 | 0.2 | |||||||
| [1–16] | 0.7 | 0.7 | 0.1 | 31.5 | 0.1 | 0.6 | 0.1 | 13.0 | 0.2 | 3.2 | 0.2 | 2.5 | 0.1 | |||
| [17–32] | 0.1 | 3.4 | 0.1 | 0.7 | 0.1 | 0.9 | 0.1 | 0.1 | 0.1 | |||||||
| [1–32] | 0.1 | 2.2 | 0.4 | 0.3 | ||||||||||||
| sum of codes | 91.0 | 97.2 | 35.7 | 60.6 | 75.8 | 43.8 | 36.9 | 35.6 | 86.5 | 44.7 | 34.5 | 39.5 | 38.8 | 64.8 | 47.8 | |
| explained | 91.0 | 97.1 | 37.3 | 61.8 | 77.9 | 47.3 | 42.2 | 34.8 | 86.8 | 47.3 | 39.6 | 38.4 | 42.7 | 69.9 | 53.1 | |
| residual | 9.0 | 2.9 | 62.7 | 38.2 | 22.1 | 52.7 | 57.8 | 65.2 | 13.2 | 52.7 | 60.4 | 61.6 | 57.3 | 30.1 | 46.9 |
Table 5. Encoding map of layer 5, all positions; conventions as in Table 2. Layer 5 turns to the output. Completed variables keep clean codes at a few positions (84–100% at ), but the persistent codes of layers 3 and 4 are mostly gone (at : , and at 2.2, 0.5 and 0.2%). Elsewhere, the activation is organised around what comes next: for the next token holds 6–31%, more than the current token at , and the unseen next pair reaches 37 and 51% at , against 9 and 8% for the pair just completed. The completed depth-4 variable reaches 31.5% at , and the root its largest code, 2.2%, at . The residual exceeds 30% at two thirds of the positions, up to 67% at .
Development over training: details
Checkpoints and stages. The checkpoints of Figure 3 are the training steps 2048, 23552, 93184 and 1048576, which sit on the plateaus of stages 2 to 5: their last-token losses are 0.990, 0.392, 0.202 and 0.156 nats against the stage values 0.945, 0.387, 0.201 and 0.156, and their autoregressive losses 2.431, 2.256, 2.166 and 2.124 nats per token against 2.426, 2.253, 2.166 and 2.123 (Figure 17). The first stage, , is crossed within the first few hundred steps without a visible plateau. At the last checkpoint the loss is at its optimal value at every position, including the positions of the second half of the sentence whose prediction depends on the first half through the depth-4 variable; this cross-half information is acquired between the checkpoints of stages 4 and 5.

Figure 17. Autoregressive validation loss (mean over the 32 positions) against the training step, with the stage values for (dashed) and the checkpoints of Figure 3 (dotted).
Layer 4. At the checkpoint on stage 3, lags 1 and 2 are at their final values while lag 3 is at a third of it; lag 3 completes at stage 4, together with the plateau at lags 4–7, which appears at 2–3.5 times its final height and settles at stage 5; the plateau at lags 8–15 is negative at stage 4 and becomes positive at stage 5 (the panel shows absolute values). Each plateau thus appears one stage after the loss shows that its carrier has been learned: the plateau of the depth-2 carrier at stage 3, that of the depth-3 carrier at stage 4. This suggests that a variable is carried across positions once its parent, which is assembled from it, is being learned; testing it requires the decomposition of Eq. (6) at the intermediate checkpoints.
The other layers. Figure 16 shows the same measurement for layers 0 to 4. The embedding (layer 0) does not change over training, as its autocorrelation is the token-level one pushed through the embedding vectors. Layer 2 holds the plateau at lags 4–7 at stage 4 and has handed it over to layer 3 by the end of training, and the autocorrelation of layer 1 at lag 1 decreases monotonically from the first checkpoint on, as the layer specializes to the tokens and the depth-1 variables. Layer 3 follows layer 4 step by step at a higher amplitude.

Figure 16. Absolute value of the autocorrelation of layers 0 to 4 at initialisation and at the four checkpoints of Figure 3, same conventions as Figure 3b.
Initialisation. At initialisation every block has a positive, lag-independent autocorrelation, growing with depth from (layer 1) to (layer 4), three orders of magnitude above the noise floor, while the embedding has none. The mechanism is causal attention with nearly uniform weights: each block adds to the residual stream the average of the value-projected inputs over the context, so that the reference position and any target share the target’s whole prefix. This predicts an autocorrelation independent of the lag up to a factor at target position , a level growing linearly with the number of blocks, and a positive sign, all of which are observed; the absolute level is reproduced only within a factor 1.2–2.5, the fluctuations of the attention weights around uniform being neglected. Training removes this component: the first checkpoint retains a residual tail of about at every lag, and the trained layer 1 is at the noise floor beyond lag 5.
Autocorrelations of the other models
Figure 1b shows the autocorrelation of every layer of Gemma 2 9B on The Pile. Figure 18 shows the same measurement for the other four models. Each curve is computed exactly as in Figure 1b. We take 500 samples of the corpus, cut them to the same length, and correlate the activation of the last token of each sample with the activation tokens earlier. Before doing so we subtract, at each position, the mean activation over the 500 samples, and we divide by the norms so that the result is a cosine. In every autocorrelation of this paper, Figure 1b included, the activations of each layer of each sample are first clipped to the 5th and 95th percentiles of their values, taken over all positions and coordinates of that layer and sample, to limit the weight of a few very large coordinates. Appendix § 17 repeats the measurement without clipping.
Figure 18. Autocorrelation against the lag for every layer of Gemma 2 2B, Llama-3-8B, Qwen3-8B and Pythia-160M on The Pile, one curve per layer colored by relative depth (a shared color scale, as the layer counts differ), same vertical range in all panels. The corresponding panel for Gemma 2 9B is Figure 1b.
In every model, deeper layers have a larger autocorrelation at any given lag. The shallowest layers decay within a few tokens. The deepest layers sit on a flat tail that spans the whole context; Appendix § 13 shows that this tail is an offset shared by all the tokens of a sample, not a slow decay. The order of the layers is clean in the Gemma and Llama models and noisier in Pythia-160M, whose curves cross in places. At the largest lags the token positions before the reference is the first token of the sample, whose activation is atypical (Appendix § 16), so we do not read anything into the drop of the curves there.
Sequence-wide component of the autocorrelations and frequency control
The autocorrelations of natural-language representations can contain two conceptually distinct contributions: a sequence-wide component, shared across the positions of a sample, and a position-dependent component that changes along the context. To separate them, let denote the mean representation of a sequence and . In this appendix we recompute the autocorrelation using only , and we call it . This removes the sequence-wide component from every position, while retaining fluctuations around it. The two components need not be viewed as signal and artifact: the sequence mean may itself encode information that remains relevant across the full context, while isolates representational structure that changes with position. Figure 19 shows that the slowly varying tail has a substantial sequence-wide contribution. Even after centering of the activations, correlations approach a non-zero plateau whose magnitude increases with depth. Removing eliminates this plateau. Thus, the increase of the very-long-range tail in the deepest layers reflects information shared broadly across the sequence, whereas the position-dependent component saturates earlier with depth.
Figure 19. Autocorrelation of every layer of Gemma 2 9B on The Pile over the first 50 lags, on linear axes, with the position-wise mean over samples subtracted as in Eq. (1) (a) and with the mean token of each sample subtracted as well (b). One curve per layer, same vertical range in both panels, with the vertical axis starting at zero for readability.
Shuffle control. In terms of SAE latents, the sequence-wide component is set by the activation frequencies: it depends on how often each latent is active in a sequence, and not on when, while the order of the tokens enters only through . We test this reading by permuting at random the token positions of each sequence, for the activations and for the SAE codes computed from them. The permutation keeps, for every latent, the number of tokens of each sequence on which it is active, hence its activation frequency and , and destroys any other temporal pattern. Figure 20 shows the outcome for Gemma 2 2B on The Pile. After the shuffle, the autocorrelation no longer decays with the lag, but it sits on a plateau that grows with depth (Figure 20a). Indeed, for a sequence with activations , the product between two distinct positions, averaged over the permutations, is
whatever the lag between them, and the same average for the fluctuations is the second term alone. Therefore, up to a correction of order , below here, the autocorrelation of the shuffled activations equals at every lag, whereas vanishes, as Figure 20b confirms. The plateau of is thus all that the activation frequencies alone produce, and subtracting removes it.
Persistence of the shuffled sequences. The persistence could also reflect how often the SAE latents are active, rather than when: a latent that is active on a fraction of the tokens, independently at each token, has runs of mean length , which grows with . We measure this contribution under shuffling in Figure 20c for the 1000 most active latents of each layer (strict episodes, Appendix H). In the real order (blue), grows from 1.1 at layer 0 to 1.8. With the positions shuffled within each sequence (yellow), it stays between 1.1 and 1.3. With the tokens shuffled across the whole corpus (red), it coincides with the expectation for latents that are active independently at each token with their corpus frequency , which does not grow with depth. The mean activation frequency of the selected latents does not grow with depth either, staying within 0.03–0.07 at every layer. Therefore, the growth of the persistence with depth is a property of the temporal order of the activations, not of their frequency.
Position-dependent correlations and persistence. Importantly, removing the sequence-wide component does not eliminate the relationship with persistence. The integrated autocorrelation grows through the first half of the network and subsequently saturates, more closely resembling the depth profile of SAE feature persistence (see Figure 21). Correspondingly, the correlation between the two quantities remains high and increases after mean-token removal in most model–corpus pairs (Table 7). For Gemma 2 2B on The Pile, over all 26 layers, the Pearson correlation with the mean persistence goes from for to for (Figure 20d).
Layer dependence of SAE-latent persistence
The persistence statistics of Figure 4b, Figure 4c, Figure 22 and Figure 23 are computed on 2722 samples of each corpus, cut to a common length of 150 to 225 tokens depending on the tokenizer. At each layer we keep the 1000 latents that are active on the largest number of tokens, because rarer latents have too few firing episodes for a stable average. The same rule is applied at every layer, so the set of latents changes from layer to layer. Each latent gets one number, its persistence averaged over its firing episodes, and a layer is summarized by the mean or the median of these numbers over its 1000 latents. The sweep covers every second layer of each model.
Figure 22. SAE-latent persistence as a function of relative depth for the five models: mean (a, b) and median (c, d) over the 1000 most active latents of each layer, for strict firing episodes (; a, c) and with single inactive tokens bridged (; b, d). Markers are the average of The Pile and WikiText, error bars half the difference between the two corpora.

Figure 23. Distribution of the per-latent persistence on The Pile with single inactive tokens bridged (), over the 1000 most active latents of each layer of Gemma 2 2B (a, b), Gemma 2 9B (c, d), Llama-3-8B (e, f), Qwen3-8B (g, h) and Pythia-160M (i, j). Left column: density on log-log axes at seven layers spread over the depth of each model (layers in the legend). Right column: box plots at every layer of the sweep (median line, interquartile box, whiskers at 1.5 interquartile ranges, individual dots beyond), with a logarithmic vertical axis cut at 25 tokens. Layers are colored by relative depth on the same scale in both columns.
Gap tolerance. Sec. 4 ends a firing episode at the first token on which the feature is inactive. An SAE feature can, however, switch off for one token and switch back on at the next. A JumpReLU SAE sets to zero any code below a fixed threshold, and a top- SAE keeps only the largest codes of each token, so a feature that is barely active can drop out for a single token. If such one-token
lapses are noise in the readout rather than the feature really stopping and restarting, its persistence is underestimated.
We therefore implemented a gap-tolerant definition to investigate this phenomenon, where two firing episodes of the same SAE feature separated by a gap are merged together. gives back original setup without any gap tolerance. Figure 4b and Figure 4c use , for which the persistencies are obviously larger. Figure 22 shows that the layer profiles of the SAE latent persistencies do not change qualitatively by the usage of .
One-token lapses are not rare. For a typical feature (the median over the 1000 latents of a layer), 5–11% of its strict episodes are followed by exactly one inactive token and then another episode of the same feature; over individual layers the range is 1–15%.6 Because the bridged episodes are long, bridging them raises the mean persistence of a layer by 10–44% depending on the layer, or 21–35% when averaged over the layers of a model.
Mean and median across depth. Figure 22 completes Figure 4b with the mean (top row) and the median (bottom row) of the per-latent persistence, for strict episodes (, left) and with single lapses bridged (, right). Each marker is the average of the two corpora and the error bar is half their difference. Persistence grows with depth in every model, most steeply over the first half of the network, and flattens or declines slightly over the last quarter. Bridging single lapses raises the persistence by 10–44% depending on the layer, but does not change the order of the layers. The mean is more sensitive than the median to the few latents with very long persistence (Figure 23), and this is what produces the bump in the mean of Gemma 2 9B at about two thirds of its depth, which the median does not show.
Correlation with the integrated autocorrelation. Table 7 asks whether removing the mean token of each sample (Appendix § 13) makes the integrated autocorrelation follow the persistence more closely. For each model and corpus we take the layers of the sweep and compute the Pearson correlation across them between the persistence of a layer, mean or median over its 1000 latents with strict episodes, and either or of the same layer. In most cases except for Gemma2-9b, removing the mean token augments the correlation coefficients.
Distributions of SAE-latent persistence for every model
Each latent has one number, its persistence averaged over its firing episodes. Figure 23 shows how this number is spread over the 1000 latents of a layer, for the five models on The Pile with single lapses bridged (, see Appendix § 14). We show The Pile only. The left column overlays the density of persistence, on log-log axes, at seven layers spread over the depth of the model. The right column shows a box plot for every layer of the sweep, all 26 layers for Gemma 2 2B, with the same colors. At the first layer almost every latent fires for a single token, and the distribution is concentrated just above . With depth, the bulk of the distribution moves to larger and the tail extends to tens of tokens, so both the median and the spread across latents grow. Most of the shift happens over the first half of the network; after that the boxes of consecutive layers overlap. The vertical axis of the box plots is cut at 25 tokens, and fewer than 1% of the latents of any layer lie above the cut. The latents beyond the whiskers, drawn as dots, are present at every depth beyond the first few layers. They pull up the mean persistence of a layer but not its median.
SAE explained variance
Here we report how much of each layer’s activation the SAE reconstructs. For every layer we compute
where is the raw activation at token position , its SAE reconstruction from the codes , and the sums run over all positions of 300 samples of each corpus, cut to a common length. We call the explained variance, as is customary, but the activations in Eq. (23) are not centered, so it is the fraction of the squared norm of the activations that the reconstruction recovers.
Massive activations. A few tokens have activations whose norm is ten to a hundred times larger than any other token’s [45]. The first token of every sample is one of them. In Qwen3-8B, from the middle of the network on, there is sometimes a second such token per sample; on The Pile it is usually a digit token, on WikiText the first content token after a short opening one. The SAEs used here do not reconstruct such activations well, and since Eq. (23) sums squared errors, fewer than one token in a thousand would otherwise dominate it; at layers 6–15 of Qwen3-8B these tokens hold essentially all of the reconstruction error. We therefore exclude, at every layer and for every model, the tokens whose squared norm exceeds 20 times the median squared norm of the layer, after discarding the beginning-of-sequence position for the models whose tokenizer prepends one. The two groups of tokens are separated by a wide margin, so the exact value of the threshold does not matter. The rule removes at most 0.4% of the tokens for four of the five models and at most 0.9% for Pythia-160M. It changes by less than 0.03 for every model but Qwen3-8B, where the excluded tokens held most of the error.
Figure 24. SAE explained variance, Eq. (23), as a function of relative depth for the five models, on The Pile (filled markers, solid lines) and WikiText (hollow markers, dashed lines), 300 samples per corpus, massive-activation tokens excluded as described in the text.
Fig. 24 shows across depth. The two corpora give nearly the same values. For every model, stays above 0.7 at every layer, and above 0.8 at most of them; the lowest values are those of the Llama-3-8B SAEs, and of the Qwen3-8B SAEs in the second half of the network. The reconstruction is therefore not perfect, but it is good enough for the SAE latents to stand in for the activations in all our experiments. The part of the activations that the SAEs miss is also one reason why Table 1 does not reach zero even when every active latent is removed.
Autocorrelations without clipping the activations
The autocorrelations of Figure 1b and Figure 18, and every and built from them, are computed on clipped activations (Appendix § 12). To check that the clipping does not shape the results, we repeat the measurement for Gemma 2 9B on both corpora with the raw activations, everything else unchanged. Figure 25 shows the outcome. The autocorrelation curves without clipping (a) are the same as in Figure 1b: the layers order by depth in the same way and decay at the same rate. The integrated correlation is slightly larger without clipping in the second half of the network (b), where the raw activations have a heavier tail, but its growth with depth and the position of its maximum are unchanged. With the mean token of each sample removed (c), both versions grow over the first half of the network and mildly decrease in the second half of the network. The conclusions of the main text and of Appendix § 13 therefore do not depend on the clipping.
Figure 25. Control without clipping, Gemma 2 9B. (a) Autocorrelation of every layer on The Pile computed on the raw activations, drawn as Figure 1b. (b) Integrated correlation and (c) its version with the mean token of each sample removed, , against relative depth, on clipped (circles) and raw (squares) activations. Markers are the average of The Pile and WikiText, error bars half the difference between the two corpora.
Norm removed by the SAE ablations
The ablation of Eq. (9) removes, at position , the fraction
of the squared norm of the activation. For every episode of Table 1 we average over the ablated positions at which latent is active, for the persistent latent (all of them, by construction) and for the a-control. Figure 26 shows the two distributions for Gemma 2 9B on WikiText. Where both latents are active, the a-control removes a median 0.29% of the squared norm against 1.2% for the persistent latent, roughly a factor 4, and the persistent latent removes more in 80% of the episodes.

Figure 26. Removed fraction of squared norm, Eq. (24), averaged over the ablated positions at which the latent is active, for the persistent latent and the a-control of Table 1. Gemma 2 9B, layer 41, WikiText, 500 episodes; activations centred by the layer mean, as in the ablation experiment.
Temporal persistence and projection magnitude are, in principle, independent properties: a feature may remain active across many tokens while accounting for only a small fraction of the activation norm, or have a large projection over a short span. Interestingly, our results show that these two properties are coupled in our experimental setting, with persistent features also capturing a larger fraction of the activation norm when active.
References
- [1]Santiago Acevedo, Alessandro Laio, and Marco Baroni. Differential syntactic and semantic encoding in llms. arXiv preprint arXiv:2601.04765, 2026a. URL https://arxiv.org/abs/2601.04765.
- [2]Santiago Acevedo, Andrea Mascaretti, Riccardo Rende, Matéo Mahaut, Marco Baroni, and Alessandro Laio. A quantitative analysis of semantic information in deep representations of text and images. Transactions on Machine Learning Research, 2026b. URL https://openreview.net/forum?id=sBnaFSIuGR.arxiv.org/abs/2505.17101
- [3]Zeyuan Allen-Zhu and Yuanzhi Li. Physics of language models: Part 1, learning hierarchical language structures. arXiv preprint arXiv:2305.13673, 2023.
- [4]Enrique Alvarez-Lacalle, Beate Dorow, Jean-Pierre Eckmann, and Elisha Moses. Hierarchical structures induce long-range dynamical correlations in written texts. Proceedings of the National Academy of Sciences, 103(21):7956–7961, 2006. doi: 10.1073/pnas.0510673103.
- [5]Daniel Balcells, Benjamin Lerner, Michael Oesterle, Ediz Ucar, and Stefan Heimersheim. Evolution of sae features across layers in llms. arXiv preprint arXiv:2410.08869, 2024. URL https://arxiv.org/abs/2410.08869.
- [6]Usha Bhalla, Alex Oesterling, Claudio Mayrink Verdun, Hima Lakkaraju, and Flavio Calmon. Temporal sparse autoencoders: Leveraging the sequential nature of language for interpretability. In The Fourteenth International Conference on Learning Representations, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/hash/e4c2d7ec1f8c6020ee69c3101dcbaadc-Abstract-Conference.html.arxiv.org/abs/2511.05541
- [7]Stella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley, Kyle O’Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, Aviya Skowron, Lintang Sutawika, and Oskar van der Wal. Pythia: A suite for analyzing large language models across training and scaling. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 2397–2430. PMLR, 2023.arxiv.org/abs/2304.01373
- [9]Francesco Cagnetta, Leonardo Petrini, Umberto M. Tomasini, Alessandro Favero, and Matthieu Wyart. How deep neural networks learn compositional data: The random hierarchy model. Physical Review X, 14:031001, 2024. doi: 10.1103/PhysRevX.14.031001. URL https://doi.org/10.1103/PhysRevX.14.031001.
- [10]Francesco Cagnetta, Alessandro Favero, Antonio Sclocchi, and Matthieu Wyart. Scaling laws and representation learning in simple hierarchical languages: Transformers versus convolutional architectures. Physical Review E, 112(6):065312, 2025. doi: 10.1103/qt d6-nl8p. URL https://doi.org/10.1103/qtd6-nl8p.
- [11]Francesco Cagnetta, Allan Raventós, Surya Ganguli, and Matthieu Wyart. Deriving neural scaling laws from the statistics of natural language. In Forty-third International Conference on Machine Learning, 2026. URL https://arxiv.org/abs/2602.07488.
- [12]Emily Cheng, Diego Doimo, Corentin Kervadec, Iuri Macocco, Lei Yu, Alessandro Laio, and Marco Baroni. Emergence of a high-dimensional abstraction phase in language transformers. In The Thirteenth International Conference on Learning Representations, 2025. URL https://openreview.net/forum?id=0fD3iBblv.arxiv.org/abs/2405.15471
- [13]Boyi Deng, Xu Wang, Yaoning Wang, Yu Wan, Yubo Ma, Baosong Yang, Haoran Wei, Jialong Tang, Huan Lin, Ruizhe Gao, Tianhao Li, Qian Cao, Xuancheng Ren, Xiaodong Deng, An Yang, Fei Huang, Daiyiheng Liu, and Jingren Zhou. Qwen-scope: Turning sparse features into development tools for large language models. arXiv preprint arXiv:2605.11887, 2026.arxiv.org/abs/2605.11887
- [14]Pablo J Diego Simon, Stéphane d’Ascoli, Emmanuel Chemla, Yair Lakretz, and Jean-Rémi King. A polar coordinate system represents syntax in large language models. Advances in Neural Information Processing Systems, 37:105375–105396, 2024.
- [15]EleutherAI. sparsify: Sparsify transformers with SAEs and transcoders. https://github.com/EleutherAI/sparsify, 2024. Checkpoints sae-pythia-160m-32k and sae-llama-3-8b-32k.
- [16]Joshua Engels, Eric J Michaud, Isaac Liao, Wes Gurnee, and Max Tegmark. Not all language model features are one-dimensionally linear. arXiv preprint arXiv:2405.14860, 2024.arxiv.org/abs/2405.14860
- [17]Ragnar Frisch and Frederick V. Waugh. Partial time regressions as compared with individual trends. Econometrica, 1(4):387–401, 1933.DOI
- [18]Leo Gao, Stella Biderman, Sid Black, Laurence Golding, Travis Hoppe, Charles Foster, Jason Phang, Horace He, Anish Tite, Noa Nabeshima, Shawn Presser, and Connor Leahy. The Pile: An 800GB dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027, 2020.
- [19]Leo Gao, Tom Dupré la Tour, Henk Tillman, Gabriel Goh, Rajan Troll, Alec Radford, Ilya Sutskever, Jan Leike, and Jeffrey Wu. Scaling and evaluating sparse autoencoders. In International Conference on Learning Representations, 2025.arxiv.org/abs/2406.04093
- [20]Jerome Garnier-Brun, Marc Mezard, Emanuele Moscato, and Luca Saglietti. How transformers learn structured data: Insights from hierarchical filtering. In Forty-second International Conference on Machine Learning, 2025. URL https://openreview.net/forum?id=AVXApUBCvN.
- [21]Gemma Team, Morgane Riviere, Shreya Pathak, Pier Giuseppe Sessa, Cassidy Hardin, Surya Bhupatiraju, Léonard Hussenot, Thomas Mesnard, Bobak Shahriari, Alexandre Ramé, et al. Gemma 2: Improving open language models at a practical size. arXiv preprint arXiv:2408.00118, 2024.
- [22]Nigel Goldenfeld. Lectures on Phase Transitions and the Renormalization Group. CRC Press, Boca Raton, FL, 2018.
- [23]Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhari, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.arxiv.org/abs/2407.21783
- [24]Wes Gurnee, Emmanuel Ameisen, Isaac Kauvar, Julius Tarng, Adam Pearce, Chris Olah, and Joshua Batson. When models manipulate manifolds: The geometry of a counting task. Transformer Circuits Thread, 2025. URL https://transformer-circuits.pub/2025/linebreaks/index.html.arxiv.org/abs/2601.04480
- [25]Wes Gurnee, Nicholas Sofroniew, Adam Pearce, Mateusz Piotrowski, Isaac Kauvar, Runjin Chen, Anna Soligo, Paul Bogdan, Euan Ong, Rowan Wang, T. Ben Thompson, David Abrahams, Subhash Kantamneni, Emmanuel Ameisen, Joshua Batson, and Jack Lindsey. Verbalizable representations form a global workspace in language models. Transformer Circuits Thread, July 2026. URL https://transformer-circuits.pub/2026/workspace/.
- [26]Eghbal A. Hosseini and Evelina Fedorenko. Large language models implicitly learn to straighten neural sentence trajectories to construct a predictive representation of natural language. In Advances in Neural Information Processing Systems, volume 36, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/88dddaf430b5bc38ab8228902bb61821-Abstract-Conference.html.
- [27]Robert Huben, Hoagy Cunningham, Logan Riggs Smith, Aidan Ewart, and Lee Sharkey. Sparse autoencoders find highly interpretable features in language models. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=F76bwRSL eK.
- [28]Minyoung Huh, Brian Cheung, Tongzhou Wang, and Phillip Isola. Position: The platonic representation hypothesis. In Ruslan Salakhutdinov, Zico Kolter, Katherine Heller, Adrian Weller, Nuria Oliver, Jonathan Scarlett, and Felix Berkenkamp (eds.), Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 20671–20642. PMLR, 21–27 Jul 2024. URL https://proceedings.mlr.press/v235/huh24a.html.
- [29]Jack King, Evelina Fedorenko, and Eghbal A. Hosseini. Representational curvature modulates behavioral uncertainty in large language models. arXiv preprint arXiv:2604.23985, 2026. URL https://arxiv.org/abs/2604.23985.
- [30]Tom Lieberum, Senthooran Rajamanoharan, Arthur Conmy, Lewis Smith, Nicolas Sonnerat, Vikrant Varma, János Kramár, Anca Dragan, Rohin Shah, and Neel Nanda. Gemma scope: Open sparse autoencoders everywhere all at once on Gemma 2. In Proceedings of the 7th BlackboxNLP Workshop: Analyzing and Interpreting Neural Networks for NLP, pp. 278–300, 2024.
- [31]Henry W. Lin and Max Tegmark. Critical behavior in physics and probabilistic formal languages. Entropy, 19(7):299, 2017. doi: 10.3390/e19070299.DOI
- [32]Jack Lindsey, Wes Gurnee, Emmanuel Ameisen, Brian Chen, Adam Pearce, Nicholas L. Turner, Craig Citro, David Abrahams, Shan Carter, Basil Hosmer, Jonathan Marcus, Michael Sklar, Adly Templeton, Trenton Bricken, Callum McDougall, Hoagy Cunningham, Thomas Henighan, Adam Jermyn, Andy Jones, Andrew Persic, Zhenyi Qi, T. Ben Thompson, Sam Zimmerman, Kelley Rivoire, Thomas Conerly, Chris Olah, and Joshua Batson. On the biology of a large language model. Transformer Circuits Thread, 2025. URL https://transformer-circuits.pub/2025/attribution-graphs/biology.html.
- [33]Michael C. Lovell. Seasonal adjustment of economic time series and multiple regression analysis. Journal of the American Statistical Association, 58(304):993–1010, 1963.DOI
- [34]Ekdeep Singh Lubana, Can Rager, Sai Sumedh R. Hindupur, Valérie Costa, Greta Tuckute, Oam Patel, Sonia Krishna Murthy, Thomas Fel, Daniel Wurgat, Eric J. Bigelow, Johnny Lin, Demba Ba, Martin Wattenberg, Fernanda Viegas, Melanie Weber, and Aaron Mueller. Priors in time: Missing inductive biases for language model interpretability. In The Fourteenth International Conference on Learning Representations, 2026. URL https://proceedings.iclr.cc/paper_files/paper/2026/hash/45f7d161845e402f69c8f8b4d04fa447-Abstract-Conference.html.arxiv.org/abs/2511.01836
- [35]Haoyan Luo, Mateo Espinosa Zarlenga, and Mateja Jamnik. Persistent sparse autoencoders: Learning feature timescales in language models, 2026. URL https://arxiv.org/abs/2607.17117.
- [36]C. D Manning, K. Clark, J. Hewitt, U. Khandelwal, and O. Levy. Emergent linguistic structure in artificial neural networks trained by self-supervision. Proceedings of the National Academy of Sciences, 117(48):30046–30054, 2020.DOI
- [37]Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In International Conference on Learning Representations, 2017.arxiv.org/abs/1609.07843
- [38]Eric J. Michaud. What is the purpose of interpretability?, 2026. URL https://ericjmichaud.com/interp-purpose.
- [39]Kiho Park, Yo Joong Choe, and Victor Veitch. The linear representation hypothesis and the geometry of large language models. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pp. 39643–39666. PMLR, 2024. URL https://proceedings.mlr.press/v235/park24c.html.arxiv.org/abs/2311.03658
- [40]Jack T. Parley, Francesco Cagnetta, and Matthieu W yart. Deep networks learn to parse uniform-depth context-free languages from local statistics. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=mTgkPAfdiK.arxiv.org/abs/2602.06065
- [41]M. E. Peters, M. Neumann, L. Zettlemoyer, and W. Yih. Dissecting contextual word embeddings: Architecture and representation. In Ellen Riloff, David Chiang, Julia Hockenmaier, and Jun’ichi Tsujii (eds.), Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 1499–1509, Brussels, Belgium, 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1179. URL https://aclanthology.org/D18-1179.DOI
- [42]Laura Ying Schulz, Daniel Mitropolsky, and Tomaso Poggio. Unraveling syntax: Language modeling and the substructure of grammars. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=sPIXjSkDFG.arxiv.org/abs/2510.02524
- [43]Adam S. Shai, Sarah E. Marzen, Lucas Teixeira, Alexander Gietelink Oldenziel, and Paul M. Riechel ers. Transformers represent belief state geometry in their residual stream. In Advances in Neural Information Processing Systems, volume 37, 2024. URL https://arxiv.org/abs/2405.15943.
- [44]David Skrill and Samuel V. Norman-Haignere. Large language models transition from integrating across position-yoked, exponential windows to structure-yoked, power-law windows. In Advances in Neural Information Processing Systems, volume 36, pp. 638–654, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/020ad0ac6a1974e6748e4a5a48110a07-Abstract-Conference.html.
- [45]Mingjie Sun, Xinlei Chen, J. Zico Kolter, and Zhuang Liu. Massive activations in large language models. arXiv preprint arXiv:2402.17762, 2024.arxiv.org/abs/2402.17762
- [46]Xiaoqing Sun, Alessandro Stolfo, Joshua Engels, Ben Wu, Senthooran Rajamanoharan, Mrinmaya Sachan, and Max Tegmark. Dense sae latents are features, not bugs. In Advances in Neural Information Processing Systems, volume 38, 2025. URL https://arxiv.org/abs/2506.15679.
- [47]I. Tenney, D. Das, and E. Pavlick. BERT rediscovers the classical NLP pipeline. In Anna Korhonen, David Traum, and Lluís Márquez (eds.), Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, pp. 4593–4601, Florence, Italy, 2019. Association for Computational Linguistics. doi: 10.18653/v1/P19-1452. URL https://aclanthology.org/P19-1452.DOI
- [48]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, et al. Qwen3 technical report. arXiv preprint arXiv:2505.09388, 2025.arxiv.org/abs/2505.09388
- [49]Zhiling Zhou, Tianhao Wang, and Zhuoran Yang. How transformers represent hierarchies: A local-to-global mechanism. In Forty-third International Conference on Machine Learning, 2026. URL https://openreview.net/forum?id=ScLLtpPoaE.









