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

Adaptive Hyperparameter Optimization for Continual Learning Scenarios

Rudy Semola, Julio Hurtado, Vincenzo Lomonaco, Davide Bacciu

TL;DR

Standard hyperparameter optimization (HPO) in continual learning often relies on unrealistic assumptions, like tuning across all future tasks or locking parameters in stone after task one. This paper proposes Adaptive-HPO, which uses functional ANOVA (fANOVA) to identify the few hyperparameters that actually drive performance variance on streaming tasks, tuning only this subset with warm-starting. The result is a competitive, task-agnostic method that matches or beats exhaustive search while reducing HPO runtimes by up to 55%.

What Problem Does This Paper Address?

In real-world continual learning (CL), models must learn sequentially from non-stationary data streams without suffering catastrophic forgetting. However, setting hyperparameters in CL faces two major pitfalls:

  1. Unrealistic validation: Many studies tune hyperparameters via grid search over held-out validation sets across all tasks—violating the CL assumption that future data is unavailable.
  2. Static parameter assumptions: Practitioners often find an "optimal" configuration on the initial task and fix it indefinitely. Yet as distributions drift, static hyperparameters degrade performance.

Exhaustively re-running full HPO on every incremental step is computationally prohibitive ($|\mathcal{H}| \times |T|$). The authors tackle this dilemma: How can we adapt hyperparameters dynamically across a sequence of tasks without paying the full computational penalty of per-task optimization?

Methods

The authors propose Adaptive-HPO (implemented using Optuna and the Tree-structured Parzen Estimator, TPE):

  • Initial Exploration ($m$ tasks): For the first $m$ tasks, full HPO is executed over the complete configuration space $\mathcal{H}$.
  • Variance Analysis with fANOVA: Using the completed trials from the initial phase, functional Analysis of Variance (fANOVA) quantitatively isolates which hyperparameters (and interactions) drive the largest fraction of performance variance.
  • Top-$k$ Warm-Start Tuning: In subsequent tasks ($t > m$), the search space is dynamically restricted to the top-$k$ most important hyperparameters ($\mathcal{H}^k$). Non-critical parameters remain frozen at their previous best values, and the optimizer is warm-started from the preceding configuration ($h^*_{t-1}$).

Datasets

The authors evaluated visual classification benchmarks across two CL scenarios:

  • Class-Incremental Learning (CIL):
  • Split-CIFAR10 (evaluated in an online, single-epoch-per-task stream)
  • Split-TinyImageNet (batch incremental, 50 epochs/task)
  • CORe50-NC (batch incremental object recognition, 20 epochs/task)
  • Domain-Incremental Learning (DIL):
  • Rotated-MNIST (online incremental, 20 tasks)
  • CORe50-NI (batch incremental)

Note: All benchmarks utilize established datasets; no new benchmarks were introduced.

Key Insights and Ideas

  • Variance is concentrated in a tiny subspace: Across rehearsal (ER, DER, GDumb) and regularization (SI, LwF) methods, only 1 or 2 hyperparameters typically account for the vast majority of performance variance. Learning rate was overwhelmingly the most decisive, whereas weight decay consistently contributed negligible variance.
  • Importance shifts over time: The set of influential hyperparameters does not remain static across the task stream. For instance, in CORe50, dropout parameters became prominent alongside learning rate to mitigate overfitting across diverse distributions.
  • Greedy HPO can be counterproductive: Optimizing all parameters independently for the current task is greedy; an optimal configuration for task $t$ can accelerate forgetting on earlier tasks. By restricting search to the primary variance drivers and warm-starting, Adaptive-HPO sometimes surpassed full per-task HPO.
  • Learning rate trends mirror stability-plasticity: In long sequences (Split-Tiny, Rot-MNIST), optimal learning rates systematically decayed over time to stabilize learned representations.

Key Results

  • Accuracy gains over Fixed Baselines: Adaptive-HPO dramatically surpassed fixed hyperparameter schedules across all benchmarks. On the challenging Split-TinyImageNet benchmark, Adaptive-HPO improved final stream accuracy by over 20 percentage points across strategies (e.g., standard Experience Replay rose from $4.47\%$ to $24.54\%$).
  • Parity with Exhaustive HPO: Adaptive-HPO performed on par with, or even exceeded, exhaustive per-task HPO. On Rotated-MNIST with Dark Experience Replay (DER), Adaptive-HPO scored $87.13\%$ vs. $86.42\%$ for full HPO; on Split-CIFAR10 with ER, it achieved $55.91\%$ vs. $53.67\%$.
  • Efficiency Improvements: Joint training and tuning time dropped sharply compared to full HPO:
  • Split-TinyImageNet: Runtime reductions of 53% (ER), 39% (ER+SI), 47% (ER+LwF), and 27% (DER).
  • CORe50: Reductions of 16% (ER), 28% (ER+SI), 55% (ER+LwF), and 44% (DER).
  • Task Order Robustness: Testing across randomized task orderings revealed consistently higher per-task accuracy (e.g., $+12–13\%$ on CIFAR10 and $+34–36\%$ on Tiny) compared to static setups.

Limitations and Future Work

  • Warm-up overhead: The method relies on full HPO over an initial set of $m$ tasks to collect trial data for fANOVA, which still incurs high upfront compute.
  • Domain breadth: Experiments were restricted to vision classification using compact architectures (MLP, Slim-ResNet18). Evaluation in language models, reinforcement learning, or larger networks was not explored.
  • Future directions: Developing online, streaming variants of hyperparameter importance estimation that eliminate the distinct two-phase split ($m$ initial tasks vs. remainder) and automate real-time detection of distribution shifts.

Summary updated

BibTeX
@inproceedings{semola2024adaptive,
  author = {Rudy Semola and Julio Hurtado and Vincenzo Lomonaco and Davide Bacciu},
  title = {{Adaptive Hyperparameter Optimization for Continual Learning Scenarios}},
  booktitle = {1st CLAI Unconf Stage 2},
  year = {2024},
  url = {https://openreview.net/forum?id=ZWrG1YlEMY},
}
Figure