NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Mamba-CL: Optimizing Selective State Space Model in Null Space for Continual Learning

De Cheng, Yue Lu, Lingfeng He, Shizhou Zhang, Xi Yang, Nannan Wang, Xinbo Gao · DOI

Mamba-CL: Optimizing Selective State Space Model in Null Space for Continual Learning

Abstract

Mamba-CL is the first framework to successfully adapt the high-performance Mamba architecture—a Selective State Space Model (SSM)—for continual learning. By mathematically deriving four consistency conditions and enforcing them through "null-space projection," Mamba-CL prevents the model from overwriting old knowledge while learning new tasks. This approach significantly outperforms current state-of-the-art Vision Transformer (ViT) methods in class-incremental benchmarks.

Introduction

Deep learning models frequently suffer from catastrophic forgetting, where training on new tasks overwrites weights essential for previous ones. This "stability-plasticity dilemma" is particularly challenging for State Space Models (SSMs) like Mamba. While Vision Transformers (ViTs) have dominated recent research in Continual Learning (CL), Mamba’s unique architecture—involving non-linear discretization and recurrent structures—requires specialized techniques to ensure stability without sacrificing the efficiency of sequence modeling.

Methodology

The core of Mamba-CL is the application of Null-Space Projection to a large-scale Mamba foundation model.

Overview of the Mamba-CL architecture and the Null-Space Projection mechanism.

Consistency Theory

The authors derived four "sufficient consistency conditions" that define how Mamba’s key parameters—the state transition matrix ($A$), input/output projections ($B, C$), and the discretization step ($\delta$)—must evolve. These conditions ensure that the model's output for previously learned tasks remains identical even after weight updates for new tasks.

Null-Space Projection

To satisfy these conditions, Mamba-CL utilizes Singular Value Decomposition (SVD) to identify the "null space" of features from previous tasks. During training on a new task, gradients are projected into this null space, ensuring weight updates occur only in directions that do not interfere with prior knowledge. A hyper-parameter ($\eta$) is introduced to allow for "relaxed" orthogonality, balancing stability and plasticity based on task similarity.

Selective Fine-tuning

Rather than updating the entire network, Mamba-CL targets the core SSM blocks and linear projection layers, keeping the remainder of the foundation model frozen to preserve general feature extraction capabilities.

Experimental Evaluation

Mamba-CL was evaluated on four major class-incremental benchmarks: ImageNet-R, CIFAR-100, and DomainNet. These datasets were split into up to 100 tasks to simulate "long-sequence" continual learning, where forgetting is typically most severe.

Key Results and Insights

  • Superior Performance: Mamba-CL achieved an accuracy of 81.67% on the 10-split ImageNet-R benchmark, significantly outperforming the previous state-of-the-art (77.14%).
  • Robustness to Forgetting: In 100-task scenarios, Mamba-CL maintained high performance while standard Mamba models without CL techniques saw accuracy collapse.
  • The Role of $\delta$: Research revealed that the discretization parameter ($\delta$) acts as a "collective variable." Protecting $\delta$ from drastic changes is more critical for model stability than protecting individual weight matrices.
  • Efficiency: Inference speed remains identical to standard Mamba models. While training time increases by approximately 7% due to SVD operations, the projection matrices are only required during the update phase.

Conclusion and Future Work

Mamba-CL demonstrates that SSMs can be more robust for continual learning than Transformers by effectively "locking" state-space dynamics. While the method introduces some memory overhead for storing covariance matrices and has higher inference latency than some ViT-based methods, its theoretical guarantees and performance make it a powerful new tool for sequential learning. Future work may extend Mamba-CL to natural language processing and medical imaging.

Summary updated

BibTeX
@misc{cheng2024mamba,
  author = {De Cheng and Yue Lu and Lingfeng He and Shizhou Zhang and Xi Yang and Nannan Wang and Xinbo Gao},
  title = {{Mamba-CL: Optimizing Selective State Space Model in Null Space for Continual Learning}},
  year = {2024},
  eprint = {2411.15469},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.15469},
}
Figure