Compensating Distribution Drifts in Class-incremental Learning of Pre-trained Vision Transformers

Xuan Rao, Simian Xu, Zheng Li, Bo Zhao, Derong Liu, Mingming Ha, Cesare AlippiarXiv 2025 · DOI

Abstract

Class-incremental learning (CIL) often fails because updating a model for new tasks causes the "ground to shift" for old ones—a phenomenon known as distribution drift. This paper introduces Sequential Learning with Drift Compensation (SLDC), a method that doesn't just try to prevent drift but actively models and compensates for it using a "latent space transition operator." By aligning old feature distributions with the updated model's space, the authors achieve performance that nearly matches the "gold standard" of training on all data at once.

Introduction

In Class-incremental Learning, an AI must learn new sets of classes over time without forgetting the old ones. A popular strategy is Sequential Fine-Tuning (SeqFT): taking a pre-trained Vision Transformer (ViT), fine-tuning its backbone on a new task, and then refining the classifier.

However, when the shared backbone is optimized for a new task, the feature distributions for previous classes shift in the latent space. This "representation drift" creates a mismatch: the classifier remains optimized for the old feature locations, leading to a massive drop in accuracy. Most existing methods try to prevent this drift by freezing parts of the model or using complex constraints, which often limits the model's ability to learn new information effectively.

Methodology

SLDC treats distribution drift as a transformation that can be modeled and reversed. The approach follows three distinct phases:

  1. Sequential Adaptation: The ViT backbone is fine-tuned on the new task. Knowledge Distillation (KD) can be optionally applied to maintain backbone stability.
  2. Drift Compensation: The core innovation is the estimation of a Latent Space Transition Operator ($P_{t-1 \to t}$) that maps features from the old model's space to the new model's space. The authors propose two versions: $\alpha_1$-SLDC (Linear), which uses a regularized least-squares mapping, and $\alpha_2$-SLDC (Weak-Nonlinear), which uses a weighted combination of a linear matrix and a small, two-layer MLP to capture residual errors.
  3. Classifier Refinement: The "drifted" Gaussian distributions of old classes are passed through the transition operator to "fix" them. Synthetic samples from these corrected distributions are then used to retrain the classifier.
The SLDC framework consists of three phases: sequential fine-tuning, distribution compensation via a transition operator, and classifier refinement using synthetic samples.

To assist when task data is sparse, the authors introduce Auxiliary Data Enrichment (ADE), which utilizes unlabeled data from arbitrary sources to help estimate the transition operator more accurately.

Experimental Results

The researchers evaluated SLDC on four benchmarks: CIFAR-100, ImageNet-R, CUB-200 (fine-grained birds), and Cars-196 (fine-grained cars). SLDC consistently outperformed standard SeqFT and other state-of-the-art CIL methods.

Performance comparison of SLDC against various CIL baselines across four benchmarks. SLDC variants consistently show superior Last-Accuracy and Incremental-Accuracy.

Key Insights

  • Compensate, Don't Just Prevent: By accepting that drift will happen and building a "bridge" to bring old knowledge into the new feature space, SLDC maintains high plasticity.
  • The "Weak-Nonlinear" Sweet Spot: The $\alpha_2$ approach provides the best balance of flexibility and generalization, outperforming purely linear operators without the overfitting risks of deep MLPs.
  • Synergy with Distillation: Combining SLDC with Knowledge Distillation (the $\beta$ variants) yields the best results, achieving near-parity with joint training. On a 10-task scenario, the accuracy discrepancy was often within a tiny margin of -0.50% to -3.29%.
  • Massive Gains: On the CUB-200 dataset, $\alpha_2$-SLDC boosted "Last Accuracy" from 64.40% to 78.98%—a nearly 15% absolute improvement over standard fine-tuning.

Conclusion and Future Work

SLDC offers a memory-efficient, exemplar-free solution for incremental learning by actively compensating for representation drift. While highly effective on Vision Transformers, future research may explore extending this logic to multi-modal models like CLIP. Additionally, while ADE is powerful, the choice of auxiliary unlabeled datasets remains a factor that warrants further investigation.

Summary updated

BibTeX
@misc{rao2025compensating,
  author = {Xuan Rao and Simian Xu and Zheng Li and Bo Zhao and Derong Liu and Mingming Ha and Cesare Alippi},
  title = {{Compensating Distribution Drifts in Class-incremental Learning of Pre-trained Vision Transformers}},
  year = {2025},
  eprint = {2511.09926},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.09926},
}
Figure