๐Ÿš€ LMSRR

December 9, 2025 ยท View on GitHub

Python Paper License NeurIPS

Code for paper "Learning Multi-Source and Robust Representations for Continual Learning" NeurIPS2025.


๐Ÿ“Œ Table of Contents


๐Ÿ” Introduction

Continual learning models must strike a delicate balance between plasticity (learning new tasks effectively) and stability (retaining previous knowledge). Although many recent methods utilize pre-trained backbones to improve stability, they largely rely on a single backbone, limiting adaptiveness and representation richness.

LMSRR introduces a multi-source, dynamically optimized representation framework, combining multiple heterogeneous pre-trained models with a novel set of optimization strategies, yielding robust and adaptive features for continual learning.


๐Ÿง  Framework Overview

LMSRR contains three major components:

1. Multi-Scale Interaction & Dynamic Fusion (MSIDF)

  • Interacts multi-source features across scales.
  • Learns task-relevant feature selection via attention modules.

2. Multi-Level Representation Optimization (MLRO)

  • Dynamically refines backbone layers.
  • Improves plasticity while preserving critical representations.

3. Adaptive Regularization Optimization (ARO)

  • Learns a switch vector controlling layerwise updating.
  • Avoids over-regularization and improves new task learning.

Together, these form a unified optimization framework offering a strong trade-off between stability and plasticity.


๐ŸŒŸ Key Contributions

  • Multi-source representation learning via coordinated pre-trained backbones.
  • Dynamic multi-scale fusion (MSIDF) capturing cross-source semantic complementarities.
  • Adaptive multi-level optimization (MLRO) improving plasticity.
  • Layerwise adaptive regularization (ARO) preventing catastrophic forgetting.
  • State-of-the-art performance across standard continual learning benchmarks.

โš™๏ธ Installation

conda create -n LMSRR4CL python=3.10
conda activate LMSRR4CL
pip install -r requirements.txt

โ–ถ๏ธ Usage

1. Enter the project directory

cd LMSRR/

2. Run the example training script

bash command/lmsrr_cifar10.sh
bash command/lmsrr_cifar100.sh

Project structure overview

LMSRR/
โ”œโ”€โ”€ backbone/                 # Pre-trained backbone models
โ”‚   โ”œโ”€โ”€ lmsrr.py              # LMSRR backbone implementation
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ command/                  # Training scripts
โ”œโ”€โ”€ datasets/                 # Dataset loaders
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ models/                   # Method implementations
โ”‚   โ”œโ”€โ”€ lmsrr.py              # LMSRR method implementation
โ”‚   โ””โ”€โ”€ <baseline>.py         # ER, DER++, etc.
โ”œโ”€โ”€ utils/                    # Helper tools
โ”‚   โ””โ”€โ”€ ...
โ”œโ”€โ”€ main.py                   # Main training entry
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ README.md

๐Ÿ“ Citation

If you find this repository helpful, please cite our paper:

@inproceedings{ye2025lmsrr,
  title={Learning Multi-Source and Robust Representations for Continual Learning},
  author={Ye, Fei and Zhong, Yongcheng and Liu, Qihe and Bors, Adrian G and Hu, Rongyao and others},
  booktitle={Proceedings of the 39th Conference on Neural Information Processing Systems},
  year={2025}
}

๐Ÿ™ Acknowledgement

This project is built upon the excellent continual learning framework Mammoth. We sincerely thank the authors for open-sourcing their work.