Temporal Sparse Autoencoders: Leveraging the Sequential Nature of Language for Interpretability
Usha Bhalla, Alex Oesterling, Claudio Mayrink Verdun, Himabindu Lakkaraju, Flavio P. Calmon
TL;DR
This work tackles the interpretability gap in dictionary-based features learned from language models by introducing Temporal Sparse Autoencoders (T-SAEs). By partitioning latent space into high-level semantic and low-level syntactic features and adding a temporal contrastive loss, T-SAEs enforce consistency of semantic activations across adjacent tokens, yielding smoother, more coherent semantic representations without sacrificing reconstruction quality. Across multiple models and datasets, T-SAEs demonstrate improved semantic and contextual disentanglement while maintaining competitive SAE performance, and they enable practical benefits such as dataset understanding and steering for alignment data. The approach provides a self-supervised pathway to uncover meaningful linguistic concepts with sequence-level interpretability, holding promise for safer and more controllable language models.
Abstract
Translating the internal representations and computations of models into concepts that humans can understand is a key goal of interpretability. While recent dictionary learning methods such as Sparse Autoencoders (SAEs) provide a promising route to discover human-interpretable features, they suffer from a variety of problems, including a systematic failure to capture the rich conceptual information that drives linguistic understanding. Instead, they exhibit a bias towards shallow, token-specific, or noisy features, such as "the phrase 'The' at the start of sentences". In this work, we propose that this is due to a fundamental issue with how dictionary learning methods for LLMs are trained. Language itself has a rich, well-studied structure spanning syntax, semantics, and pragmatics; however, current unsupervised methods largely ignore this linguistic knowledge, leading to poor feature discovery that favors superficial patterns over meaningful concepts. We focus on a simple but important aspect of language: semantic content has long-range dependencies and tends to be smooth over a sequence, whereas syntactic information is much more local. Building on this insight, we introduce Temporal Sparse Autoencoders (T-SAEs), which incorporate a novel contrastive loss encouraging consistent activations of high-level features over adjacent tokens. This simple yet powerful modification enables SAEs to disentangle semantic from syntactic features in a self-supervised manner. Across multiple datasets and models, T-SAEs recover smoother, more coherent semantic concepts without sacrificing reconstruction quality. Strikingly, they exhibit clear semantic structure despite being trained without explicit semantic signal, offering a new pathway for unsupervised interpretability in language models.
