arXiv:2610.22439cs.LGOct 2026

Manuscript Offprint

arXiv:2610.22439

Sparse Autoencoders Can Induce Local Geometry for Mitigating Catastrophic Forgetting

Kamil Faber, Katarzyna Filus, Łukasz Pawela

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

ABSTRACT

Catastrophic forgetting remains a challenge in supervised continual learning, as adapting to new tasks causes representation drift and loss of previously learned information. This raises the question of which representational changes should be constrained while preserving plasticity. We therefore introduce Sparse Autoencoder Geometric Anchoring (SAGA), which converts a Sparse Autoencoder (SAE) trained at each task boundary into local, low-rank constraints on representation drift. Replay examples specify where the constraints apply, while leading right singular directions of the encoder Jacobian specify which changes are penalized. The resulting geometry is input dependent and can be retained without keeping the SAE for subsequent tasks' training. We establish its local relation to latent code matching, define its spectral truncation error, and derive a conditional bound on frozen-readout drift. With replay and snapshot history, the method achieves the highest mean Class-IL accuracy and lowest mean forgetting among the evaluated ER, DER++, ER-ACE, and SGD baselines on three pretrained ViT-B/16 benchmarks, with accuracy gains of 12.15, 4.79, and 3.22 percentage points over the strongest conventional baseline on CIFAR-100, CUB-200, and ImageNet-R, respectively. From scratch results are more mixed, while rank ablations and geometry controls show that SAE-induced low-rank geometry offers useful stability-plasticity trade-offs.

1 INTRODUCTION

Catastrophic forgetting, i.e., the degradation of previously acquired knowledge during sequential training on new tasks, remains one of the key challenges in supervised continual learning Wang et al. (2024). Common mitigation strategies include rehearsal Rolnick et al. (2019), regularization and distillation Kirkpatrick et al. (2017); Li & Hoiem (2018), and hybrid approaches Buzzega et al. (2020). More recently, forgetting has increasingly been studied at the representation level, where learning subsequent tasks can alter feature-space geometry and move previously useful information into directions that are no longer accessible to the original readout Gu et al. (2023); Filus et al. (2026); Masip et al. (2026). This motivates preserving task-relevant representation subspaces, for example those derived from previous task heads Yamashita et al. (2026) or representations Saha et al. (2021). However, these approaches typically define global subspaces, leaving open whether local geometry could provide selective control of representation drift.

Sparse autoencoders (SAEs) map dense representations to sparse feature codes Huben et al. (2024); Bereska & Gavves (2024); Filus & Pokuciński (2026). In continual learning, they have been used to analyze changes in visual representations Filus et al. (2026); Masip et al. (2026) and to regularize sparse activations during language-model adaptation Zhang et al. (2026); Ning et al. (2026). We ask a different question: can a sparse encoder specify which local changes in the original representation should be penalized, rather than only providing a latent code to match?

To address this question, we introduce SAGA (Sparse Autoencoder Geometric Anchoring), which uses SAE encoder Jacobians to derive task-specific local geometry for representation anchoring. At

∗^{*}Equal contributions each task boundary, a fresh SAE is fitted to the backbone representations of a replay buffer snapshot. Its encoder Jacobian defines a local quadratic geometry at each stored example. The snapshot specifies where to anchor the old representation, while the leading Jacobian singular directions and their weights specify which changes to penalize. Unlike a single global subspace, these constraints can differ across examples because the SAE's active features change with the input. Once these elements are computed, the SAE can be discarded. Full-stack SAGA combines this Jacobian anchor with two components. History keeps the anchors from all task boundaries, so older constraints are not overwritten by snapshots fitted to already-drifted representations. Replay adds cross-entropy on snapshot examples, supplying the classifier supervision that anchoring alone lacks in Class-IL.

The empirical benefit is clearest with pretrained representations. On CIFAR-100, CUB-200, and ImageNet-R, full-stack SAGA configuration achieves the highest mean accuracy and lowest mean forgetting among the evaluated conventional baselines. Against the corresponding latent-anchoring configuration, it has higher mean Class-IL accuracy in four out of five dataset/backbone settings, with CIFAR-100 being the exception. Rank ablations show that a small retained subspace can be sufficient, and geometry controls identify where SAE-derived constraints help relative to global alternatives. We distinguish these empirical findings from a universal optimality claim: the mathematical analysis states the coverage of old-readout sensitivity needed for a geometric anchor to control functional drift. Our contributions can be summarized in the following way:

• A task-boundary anchoring method that turns sparse encoders into input-dependent, low-rank quadratic constraints, separating spatial memory in replay examples from directional memory in Jacobian factors.

• An analysis of the relation to latent matching, spectral truncation, and frozen-readout drift, with an explicit distinction between geometric energy and the normalization of the implemented training losses.

• An empirical evaluation across pretrained and from scratch backbones, including replay/history ablations, rank compression, alternative geometries, and dictionary size, that characterizes both the benefits and the limits of SAE-derived anchoring.