Routing without Forgetting
Not on the map. Why?
Abstract (arXiv)
Continual learning in transformers is commonly addressed through parameter-efficient adaptation: prompts, adapters, or LoRA modules are specialized per task while the backbone remains frozen. Although effective in controlled multi-epoch settings, these approaches rely on gradual gradient-based specialization and struggle in Online Continual Learning (OCL), where data arrive as a non-stationary stream and each sample may be observed only once. We recast continual learning in transformers as a routing problem: under strict online constraints, the model must dynamically select the appropriate representational subspace for each input without explicit task identifiers or repeated optimization. We thus introduce Routing without Forgetting (RwF), a transformer architecture augmented with energy-based associative retrieval layers inspired by Modern Hopfield Networks. Instead of storing or merging task-specific prompts, RwF generates dynamic prompts through single-step associative retrieval over the transformer token embeddings at each layer. Retrieval corresponds to the closed-form minimization of a strictly convex free-energy functional, enabling input-conditioned routing within each forward pass, independently of iterative gradient refinement. Across challenging class-incremental benchmarks, RwF improves over existing prompt-based methods. On Split-ImageNet-R and Split-ImageNet-S, RwF outperforms prior prompt-based approaches by a large margin, even in few-shot learning regimes. These results indicate that embedding energy-based associative routing directly within the transformer backbone provides a principled and effective foundation for OCL.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 34 of its 46 references that are in the map. First posted on arXiv 10 Mar 2026.
Builds on
34 of 46 references.
References · 34
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,718
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2016Learning without Forgettingcited by 2,465
- 2016iCaRL: Incremental Classifier and Representation Learningcited by 2,313
- 2017Gradient Episodic Memory for Continual Learningcited by 1,871
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2022Visual Prompt Tuningcited by 1,674
- 2018Efficient Lifelong Learning with A-GEMcited by 1,044
- 2021Learning to Prompt for Continual Learningcited by 938
- 2020Dark Experience for General Continual Learning: a Strong, Simple Baselinecited by 895
22 more
- 2018Riemannian Walk for Incremental Learning: Understanding Forgetting and Intransigencecited by 734
- 2022DualPrompt: Complementary Prompting for Rehearsal-free Continual Learningcited by 635
- 2019Gradient based sample selection for online continual learningcited by 568
- 2020Hopfield Networks is All You Needcited by 461
- 2022CODA-Prompt: COntinual Decomposed Attention-based Prompting for Rehearsal-Free Continual Learningcited by 446
- 2019Online Continual Learning with Maximally Interfered Retrievalcited by 376
- 2019On Tiny Episodic Memories in Continual Learningcited by 299
- 2022FOSTER: Feature Boosting and Compression for Class-Incremental Learningcited by 228
- 2021New Insights on Reducing Abrupt Representation Change in Online Continual Learningcited by 215
- 2024InfLoRA: Interference-Free Low-Rank Adaptation for Continual Learningcited by 189
- 2023Revisiting Class-Incremental Learning with Pre-Trained Models: Generalizability and Adaptivity are All You Needcited by 183
- 2020Using Hindsight to Anchor Past Knowledge in Continual Learningcited by 160
- 2022A Model or 603 Exemplars: Towards Memory-Efficient Class-Incremental Learningcited by 152
- 2022Class-Incremental Continual Learning into the eXtended DER-versecited by 121
- 2024Expandable Subspace Ensemble for Pre-Trained Model-Based Class-Incremental Learningcited by 115
- 2021Large-scale Unsupervised Semantic Segmentationcited by 98
- 2023PCR: Proxy-based Contrastive Replay for Online Class-Incremental Continual Learningcited by 50
- 2024Divide and not forget: Ensemble of selectively trained experts in Continual Learningcited by 38
- 2024Online-LoRA: Task-free Online Continual Learning via Low Rank Adaptationcited by 26
- 2023A Comprehensive Empirical Evaluation on Online Continual Learningcited by 24
- 2023Improving Online Continual Learning Performance and Stability with Temporal Ensemblescited by 14
- 2023Wake-Sleep Consolidated Learningcited by 4
Built on by
Not cited yet.