Persistent Sparse Autoencoders: Learning Feature-Specific Timescales in Language Model Representations

Haoyan Luo, Mateo Espinosa Zarlenga, Mateja JamnikarXiv 2026

TL;DR

Traditional Sparse Autoencoders (SAEs) analyze language model activations token-by-token, missing the broader temporal context. This paper introduces Persistent SAEs, which automatically learn a unique decay rate for every feature based purely on reconstruction quality. This simple addition successfully separates fleeting token-level details from long-lasting contextual signals, opening up new avenues for long-context model monitoring and interpretability.

What Problem Does This Paper Address?

Mechanistic interpretability aims to crack open the "black box" of Large Language Models (LLMs). Sparse Autoencoders (SAEs) have emerged as a favorite tool for this, decomposing complex LLM hidden states into thousands of sparse, human-interpretable features.

However, standard SAEs have a major blind spot: they process each token completely independently. Even though an LLM's hidden states naturally integrate past context, standard SAEs treat them as isolated events. This atemporal design makes it difficult to track information that persists across a sequence, such as the overarching topic, style, or a persistent security threat. While recent work has tried to force temporal structures onto SAEs, these methods require researchers to manually pre-define which features handle time, introducing experimenter bias.

The authors ask a fundamental question: Can an SAE learn feature-specific timescales directly from data without human intervention?

Methods

The authors first demonstrate that standard SAE features inherently exhibit temporal persistence—when a feature activates, the model's hidden states remain aligned with that feature's direction for several tokens afterward.

To explicitly model this, they propose Persistent Sparse Autoencoders (Persistent SAEs). Instead of treating activations as independent, each feature $j$ maintains an internal persistent state $h_j^{(t)}$ that updates recursively over time:

$$h_j^{(t)} = \lambda_j h_j^{(t-1)} + (1 - \lambda_j)a_j^{(t)}$$

Here, $a_j^{(t)}$ is the fresh, token-wise sparse activation (enforced via a standard BatchTopK mechanism), and $\lambda_j \in [0, 1)$ is a learned persistence coefficient unique to that feature.

Figure 2: Persistent Sparse Autoencoders. Each feature integrates its token-wise sparse activation a(t) into a persistent state h(t) with its learned persistence coefficient λj.
  • Small $\lambda_j$ (Fast Features): The state decays rapidly, making the feature act as a local detector for specific words or short phrases.
  • Large $\lambda_j$ (Slow Features): The state decays slowly, allowing the feature to accumulate and retain long-term contextual information.

Crucially, the network learns these $\lambda_j$ coefficients entirely unsupervised through the standard objective of minimizing reconstruction error. If carrying a feature's state forward helps predict future tokens, the model naturally incentivizes a higher $\lambda_j$.

Datasets

The authors evaluated their approach using three distinct datasets:

  1. The Pile (Uncopyrighted): Used for training and baseline evaluations on Pythia-160M and Gemma-2-2B. They also created a "shuffled control" version (swapping sentences from different documents) to isolate global document continuity from local sentence structure.
  2. MMLU (Massive Multitask Language Understanding): Specifically, subsets from five diverse subjects (abstract algebra, astronomy, business ethics, computer security, and European history) to evaluate if slow features track high-level subject matter.
  3. AgentDojo: A framework for evaluating LLM agents. The authors extracted trajectories containing indirect prompt injection attacks to test long-context safety monitoring.

Key Insights and Ideas

  • Reconstruction Alone Sorts Time: It is entirely possible to learn a spectrum of timescales without auxiliary temporal losses or hardcoded feature splits. The pressure to accurately reconstruct the LLM's hidden state is enough to organize features by time.
  • Grammar vs. Meaning: Fast and slow features naturally specialize. Fast features (low $\lambda$) tend to activate on nouns and specific lexical patterns. Slow features (high $\lambda$) are preferentially updated at punctuation and conjunctions—the structural markers where sentences integrate into broader context.
  • Unsupervised Topic Clustering: The persistent states of slow features naturally cluster by semantic topic without ever seeing a topic label, providing a cleaner visual separation of subjects than raw LLM hidden states.
t-SNE visualization of MMLU subject clustering

Key Results

  • Competitive Reconstruction: Persistent SAEs maintain high reconstruction fidelity (matching or nearing standard BatchTopK baselines in Fraction of Variance Explained) while successfully segregating temporal information.
  • Local Interpretability Maintained: Fast features retain high automated interpretability scores, meaning the introduction of recurrence doesn't muddy the clarity of token-level feature detectors.
  • Prompt Injection Monitoring: In the AgentDojo case study, a linear probe trained on the top 1% slowest features could detect a malicious prompt injection up to 350 tokens after the injection occurred, significantly outperforming standard SAEs and raw hidden states whose signals quickly decayed to chance.
  • Causal Steering: Intervening on slow-feature directions consistently influenced the monitor model's judgment over long distances, proving these persistent features are causally meaningful to the network's downstream behavior.

Limitations and Future Work

While promising, Persistent SAEs have a few notable limitations:

  • Fixed Coefficients: Each feature has a single, static $\lambda_j$. It cannot dynamically accelerate its decay or reset based on context boundaries (e.g., when a document ends or a topic abruptly changes).
  • Diagonal Recurrence: The model assumes features evolve independently, failing to capture complex interactions where one feature triggers or suppresses another over time.
  • Evaluation Constraints: The prompt injection study was performed on an external "replay monitor" rather than directly intervening in the active loop of an executing agent.

The authors suggest that future work should explore richer recurrent dynamics to better capture how human-interpretable concepts interact over time.

Summary updated

BibTeX
@misc{luo2026persistent,
  author = {Haoyan Luo and Mateo Espinosa Zarlenga and Mateja Jamnik},
  title = {{Persistent Sparse Autoencoders: Learning Feature-Specific Timescales in Language Model Representations}},
  year = {2026},
  eprint = {2607.17117},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.17117},
}
Figure