【ICML' 2025】Semantic Shift Estimation via Dual-Projection and Classifier Reconstruction for Exemplar-Free Class-Incremental Learning

October 18, 2025 · View on GitHub

【ICML' 2025】Semantic Shift Estimation via Dual-Projection and Classifier Reconstruction for Exemplar-Free Class-Incremental Learning

Run He, Di Fang, Yicheng Xu, Yawen Cui, Ming Li, Cen Chen, Ziqian Zeng, Huiping Zhuang*

Introduction

The official implementation for Semantic Shift Estimation via Dual-Projection and Classifier Reconstruction for Exemplar-Free Class-Incremental Learning in PyTorch.

Abstract

Exemplar-Free Class-Incremental Learning (EFCIL) aims to sequentially learn from distinct categories without retaining exemplars but easily suffers from catastrophic forgetting of learned knowledge. While existing EFCIL methods leverage knowledge distillation to alleviate forgetting, they still face two critical challenges: semantic shift and decision bias. Specifically, the embeddings of old tasks shift in the embedding space after learning new tasks, and the classifier becomes biased towards new tasks due to training solely with new data, hindering the balance between old and new knowledge. To address these issues, we propose the Dual-Projection Shift Estimation and Classifier Reconstruction (DPCR) approach for EFCIL. DPCR effectively estimates semantic shift through a dual-projection, which combines a learnable transformation with a row-space projection to capture both task-wise and category-wise shifts. Furthermore, to mitigate decision bias, DPCR employs ridge regression to reformulate a classifier reconstruction process. This reconstruction exploits previous in covariance and prototype of each class after calibration with estimated shift, thereby reducing decision bias. Extensive experiments demonstrate that, on various datasets, DPCR effectively balances old and new tasks, outperforming state-of-the-art EFCIL methods.

Overview

Quick Start

Setup code environment

See the details in environment.yaml

A suitable conda environment named dpcr can be created and activated with:

   conda env create -f environment.yaml
   conda activate dpcr

Datasets

We provide the implementation on five benchmark datasets reported in the paper, i.e., CIFAR-100, and Tiny-ImageNet, ImageNet-100, CUB-200, and ImageNet-1k.

You should define your directory to the dataset in utils/data.py.

Run

You can run the experiments via the follow code.

   python main.py --config ./exps/[your_configuration.json]

You can also change the settings in the .json file for different experiments.

Part of arguments are listed followed.

  • dataset: The dataset used in the experiment
  • init_cls: The number of classses in the first task.
  • increment: The number of classses of each task.
  • convnet_type: Type of model used in the experiment, ResNet-18 by default.
  • resume: Choose whether to used the pre-trained weight.
  • model_dir: Directory that store the model checkpoint or load the pre-trained weight (when resume=True).
  • rg: Regularization factor γ\gamma.
  • rg_tssp: The regularization term in the TSSP, 1e-9 by default.

Analytic Continual Learning

Our work belongs to the branch of analytic continual learning, you can find other works at "Analytic Continual Learning."

Dual Branch

We have a dual branch of analytic federated learning which leverages the least-squares to achieve invariance in federated learning. If you are interested, the codes are available at "Analytic Federated Learning."

Acknowledgment

The implementation of the codes is partly referred to PyCIL and ADC. We sincerely appreciate for their contributions.

Cite Our Paper

If you find this paper useful, please consider staring this repo and citing our paper:

@InProceedings{He_ICML2025_DPCR,
  title = 	 {Semantic Shift Estimation via Dual-Projection and Classifier Reconstruction for Exemplar-Free Class-Incremental Learning},
  author =       {He, Run and Fang, Di and Xu, Yicheng and Cui, Yawen and Li, Ming and Chen, Cen and Zeng, Ziqian and Zhuang, Huiping},
  booktitle = 	 {Proceedings of the 42nd International Conference on Machine Learning},
  pages = 	 {22392--22406},
  year = 	 {2025},
  editor = 	 {Singh, Aarti and Fazel, Maryam and Hsu, Daniel and Lacoste-Julien, Simon and Berkenkamp, Felix and Maharaj, Tegan and Wagstaff, Kiri and Zhu, Jerry},
  volume = 	 {267},
  series = 	 {Proceedings of Machine Learning Research},
  month = 	 {13--19 Jul},
  publisher =    {PMLR},
  pdf = 	 {https://raw.githubusercontent.com/mlresearch/v267/main/assets/he25d/he25d.pdf},
  url = 	 {https://proceedings.mlr.press/v267/he25d.html}
}