TL;DR
Continual Learning (CL) researchers often "cheat" by tuning hyperparameters using the entire data stream—a luxury real-world agents don't have. This paper benchmarks realistic, one-pass hyperparameter optimization (HPO) frameworks and discovers that, surprisingly, simple strategies like tuning only on the first task perform nearly as well as complex, unrealistic methods on current benchmarks.
What Problem Does This Paper Address?
In Continual Learning, an AI agent learns from a non-stationary stream of data, one task at a time, without forgetting what it learned previously. A major hurdle is Hyperparameter Optimization (HPO). Standard HPO requires multiple passes over the entire dataset to find the best learning rates or regularization coefficients.
However, in a true CL scenario, the agent only sees the data stream once. Most current research uses "End-of-training HPO," which repeatedly trains over the whole stream to pick the best settings. This is fundamentally unrealistic. The authors set out to find which realistic HPO framework a practitioner should actually use and whether adapting hyperparameters dynamically as new tasks arrive actually helps.
Methods
The authors categorize HPO frameworks into two types:
- Static HPO (Fixed HPs):
- End-of-training: The "unrealistic" baseline that tunes using the whole stream.
- First-task: A highly efficient method where HPs are tuned only on the first task and then frozen for all subsequent tasks.
- Dynamic HPO (HPs adapted per task):
- Current-task: Tunes HPs for each new task using only that task's validation data.
- Seen-tasks (Mem): Tunes HPs using current task data plus a sample of previous data from a replay memory buffer.
- Seen-tasks (Val): Tunes HPs using current task data plus stored validation sets from all previous tasks (requires extra storage).
These frameworks were tested across popular CL algorithms like ER, ER-ACE, iCaRL, ESMER, and DER++.
Datasets
The study utilized four standard image classification datasets:
- CIFAR-10 & CIFAR-100
- CORe50
- Tiny ImageNet
They evaluated these in two settings:
- Split-task: Each task has an equal number of classes (the standard approach).
- Heterogeneous task: A more challenging setup where tasks have varying numbers of classes and levels of difficulty, designed to see if dynamic HPO would finally show an advantage.
Key Insights and Ideas
- The "First-Task" Surprise: Tuning HPs solely on the first task is remarkably effective. On standard benchmarks, the HPs that work for the first task tend to work well for the entire stream.
- Efficiency vs. Performance: First-task HPO is significantly faster ($O(T + K)$ complexity) than other methods ($O(T \times K)$), yet the performance drop is negligible.
- Benchmark Homogeneity: The fact that static HPO performs so well suggests that current CL benchmarks are too uniform. They don't yet capture the "real-world" complexity where a learner might need to drastically change its learning strategy mid-stream.
- HPO is still mandatory: While the choice of realistic framework might not matter much yet, doing HPO is essential. Using default hyperparameters (like those provided by PyTorch) resulted in significantly worse performance across the board.
Key Results
The quantitative results show that all HPO frameworks perform similarly:
- Minimal Gaps: In split-task benchmarks, the performance difference between the "cheating" End-of-training HPO and the efficient First-task HPO was only between -0.62% and -0.91% in average accuracy.
- Heterogeneous Setting: Even when tasks were made more diverse, the gap remained small (~-0.39%).
- No Clear Winner: No single realistic HPO framework consistently outperformed the others across different CL methods and datasets.
Limitations and Future Work
The authors conclude that current CL benchmarks are a "bottleneck" for HPO research. Because these benchmarks are relatively homogeneous, they fail to reward more sophisticated dynamic HPO methods that adapt to changing data distributions.
Future Work: The community needs to develop more realistic, heterogeneous data streams where the optimal hyperparameters must change over time. Until then, practitioners are encouraged to use First-task HPO for its extreme computational efficiency, as there is currently no performance-based reason to choose more expensive alternatives.
Summary updated