betaFeedback

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 ϕt(ℓ)\phi_{t}^{(\ell)} (layer ℓ\ell, token position t=1,…,Tt = 1, \ldots, T) standardised so that E[ϕ]=0\mathbb{E}[\phi] = 0, E[∥ϕ∥2]=1\mathbb{E}[\lVert\phi\rVert^{2}] = 1, we define2 an autocorrelation function of neural activations as

cℓ(τ):=E[ϕT−τ(ℓ)⋅ϕT(ℓ)].(1)c_{\ell}(\tau) := \mathbb{E}\left[\phi_{T-\tau}^{(\ell)} \cdot\phi_{T}^{(\ell)}\right]. \tag*{(1)}

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 cℓ(τ)c_\ell(\tau) (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 ℓ\ell can only compute latent variables of depth ℓ\ell—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 cℓ(τ)c_\ell(\tau), 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 χℓ=∑τcℓ(τ)\chi_{\ell} = \sum_{\tau} c_{\ell}(\tau) (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).

RHM composition of the autocorrelations of layer 4

Figure 2. RHM: composition of the autocorrelations of layer 4. Left: the relevant latents X15(4)X_{15}^{(4)}, X7(3)X_7^{(3)} and X3(2)X_3^{(2)} in the subtree of the anchor X31X_{31} (red ring), with the lag axis below the leaves. Right: measured autocorrelation c4(τ)c_4(\tau) (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 X15(4)X_{15}^{(4)} (between lags 1 and 2), X7(3)X_7^{(3)} (between lags 3 and 4), and X3(2)X_3^{(2)} (between 7 and 8).

RHM autocorrelations and validation loss

Figure 3. RHM: the autocorrelations develop stage by stage. Left: Validation loss of the last token, X32X_{32} given X1,…,X31X_1,\ldots,X_{31}, against the training step. Dashed lines: the plateau values of the stages, i.e. the conditional entropy of depth-hh 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 ψ\psi (see § 4). Panel c): Median persistence against the integrated autocorrelation χℓ\chi_\ell, one point per layer; rr 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 (Δ\Delta, %)corpus1 latent3 latentsall latentsa-controle+1e+1e+2e+2e+3e+3
Gemma 2 2BPile−3.9−7.5−58.8−0.0−0.4+0.0+0.2
Gemma 2 2BWikiText−3.2−5.8−68.3+0.0−0.5−0.2+0.0
Gemma 2 9BPile−3.2−6.2−53.0−0.0−1.2−1.3−1.2
Gemma 2 9BWikiText−3.0−4.6−53.1+0.0−1.3−1.0−1.1
Pythia-160MPile−12.2−18.0−43.7−0.7−8.4−9.4−7.0
Pythia-160MWikiText−13.3−24.3−60.4−0.7−8.1−8.6−9.0
Llama-3-8BPile−4.4−5.6−68.1−0.1−2.1−1.7−1.5
Llama-3-8BWikiText−4.2−4.4−64.3+0.0−1.8−1.4−1.2
Qwen3-8BPile−6.8−20.3−65.8−0.2−4.2−4.6−3.5
Qwen3-8BWikiText−7.3−10.3−67.6−0.1−3.8−3.7−3.5

Table 1. Change Δ\Delta (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 e+1e+1, e+2e+2 and e+3e+3 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 (Xt)t=1…T(X_t)_{t=1\ldots T} be discrete tokens with vocabulary size vv, and denote with et∈Rve_t \in\mathbb{R}^{v} the one-hot encodings,

(et)i={1if Xt=i,0otherwise.(2)(e_t)_i = \begin{cases} 1 & \text{if } X_t = i,\\ 0 & \text{otherwise.} \end{cases} \tag*{(2)}

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,

E[(et)i]=P(Xt=i),E[eT⋅eT−τ]=P(XT=XT−τ).(3)\mathbb{E}[(e_t)_i] = P(X_t = i), \qquad\mathbb{E}[e_T \cdot e_{T-\tau}] = P(X_T = X_{T-\tau}). \tag*{(3)}

Centering by subtracting E[et]\mathbb{E}[e_t] 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

E[(eT−τ−E[eT−τ])⋅(eT−E[eT])]=P(XT−τ=XT)−∑iP(Xt=i)2.(4)\mathbb{E}[(e_{T-\tau} - \mathbb{E}[e_{T-\tau}]) \cdot(e_T - \mathbb{E}[e_T])] = \mathbb{P}(X_{T-\tau} = X_T) - \sum_i \mathbb{P}(X_t = i)^2. \tag*{(4)}

After the embedding, layer-0 (non-standardised) activations read ϕt=Wet+pt\phi_t = W e_t + p_t, where W∈Rd×vW \in\mathbb{R}^{d \times v} is the embedding matrix and pt∈Rdp_t \in\mathbb{R}^{d} the positional encoding. Centering removes ptp_t, thus

E[(ϕT−τ−E[ϕT−τ])⋅(ϕT−E[ϕT])]=E[(eT−τ−E[eT−τ])TWTW(eT−E[eT])].(5)\mathbb{E}[(\phi_{T-\tau} - \mathbb{E}[\phi_{T-\tau}]) \cdot(\phi_T - \mathbb{E}[\phi_T])] = \mathbb{E}[(e_{T-\tau} - \mathbb{E}[e_{T-\tau}])^{\mathsf{T}} W^{\mathsf{T}} W (e_T - \mathbb{E}[e_T])]. \tag*{(5)}

The only difference from Eq. (4) is the matrix WTWW^{\mathsf{T}}W between the two centered encodings, with entries (WTW)ij=wi⋅wj(W^{\mathsf{T}}W)_{ij} = w_i \cdot w_j equal to the dot-product between the embedding vectors of tokens ii and jj. If the embedding vectors were orthogonal with equal norm, WTWW^{\mathsf{T}}W 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 d−1/2d^{-1/2}. 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:

ϕt(ℓ)=At(ℓ)eZ+ϵt(ℓ),(6)\phi_t^{(\ell)} = A_t^{(\ell)} e_{\mathbf{Z}} + \epsilon_t^{(\ell)}, \tag*{(6)}

where the one-hot encodings of the tokens are replaced by those of the latent features Z\mathbf{Z}, the embedding vectors by feature directions, i.e. the columns of At(ℓ)A_t^{(\ell)}, and ϵt(ℓ)\epsilon_t^{(\ell)} represents a residual component uncorrelated from the latent features Z\mathbf{Z}. 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,

cℓ(τ)=cℓcode(τ)+cℓres(τ),{cℓcode(τ)∝Tr⁡[AT(ℓ)Cov⁡(eZ)AT−τ(ℓ)T],cℓres(τ)∝E[ϵT−τ(ℓ)⋅ϵT(ℓ)].(7)c_\ell(\tau) = c_\ell^{\mathrm{code}}(\tau) + c_\ell^{\mathrm{res}}(\tau), \qquad \begin{cases} c_\ell^{\mathrm{code}}(\tau) \propto\operatorname{Tr}\left[A_T^{(\ell)} \operatorname{Cov}(e_{\mathbf{Z}}) A_{T-\tau}^{(\ell)\mathsf{T}}\right],\\ c_\ell^{\mathrm{res}}(\tau) \propto\mathbb{E}\left[\epsilon_{T-\tau}^{(\ell)} \cdot\epsilon_T^{(\ell)}\right]. \end{cases} \tag*{(7)}

Expanding Cov⁡(eZ)\operatorname{Cov}(e_{\mathbf{Z}}) over pairs of nodes splits cℓcodec_\ell^{\mathrm{code}} 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 v=32v = 32, m=8m = 8 rules per symbol, and depth 5 for both transformer and data-generating process. All sequences have length T=25T = 25; The model reads a beginning-of-sequence token [BOS] followed by X1,…,X31X_1, \ldots, X_{31} and predicts X1,…,X32X_1, \ldots, X_{32}.

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 26−1=632^6 - 1 = 63 nodes of the tree, including the 32 tokens, in a single vector eZe_{\mathbf{Z}}; ii) Fit the matrices At(ℓ)A_t^{(\ell)} via ordinary least squares on the activations. Note that At(ℓ)A_t^{(\ell)} is a dd-by-(v×63)(v \times63) matrix, assigning a different dd-vector to each possible value (out of vv) of any of the 63 values Z\mathbf{Z}. We refer to each block of vv dd-vectors as the code of Z\mathbf{Z}. In addition, the residuals ϵt(ℓ)\epsilon_t^{(\ell)} 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 X1X_1 at all layers. Hence, position-1 activations encode X1X_1 independently of layer.

  • In layer 1, the encoding of position 2 changes to the parent latent variable X1(L−1)X_1^{(L-1)} (orange) as predicted. The parent perfectly summarises the effect of the input pair (X1,X2)(X_1, X_2) 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 (X3,X4)(X_3, X_4) and (X1,X2)(X_1, X_2) is not visible in layer 1, because it stems from the depth-2 dependency between the parents X1(L−1)X_1^{(L-1)} and X2(L−1)X_2^{(L-1)}.

Codes of layer 1 on the data tree, positions $t = 24$–$31$

Figure 11. Codes of layer 1 on the data tree, positions t=24t = 24–3131 (one panel each, tt in the top-left corner). Each panel shows the depth-4 subtree of X2(1)X_2^{(1)} (root in the figures), whose leaves are the last 16 tokens X17,…,X32X_{17}, \ldots, X_{32}. Squares mark the production rules. The colour of each node is the strength SZS_Z of its code in the activation at position tt (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 XtX_t, while the tokens already read are surrounded by black rings. Layer 1 holds one dominant code per position, alternating with the parity of tt: odd positions encode the current token; even positions encode the pair they complete. Even tt’s also hold a small code of the children, and t≡3(mod4)t \equiv3 \pmod{4} a small code of the previous parent (see t=27,31t = 27,31). 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 X1(L−1)X_1^{(L-1)} (illustrated as a 2-slot box in Figure 1d), whose influence on (X3,X4)(X_3, X_4) is now visible. Position 4 summarises the length-4 input X1:4X_{1:4} with the corresponding grandparent variable X1(L−2)X_1^{(L-2)} (green). The resulting length-4 pattern repeats periodically across the whole context (sketch in Figure 1d), reproduced by the measured codes in Figure 12.

Codes of layer 2 on the data tree for $t=24$–$31$, showing the data-tree nodes, residual percentages, activation-variance percentages, and color scale $S_k$ from $10^{-5}$ to $10^{0}$

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 tt 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 t=26t=26, 27 and t=30t=30, 31 (code formed at t≡2(mod4)t \equiv2 \pmod{4}, then kept at the next position next to the current token).

  • Layer 3 follows this construction: position 8 encodes the great-grandparent X1(L−3)X_1^{(L-3)} (red), and positions 5-to-7 acquire an encoding of the last grandparent X1(L−2)X_1^{(L-2)}. However, the measured codes also reveal structures expected to be found in layer 4: a partial encoding of the depth-4 variable X1(L−4)X_1^{(L-4)} in the first half of the context, and persistence of the encoding of the great-grandparents X1(L−3)X_1^{(L-3)} beyond their first emergence, albeit with decreased strength (e.g., X3(2)X_3^{(2)} 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.

Codes of layer 3 on the data tree

Figure 13. Codes of layer 3 on the data tree, as in Figure 11; the top-left corner also reports the strength of X1(1)X_{1}^{(1)}, the depth-4 variable outside the subtree. The depth-3 variable X2(3)X_{2}^{(3)} is formed at t=24t=24 (90%) and persists, fading, over the rest of the span of its parent (79% at t=25t=25 down to 2.6% at t=31t=31), while the local pattern of layer 2 repeats beneath it (pairs at t=26t=26, 30, the 4-span X7(3)X_{7}^{(3)} at t=28t=28). From t=28t=28 the still-open depth-4 variable X2(1)X_{2}^{(1)} receives a partial code (7% at the root of the subtree), whereas the completed X1(1)X_{1}^{(1)} is not encoded at any of these positions. The residual is small where one code dominates (2–3% at t=24t=24, 25) and reaches 20–46% elsewhere. At t=31t=31, the three variables whose spans contain both X31X_{31} and the earlier positions (X15(4)X_{15}^{(4)}, X7(3)X_{7}^{(3)}, X3(2)X_{3}^{(2)} 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 t=31t = 31, since X32X_{32} 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 X32X_{32} (Cagnetta & Wyart, 2024): X31X_{31}, then X15(4)X_{15}^{(4)}, parent of X29:30X_{29:30}, 2^{2} then X7(3)X_7^{(3)}, grandparent of X25:28X_{25:28}, and X3(2)X_3^{(2)}, great-grandparent of X17:24X_{17:24} (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 X15(4)X_{15}^{(4)}, lag 4 for X7(3)X_7^{(3)} and lag 8 for X3(2)X_3^{(2)}. 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.

Composition of the autocorrelations of layers 3 and 4

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 X15(4)X_{15}^{(4)}, X7(3)X_{7}^{(3)} and X3(2)X_{3}^{(2)} 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, X32X_{32}, 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-hh subtrees (dashed lines), compatibly with a model that has learned only a portion of the latent hierarchical structure, hence treats blocks of 2h2^{h} 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-kk SAEs (Gao et al., [19]) released by EleutherAI (EleutherAI, [15]), and Qwen3-8B (Yang et al., [48]) with the top-kk 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 τ\tau we get a scalar value quantifying the amount of autocorrelation of each layer, the integrated autocorrelation

χℓ=∑τcℓ(τ).(8)\chi_{\ell} = \sum_{\tau} c_{\ell}(\tau). \tag*{(8)}

χ\chi 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 cℓ(τ)c_{\ell}(\tau), 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 tt 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: ψ=e−s+1\psi= e - s + 1 for starting position ss and ending position ee (see Figure 5, upper row). We report persistencies averaged per feature: record ψ\psi 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. ss and ee 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 χ~ℓ\widetilde{\chi}_\ell remains strongly correlated with persistence, in most cases more than χℓ\chi_\ell (see Table 7). Furthermore, χ~ℓ\widetilde{\chi}_\ell 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 cℓ(τ)c_\ell(\tau) of every layer after permuting at random the token positions of each sequence. (b) The same with the mean mm of each sequence subtracted, c~ℓ(τ)\tilde{c}_\ell(\tau). (c) Mean persistence ψ\psi 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, χℓ\chi_\ell (hollow) and χ~ℓ\tilde{\chi}_\ell (filled), both measured in the real order, one point per layer; rr is the Pearson correlation over the 26 layers.

Figure 21. Layer dependence of the integrated autocorrelation with the mean token of each sample removed, χ~ℓ\tilde{\chi}_{\ell}, for the five models, as Figure 4a for χℓ\chi_{\ell}. Markers are the average of The Pile and WikiText, error bars half the difference between the two corpora.

Modelcorpusmean persistence χ\chimean persistence χ~\tilde{\chi}median persistence χ\chimedian persistence χ~\tilde{\chi}
Gemma 2 2BThe Pile0.900.950.870.87
Gemma 2 2BWikiText0.920.950.850.88
Gemma 2 9BThe Pile0.600.540.930.78
Gemma 2 9BWikiText0.590.530.870.84
Pythia-160MThe Pile0.810.960.690.88
Pythia-160MWikiText0.680.840.500.72
Llama-3-8BThe Pile0.710.830.680.79
Llama-3-8BWikiText0.710.800.530.74
Qwen3-8BThe Pile0.720.790.620.67
Qwen3-8BWikiText0.890.910.780.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 (χ\chi) or with the mean token of each sample removed (χ~\tilde{\chi}). Vertical lines separate the χ/χ~\chi/\tilde{\chi} 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 ϕt3\phi_t^3 and an SAE feature ii, ablation is performed by removing the projection of ϕt\phi_t along the decoding vector Wdec(i)W_{\mathrm{dec}}(i) of the SAE decoder:

ϕ~t=ϕt−⟨ϕt,Wdec(i)⟩∥Wdec(i)∥2Wdec(i).(9)\widetilde{\phi}_t = \phi_t - \frac{\left\langle\phi_t, W_{\mathrm{dec}}(i)\right\rangle}{\left\lVert W_{\mathrm{dec}}(i)\right\rVert^2} W_{\mathrm{dec}}(i). \tag*{(9)}

We ablate token positions t=s,s+1,…,e−1t = s, s+1, \ldots, e-1, such that the reference token ee is not simultaneously ablated, then report the mean change in autocorrelations

Δ=1e−s∑t=se−1E[(ϕ~t−ϕt)⋅ϕe](10)\Delta= \frac{1}{e-s}\sum_{t=s}^{e-1}\mathbb{E}\left[\left(\widetilde{\phi}_t-\phi_t\right)\cdot\phi_e\right] \tag*{(10)}

Δ\Delta 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 Δ\Delta 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 ss, but not persistent inside the window, for which we expect a much smaller Δ\Delta. The ablation of all active latents (sixth column) using the SAE intermediate representation does not remove all the baseline autocorrelations (i.e., ∣Δ∣<100|\Delta| < 100), as expected from imperfect SAE reconstructions (reported in Appendix § 16). The last three columns of Table 1 show the magnitude of Δ\Delta for the case in which the reference token is outside the measured firing episode of the latent (e+1e+1, e+2e+2, e+3e+3, see Figure 5 bottom row). As expected, the effect of the ablation is not negligible, but smaller than that measured using position ee as reference (third column), and moreover it decays with the distance to the ee 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, E[ϕτ−T(ℓ)ϕτ(ℓ)⊤]∈RD×D\mathbb{E}\left[\phi_{\tau-T}^{(\ell)}\phi_{\tau}^{(\ell)\top}\right] \in\mathbb{R}^{D \times D}. 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 cℓ(τ)c_{\ell}(\tau) 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 T=2LT = 2^L tokens along a binary tree of depth LL, all of whose variables, latent and visible, take values in a set of vv symbols. At each level l=0,…,L−1l = 0,\ldots,L - 1 below the root, each symbol a=1,…,va = 1,\ldots,v is assigned mm production rules a→(b,c)a \to(b,c), replacing it with a pair of symbols of level l+1l + 1. Rules are unambiguous: The vmvm right-hand sides are sampled uniformly without replacement among the v2v^2 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 mm rules, chosen uniformly and independently of everything else. Each of the resulting symbols is itself expanded by one of its mm rules, chosen uniformly and independently of everything else. The iterative expansion ends after LL levels. The kk-th variable at level ℓ\ell is denoted with Xk(ℓ)X_k^{(\ell)}, having depth (i.e. distance from the input tokens) h=L−ℓh = L - \ell. Xk(ℓ)X_k^{(\ell)} spans the 2h2^h tokens X(k−1)2h+1,…,Xk2hX_{(k-1)2^h+1},\ldots,X_{k2^h}. The root spans the whole sentence, while depth-1 variables span pairs of adjacent input tokens. We use L=5L = 5, v=32v = 32 and m=8m = 8: 25=322^5 = 32 input tokens, 31 hidden nodes and vm=256vm = 256 grammatical pairs per level out of v2=1024v^2 = 1024. 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 P(Xt+1∣X1:t)\mathbb{P}(X_{t+1} \mid X_{1:t}) is computed exactly by belief propagation, and its conditional entropy ν\nu, averaged over contexts, is the optimal cross-entropy loss at position tt. The average over all positions,

1T∑t=0T−1H(Xt+1∣X1:t)=1TH(X1:T)(11)\frac{1}{T}\sum_{t=0}^{T-1} H(X_{t+1} \mid X_{1:t}) = \frac{1}{T}H(X_{1:T}) \tag*{(11)}

is the optimal autoregressive loss.

Model. We consider a decoder-only GPT-2-style transformer: learned token and absolute positional embeddings of dimension d=768d = 768, 5 pre-LayerNorm blocks with 12 attention heads and an MLP of width 4d4d, a final LayerNorm and a linear readout; no dropout, no weight decay. Weights are initialised as standard Gaussians with the 1/fan-in1/\sqrt{\text{fan-in}} factors applied in the forward pass, and the readout is scaled by 1/d1/d, 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 X1,…,X32X_1,\ldots,X_{32} autoregressively. Layer ℓ=1,…,5\ell= 1,\ldots,5 of the main text is the residual stream after block ℓ\ell, 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 3×10−33 \times10^{-3}, batch size 1024, linear warm-up over 8 steps and cosine decay to learning rate 3×10−43 \times10^{-4} over 2192^{19} steps. The training set consists of 2282^{28} sentences, and the model is trained for 2202^{20} 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 HtH_t 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 P=225P = 2^{25} 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:

ϕ~t→ϕt:=ϕ~t−E[ϕ~t]Tr⁡(Σt),withΣt=E[ϕtϕtT]⇒Tr⁡(Σt)=E[∥ϕt∥2].(12)\tilde{\phi}_t \to\phi_t := \frac{\tilde{\phi}_t - \mathbb{E}[\tilde{\phi}_t]}{\sqrt{\operatorname{Tr}(\Sigma_t)}}, \qquad\text{with}\quad\Sigma_t = \mathbb{E}\left[\phi_t\phi_t^{\mathsf{T}}\right] \Rightarrow\operatorname{Tr}(\Sigma_t) = \mathbb{E}\left[\lVert\phi_t\rVert^2\right]. \tag*{(12)}

In terms of the original, non-standardised activations, the autocorrelation function of Eq. (1) reads (layer index omitted for clarity)

c(τ)=E[(ϕ~T−τ−E[ϕ~T−τ])⋅(ϕ~T−E[ϕ~T])]Tr⁡(ΣT−τ)Tr⁡(ΣT).(13)c(\tau)=\frac{\mathbb{E}\left[(\tilde{\phi}_{T-\tau}-\mathbb{E}[\tilde{\phi}_{T-\tau}])\cdot(\tilde{\phi}_{T}-\mathbb{E}[\tilde{\phi}_{T}])\right]}{\sqrt{\operatorname{Tr}(\Sigma_{T-\tau})\operatorname{Tr}(\Sigma_{T})}}. \tag*{(13)}

For two independent centered activations, the sampling variance of their average dot product is Tr⁡(ΣTΣT−τ)/P\operatorname{Tr}(\Sigma_{T}\Sigma_{T-\tau})/P, so the sampling variance on c(τ)c(\tau) is 1/rP1/\sqrt{rP} with the effective rank r=Tr⁡ΣTTr⁡ΣT−τ/Tr⁡(ΣTΣT−τ)r=\operatorname{Tr}\Sigma_{T}\operatorname{Tr}\Sigma_{T-\tau}/\operatorname{Tr}(\Sigma_{T}\Sigma_{T-\tau}). This noise floor lies below 10−410^{-4} at every lag and layer, and the curves are stable in PP 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 v×vv \times v cross-covariance of the one-hot encodings,

Ctok(τ):=E[(eT−τ−E[eT−τ])(eT−E[eT])T].(14)C_{\mathrm{tok}}(\tau):=\mathbb{E}\left[(e_{T-\tau}-\mathbb{E}[e_{T-\tau}])(e_{T}-\mathbb{E}[e_{T}])^{\mathsf{T}}\right]. \tag*{(14)}

Eq. (4) is the trace of Ctok(τ)C_{\mathrm{tok}}(\tau). In the RHM, two tokens are coupled only through the rule drawn at their lowest common ancestor. Let ZZ be this ancestor, pZp_Z its marginal, and R(z)R(z) the set of mm pairs that the symbol zz can produce. Call Πc→a\Pi_{c\to a} the probability that a node with value cc has the descendant of value aa at position TT is the product of one-step transition matrices along the path, and Π′\Pi' the same along the path to position T−τT-\tau. Then

P(XT−τ=b,XT=a)=∑zpZ(z)1m∑(c′,c)∈R(z)Πc′→b′Πc→a,(15)\mathbb{P}(X_{T-\tau}=b,X_T=a)=\sum_z p_Z(z)\frac{1}{m}\sum_{(c',c)\in R(z)}\Pi'_{c'\to b}\Pi_{c\to a}, \tag*{(15)}

and Eq. (4) follows by summing the diagonal a=ba=b and subtracting the product of the marginals. The marginal pZp_Z, the set of pairs R(z)R(z) and the transition probabilities Π\Pi and Π′\Pi' 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, 1/vP=3×10−51/\sqrt{vP}=3\times10^{-5}(Appendix A, blue dashed line in the figure), at every lag.

Token-level trace between one-hot encodings

Figure 6. Token-level trace Tr⁡Ctok(τ)\operatorname{Tr} C_{\mathrm{tok}}(\tau) between the one-hot encodings of X31X_{31} and X31−τX_{31-\tau}: measured on 2252^{25} sentences (blue), exact from the rules (Eq. (15), black), the scale ±E∥Ctok∥F2/v\pm\sqrt{\mathbb{E}\lVert C_{\mathrm{tok}}\rVert_{F}^{2}/v} of Eq. (16) (orange) and the sampling noise ±1/vP\pm1/\sqrt{vP} (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 vv (vocabulary size of input and latent variables) and mm (number of rules per symbol). Specifically, Tr⁡Ctok(τ)\operatorname{Tr}C_{\mathrm{tok}}(\tau) 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 vv diagonal entries of CtokC_{\mathrm{tok}} as entries of typical size and random sign, which gives E∥Ctok∥F2/v\sqrt{\mathbb{E}\lVert C_{\mathrm{tok}}\rVert_F^2/v}. The Frobenius norm follows from Cagnetta & Wyart [9] in the large vv limit with m∝vm\propto v: the two children of a uniform parent give ∥C∥F2=(1−m/v)/(vm)\lVert C\rVert_F^2=(1-m/v)/(vm) exactly, and each further step down the tree divides it by about mm, since the centred rows of the transition matrices are nearly orthogonal with squared length 1/m1/m [40]. For two nodes hh and h′h' levels below their lowest common ancestor,

E∥C∥F2≃1−m/vvmh+h′−1.(16)\mathbb{E}\lVert C\rVert_F^2\simeq\frac{1-m/v}{v m^{h+h'-1}}. \tag*{(16)}

For two tokens, h=h′h=h', 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 ete_t to the dd-dimensional activation ϕt(o)=Wet+pt\phi_t^{(o)}=We_t+p_t, resulting in the (non-standardised) cross-covariance matrix

Co(τ)=E[(ϕT−τ(o)−E[ϕT−τ(o)])(ϕT(o)−E[ϕT(o)])T]=WCtok(τ)WT.(17)C_o(\tau)=\mathbb{E}\left[(\phi_{T-\tau}^{(o)}-\mathbb{E}[\phi_{T-\tau}^{(o)}])(\phi_T^{(o)}-\mathbb{E}[\phi_T^{(o)}])^{\mathsf{T}}\right]=WC_{\mathrm{tok}}(\tau)W^{\mathsf{T}}. \tag*{(17)}

Its trace is Tr⁡(WCtokWT)=Tr⁡(CtokG)\operatorname{Tr}(W C_{\mathrm{tok}} W^{\mathsf{T}})=\operatorname{Tr}(C_{\mathrm{tok}}G), with G=WTWG=W^{\mathsf{T}}W. Splitting G=gI+(G−gI)G=gI+(G-gI) with g=∥W∥F2/vg=\lVert W\rVert_{F}^{2}/v 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 WW with i.i.d. Gaussian entries of variance σ2\sigma^{2}, E[Tr⁡(CtokG)]=σ2dTr⁡Ctok\mathbb{E}[\operatorname{Tr}(C_{\mathrm{tok}}G)]=\sigma^{2}d\operatorname{Tr}C_{\mathrm{tok}} and the anisotropic part has standard deviation σ2d(∥Ctok∥F2+Tr⁡Ctok2)\sigma^{2}\sqrt{d(\lVert C_{\mathrm{tok}}\rVert_{F}^{2}+\operatorname{Tr}C_{\mathrm{tok}}^{2})}, a fraction of order 2/d∥Ctok∥F\sqrt{2/d}\lVert C_{\mathrm{tok}}\rVert_{F} of gg: smaller than the scale ∥Ctok∥F/v\lVert C_{\mathrm{tok}}\rVert_{F}/\sqrt{v} by 2v/d\sqrt{2v/d}. Therefore, after standardisation, which divides Eq. (1) by Tr⁡(Σ31G)Tr⁡(Σ31−τG)\sqrt{\operatorname{Tr}(\Sigma_{31}G)\operatorname{Tr}(\Sigma_{31-\tau}G)}, 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.

Token-level trace pushed through an embedding and normalised autocorrelation

Figure 7. Token-level trace pushed through an embedding, Tr⁡(CtokWTW)\operatorname{Tr}(C_{\mathrm{tok}}W^{\mathsf{T}}W) (left), and the normalised autocorrelation c0(τ)c_{0}(\tau) (right), for the one-hot tokens (WTW=IW^{\mathsf{T}}W=I), the trained and initial embedding matrices of the transformer, and random Gaussian WW with d=768d=768 (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

Zt={Xtt odd,Xt/2(4)t even,t=1,…,31,(18)Z_t = \begin{cases} X_t & t\ \text{odd},\\ X_{t/2}^{(4)} & t\ \text{even}, \end{cases} \qquad t=1,\ldots,31, \tag*{(18)}

i.e. X1X_1, X1(4)X_1^{(4)}, X3X_3, X2(4)X_2^{(4)}, …\ldots, X15(4)X_{15}^{(4)}, X31X_{31}: 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 Clat(τ)C_{\mathrm{lat}}(\tau). Since tokens and parents take values in the same set of vv 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 h′=h−1h'=h-1 at odd lags, where the target is a parent, while h′=h−1h'=h-1 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 m\sqrt{m} times larger at odd lags. Figure 8 shows the exact curve, the trace measured on 2252^{25} sampled trees, which agrees with it within 2 noise units, and the expected scale.

Trace and absolute trace of latent-sequence autocovariances

Figure 8. As Figure 6, for the idealised layer-1 sequence ZtZ_t (current token at odd tt, parent of the last completed pair at even tt): trace Tr⁡Clat(τ)\operatorname{Tr} C_{\mathrm{lat}}(\tau) between the one-hot encodings of Z31Z_{31} and Z31−τZ_{31-\tau}, measured on 2252^{25} sampled trees in blue, exact from the rules in black dashed, with the scale ±E∥Clat∥F2/v\pm\sqrt{\mathbb{E}\lVert C_{\mathrm{lat}}\rVert_F^2/v} of Eq. (16) in orange dashed and the sampling noise as a blue dashed line.

Layer-1 autocorrelations. Figure 9 compares the measured autocorrelation c1(τ)c_1(\tau) of layer 1 (in green) with those of the idealised latent sequence ZtZ_t (blue) and its random embeddings (d=768d=768-by-vv random WW 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 c1(τ)c_1(\tau) (right panel) lies within a small factor of the scale of the corresponding one-hot sequence, as does c0(τ)c_0(\tau) (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 X15(4)X_{15}^{(4)} (3.7% of its variance), which is partially aligned with the code of X14(4)X_{14}^{(4)} at position 30. This is a same-node term, producing stronger correlations than a cross-node term. Hence, the resulting contribution competes with the X15(4)−X31X_{15}^{(4)}-X_{31}, despite the attenuation due to the low fraction of explained variance.

Trace of the idealised layer-1 sequence and normalised autocorrelation

Figure 9. Same as Figure 7, one layer up: trace of the idealised layer-1 sequence pushed through an embedding, Tr⁡(ClatWTW)\operatorname{Tr}(C_{\mathrm{lat}}W^{\mathsf{T}}W) (left), and the normalised autocorrelation c1(τ)c_1(\tau) (right), for the one-hot sequence (WTW=IW^{\mathsf{T}}W = I), random Gaussian WW, and the measured layer 1 of the trained transformer (for which the left panel shows the trace of the cross-covariance of the activations).

Measured autocorrelations of the trained transformer

Figure 10. Measured autocorrelations ∣c0(τ)∣|c_0(\tau)| (left) and ∣c1(τ)∣|c_1(\tau)| (right) of the trained transformer, as in Figure 1a, against the scale E∥C∥F2/v\sqrt{\mathbb{E}\lVert C\rVert_F^2/v} of Eq. (16) (dashed steps), for the token sequence (left) and for the idealised layer-1 sequence (right), normalised by the one-hot variance 1−1/v1 - 1/v. 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, ϕ:=ϕt(ℓ)\phi:=\phi_t^{(\ell)} is the activation of a fixed layer and position, Σϕ:=Cov⁡(ϕ)\Sigma_\phi:=\operatorname{Cov}(\phi) its covariance, and every node ZZ of the tree, latent or visible, is represented by its centered one-hot encoding eZ∈Rve_Z\in\mathbb{R}^v, (eZ)a=δZ,a−Z(X=a)(e_Z)_a=\delta_{Z,a}-Z(\mathsf{X}=a), with covariance ΣZ\Sigma_Z; Z∈R63vZ\in\mathbb{R}^{63v} stacks the 63 encodings.

The joint regression. A linear function of the one-hot encoding of a discrete variable ZZ assigns a distinct arbitrary number to all possible values of ZZ. This is an arbitrary function of the symbol ZZ. Therefore, the linear functions of ZZ are exactly the sums ∑ZgZ(Z)\sum_Z g_Z(Z) of single-node functions. Moreover, the least-squares solution of Eq. (6), A=Cov⁡(ϕ,eZ)Cov⁡(eZ)+A = \operatorname{Cov}(\phi,e_Z)\operatorname{Cov}(e_Z)^+, is the best approximation of the activation by such a sum. The residual ϵ\epsilon, 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. Cov⁡(eZ)\operatorname{Cov}(e_Z) has therefore rank exactly 63(v−1)63(v - 1).

Partialling out. The coefficients of a joint regression obey the Frisch–Waugh–Lovell theorem [17, 33]: the block AZA_Z multiplying eZe_Z equals the regression of ϕ\phi on e~Z\tilde e_Z, the residual of eZe_Z 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 X1X_1, ϕ=g(X1)\phi= g(X_1). X1X_1 and its parent X1(4)X_1^{(4)} are correlated through the rules, so ϕ\phi is correlated with eX1(4)e_{X_1^{(4)}}, and a linear readout of the parent from ϕ\phi will give a positive signal. In the joint regression, instead, the initial regression of eX1(4)e_{X_1^{(4)}} on all the other nodes, including X1X_1, leaves a residual orthogonal to ϕ\phi. Thus, AX1(4)=0A_{X_1^{(4)}}=0 exactly. In simple terms, AZ≠0A_Z\ne0 requires a component of the activation that correlates with the value of ZZ beyond what any single other node implies.

Latent codes. The code of ZZ is the block AZA_Z of vv vectors in Rd\mathbb{R}^d, one per value of ZZ, and its strength SZ=Tr⁡(AZΣZAZ⊤)/Tr⁡ΣϕS_Z=\operatorname{Tr}(A_Z\Sigma_ZA_Z^\top)/\operatorname{Tr}\Sigma_\phi is the fraction of the total activation variance explained by the variance of AZeZA_Ze_Z. The total explained fraction Tr⁡(ACov⁡(eZ)A⊤)/Tr⁡Σϕ\operatorname{Tr}(A\operatorname{Cov}(e_Z)A^\top)/\operatorname{Tr}\Sigma_\phi 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 ZZ is the regression in the opposite direction, from ϕ\phi to eZe_Z. The least-squares solution is WZ=CZ⊤Σϕ+W_Z=C_Z^\top\Sigma_\phi^+, with CZ:=E[ϕeZ⊤]C_Z:=\mathbb{E}[\phi e_Z^\top]. The quality of the probe is measured as the fraction of the variance of ZZ that it recovers,

RZ2=Tr⁡(CZ⊤Σϕ+CZ)Tr⁡ΣZ.(19)R_Z^2=\frac{\operatorname{Tr}\left(C_Z^\top\Sigma_\phi^+C_Z\right)}{\operatorname{Tr}\Sigma_Z}. \tag*{(19)}

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 RZ2R_Z^2: a parent, for instance, reads at 11–23% wherever its children are encoded. SZS_Z measures how much of the activation is a code of ZZ, 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 X1(2)X_1^{(2)} in layer 3: it can be read perfectly (R2≃1R^2\simeq1) while only explaining ≲10%\lesssim10\% of the activation variance. There is one more caveat with probes. At positions 1 and 2, there are only v=32v=32 and mv=256mv=256 possible prefixes, respectively. Both are smaller than the embedding dimension dd, 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 R2R^2 only for cross-checks such as the one above.

Statistical controls. Regression is performed using the moments of 2182^{18} sentences and evaluated against those of 2162^{16}, 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 (v−1)/P(v-1)/P of the residual variance, about 10−410^{-4} at P=218P=2^{18}. This spurious part scales as 1/P1/P, whereas the true code does not. Every strength we report is required to change by less than a factor 2 between P=216P=2^{16} and 2182^{18}, 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 X2(1)X_2^{(1)} (highlighted at the root of each subtree in the figures) and generating the last 24=162^4=16 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, t=24t=24 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.

12345678910111213141516
tt12345678910111213141516
closes depth–1–2–1–3–1–2–1–4
XtX_t1000.591.52.31000.691.65.31000.693.36.11000.986.93.1
other XiX_i0.21.41.20.21.51.00.21.31.10.22.41.2
Xp(4)X_p^{(4)}99.15.195.198.84.991.898.73.890.598.37.494.6
sum of codes10099.898.098.710099.698.098.210099.598.497.710099.596.899.0
explained10099.799.298.810099.799.398.510099.799.498.510099.798.498.7
residual0.30.81.20.30.71.50.30.61.50.31.61.3
12345678910111213141516
tt12345678910111213141516
closes depth–1–2–1–3–1–2–1–4
XtX_t1000.134.31000.139.80.299.40.138.20.199.30.229.10.5
Xt+1X_{t+1}0.80.80.90.9
other XiX_i0.20.10.20.10.20.10.40.3
Xp(4)X_p^{(4)}99.848.60.499.742.91.199.642.90.399.443.612.7
Xp−1(4)X_{p-1}^{(4)}0.30.70.10.25.4
Xp+1(4)X_{p+1}^{(4)}0.80.80.91.2
other Xi(4)X_i^{(4)}3.30.10.30.10.1
Xq(3)X_q^{(3)}99.178.50.298.770.3
Xq−1(3)X_{q-1}^{(3)}1.80.20.1
Xq+1(3)X_{q+1}^{(3)}0.70.70.71.9
X1(2)X_1^{(2)} [1–8]2.6
sum of codes10099.985.599.810099.985.388.399.899.884.099.499.899.877.489.3
explained10099.986.799.410099.986.789.099.999.985.499.599.999.980.587.8
residual0.113.30.60.113.311.00.10.114.60.50.10.119.512.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 tt (P=218P = 2^{18}), blank below 0.05%, bold at or above 20%. The row closes depth gives the depth of the deepest variable whose span ends at tt. Tokens and depth-1 and depth-2 variables are listed by their role relative to tt, with p=⌊t/2⌋p = \lfloor t/2 \rfloor and q=⌊t/4⌋q = \lfloor t/4 \rfloor the numbers of completed pairs and 4-spans: XtX_t is the current token and Xt+1X_{t+1} the next; Xp(4)X_p^{(4)} is the last completed pair, Xp−1(4)X_{p-1}^{(4)} the one before it and Xp+1(4)X_{p+1}^{(4)} the current open pair for odd tt, or the following one for even tt. Likewise for the 4-spans Xq(3)X_q^{(3)}, Xq−1(3)X_{q-1}^{(3)}, Xq+1(3)X_{q+1}^{(3)}. 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 t≡1(mod4)t \equiv1 \pmod4 and 87–94% at positions t≡3(mod4)t \equiv3 \pmod4, 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 t≡2(mod4)t \equiv2 \pmod4), 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. t=24t = 24 tree of Figure 12). Note positions t≡3(mod4)t \equiv3 \pmod4, 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 TT the anchor and the position T−τT-\tau the target. Write the activations at both positions as in Eq. (6), ϕT=ATY+ϵT\phi_T=A_TY+\epsilon_T and ϕT−τ=AT−τY+ϵT−τ\phi_{T-\tau}=A_{T-\tau}Y+\epsilon_{T-\tau}, with the same YY: 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,

E[ϕT−τ⋅ϕT]=Tr⁡[ATCov⁡(Y)AT−τT]+E[ϵT−τ⋅ATY]+E[AT−τY⋅ϵT]+E[ϵT−τ⋅ϵT],(20)\mathbb{E}[\phi_{T-\tau}\cdot\phi_T]=\operatorname{Tr}[A_T\operatorname{Cov}(Y)A_{T-\tau}^{\mathsf{T}}]+\mathbb{E}[\epsilon_{T-\tau}\cdot A_TY]+\mathbb{E}[A_{T-\tau}Y\cdot\epsilon_T]+\mathbb{E}[\epsilon_{T-\tau}\cdot\epsilon_T], \tag*{(20)}

and the two mixed terms vanish because each residual is uncorrelated with every node, E[ϵT−τ⋅ATY]=Tr⁡[ATCov⁡(Y,ϵT−τ)]=0\mathbb{E}[\epsilon_{T-\tau}\cdot A_TY]=\operatorname{Tr}[A_T\operatorname{Cov}(Y,\epsilon_{T-\tau})]=0, which is the normal equation of least squares at position T−τT-\tau. Dividing by Tr⁡ΣTTr⁡ΣT−τ\sqrt{\operatorname{Tr}\Sigma_T\operatorname{Tr}\Sigma_{T-\tau}}, 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 Cov⁡(Y)\operatorname{Cov}(Y) over its 63×6363\times63 blocks Cov⁡(yX,yX′)\operatorname{Cov}(y_X,y_{X'}) splits the code part into a sum over pairs of nodes,

Cℓcode(τ)=∑XTr⁡[AT,XΣXAT−τ,XT]Tr⁡ΣTTr⁡ΣT−τ+∑X≠X′Tr⁡[AT,XCov⁡(yX,yX′)AT−τ,X′T]Tr⁡ΣTTr⁡ΣT−τ,(21)\mathcal{C}^{\mathrm{code}}_{\ell}(\tau)=\sum_X\frac{\operatorname{Tr}[A_{T,X}\Sigma_XA_{T-\tau,X}^{\mathsf{T}}]}{\sqrt{\operatorname{Tr}\Sigma_T\operatorname{Tr}\Sigma_{T-\tau}}}+\sum_{X\ne X'}\frac{\operatorname{Tr}[A_{T,X}\operatorname{Cov}(y_X,y_{X'})A_{T-\tau,X'}^{\mathsf{T}}]}{\sqrt{\operatorname{Tr}\Sigma_T\operatorname{Tr}\Sigma_{T-\tau}}}, \tag*{(21)}

the same-node and the cross-node terms of the main text. The same-node term of XX is the expected dot product of the code of XX at the anchor with the code of XX at the target, E[(AT−τ,XyX)⋅(AT,XyX)]\mathbb{E}[(A_{T-\tau,X}y_X)\cdot(A_{T,X}y_X)]: 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 P=218P=2^{18} and the measurement at P=225P=2^{25} (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 PP. 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 P=218P=2^{18}, 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 (X16(4),X8(3),X4(2),X2(1))(X_{16}^{(4)},X_8^{(3)},X_4^{(2)},X_2^{(1)}) and the root, whose spans contain the unseen X32X_{32}, all other terms of Cℓcode\mathcal{C}^{\mathrm{code}}_{\ell}, i.e. the same-node terms of the other nodes and all the cross-node terms, and the residual Cℓres\mathcal{C}^{\mathrm{res}}_{\ell}. 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 X3(2)X_3^{(2)} 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 X16(4)X_{16}^{(4)}, 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 X1(1)X_1^{(1)}, 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 X3(2)X_3^{(2)}, 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
tt12345678910111213141516
closes depth–1–2–1–3–1–2–1–4
XtX_t1000.133.727.028.40.126.632.319.911.40.2
Xt+1X_{t+1}1.51.30.3
other XiX_i0.20.10.20.10.10.20.20.20.20.30.4
Xp(4)X_p^{(4)}99.841.10.339.524.90.341.930.20.123.612.56.3
Xp−1(4)X_{p-1}^{(4)}0.20.20.13.9
Xp+1(4)X_{p+1}^{(4)}1.10.71.10.10.90.20.6
other Xi(4)X_i^{(4)}0.10.10.10.60.10.10.10.10.10.1
Xq(3)X_q^{(3)}99.270.236.016.39.90.130.019.811.09.933.7
Xq−1(3)X_{q-1}^{(3)}0.80.10.124.9
Xq+1(3)X_{q+1}^{(3)}0.81.30.90.10.72.95.33.12.7
other Xi(3)X_i^{(3)}0.10.10.10.10.10.1
X1(1)X_1^{(1)} [1–8]1.00.382.571.442.06.514.18.57.19.4
X2(1)X_2^{(1)} [9–16]0.12.21.74.03.410.9
X1(1)X_1^{(1)} [1–16]0.18.13.712.410.3
sum of codes10099.978.599.797.378.773.294.498.184.672.358.159.362.061.180.4
explained10099.980.099.597.579.574.495.098.284.973.759.961.761.962.172.5
residual0.120.00.52.520.525.65.01.815.126.340.138.338.137.927.5
Layer 3, positions 17–31
tt171819202122232425262728293031
closes depth–1–2–1–3–1–2–1–
XtX_t92.50.137.127.332.117.539.925.20.130.4
Xt+1X_{t+1}1.61.11.31.0
other XiX_i0.20.10.20.10.20.20.20.20.2
Xp(4)X_p^{(4)}1.197.336.90.234.825.90.133.628.60.130.128.3
Xp−1(4)X_{p-1}^{(4)}0.40.40.10.20.10.1
Xp+1(4)X_{p+1}^{(4)}1.10.81.10.11.00.20.9
other Xi(4)X_i^{(4)}0.20.10.30.30.30.10.70.50.40.10.40.30.30.1
Xq(3)X_q^{(3)}4.41.50.297.769.035.312.84.626.020.014.47.4
Xq−1(3)X_{q-1}^{(3)}1.00.80.70.10.4
Xq+1(3)X_{q+1}^{(3)}0.81.50.90.10.83.94.64.31.3
other Xi(3)X_i^{(3)}1.11.41.20.21.00.60.80.1
X3(2)X_3^{(2)} [17–24]1.20.289.678.644.03.512.57.76.62.6
X4(2)X_4^{(2)} [25–32]0.12.21.41.60.4
X2(1)X_2^{(1)} [17–32]0.17.02.94.50.7
sum of codes98.499.478.099.497.474.974.596.798.179.975.553.663.163.273.3
explained97.399.079.499.097.475.576.096.997.879.877.054.565.163.975.3
residual2.71.020.61.02.624.524.03.12.220.223.045.534.936.124.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: X1(3)X_1^{(3)}, formed at t=4t = 4 (99%), is kept at 70, 36 and 16% for t=5t = 5–7 and dropped at t=8t = 8, where its parent closes. The depth-3 variables are formed at t=8t = 8 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: X1(2)X_1^{(2)} is kept at 71 and 42% for t=9t = 9, 10 and at 7–14% up to t=15t = 15, and dropped at $t = 16; likewise X3(2)X_3^{(2)}, from 79% at t=25t = 25 to 26% at t=31t = 31. The depth-4 variables receive partial codes while their span is still open (X1(1)X_1^{(1)} at 4–12% for t=12t = 12–15, X2(1)X_2^{(1)} at 1–7% for t=28t = 28–31), but are not kept once complete: at t=16t = 16 the layer holds the children X3(3)X_3^{(3)} and X4(3)X_4^{(3)} (25 and 34%) rather than X1(1)X_1^{(1)}. 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.

tt12345678910111213141516
closes depthcloses\ depth—1—2—1—3—1—2—1—4
XtX_t10034.453.332.50.166.435.143.125.50.2
Xt+1X_{t+1}5.70.24.75.01.01.6
other XiX_i0.20.10.20.20.10.20.20.20.20.20.30.4
Xp(4)X_p^{(4)}99.920.20.229.212.90.349.915.00.122.28.25.4
Xp−1(4)X_{p-1}^{(4)}0.20.23.2
Xp+1(4)X_{p+1}^{(4)}1.50.18.71.60.81.40.313.90.9
other Xi(4)X_i^{(4)}0.10.10.10.10.60.10.10.10.20.10.10.1
Xq(3)X_q^{(3)}99.328.813.97.99.624.16.24.55.529.1
Xq−1(3)X_{q-1}^{(3)}0.821.8
Xq+1(3)X_{q+1}^{(3)}1.00.12.00.90.30.811.04.24.82.2
other Xi(3)X_i^{(3)}0.10.20.10.10.10.1
X1(2)X_1^{(2)} [1–8]0.11.20.282.926.015.13.08.72.42.44.90.3
X2(2)X_2^{(2)} [9–16]0.22.00.71.72.09.7
X1(1)X_1^{(1)} [1–16]0.14.20.93.65.07.5
sum of codes10010063.299.782.855.461.294.592.666.860.850.759.453.756.677.8
explained10010066.799.583.758.664.095.092.768.364.055.261.457.158.971.7
residual33.30.516.341.436.05.07.331.736.044.838.642.941.128.3
Layer 4, positions 17–31
tt171819202122232425262728293031
closes depthcloses\ depth—1—2—1—3—1—2—1——
XtX_t87.436.953.435.848.642.647.736.4
Xt+1X_{t+1}5.70.24.64.11.03.81.03.8
other XiX_i0.10.20.20.10.20.20.20.10.20.20.30.20.20.2
Xp(4)X_p^{(4)}0.284.817.40.124.814.30.130.515.724.216.80.10.10.10.1
Xp−1(4)X_{p-1}^{(4)}0.10.10.10.1
Xp+1(4)X_{p+1}^{(4)}1.60.19.81.62.31.40.317.81.40.317.81.4
other Xi(4)X_i^{(4)}0.10.10.20.20.20.10.50.20.30.10.20.30.20.1
Xq(3)X_q^{(3)}0.60.40.162.423.711.46.53.013.35.84.63.90.40.20.2
Xq−1(3)X_{q-1}^{(3)}0.40.20.20.3
Xq+1(3)X_{q+1}^{(3)}0.90.70.22.20.90.60.822.04.65.61.2
other Xi(3)X_i^{(3)}0.10.60.40.60.10.30.20.20.1
X2(2)X_2^{(2)} [9–16]0.1
X3(2)X_3^{(2)} [17–24]0.20.11.10.251.820.010.71.74.42.01.91.3
X4(2)X_4^{(2)} [25–32]0.16.13.31.92.50.70.90.2
X1(1)X_1^{(1)} [1–16]7.33.60.15.00.60.63.11.31.30.70.10.1
X2(1)X_2^{(1)} [17–32]0.11.50.70.62.70.81.30.3
X1(0)X_1^{(0)} [1–32]0.10.60.30.20.1
sum of codes95.889.363.169.678.850.764.468.075.049.366.746.663.657.065.7
explained95.689.466.470.279.753.667.369.275.950.969.549.564.960.368.9
residual4.410.633.629.820.346.432.730.824.149.130.550.535.139.731.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. X3(2)X_3^{(2)} goes from 52% at t=24t = 24 to 1.3% at t=31t = 31 (90 and 2.6% in layer 3). The completed depth-4 variable X1(1)X_1^{(1)} is now encoded at and after the end of its span (7.5, 7.3 and 3.6% at t=16t = 16–18, 5% at t=20t = 20, 3% at t=24t = 24), and the root receives a first code (0.6% at t=24t = 24). Predictions of unseen variables get stronger: the next pair at 9–18% for t=2(mod4)t = 2 \pmod4, the next 4-span at 11 and 22% at t=12,28t = 12, 28, and the next token at up to 6% for t=3(mod4)t = 3 \pmod4. The residual is 30–50% at most positions.

Autocorrelation of all six transformer layers

Figure 15. Autocorrelation cℓ(τ)c_\ell(\tau) 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.

layershare of cℓ(τ)c_\ell(\tau)τ=1\tau=1τ=2\tau=2τ=3\tau=3τ=4\tau=4τ=5\tau=5τ=6\tau=6τ=7\tau=7τ=8\tau=8
1same-node8072––––––
cross-node1630––––––
residual4-2––––––
2same-node93-532–826564–
cross-node710056–82135–
residual0612–10141–
3same-node6762549286888876
cross-node333588921
residual30354246442
4same-node6659529586918870
cross-node424153735
residual3039444965-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 cℓ(τ)c_\ell(\tau) (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 P=218P=2^{18} and the measurement at P=225P=2^{25}.

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 X15(4)X_{15}^{(4)} 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 X15(4)X_{15}^{(4)} with the codes of its child X29X_{29} (lag 2) and of X7(3)X_{7}^{(3)}, 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 rr 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–1612345678910111213141516
tt12345678910111213141516
closes depth–1–2–1–3–1–2–1–4
XtX_t10013.056.66.60.172.313.532.310.30.4
Xt+1X_{t+1}6.30.217.88.82.818.5
other XiX_i0.30.10.20.30.30.30.10.10.30.30.30.30.20.31.0
Xp(4)X_p^{(4)}1007.00.121.22.10.469.85.49.21.76.5
Xp−1(4)X_{p-1}^{(4)}0.30.45.9
Xp+1(4)X_{p+1}^{(4)}2.50.111.02.30.21.60.537.05.3
other Xi(4)X_i^{(4)}0.20.20.10.20.10.20.60.10.10.20.20.40.10.20.1
Xq(3)X_q^{(3)}99.04.36.31.57.418.41.21.00.732.5
Xq−1(3)X_{q-1}^{(3)}0.919.7
Xq+1(3)X_{q+1}^{(3)}1.50.11.90.80.21.17.81.43.80.9
other Xi(3)X_i^{(3)}0.10.10.10.10.10.10.10.10.10.1
X2(2)X_2^{(2)} [1–8]0.11.40.583.74.27.80.48.50.60.50.60.7
X2(2)X_2^{(2)} [9–16]0.10.13.20.30.50.38.5
X1(1)X_1^{(1)} [1–16]0.12.10.20.20.54.6
sum of codes10010031.099.562.042.432.494.076.878.431.540.740.152.639.380.1
explained10010032.999.562.946.236.392.276.879.635.539.344.158.647.167.5
residual67.10.537.153.863.77.823.220.464.560.755.941.452.932.5
Layer 5, positions 17–31171819202122232425262728293031
tt171819202122232425262728293031
closes depth–1–2–1–3–1–2–1–
XtX_t90.215.072.88.084.712.625.37.0
Xt+1X_{t+1}7.00.219.213.35.630.6
other XiX_i0.30.20.10.30.30.40.10.30.30.30.30.10.2
Xp(4)X_p^{(4)}96.59.120.12.80.133.04.17.82.2
Xp+1(4)X_{p+1}^{(4)}2.50.113.93.03.02.21.051.05.3
other Xi(4)X_i^{(4)}0.20.10.10.10.20.30.20.20.20.60.10.10.2
Xq(3)X_q^{(3)}27.62.15.21.90.45.80.80.50.50.10.1
Xq−1(3)X_{q-1}^{(3)}0.10.1
Xq+1(3)X_{q+1}^{(3)}1.30.30.12.20.90.90.91.023.84.34.61.1
other Xi(3)X_i^{(3)}0.10.10.10.10.30.30.10.10.10.10.10.1
X3(2)X_3^{(2)} [17–24]0.30.11.10.312.40.82.20.30.90.20.10.2
X4(2)X_4^{(2)} [25–32]0.12.80.50.70.14.70.30.40.2
X1(1)X_1^{(1)} [1–16]0.70.70.131.50.10.60.113.00.23.20.22.50.1
X2(1)X_2^{(1)} [17–32]0.13.40.10.70.10.90.10.10.1
X1(0)X_1^{(0)} [1–32]0.12.20.40.3
sum of codes91.097.235.760.675.843.836.935.686.544.734.539.538.864.847.8
explained91.097.137.361.877.947.342.234.886.847.339.638.442.769.953.1
residual9.02.962.738.222.152.757.865.213.252.760.461.657.330.146.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 t=2,4,8,18t = 2, 4, 8, 18), but the persistent codes of layers 3 and 4 are mostly gone (at t=31t = 31: X15(4)X_{15}^{(4)}, Xq(3)X_q^{(3)} and X2(3)X_2^{(3)} at 2.2, 0.5 and 0.2%). Elsewhere, the activation is organised around what comes next: for t≡3(mod4)t \equiv3 \pmod{4} the next token holds 6–31%, more than the current token at t=7,15,23,27,31t = 7, 15, 23, 27, 31, and the unseen next pair reaches 37 and 51% at t=14,30t = 14, 30, against 9 and 8% for the pair just completed. The completed depth-4 variable X1(1)X_1^{(1)} reaches 31.5% at t=20t = 20, and the root its largest code, 2.2%, at t=24t = 24. The residual exceeds 30% at two thirds of the positions, up to 67% at t=3t = 3.

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, d=1d=1, 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.

Autoregressive validation loss against the training step

Figure 17. Autoregressive validation loss (mean over the 32 positions) against the training step, with the stage values (log⁡v+(2d−1)log⁡m)/2d(\log v + (2^d - 1)\log m)/2^d for d=2,…,5d = 2, \ldots, 5 (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 X7(3)X_7^{(3)} at stage 3, that of the depth-3 carrier X7(2)X_7^{(2)} 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.

Absolute value of the autocorrelation of layers 0 to 4

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 1.3×10−21.3 \times10^{-2} (layer 1) to 6.6×10−26.6 \times10^{-2} (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 t′/(t′+1)t'/(t' + 1) at target position t′t', 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 10−310^{-3} 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 cℓ(τ)c_\ell(\tau) 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 τ\tau 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 cℓ(τ)c_{\ell}(\tau) against the lag τ\tau 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 ℓ/(L−1)\ell/(L-1) (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 τ\tau 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 m=T−1∑tϕtm = T^{-1} \sum_t \phi_t denote the mean representation of a sequence and δt=ϕt−m\delta_t = \phi_t - m. In this appendix we recompute the autocorrelation using only δt\delta_t, and we call it c~ℓ(τ)\tilde{c}_{\ell}(\tau). This removes the sequence-wide component mm 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 δt\delta_t 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 mm 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 mm 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 δt\delta_t. We test this reading by permuting at random the token positions of each sequence, for the activations ϕt\phi_t 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 mm, 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 ϕ1,…,ϕT\phi_1,\ldots,\phi_T, the product between two distinct positions, averaged over the permutations, is

1T(T−1)∑s≠tϕs⋅ϕt=∥m∥2−1T−11T∑t∥δt∥2,(22)\frac{1}{T(T-1)}\sum_{s\ne t}\phi_s\cdot\phi_t=\lVert m\rVert^2-\frac{1}{T-1}\frac{1}{T}\sum_t\lVert\delta_t\rVert^2, \tag*{(22)}

whatever the lag between them, and the same average for the fluctuations δt\delta_t is the second term alone. Therefore, up to a correction of order 1/T1/T, below 10−210^{-2} here, the autocorrelation of the shuffled activations equals E[∥m∥2]\mathbb{E}\left[\lVert m\rVert^2\right] at every lag, whereas c~ℓ(τ)\tilde{c}_{\ell}(\tau) vanishes, as Figure 20b confirms. The plateau of cℓ(τ)c_{\ell}(\tau) is thus all that the activation frequencies alone produce, and subtracting mm removes it.

Persistence of the shuffled sequences. The persistence ψ\psi could also reflect how often the SAE latents are active, rather than when: a latent that is active on a fraction ff of the tokens, independently at each token, has runs of mean length 1/(1−f)1/(1-f), which grows with ff. 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), ψ\psi 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 ff, 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 χ~ℓ=∑τc~ℓ(τ)\widetilde{\chi}_{\ell}=\sum_{\tau}\tilde{c}_{\ell}(\tau) 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 r=0.86r = 0.86 for χℓ\chi_\ell to r=0.94r = 0.94 for χ~ℓ\tilde{\chi}_\ell (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 ψ\psi 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 (g=0g = 0; a, c) and with single inactive tokens bridged (g=1g = 1; b, d). Markers are the average of The Pile and WikiText, error bars half the difference between the two corpora.

Distributions of per-latent persistence across layers for Gemma 2 2B, Gemma 2 9B, Llama-3-8B, Qwen3-8B and Pythia-160M

Figure 23. Distribution of the per-latent persistence ψ\psi on The Pile with single inactive tokens bridged (g=1g = 1), 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-kk SAE keeps only the kk 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 gg are merged together. g=0g = 0 gives back original setup without any gap tolerance. Figure 4b and Figure 4c use g=1g = 1, 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 g=1g = 1.

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 (g=0g = 0, left) and with single lapses bridged (g=1g = 1, 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 χℓ\chi_{\ell} or χ~ℓ\tilde{\chi}_{\ell} 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 (g=1g = 1, 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 ψ=1\psi= 1. With depth, the bulk of the distribution moves to larger ψ\psi 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 ℓ\ell we compute

EVℓ=1−∑t∥ϕt−ϕ^t∥2∑t∥ϕt∥2(23)\mathrm{EV}_{\ell}=1-\frac{\sum_t\lVert\phi_t-\hat{\phi}_t\rVert^2}{\sum_t\lVert\phi_t\rVert^2} \tag*{(23)}

where ϕt\phi_t is the raw activation at token position tt, ϕ^t=∑izi(t)Wdec(i)+bdec\hat{\phi}_t=\sum_i z_i(t)W_{\mathrm{dec}}(i)+b_{\mathrm{dec}} its SAE reconstruction from the codes zi(t)z_i(t), and the sums run over all positions of 300 samples of each corpus, cut to a common length. We call EVℓ\mathrm{EV}_{\ell} 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 EVℓ\mathrm{EV}_{\ell} 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 EVℓ\mathrm{EV}_{\ell} across depth. The two corpora give nearly the same values. For every model, EVℓ\mathrm{EV}_{\ell} 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 χℓ\chi_{\ell} and χ~ℓ\tilde{\chi}_{\ell} 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 cℓ(τ)c_\ell(\tau) of every layer on The Pile computed on the raw activations, drawn as Figure 1b. (b) Integrated correlation χℓ\chi_\ell and (c) its version with the mean token of each sample removed, χ~ℓ\widetilde{\chi}_\ell, 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 tt, the fraction

rt(i)=(ϕt,Wdec(i))2∥ϕt∥2∥Wdec(i)∥2(24)r_t(i) = \frac{(\phi_t, W_{\mathrm{dec}}(i))^2}{\lVert\phi_t\rVert^2 \lVert W_{\mathrm{dec}}(i)\rVert^2} \tag*{(24)}

of the squared norm of the activation. For every episode of Table 1 we average rtr_t over the ablated positions t∈[s,e−1]t \in[s,e-1] at which latent ii 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.

Removed fraction of squared norm for persistent and a-control latents

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. [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. [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. [3]Zeyuan Allen-Zhu and Yuanzhi Li. Physics of language models: Part 1, learning hierarchical language structures. arXiv preprint arXiv:2305.13673, 2023.
  4. [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. [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. [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. [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
  8. [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.
  9. [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.
  10. [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.
  11. [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
  12. [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
  13. [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.
  14. [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.
  15. [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
  16. [17]Ragnar Frisch and Frederick V. Waugh. Partial time regressions as compared with individual trends. Econometrica, 1(4):387–401, 1933.DOI
  17. [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.
  18. [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
  19. [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.
  20. [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.
  21. [22]Nigel Goldenfeld. Lectures on Phase Transitions and the Renormalization Group. CRC Press, Boca Raton, FL, 2018.
  22. [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
  23. [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
  24. [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/.
  25. [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.
  26. [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.
  27. [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.
  28. [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.
  29. [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.
  30. [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
  31. [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.
  32. [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
  33. [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
  34. [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.
  35. [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
  36. [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
  37. [38]Eric J. Michaud. What is the purpose of interpretability?, 2026. URL https://ericjmichaud.com/interp-purpose.
  38. [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
  39. [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
  40. [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
  41. [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
  42. [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.
  43. [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.
  44. [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
  45. [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.
  46. [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
  47. [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
  48. [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.

Paper details

vlnc:W_9kgwj4c7
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 7

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents