Skip to content
Book Open access

Sparse Retrieval Memory with Dynamic Expansion for Class-Incremental Learning

Nov 2026 · Proceedings of the 34th ACM International Conference on Multimedia · 0 citations · 47 references

Abstract

Recent work has demonstrated that sparse memory fine-tuning offers a principled solution to catastrophic forgetting in continual learning by decoupling task-specific knowledge through selective slot-level updates. However, a critical pre-training bottleneck limits practical adoption. The memory layer replaces an internal feed-forward network of the Transformer, and the resulting architecture fundamentally departs from any standard pre-trained model, necessitating expensive re-pre-training from scratch. To overcome this bottleneck, we propose Sparse Retrieval Memory, an external sparse memory architecture that can be directly deployed on frozen pre-trained Vision Transformers without architectural surgery or re-pre-training. Concretely, we attach learnable key-value memory modules as parallel residual branches alongside the multi-head self-attention at specific intermediate layers. Through Top-K sparse routing, each input token dynamically retrieves a small subset of the most relevant memory slots, significantly mitigating gradient interference via sparse parameter activation. Furthermore, the memory pool grows via coverage-based dynamic expansion, automatically adapting its capacity to the complexity of the incoming data stream. Extensive experiments on ImageNet-R, CIFAR-100, and DomainNet demonstrate state-of-the-art performance, achieving 80.50% on 10-task ImageNet-R and 84.68% on 10-task DomainNet, while training fewer than 3% of backbone parameters and storing zero historical exemplars. The source code is available at https://github.com/xyz-npu/SRM-CIL.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.