Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Deep Latents, Long Memory: Latent persistence explains temporal correlations in transformer activations

Latent persistence explains how correlations grow across transformer layers

  • Problem Layerwise abstraction in LLMs is hard to test, because measuring it usually requires assuming which concepts each layer represents. Researchers need a measure that works without those assumptions.
  • Method The authors measure the autocorrelation of each layer's activations across context lags. Slowly decaying tails are read as persistent latent codes, and sparse autoencoder features serve as proxies for those latents in real text.
  • Results Autocorrelation tails grow with depth in synthetic and natural data. Persistence of sparse autoencoder features correlates strongly with autocorrelation magnitude across datasets and LLMs.

Why deep-layer abstraction is hard to test

The common view holds that hidden layers of an LLM represent data at increasing levels of abstraction. Geometric measures and probing studies support this view, but they usually need a chosen concept to look for. The authors want a framework that avoids prior assumptions about the represented concepts.

Synthetic data with controlled latent structure offers a quantitative way in, because the latents are known. Those theoretical results show how deeper latent structures emerge with data, training and network depth. They don't say how to apply these results to real text, where the true latent structure is unknown. The authors therefore want an observable that works both for synthetic models and for pretrained LLMs.

They propose the autocorrelation function of neural activations across context positions as that observable.

The autocorrelation is defined on activations standardised so that their mean is zero and their squared norm averages one. The authors measure it in synthetic data, where the latent variables are known, and in natural data. In natural data, sparse autoencoder features serve as an imperfect but tractable proxy for latent content. Figure 1 shows autocorrelations growing with depth in both the Random Hierarchy Model and natural language.

An autocorrelation measure on activations

The authors define the autocorrelation of a layer as an expected dot product between activations at two context positions. The activations of layer ℓ are standardised so that their mean is zero and their squared norm is one. The statistic c_ℓ(τ) averages the dot product of the activation at position T−τ with the activation at the last position T.

The lag τ counts back from the reference token, but the measure can be taken between any two tokens separated by distance τ.

With one-hot token inputs, the same quantity reduces to the centred probability that two tokens coincide. The token-level statistic is therefore the layer-0 limit of the layer-wise measure, so the two settings connect.

A code that persists across the context therefore produces a tail in the autocorrelation. A long-lived latent variable shows up as a slow decay in c_ℓ(τ), which is why the authors read the tail as persistence. The authors note that the measure doesn't require the full cross-covariance matrix, because it takes the trace of that matrix. A model that writes a variable along different directions at different positions would be missed by this trace-based definition.

Synthetic test with known latents

The first test uses a 5-block transformer trained on the Random Hierarchy Model, where the latent variables are known. Each layer is assumed to compute only latents of its own depth, which fixes how long each code should survive along the sentence. The dotted lines mark spans where the latents governing the next token end, so each layer's tail should stop at a known lag.

Fig. 1a shows that the measured curves decay more slowly in deeper layers than in shallow ones. The dotted lines mark the decay that this scheme predicts, and the measured autocorrelations approximately follow them. Autocorrelation is defined as the expected dot product between activations at the anchor position and a position a lag τ earlier.

The authors read these tails as coming from the persistent encoding of abstract latents, which govern long stretches of the input. Persistent encoding explains autocorrelations in this synthetic setting, with the construction of Fig. 1d accounting for a significant fraction of the measured correlations.

Figure 1: Neural autocorrelationsc ℓ(τ)(Eq. 1) develop with depth due to persistently encoded
abstract latent features. a) 5-block transformer trained on the R…

Figure 1 :Neural autocorrelationsc ℓ(τ)(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., 2024) 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 (Cagnetta et al., 2024; Cagnetta & Wyart, 2024), here illustrated schematically in a deep autoregressive transformer. Each row represents the variables encoded by the activations in a given layer, assuming that layerℓ can only compute latent variables of depthℓ—see the main text for a detailed breakdown. Deeper latent variables emerge in later layers, and persist for longer across context positions: E.g., depth-1 (orange) variables persist for two slots in layers2and3, whereas depth-2variables (green) persist for4slots, but only in layer3. This scheme implies a specific pattern of decay ofc ℓ(τ), highlighted with dotted lines in panel a) and approximately respected by the measured autocorrelations.

Original paper · CC BY 4.0 · Francesco Cagnetta, Santiago Acevedo · Deep Latents, Long Memory: Latent persistence explains temporal correlations in transformer activations · Original paper figure · Extracted the figure area from page 2 of the original PDF.

