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

Online Hyperparameter Optimization for Class-Incremental Learning

Yaoyao Liu, Yingying Li, Bernt Schiele, Qianru Sun

Introduction

Class-Incremental Learning (CIL) aims to train a model on a continuous stream of new classes while preventing the "catastrophic forgetting" of previously learned information. This challenge is defined by the stability-plasticity tradeoff: a model must remain plastic enough to integrate new concepts but stable enough to preserve its existing knowledge base.

Existing CIL methodologies often rely on fixed, manually tuned hyperparameters. However, real-world data streams are unpredictable. A model might start with a large initial dataset (Training-From-Half, TFH) or begin with a small set of classes (Training-From-Scratch, TFS). Fixed parameters that excel in one scenario often fail in the other because the optimal balance between stability and plasticity shifts as the learning process evolves.

Methodology: Online Policy Learning

To address this, we propose an online hyperparameter optimization (HO) framework that treats CIL as an online Markov Decision Process (MDP). Instead of using static values, the model adaptively tunes four critical parameters at each phase:

  • Distillation Weights ($\beta, \gamma$): Controlling logit-based and feature-based knowledge distillation to manage stability.
  • Learning Rate ($\lambda$): Determining the speed of adaptation to new data.
  • Classifier Type ($\delta$): Dynamically switching between Nearest Class Mean (NCM) and Fully-Connected (FC) classifiers based on the current state.
The proposed framework decouples CIL training from policy learning, using a local reward estimation loop to update hyperparameters via the Exp3 algorithm.

As shown in the architecture above, the system employs the Exp3 algorithm—a multi-armed bandit approach—to select hyperparameters. To avoid using future test data (which would be "cheating"), the framework constructs local training and validation sets from currently available data to estimate rewards and update the policy on the fly.

Experimental Results

The framework was evaluated on standard benchmarks including CIFAR-100, ImageNet-Subset, and the full 1,000-class ImageNet dataset. We integrated our online HO method into several state-of-the-art (SOTA) baselines, including LUCIR, AANets, and RMM.

Quantitative comparison across CIFAR-100 and ImageNet-Subset shows consistent performance gains when our online HO framework is applied to existing CIL methods.

Key findings from our experiments include:

  • Universal Performance Boost: Our method consistently improved the average accuracy of all baseline algorithms. On ImageNet-Full, it achieved a 2.2 percentage point improvement over the previous SOTA.
  • Robustness Across Scenarios: Unlike static methods that struggle when moving from TFH to TFS protocols, our adaptive approach achieved top-tier performance in both settings simultaneously.
  • Long-term Scalability: The benefits of online tuning became more pronounced in longer sequences. For instance, in a 25-phase CIFAR-100 setup, the performance gap widened by up to 5.7 percentage points compared to baselines.

Discussion and Insights

Our analysis reveals that the "optimal" hyperparameters are highly dynamic. In TFS scenarios, models initially require high learning rates and low distillation to establish a foundation, followed by increased distillation in later phases to protect that foundation. By automating this balance, our framework removes the need for expert manual tuning and prior knowledge of the data stream.

While the current implementation uses a discretized search space for hyperparameters, future work could explore continuous optimization or extend the framework to manage other CIL-specific variables, such as the memory allocation for exemplars.

Summary updated

BibTeX
@inproceedings{liu2023online,
  author = {Yaoyao Liu and Yingying Li and Bernt Schiele and Qianru Sun},
  title = {{Online Hyperparameter Optimization for Class-Incremental Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i7.26070},
}
Figure