Manuscript Offprint
arXiv:2610.22439Sparse Autoencoders Can Induce Local Geometry for Mitigating Catastrophic Forgetting
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.
The use of encoder Jacobians to capture local representation geometry has also been studied in earlier work on autoencoders. In particular, the Manifold Tangent Classifier extracts local directions from top singular vectors of a contractive autoencoder encoder Jacobian and encourages classifier invariance along them Rifai et al. (2011). Our objective is different: rather than interpreting these directions as manifold tangents and enforcing classifier invariance, we freeze SAE sensitivity factors at task boundaries and use them to constrain subsequent backbone representation drift in continual learning. We make no assumption that the selected TopK-Jacobian directions correspond to manifold tangents or individual semantic concepts. Our sparse encoders build on k-sparse autoencoders Makhzani & Frey (2013) and subsequent TopK SAE formulations Gao et al. (2025). Jacobian Sparse Autoencoders Farnik et al. (2025) address a complementary problem of learning sparse computational connections between model representations, rather than deriving continual-learning constraints from the local geometry of a frozen sparse encoder.
Recently, Sparse Autoencoders (SAEs), which map dense representations into sparse feature vectors Huben et al. (2024); Bereska & Gavves (2024); Filus & Pokuciński (2026), have been applied to continual learning both to analyze and mitigate forgetting. Diagnostic studies Filus et al. (2026); Masip et al. (2026) show that forgetting can reflect changes in feature accessibility and geometry rather than complete information loss, with a substantial component of representational drift being approximately linear. For mitigation in Low-Rank Adaptation (LoRA)-based continual learning for LLMs, SAE-FD Zhang et al. (2026) uses directional feature matching and magnitude preservation, while SAE-guided activation regularization Ning et al. (2026) selectively protects SAE features. In contrast, we study supervised continual learning in vision and train task-boundary SAEs rather than relying on a shared pretrained SAE space. Instead of directly preserving SAE activations, we export their local sensitivity geometry as low-rank factors and constrain representation drift along its dominant directions, without retaining the SAE during subsequent training. Our Latent baseline therefore serves as a direct TopK-code matching ablation rather than a reproduction of these prior methods.
While subspace regularization, Jacobian-based geometry, and SAE-based preservation have each been explored in different contexts, our approach introduces task-boundary, input-dependent SAE geometry for continual representation anchoring. At each task boundary, the SAE is converted into local, low-rank sensitivity directions that constrain subsequent representation drift and can be retained without keeping the SAE itself. Comparisons with latent anchoring and random, PCA, and classifier SVD geometries isolate the role of the resulting SAE-induced geometry.
3 USING SAE-INDUCED LOCAL GEOMETRY FOR FORGETTING MITIGATION
Spatial and directional anchors. Let index a completed task and let be the reservoir-buffer snapshot stored at that boundary. It contains examples from the cumulative stream, not exclusively from task . With backbone parameters , store and fit a fresh TopK SAE encoder Makhzani & Frey (2013); Gao et al. (2025) to the snapshot representations. At each stored example, compute
Define the full pullback semimetric and its spectral truncation by
where contains the r retained right singular vectors. The per-example geometric energy and its snapshot average are
The snapshot specifies where the old representation is anchored and specifies which local changes are penalized. In Jacobian mode, the encoder is discarded after these factors have been computed; the cached representations and factors define the subsequent constraint. Appendix D.4 specifies the architecture and construction.
Training losses and snapshot history. For an anchor minibatch , the raw Jacobian loss averages over examples and retained directions, whereas the latent baseline sums latent-coordinate errors and averages over examples:
Thus the raw training metric is , not . Vanilla retains the latest snapshot; History retains all completed-task snapshots. Let be this retained index set when learning task . An independent minibatch is drawn from each snapshot and the default mean reduction is
Replay adds cross-entropy on the minibatch from the latest frozen snapshot, rather than drawing from the live reservoir. With the anchor coefficient and the replay coefficient, the objective is
Without Replay, . Before the first snapshot is created, only the stream loss is used. Stored images have deterministic preprocessing for anchor comparisons so that the old and current features refer to the same input view.
Relation to latent matching and rank truncation. For , TopK retains the largest post-ReLU values in their original coordinates. If the positive active mask is unchanged along , , then
At full retained rank, the unnormalized Jacobian energy therefore equals latent displacement energy. The implemented raw losses satisfy within a fixed cell, so equal coefficients do not give equal local regularization strength. Our latent comparison concerns these implemented objectives, not a matched-strength isolation of support geometry.
For and , spectral truncation is optimal in operator and Frobenius norms and gives
Missing singular values are set to zero. The nullspace is local to an anchor: multiple examples or snapshots need not leave a shared subspace of that dimension. Support changes and truncation distinguish the geometric energies; the 1/r reduction additionally changes the scale of the training loss.
Functional relevance. Let be a frozen old readout, , and let retain positive singular values only. Writing , define and . If is -Lipschitz on a convex neighborhood containing the displacement segment, then
This bound separates controlled geometric energy from old-readout sensitivity outside the protected subspace. It is a conditional frozen-readout statement, not a guarantee for the changing Class-IL classifier. We do not estimate in the reported experiments. Appendix A provides the proofs, support-boundary example, and further consequences.
4 EXPERIMENTAL SETUP
Datasets. CIFAR-100 (100 classes, split into 10 tasks of 10 classes each; used both at native resolution with a from scratch backbone, and upsampled to with a pretrained backbone). CUB-200 (200 fine-grained bird species, 10 tasks of 20 classes each, ). ImageNet-R (200 classes – renditions/art styles of ImageNet classes, 10 tasks of 20 classes each, ). TinyImageNet (200 classes, split into 10 tasks of 20 classes each). For the from scratch regime we use CIFAR-100 and TinyImageNet, which provide 500 training images per class, rather than CUB-200 and ImageNet-R (30 and 120 images per class), as training on such limited data is not possible. more details are described in Appendix D.
Backbones. ViT-B/16, pretrained on ImageNet-21k. ResNet-18, trained entirely from scratch. We include more details on the hyperparameters in Appendix D.2
Scenario and metrics. All experiments use the class-incremental learning (Class-IL) scenario, where the task identity is not available at test time. Task-IL scenario (task identity given at test time) is reported alongside as a secondary, less demanding diagnostic in Appendix B. We implement our proposed methods within the Mammoth continual learning framework Buzzega et al. (2020); Boschini et al. (2022) and use it for all experiments. The primary metrics are final mean accuracy (accuracy on all classes seen so far, averaged over tasks, after training on the last task) and forgetting (mean drop from each task's peak accuracy to its accuracy at the end of training), computed using Mammoth's standard evaluation protocol.
Protocol. A replay buffer of size 500 (5120 for TinyImagenet) is used throughout for every rehearsal-based method (ours and all four baselines). Every number reported as “final” anywhere in this paper is the mean ± standard deviation over three seeds ( ) on the true test set; hyperparameter selection (Section D.2) is always performed separately on a held-out validation split and never touches the test set used for the numbers reported here.
Anchor snapshots and memory. The live reservoir contains 500 examples, but History retains an additional frozen task-boundary snapshot after each completed task. Each snapshot stores its then-current reservoir images together with old representations and the corresponding anchor factors. Thus History has auxiliary memory and anchor-computation costs that grow with the number of completed tasks, even though the live replay reservoir remains fixed at 500 examples; we therefore do not claim a strictly memory-matched comparison to ER, DER++, or ER-ACE. The default mean History reduction in Eq. 8 keeps the nominal anchor-loss scale approximately independent of the number of retained snapshots.
Evaluation plan. Our main experimental evaluation can be organized into four parts: (1) Ablation regarding the design choices for the task-boundary SAE-based anchoring and a comparison between SAE-Jacobian anchoring and direct SAE-latent anchoring. In the ablation we include combinations of Vanilla Latent/Vanilla Jacobian, History and Replay configurations on a full experimental stack (Section 5.1); (2) Comparison of the Jacobian-based anchoring (SAGA) with established continual learning baselines, including SGD (no forgetting mitigation), Experience Replay (ER) Chaudhry et al. (2019); Rolnick et al. (2019), Dark Experience Replay with Knowledge Distillation (DER++) Buzzega et al. (2020), and Experience Replay with Asymmetric Cross-Entropy (ER-ACE) Caccia et al. (2022) on a full experimental stack (for further experimental details see Appendix D.3, and for the results see Section 5.2); (3) Analysis of the effect of the retained Jacobian rank (r) to assess performance in low-rank anchoring regimes on example configurations (Section 5.3); (4) Comparison of SAE-induced geometry with alternative reference subspaces used for anchoring derived from random directions, Principal Component Analysis (PCA), and classifier SVD on example experimental configuration (Section 5.4). We also perform the analysis of the effect of SAE dictionary size in Appendix C, ranging from undercomplete to strongly overcomplete configurations, to determine whether overcompleteness is necessary for effective anchoring. For computational efficiency, we use undercomplete SAEs in the main experiments, while our dictionary-size ablation in Appendix C shows that overcomplete SAEs achieve comparable anchoring performance and can therefore be used when interpretability is also desired.
5 EXPERIMENTAL RESULTS
5.1 COMPARISON OF JACOBIAN-BASED ANCHORING WITH LATENT-BASED ANCHORING WITH SAEs
In this section, we compare Jacobian and direct Latent anchoring separately for pretrained backbones (model: ViT-B/16, datasets: CIFAR-100, CUB-200, ImageNet-R) and backbones trained from scratch (model: ResNet-18, datasets: CIFAR-100, TinyImageNet), along with the ablation study of the design choices for both these methods. Tables 1 and 2 report the Class-IL accuracy and forgetting results for the pretrained and from scratch cases respectively. Task-IL results are provided in Appendix B.
The clearest ablation result is the benefit of combining replay with historical anchors. For both anchor types and all five settings, the full Replay + History configuration improves both mean
https://github.com/aimagelab/mammoth
Table 1: SAE anchoring ablations for Class-IL scenario with pretrained ViT-B/16. Results are mean ± std over three seeds. Higher accuracy (↑) and lower forgetting (↓) are better.
| Configuration | CIFAR-100 | CUB-200 | ImageNet-R | |||
|---|---|---|---|---|---|---|
| Acc. | Forget. | Acc. | Forget. | Acc. | Forget. | |
| Vanilla Latent | ||||||
| Vanilla Jacobian | ||||||
| Latent + History | ||||||
| Jacobian + History | ||||||
| Latent + Replay | ||||||
| Jacobian + Replay | ||||||
| Latent + Replay + History | ||||||
| SAGA (Jacobian + Replay + History) | ||||||
Class-IL accuracy and mean forgetting over the corresponding Replay-only configuration. History alone helps substantially on pretrained representations, but is less reliable from scratch. Thus the useful setting is geometric anchoring together with replay and retained snapshots, rather than either standalone anchor.
The comparison between the full latent and Jacobian configurations is more specific. Jacobian anchoring improves mean accuracy in four of five settings. On from scratch CIFAR-100, accuracy rises from 21.44% to 28.53% and forgetting falls from 48.90 to 38.46; both metrics also improve on TinyImageNet and pretrained ImageNet-R. CUB-200 trades slightly higher accuracy for higher forgetting, while latent anchoring is better on CIFAR-100. These outcomes characterize the implemented methods; the differing loss reductions in Eqs. 6 and equation 7 prevent attributing every difference solely to the choice of local geometry.
Table 2: SAE anchoring ablations for Class-IL scenario with ResNet-18 trained from scratch. Results are mean ± std over three seeds. Higher accuracy (↑) and lower forgetting (↓) are better.
| Configuration | CIFAR-100 | TinyImageNet | ||
|---|---|---|---|---|
| Acc. | Forget. | Acc. | Forget. | |
| Vanilla Latent | ||||
| Vanilla Jacobian | ||||
| Latent + History | ||||
| Jacobian + History | ||||
| Latent + Replay | ||||
| Jacobian + Replay | ||||
| Latent + Replay + History | ||||
| Jacobian + Replay + History | ||||
5.2 COMPARISON BETWEEN JACOBIAN-BASED SAE ANCHORING AND COMMON FORGETTING MITIGATION METHODS
In this section, we compare Jacobian anchoring with common continual learning strategies – SGD (no forgetting mitigation), ER, ER-ACE and DER++ – separately for pretrained backbones (model: ViT-B/16, datasets: CIFAR-100, CUB-200, ImageNet-R) and backbones trained from scratch (model: ResNet-18, datasets: CIFAR-100, TinyImageNet). Tables 3 and 4 report Class-IL accuracy and forgetting for the pretrained and from scratch cases respectively. Task-IL results are provided in Appendix B.
The strongest result is consistent performance on the three pretrained benchmarks. In Table 3, our full method has the highest mean accuracy and lowest mean forgetting among the conventional baselines in every setting. Its Class-IL accuracy exceeds the strongest such baseline by 12.15 percentage points on CIFAR-100, 4.79 on CUB-200, and 3.22 on ImageNet-R. These comparisons include the additional historical snapshot storage described above; they are not equal-total-memory comparisons.
Table 3: Class-IL accuracy and forgetting against continual learning baselines on three pretrained ViT-B/16 settings. Results are mean std over three seeds. Higher accuracy () and lower forgetting () are better.
| Method | CIFAR-100 | CUB-200 | ImageNet-R | |||
|---|---|---|---|---|---|---|
| Acc. | Forget. | Acc. | Forget. | Acc. | Forget. | |
| SAGA (Jacobian + Replay + History) | ||||||
| DER++ | ||||||
| ER-ACE | ||||||
| ER | ||||||
| SGD | ||||||
The from scratch results define the limits of this advantage (Table 4). Our method improves on ER in accuracy on both datasets, but DER++ or ER-ACE attains higher final accuracy. On TinyImageNet it has the lowest mean forgetting, while on CIFAR-100 its forgetting is similar to DER++ and ER-ACE. The contrast is consistent with anchoring being particularly useful when adapting pretrained representations, but architecture, data, and initialization differ between the regimes, therefore these experiments do not isolate pretraining as the causal factor.
Table 4: Class-IL accuracy and forgetting against continual learning baselines with a ResNet-18 trained from scratch. Results are mean std over three seeds. Higher accuracy () and lower forgetting () are better.
| Method | CIFAR-100 | TinyImageNet | ||
|---|---|---|---|---|
| Acc. | Forget. | Acc. | Forget. | |
| SAGA (Jacobian + Replay + History) | ||||
| DER++ | ||||
| ER-ACE | ||||
| ER | ||||
| SGD | ||||
5.3 EFFECT OF ANCHOR RANK r.
Table 5 studies the effect of the retained Jacobian rank for SAGA (Jacobian + Replay + History), using a TopK SAE with and a pretrained ViT-B/16 backbone and three datasets. With raw weights, changing also changes the effective penalty strength because the loss averages over retained directions with decaying singular values. We therefore normalize each anchor's weights to unit mean square, preserving their relative weighting while keeping the nominal penalty strength constant across ranks.
Class-IL performance generally improves, however, substantially lower ranks remain competitive: even preserves strong performance, while Task-IL accuracy is comparatively insensitive to the retained rank. This indicates that the SAE-induced geometry admits substantial low-rank compression, although retaining a larger fraction of the Jacobian-sensitive subspace can be beneficial for Class-IL performance.
Table 5: Effect of the retained Jacobian rank for a TopK SAE with on accuracy, with normalized anchor weights (constant nominal penalty strength across ) and pretrained ViT-B/16. Results are mean std over three seeds. Higher results are better ().
| Configuration | CIFAR-100 | ImageNet-R | CUB-200 | |||
|---|---|---|---|---|---|---|
| Class-IL | Task-IL | Class-IL | Task-IL | Class-IL | Task-IL | |
| Jacobian (r = 4) + Replay + History | 75.55 ± 0.56 | 97.45 ± 0.09 | 59.41 ± 0.35 | 88.44 ± 0.36 | 70.25 ± 1.35 | 85.76 ± 0.52 |
| Jacobian (r = 8) + Replay + History | 75.71 ± 0.33 | 97.43 ± 0.17 | 60.63 ± 0.76 | 88.55 ± 0.48 | 71.87 ± 0.49 | 85.92 ± 0.67 |
| Jacobian (r = 16) + Replay + History | 76.48 ± 0.28 | 97.41 ± 0.04 | 61.64 ± 0.63 | 88.45 ± 0.42 | 74.06 ± 0.82 | 86.23 ± 0.34 |
| Jacobian (r = 32) + Replay + History | 78.08 ± 0.36 | 97.50 ± 0.02 | 63.94 ± 0.16 | 88.87 ± 0.24 | 74.52 ± 0.61 | 86.30 ± 0.27 |
| Jacobian (r = 64) + Replay + History | 79.45 ± 0.11 | 97.43 ± 0.13 | 64.34 ± 0.56 | 89.02 ± 0.10 | 74.77 ± 0.34 | 86.01 ± 0.74 |
5.4 COMPARISON OF LOW-RANK REFERENCE GEOMETRIES
To disentangle the contribution of the SAE-induced geometry from low-rank anchoring more broadly, we compare SAE-Jacobian anchoring with random, PCA, and classifier SVD reference geometries of matched nominal rank for pretrained Class-IL settings (Table 6) and a from scratch setting (Table 7). All rows use normalized anchor weighting, which fixes the total trace of the quadratic metric while retaining each geometry's protected directions and relative within-subspace spectral weights (Appendix D.3). Thus PCA and classifier SVD comparisons vary more than the subspace alone, whereas the SAE geometry is additionally input dependent.
The normalized controls show that the choice of geometry matters, but not in a uniform way. SAE-Jacobian has the highest mean accuracy and lowest mean forgetting on CUB-200. On ImageNet-R, it is close to PCA and random anchoring: the 0.07-point accuracy difference from PCA is small relative to the reported standard deviations. On the other hand, classifier SVD performs best on CIFAR-100. Therefore, these results support local SAE geometry as a useful option, not a universal replacement for global subspace constructions.
Table 6: Class-IL accuracy and forgetting for different reference geometries on pretrained ViT-B/16. All variants use normalized anchor weighting. Results are mean std over three seeds. Higher accuracy () and lower forgetting () are better.
| Reference | CUB-200 (r = 16) | ImageNet-R (r = 16) | CIFAR-100 (r = 8) | |||
|---|---|---|---|---|---|---|
| Acc. | Forget. | Acc. | Forget. | Acc. | Forget. | |
| Random | 70.68 ± 0.52 | 19.05 ± 0.84 | 61.11 ± 0.80 | 34.78 ± 1.03 | 71.69 ± 1.07 | 29.11 ± 1.12 |
| PCA | 71.64 ± 0.92 | 17.71 ± 1.12 | 61.37 ± 0.25 | 34.95 ± 0.30 | 74.98 ± 0.55 | 25.45 ± 0.62 |
| Classifier SVD | 67.27 ± 1.54 | 22.66 ± 1.67 | 56.69 ± 0.25 | 39.81 ± 0.52 | 77.34 ± 1.01 | 22.73 ± 0.97 |
| SAE Jacobian | 72.55 ± 1.19 | 16.64 ± 1.40 | 61.44 ± 0.30 | 34.67 ± 0.21 | 76.08 ± 0.64 | 24.16 ± 0.75 |
For the from scratch setting (Tab. 7), we additionally vary the nominal retained rank across all reference geometries. SAE-Jacobian is particularly effective at and in Class-IL accuracy, while PCA has lower mean forgetting at every displayed rank. At , PCA and SAE-Jacobian have nearly identical mean accuracy, and at SAE-Jacobian again has higher mean accuracy. These results show that alternative geometries occupy different stability–plasticity operating points rather than supporting a universal ordering. The normalized comparison controls the total metric trace, but PCA, classifier SVD, and SAE-Jacobian retain their own relative spectral weighting; the experiment is therefore a comparison of low-rank geometries rather than of directions alone. The functional relevance of the SAE geometry is characterized by the leakage term in Eq. 12, which describes old-readout sensitivity outside the protected subspace.
Table 7: Class-IL accuracy and forgetting for different reference geometries and ranks on CIFAR-100 with ResNet-18 trained from scratch (). All variants use normalized anchor weighting. Results are mean std over three seeds. Higher accuracy () and lower forgetting () are better.
| Rank r | Random | PCA | Classifier SVD | SAE Jacobian | ||||
|---|---|---|---|---|---|---|---|---|
| Acc. | Forget. | Acc. | Forget. | Acc. | Forget. | Acc. | Forget. | |
| 4 | 20.83 ± 0.39 | 51.76 ± 2.74 | 19.81 ± 2.30 | 32.57 ± 7.77 | 21.99 ± 1.55 | 42.86 ± 6.33 | 23.63 ± 0.71 | 46.65 ± 3.06 |
| 8 | 20.69 ± 3.96 | 46.23 ± 5.20 | 22.48 ± 0.95 | 36.46 ± 7.52 | 22.52 ± 1.26 | 43.63 ± 8.14 | 24.88 ± 1.85 | 37.74 ± 2.69 |
| 16 | 23.39 ± 1.07 | 45.26 ± 2.44 | 27.71 ± 2.21 | 27.62 ± 7.20 | 26.29 ± 1.33 | 41.92 ± 1.19 | 27.65 ± 1.44 | 35.44 ± 4.94 |
| 64 | 23.22 ± 1.72 | 45.73 ± 1.71 | 19.07 ± 8.06 | 28.81 ± 6.75 | 24.39 ± 5.52 | 40.52 ± 5.01 | 26.19 ± 4.58 | 33.03 ± 4.27 |
6 CONCLUSIONS
We introduced Sparse Autoencoder Geometric Anchoring (SAGA), a representation-level continual learning regularizer in which task-specific sparse autoencoders induce local positive-semidefinite geometries over stored representations. Replay snapshots specify where anchoring is applied, while truncated Jacobian singular directions determine which local changes are constrained. Our results show that SAEs can serve not only as latent feature spaces, but also as sources of sample-specific geometric constraints on backbone drift. These constraints can be compressed to a chosen rank and combined with replay supervision. The strongest empirical result is the full-stack SAGA's accuracy and forgetting relative to conventional baselines across all three pretrained benchmarks.
From scratch and geometry control results show that the benefit is regime dependent, while the rank ablation shows that the SAE-induced geometry can be substantially compressed with limited performance loss. The contribution, therefore, is a concrete use of SAEs as local geometric memory, together with a theoretical analysis of what that memory controls and an empirical characterization of where it helps.
Limitations. The Jacobian is a local linear description of the SAE and, for hard TopK encoders, its exact relation to latent anchoring holds only within a fixed activation/support cell; support transitions are a genuine source of discrepancy. An unsupervised SAE also does not guarantee that its sensitive directions coincide with old-task functional sensitivity, which is why our theoretical bound contains an explicit leakage term and why the PCA/classifier/random controls are important. Results use three seeds, so small differences in means should not be over-interpreted. Historical anchors also retain complete task-boundary reservoir snapshots and their stored representations/geometric factors, so their auxiliary memory and compute grow with the number of completed tasks even though the live replay reservoir remains fixed at 500 examples. Future work should therefore investigate anchor compression, more efficient SAE/Jacobian construction, and the resulting memory–accuracy–computation trade-offs.
AI USE STATEMENT
Generative AI tools were used to assist with research ideation, mathematical checking, drafting, and document organization. The authors reviewed the AI-assisted material and independently verified the mathematical statements, experimental results, citations, implementation decisions, and final claims included in the submission. The authors take responsibility for the final content of the work. Generative AI also was used to rewrite handwritten formulas and whiteboard photos into LaTeX equations.
ETHICS STATEMENT
This work does not involve any sensitive aspects, such as human subjects, personal data, or user studies. Continual learning is an important enabler for developing adaptive machine learning systems that can incorporate new knowledge while preserving previously acquired information. Our work aims to advance this area by addressing catastrophic forgetting – its key challenge – through an anchoring method. In conducting and reporting the study, we aimed to uphold high standards of scientific excellence through transparent methodology, reproducible experimental procedures, sharing our code, making it compatible with a commonly used framework (Mammoth) and careful reporting of both strengths and limitations. We are not aware of direct harmful applications specific to the proposed method. Nevertheless, as with other machine learning methods, its use in deployed systems may inherit risks associated with the underlying application domains, and such downstream effects should be considered.
REPRODUCIBILITY STATEMENT
To support reproducibility, we evaluated our method on publicly available continual learning datasets and implement it within the widely used Mammoth continual learning framework. Our implementation follows the experimental settings and evaluation protocols described in the paper, and we provide the source code required to reproduce the experiments. The code will be made publicly available on GitHub upon acceptance.
ACKNOWLEDGMENTS
This work was supported by the National Science Centre, Poland, under the OPUS grant 2025/59/B/ST6/00193.
REFERENCES
Leonard Bereska and Efstratios Gavves. Mechanistic Interpretability for AI Safety – A Review. arXiv preprint arXiv:2404.14082, 2024.
Matteo Boschini, Lorenzo Bonicelli, Pietro Buzzega, Angelo Porrello, and Simone Calderara. Class-Incremental Continual Learning into the eXtended DER-verse. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2022.
Pietro Buzzega, Matteo Boschini, Angelo Porrello, Davide Abati, and Simone Calderara. Dark Experience for General Continual Learning: a Strong, Simple Baseline. Advances in Neural Information Processing Systems, 33:15920–15930, 2020.
Lucas Caccia, Rahaf Aljundi, Nader Asadi, Tinne Tuytelaars, Joelle Pineau, and Eugene Belilovsky. New Insights on Reducing Abrupt Representation Change in Online Continual Learning. In International Conference on Learning Representations, 2022. URL https://arxiv.org/abs/2104.05025.
Arslan Chaudhry, Marcus Rohrbach, Mohamed Elhoseiny, Thalaiyasingam Ajanthan, Puneet K. Dokania, Philip H. S. Torr, and Marc'Aurelio Ranzato. On Tiny Episodic Memories in Continual Learning. arXiv preprint arXiv:1902.10486, 2019. URL https://arxiv.org/abs/1902.10486.
MohammadReza Davari, Nader Asadi, Sudhir Mudur, Rahaf Aljundi, and Eugene Belilovsky. Probing Representation Forgetting in Supervised and Unsupervised Continual Learning. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 16712–16721, 2022.
Arthur Douillard, Matthieu Cord, Charles Ollion, Thomas Robert, and Eduardo Valle. PODNet: Pooled Outputs Distillation for Small-Tasks Incremental Learning. In European Conference on Computer Vision, 2020. URL https://www.ecva.net/papers/eccv_2020/papers_ECCV/html/3384_ECCV_2020_paper.php.
Mehrdad Farajtabar, Navid Azizan, Alex Mott, and Ang Li. Orthogonal Gradient Descent for Continual Learning. In Proceedings of the 23rd International Conference on Artificial Intelligence and Statistics, volume 108 of Proceedings of Machine Learning Research, pp. 3762–3773, 2020. URL https://proceedings.mlr.press/v108/farajtabar20a.html.
Lucy Farnik, Tim Lawson, Conor Houghton, and Laurence Aitchison. Jacobian Sparse Autoencoders: Sparsify Computations, Not Just Activations. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pp. 16178–16236, 2025. URL https://proceedings.mlr.press/v267/farnik25a.html.
Katarzyna Filus and Sebastian Pokuciński. Measuring Monosemanticity in Sparse Autoencoders via Latent Activation Coherence. arXiv preprint arXiv:2607.17770, 2026. URL https://arxiv.org/abs/2607.17770.
Katarzyna Filus, Kamil Faber, Roberto Corizzo, and Christopher Kanan. Lost or hidden? a concept-level forgetting in supervised continual learning. arXiv preprint arXiv:2605.16374, 2026.
Leo Gao, Tom Dupre 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, volume 2025, pp. 26721–26754, 2025.
Qiao Gu, Dongsub Shim, and Florian Shkurti. Preserving linear separability in continual learning by backward feature projection. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 24286–24295, 2023.
Reinhard Heckel. Provable Continual Learning via Sketched Jacobian Approximations. In Proceedings of the 25th International Conference on Artificial Intelligence and Statistics, volume 151 of Proceedings of Machine Learning Research, pp. 10448–10470, 2022. URL https://proceedings.mlr.press/v151/heckel22a.html.
Saihui Hou, Xinyu Pan, Chen Change Loy, Zilei Wang, and Dahua Lin. Learning a Unified Classifier Incrementally via Rebalancing. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 831–839, 2019. URL https://openaccess.thecvf.com/content_CVPR_2019/html/Hou_Learning_a_Unified_Classifier_Incrementally_via_Rebalancing_CVPR_2019_paper.html.
Robert Huben, Hoagy Cunningham, Logan Riggs Smith, Aidan Ewart, and Lee Sharkey. Sparse Autoencoders Find Highly Interpretable Features in Language Models. In International Conference on Learning Representations, 2024.
James Kirkpatrick, Razvan Pascanu, Neil Rabinowitz, Joel Veness, Guillaume Desjardins, Andrei A Rusu, Kieran Milan, et al. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 114(13):3521–3526, 2017.
Haoran Li, Aditya Krishnan, Jingfeng Wu, Soheil Kolouri, Praveen K. Pilly, and Vladimir Braverman. Lifelong Learning with Sketched Structural Regularization. In Proceedings of the 13th Asian Conference on Machine Learning, volume 157 of Proceedings of Machine Learning Research, pp. 985–1000, 2021. URL https://proceedings.mlr.press/v157/li21b.html.
Zhizhong Li and Derek Hoiem. Learning without Forgetting. IEEE Transactions on Pattern Analysis and Machine Intelligence, 40(12):2935–2947, 2018. doi: 10.1109/TPAMI.2017.2773081.
Alireza Makhzani and Brendan Frey. k-Sparse Autoencoders. arXiv preprint arXiv:1312.5663, 2013. URL https://arxiv.org/abs/1312.5663.
Sergi Masip, Gido M van de Ven, Javier Ferrando, and Tinne Tuytelaars. Putting a Face to Forgetting: Continual Learning meets Mechanistic Interpretability. arXiv preprint arXiv:2601.22012, 2026.
Evan Ning, Wei Xue, Dong Lou, and Yike Guo. From weights to features: Sae-guided activation regularization for llm continual learning. arXiv preprint arXiv:2606.26629, 2026.
German I Parisi, Ronald Kemker, Jose L Part, Christopher Kanan, and Stefan Wermter. Continual Lifelong Learning with Neural Networks: A Review. Neural Networks, 113:54–71, 2019.
Salah Rifai, Yann N. Dauphin, Pascal Vincent, Yoshua Bengio, and Xavier Muller. The Manifold Tangent Classifier. In Advances in Neural Information Processing Systems, volume 24, 2011. URL https://papers.nips.cc/paper_files/paper/2011/hash/d1f44e2f09dc172978a4d3151d11d63e-Abstract.html.
David Rolnick, Arun Ahuja, Jonathan Schwarz, Timothy Lillicrap, and Gregory Wayne. Experience Replay for Continual Learning. Advances in Neural Information Processing Systems, 32, 2019.
Gobinda Saha, Isha Garg, and Kaushik Roy. Gradient projection memory for continual learning. In International Conference on Learning Representations, 2021.
Eli Verwimp, Rahaf Aljundi, Shai Ben-David, Matthias Bethge, Andrea Cossu, Alexander Geppert, et al. Continual Learning: Applications and the Road Forward. Transactions on Machine Learning Research, 2024.
Liyuan Wang, Xingxing Zhang, Hang Su, and Jun Zhu. A Comprehensive Survey of Continual Learning: Theory, Method and Application. IEEE Transactions on Pattern Analysis and Machine Intelligence, 46(8):5362–5383, 2024.
Honoka Yamashita, Takio Kurita, and Masaki Onishi. Continual learning by regularization in row space of weight matrix of previous task for deep neural network. In International Conference on Agents and Artificial Intelligence, volume 2, pp. 1138–1148, 2026.
Mingxu Zhang, Yuhan Li, Lujundong Li, Dazhong Shen, Hui Xiong, and Ying Sun. Sae-fd: Sparse autoencoder feature distillation for continual learning of large language models. arXiv preprint arXiv:2605.25525, 2026.
A MATHEMATICAL DETAILS OF TASK-ANCHORED SAE GEOMETRY
A.1 LOCAL PULLBACK APPROXIMATION
For a frozen task-boundary SAE encoder , define the nonlinear displacement energy at an anchor by
Assume that is differentiable near and that its Jacobian is -Lipschitz in operator norm. Writing , Taylor's theorem gives
Therefore
Thus is the local pullback semimetric induced by Euclidean distance in SAE latent space.
A.2 EXACT AFFINE RELU-TOPK GEOMETRY
Assume
where TopK is the hard coordinate-masking operator used in the implementation: it keeps the K largest post-ReLU values in their original latent coordinates and sets all remaining coordinates to zero. Let be a regular point whose selected TopK coordinates are strictly positive and separated from the remaining coordinates. Let be the selected support and let denote the corresponding diagonal mask. Then
Consequently, for every displacement ,
so full frozen-Jacobian anchoring is exactly matching the old active preactivation changes under the frozen anchor mask.
If the ReLU/TopK mask remains unchanged on the segment , the encoder is affine on that segment and hence
Therefore the unnormalized geometric energy of the full Jacobian equals the SAE-latent displacement exactly inside one cell. Because , retaining every nonzero singular direction also gives equality of these per-example energies. The training reductions are not identical: the implementation divides the Jacobian energy by the retained rank through its mean over directions, whereas the latent loss sums latent-coordinate errors. Hence fixed-cell equality should not be read as equality of the two implemented losses at the same numerical anchor weight.
A simple sufficient support-stability certificate can be written in terms of the TopK gap. Let
and let be the ordered coordinates. For , define
If and
then the TopK support is unchanged. Since coordinatewise ReLU is 1-Lipschitz, every post-ReLU coordinate moves by less than , so the ordering across the gap cannot reverse. A sufficient Euclidean condition is
Support changes can nevertheless separate latent and frozen-Jacobian anchoring sharply. For , , , ,
we have , while
but the frozen full-Jacobian penalty at is only . Thus hard TopK support transitions are one mechanism by which latent matching and frozen local geometry genuinely differ even without rank truncation.
A.3 OPTIMAL RANK TRUNCATION
Let
For , set and define
By the Eckart–Young–Mirsky theorem, is a best rank-r approximation to Q in both operator and Frobenius norms, with
For every ,
Moreover, , so .
A.4 SPATIAL SAMPLING AND DIRECTIONAL COMPRESSION
Let denote the distribution of input examples in the cumulative stream at task boundary that the reservoir snapshot is intended to approximate. Define the ideal nonlinear snapshot-anchor energy
With , set
where is the full pullback metric from Eq. 2. Then
The three terms quantify local/support error, directional compression, and finite spatial sampling. The rank term obeys
(35) and inside a fixed affine ReLU–TopK cell. This decomposition is written for the unnormalized geometric energy ; the raw Jacobian training loss carries the additional factor 1/r from Eq. 6.
For intuition about finite spatial resolution, fix the entire loss function, including , , , and , independently of a hypothetical i.i.d. evaluation sample from . If almost surely, Hoeffding's inequality gives, with probability at least ,
This is an illustrative fixed-model sampling statement, not a generalization guarantee for the trained continual learner: the implementation uses reservoir snapshots to fit the SAE and later optimize the backbone, so the independence assumption does not hold for those same stored examples.
A.5 FUNCTIONAL LEAKAGE OUTSIDE THE PROTECTED SUBSPACE
Let be a frozen old-task logit map and let . Let be formed from retained nonzero singular values, with , and set . Define
If has an -Lipschitz Jacobian on a convex neighborhood containing the displacement segment, Taylor expansion gives
Decomposing and using
yields
Thus a low-rank SAE anchor can control old-task function only to the extent that old-task sensitivity outside the protected subspace, described by , is small.
This statement concerns compatibility with the frozen old-task readout. In the Class-IL experiments the live classifier continues to change, so classifier-parameter drift and competition from newly introduced classes can alter logits even when the representation remains compatible with the old frozen readout.
For a linear old readout and any , there exists a finite such that
if and only if
When this holds, the smallest constant is
This gives an exact algebraic version of the same requirement: no old-task-sensitive direction may lie completely in the anchor nullspace.
A.6 SAME-POINT HISTORICAL QUADRATIC AGGREGATION
The following identity applies when several historical quadratic anchors constrain the same current representation . It is useful for interpreting how multiple local PSD constraints combine, but it is not a literal reduction of the full implementation, where different task-boundary snapshots generally contain different replay examples and are evaluated on independently sampled minibatches. Let
(44) with . Define
With ,
where . Since all are positive semidefinite,
Thus, at a common point, adding PSD historical anchors can only shrink the common unconstrained subspace. In the actual training procedure, History instead averages or sums stochastic losses from separately stored task-boundary snapshots; the default is the mean reduction, so total nominal anchor-loss scale does not grow linearly with the number of snapshots, although storage and compute do.
B TASK-IL RESULTS
For completeness, we report Task-IL accuracy and forgetting corresponding to the main Class-IL experiments. Task-IL assumes that the task identity is available at test time and serves as a secondary diagnostic.
Table 8: Task-IL accuracy and forgetting for SAE anchoring ablations with a pretrained ViT-B/16. Results are mean std over three seeds.
| Configuration | CIFAR-100 | CUB-200 | ImageNet-R | |||
|---|---|---|---|---|---|---|
| Acc. | Forget. | Acc. | Forget. | Acc. | Forget. | |
| Vanilla Latent | ||||||
| Vanilla Jacobian | ||||||
| Latent + History | ||||||
| Jacobian + History | ||||||
| Latent + Replay | ||||||
| Jacobian + Replay | ||||||
| Latent + Replay + History | ||||||
| SAGA (Jacobian + Replay + History) | ||||||
Table 9: Task-IL accuracy and forgetting for SAE anchoring ablations with a ResNet-18 trained from scratch.
| Configuration | CIFAR-100 | TinyImageNet | ||
|---|---|---|---|---|
| Acc. | Forget. | Acc. | Forget. | |
| Vanilla Latent | ||||
| Vanilla Jacobian | ||||
| Latent + History | ||||
| Jacobian + History | ||||
| Latent + Replay | ||||
| Jacobian + Replay | ||||
| Latent + Replay + History | ||||
| SAGA (Jacobian + Replay + History) | ||||
Overall, the Task-IL results are consistent with the Class-IL findings included in the main paper. In particular, combining replay with persistent task history remains the strongest SAE-anchoring configuration, while SAE-Jacobian anchoring shows particularly strong performance in the pretrained setting, as well compared to the SAE latent anchoring in the from scratch scenario. Our method also consistently reduces forgetting relative to standard baselines.
Table 10: Task-IL accuracy and forgetting against continual learning baselines on pretrained ViT-B/16.
| Method | CIFAR-100 | CUB-200 | ImageNet-R | |||
|---|---|---|---|---|---|---|
| Acc. | Forget. | Acc. | Forget. | Acc. | Forget. | |
| Ours | ||||||
| DER++ | ||||||
| ER-ACE | ||||||
| ER | ||||||
| SGD | ||||||
Table 11: Task-IL accuracy and forgetting against continual learning baselines with a ResNet-18 trained from scratch.
| Method | CIFAR-100 | TinyImageNet | ||
|---|---|---|---|---|
| Acc. | Forget. | Acc. | Forget. | |
| Ours | ||||
| DER++ | ||||
| ER-ACE | ||||
| ER | ||||
| SGD | ||||
C EFFECT OF SAE DICTIONARY SIZE (OVERCOMPLETENESS)
We perform all of our main experiments with SAE dictionary of size 256, i.e. an undercomplete dictionary relative to the ResNet-18 and ViT feature dimensions (, an expansion factor of ), whereas SAEs are more commonly trained overcomplete when used for representational disentanglement and interpretability. Table 12 tests different dictionary sizes on CIFAR-100 with ResNet-18, ranging from (the default for dictionary size 256 in the ResNet-18 case) up to , at fixed sae_topk = jacobian_k = 16. Class-IL accuracy is rather flat across dictionary sizes and within one standard deviation of the default 256-unit dictionary at every size tested. The only configuration that is both worse and markedly less stable across seeds is dictionary size 1024 (expansion factor 2). Our obtained results suggest that overcomplete dictionaries are not essential for the proposed anchoring mechanism, however, they can still be used when interpretability of continual learning models representations is an additional objective, while the same SAE can be used to derive the Jacobian-based anchors for continual learning.
Table 12: Effect of SAE dictionary size on accuracy for CIFAR-100 with a ResNet-18 trained from scratch, at fixed . Expansion factor is relative to the backbone's 512-dimensional feature space. Results are mean std over three seeds. Higher results are better ().
| Dictionary size | Expansion | Class-IL | Task-IL |
|---|---|---|---|
| 256 | |||
| 512 | |||
| 1024 | |||
| 2048 | |||
| 4096 |
D DETAILED EXPERIMENTAL SETUP
D.1 DATASETS
Table 13 summarizes the datasets. Classes are assigned to tasks in the class order of the dataset (no class permutation), so the task sequence is identical for every seed; each task is trained for a fixed number of epochs (Table 14). CIFAR-100 is used at native resolution with a from scratch ResNet-18 and upsampled to with the pretrained ViT-B/16. TinyImageNet has
500 training images per class and its official validation split serves as the test set. CUB-200 (fine-grained bird species) has about 30 training images per class and ImageNet-R (renditions such as art and cartoons of 200 ImageNet classes) 120 per class, with the fixed train/test split of the respective data release. In all settings the seed changes the initialization of the new layers and of the SAE, the data order and the buffer contents, but not the task sequence.
Table 13: Datasets. “Tasks” is the number of tasks × classes per task. Input: image size seen by the network. Train-time augmentation is listed in the text; test images are only resized (and, where stated, center-cropped) and normalized.
| Dataset | Classes | Tasks | Train / Test images | Input | Backbone |
|---|---|---|---|---|---|
| CIFAR-100 | 100 | 50,000 / 10,000 | ResNet-18 (scratch) | ||
| TinyImageNet | 200 | 100,000 / 10,000 | ResNet-18 (scratch) | ||
| CIFAR-100 | 100 | 50,000 / 10,000 | ViT-B/16 (pretrained) | ||
| ImageNet-R | 200 | 24,000 / 6,000 | ViT-B/16 (pretrained) | ||
| CUB-200 | 200 | 5,994 / 5,794 | ViT-B/16 (pretrained) |
Datasets in training from scratch A network trained from scratch needs many images per class. CIFAR-100 and TinyImageNet provide 500 training images per class, whereas ImageNet-R provides 120 (24,000 images for 200 classes, moreover renditions of varying style) and CUB-200 only 30 (5,994 images). In preliminary runs of a ResNet-18 trained from scratch on these two datasets (10 epochs per task, three seeds), all methods, including plain SGD, stayed below 10% Class-IL accuracy, so they cannot be meaningfully compared. In contrast, a ResNet-18 trained from scratch on TinyImageNet reaches 25–32% with the rehearsal-based methods (and for SGD: 6.8%). We therefore evaluate the from-scratch regime on CIFAR-100 and TinyImageNet and the pretrained regime on the 224-pixel datasets (upscaled CIFAR-100, ImageNet-R and CUB-200).
D.2 HYPERPARAMETERS
Table 14 lists the tuned hyperparameters of our method (learning rate and anchor weight) together with the fixed training settings, for the main results. The SAE-specific hyperparameters are fixed in all of them (sae_epochs = 20; sae_lr = ; dictionary size 256).
Table 14: Tuned hyperparameters and fixed training settings for our method SAGA (Jacobian + Replay + History), by setting.
| Setting | Backbone | lr | Anchor weight | Epochs/task | Buffer | Optimizer | Batch |
|---|---|---|---|---|---|---|---|
| CIFAR-100 | ViT-B/16 (pretrained) | 3.0 | 10 | 500 | Adam | 64 | |
| ImageNet-R | ViT-B/16 (pretrained) | 0.3 | 10 | 500 | Adam | 64 | |
| CUB-200 | ViT-B/16 (pretrained) | 0.3 | 10 | 500 | Adam | 64 | |
| CIFAR-100 | ResNet-18 (scratch) | 0.1 | 0.3 | 20 | 500 | SGD | 64 |
| TinyImageNet | ResNet-18 (scratch) | 0.03 | 1.0 | 20 | 5120 | SGD | 64 |
For every setting, our method's learning rate and anchor weight were selected by a grid search (learning rate × anchor weight) evaluated on a held-out validation split (10% of the training set held out per class), using a single screening seed. All numbers reported elsewhere in the paper are then produced by a separate run at the winning hyperparameters, over three seeds on the separate test set.
D.3 COMPARISONS WITH REFERENCE GEOMETRIES
To test whether SAE-Jacobian anchoring benefits from SAE-induced geometry specifically or from low-rank anchoring more generally, we compare it with random, PCA, and classifier SVD geometries under the same Replay+History protocol. Each geometry supplies an orthonormal basis and nonnegative direction weights , defining
For these comparisons we use anchor_weight_norm=normalized, which rescales the weights according to
Because the implementation also averages squared projected drift over the r retained directions, the normalized per-example loss is
Thus the comparison normalizes the total metric trace while preserving each geometry’s directions and relative within-subspace spectral weighting.
The concrete reference geometries are:
• Random: draw Gaussian directions and orthonormalize them by QR. The directions use unit weights, so and the implemented loss is . The seed of the basis is derived from the run seed and the task index.
- PCA: center the same representation dataset that would otherwise be used to fit the SAE, compute , and use the leading right-singular directions together with their singular values. Before normalization, .
• Classifier SVD: decompose the frozen classifier weight matrix and use its leading right-singular directions and singular values. Before normalization, the full-rank energy satisfies , i.e. squared drift of a frozen linear readout. Under Eq. 50, the implemented full-rank quantity is proportional to logit drift, . The requested rank is capped by the numerical rank of .
• SAE Jacobian: use the per-example right-singular directions and singular values of the local SAE encoder Jacobian. Unlike the other three controls, this basis varies across anchor examples.
PCA and classifier SVD therefore vary both the protected directions and their within-subspace spectral weights. The experiment should be interpreted as a comparison of alternative low-rank geometries rather than of directions alone.
D.4 SAE SETUP
At every task boundary a fresh TopK SAE Gao et al. (2025) is trained on the frozen backbone's features of the reservoir snapshot; its encoder Jacobian is evaluated at the snapshot's samples and, in the Jacobian mode used for all main results, the SAE is then discarded, keeping only the low-rank directions and weights.
Architecture. SAEs act on the pooled pre-logit feature (class token after the final layer normalization for ViT-B/16, ; globally average-pooled last-stage output for ResNet-18, ), used without centering or rescaling. It has one hidden layer with a hard TopK activation,
with and ; TopK keeps the largest post-ReLU activations of each sample in place and zeroes the rest. The weights are untied, the decoder columns are unconstrained, initialization is the PyTorch default, and there are parameters. The values used for the main results are listed in Table 15: and (undercomplete: the feature dimension for ViT-B/16, for ResNet-18). The ablations change them as follows: for all ranks in the rank ablation, so that the SAE is identical across ranks; in the reference-geometry comparison, except at ; and at in the dictionary-size ablation.
Training. The SAE minimizes only the mean squared reconstruction error over minibatches ,
(52) with no sparsity penalty (TopK provides the sparsity), auxiliary loss or weight decay. It uses Adam (learning rate , default momenta) for 20 epochs with batch size 64, reshuffled every epoch, independently of the continual learner's optimizer. It is initialized from scratch at every boundary and then frozen in evaluation mode: 8 steps per epoch (160 in total) for 500 samples, 1600 steps for the 5120 samples of TinyImageNet. These values are identical in all settings and were not tuned.
Training data. The SAE is trained without labels on the features of all images in the reservoir buffer at the boundary (; for TinyImageNet). As in the baselines, the reservoir is updated at every training step, so it approximates a uniform sample of the stream seen so far, contains all classes seen up to that task, and, when a task is trained for several epochs, may hold the same image more than once. Images are stored without augmentation and passed through the deterministic part of the dataset's test-time preprocessing (resizing, normalization), as when the anchor loss compares with ; features come from the backbone at the boundary in evaluation mode.
From the SAE to the geometry. For a buffer image with feature , let index its largest post-ReLU activations . Away from ReLU and TopK boundaries the encoder is locally linear and its Jacobian is read from the weights in closed form:
We take the thin SVD (in chunks of 64 samples), keep the leading and , and store them with , the image and its label in the snapshot; the normalized weighting rescales to (Eq. 49). In Latent mode the frozen SAE is kept and is stored instead. Anchors therefore need only the buffer images, the backbone at the boundary and the SAE (transiently, while the directions are computed); no data of the finished task, old-task classifier or gradients are used. The reference geometries of Section 5.4 train no SAE: random needs only , and a seed (Gaussian matrix orthonormalized by QR; seed derived from the run seed and task index), PCA the centered buffer features (leading right singular vectors and values), classifier SVD the classifier weights at the boundary. These bases are global, one matrix shared by all anchors, whereas SAE-Jacobian directions are per anchor.
Table 15: SAE hyperparameters for the main results. : feature dimension; : dictionary size; : TopK sparsity; : retained Jacobian rank; : buffer samples per snapshot (SAE training set and anchors); SAE parameters: . The training hyperparameters (Adam, learning rate , 20 epochs, batch size 64) are identical in all settings.
| Backbone; datasets | D | m | K | r | N | SAE params |
|---|---|---|---|---|---|---|
| ViT-B/16; CIFAR-100, CUB-200, ImageNet-R | 768 | 256 | 16 | 16 | 500 | 394k |
| ResNet-18; CIFAR-100 | 512 | 256 | 16 | 16 | 500 | 263k |
| ResNet-18; TinyImageNet | 512 | 256 | 16 | 16 | 5120 | 263k |
E COMPUTATIONAL OVERHEAD
Table 16 reports the mean wall-clock training time per task for our method and SGD, included as the least computationally expensive baseline, across five different settings for which per-task timing was recorded. Independently measured GPU-device time using CUDA events differs from wall-clock time by less than in all cases, indicating that the runs are predominantly GPU-bound with negligible CPU and data-loading overhead. We therefore omit GPU-device time as a separate column.
The proposed method introduces a consistent computational overhead across all evaluated settings, with training time remaining within a narrow range relative to SGD. This indicates that the additional cost is predictable and primarily comes from SAE training, Jacobian/SVD computation at task boundaries, and the additional anchoring passes during optimization.
Table 16: Mean wall-clock time per task (seconds), our method vs. SGD, across the five settings with timing instrumentation. Ratio = Ours / SGD.
| Setting | Ours (s/task) | SGD (s/task) | Ratio |
|---|---|---|---|
| CUB-200 (ViT-B/16, pretrained) | 114.3 | 16.6 | |
| ImageNet-R (ViT-B/16, pretrained) | 429.8 | 67.0 | |
| CIFAR-100 (ViT-B/16, pretrained) | 904.2 | 138.6 | |
| CIFAR-100 (ResNet-18, scratch) | 82.6 | 12.9 | |
| TinyImageNet (ResNet-18, scratch) | 302.2 | 42.8 |