Persistence of SAE features in real text

Natural text has no known latent variables, so the authors use sparse-autoencoder features as proxies for them. They call SAE features an imperfect but tractable proxy for latent content, since the true latents can't be read off real text. They measure how long each SAE feature stays active, which gives its persistence. Each layer's persistence is then compared with its integrated autocorrelation χ_ℓ = Σ_τ c_ℓ(τ).

Both the median and the mean persistence of the features in a layer are set against that layer's χ_ℓ.

Persistence increases with depth, in the same direction as the autocorrelations. Deeper latent features therefore persist for longer context spans, which matches the hierarchy the authors propose. Across the swept layers, the mean and median persistence correlate strongly with χ_ℓ. The same strong correlation holds across datasets and LLMs, so it isn't tied to one model.

This correlation is the second line of evidence that persistence explains the autocorrelation tails in real text. Persistent latent features carry the autocorrelations, so the authors test that claim directly with an ablation. Removing the persistent SAE features from the activations lowers the autocorrelations.

Ablating persistent features lowers the autocorrelation

The causal test removes SAE features from the token positions inside a persistent feature's firing episode and then recomputes the autocorrelation. The change Δ takes the last token of the episode as reference, so the reference token itself is not ablated.

The third and fourth columns of Table 1 report the largest Δ obtained by removing one SAE feature and by removing three SAE features. The fifth column is a control that removes an SAE feature active at position s but not persistent inside the window. For this control, the authors expect a much smaller Δ. The table reports Δ for five models on The Pile and WikiText.

Table 1: Change∆(Eq. 10) of the mean integrated autocorrelations generated by the ablation of
SAE-features, across models and two different corpora, and expres…

Table 1 : Change∆(Eq. 10) of the mean integrated autocorrelations generated by the ablation of SAE-features, across models and two different corpora, and expressed as a percentage of the value of the baseline correlations in each model. See Fig. 5 for a scheme of the ablation setup, and Sec. 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 toe+1,e+2ande+3token positions, where the latent of interest was not found to be active.

Original paper · CC BY 4.0

Removing all active latents through the SAE intermediate representation (sixth column) still leaves baseline autocorrelations, with |Δ| below 100. The authors attribute this residual to imperfect SAE reconstructions, which they report in Appendix J. Persistent latent features carry the autocorrelations, since removing them decreases autocorrelations significantly, whereas removing a non-persistent variable doesn't.

When the reference moves to positions e+1, e+2 and e+3, the effect of the ablation is smaller than with e as reference. That effect decays with the distance to the e token for all models except Pythia. The control with the reference outside the episode shows a weaker effect, because the feature is not active at that position.

Limits of the proxy and of the ablation test

SAE features are only a proxy for latent variables, and their reconstructions are imperfect. The ablation of all active latents doesn't remove the full baseline autocorrelation, with |∆| still below 100. The authors attribute this residual to imperfect SAE reconstructions, which they report in Appendix J. Since the proxy is imperfect, the ablation accounts for only part of the measured signal.

The ablation analysis is restricted to the deepest layer with an available SAE online. The synthetic evidence comes from one 5-block transformer trained on the Random Hierarchy Model. The real-text experiments cover Gemma 2 2B, Gemma 2 9B, Pythia-160M, Llama-3-8B and Qwen3-8B on The Pile and WikiText. Table 1 reports the change ∆ as a percentage of the baseline correlations for each of these models.

The authors leave open whether a fluctuation-response relation holds for transformer representations. Eq. 1 also ignores codes that change orientation across positions, since it measures only the trace of the cross-covariance matrix.

Paper info

Authors
Francesco Cagnetta, Santiago Acevedo
Venue
arXiv · Preprint
First published
2026-11-13
Added
2026-11-16
Updated
2026-11-13
Version
v1
arXiv
2611.18089
Category
cs.LG · cs.CL
Original paper terms
CC BY 4.0
What we show
Paper info, commentary and permitted figures from the original paper

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

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.

Quote from the paper

Francesco Cagnetta, Santiago Acevedo (2026). Deep Latents, Long Memory: Latent persistence explains temporal correlations in transformer activations. arXiv:2611.18089v1. https://arxiv.org/abs/2611.18089v1

BibTeX
@misc{cagnetta2026deep,
  title = {{Deep Latents, Long Memory: Latent persistence explains temporal correlations in transformer activations}},
  author = {Francesco Cagnetta and Santiago Acevedo},
  year = {2026},
  eprint = {2611.18089},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.18089v1}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up