Meta Continual Learning Revisited: Implicitly Enhancing Online Hessian Approximation via Variance Reduction

Yichen Wu, Long-Kai Huang, Renzhen Wang, Deyu Meng, Ying Wei

TL;DR

This paper bridges the gap between regularization-based and meta-learning approaches in continual learning by demonstrating that Meta-Continual Learning (Meta-CL) implicitly performs online Hessian approximation. To fix the high variance issues inherent in Meta-CL's memory buffer sampling, the authors propose Variance Reduced Meta-CL (VR-MCL). This method uses momentum-based techniques to provide more accurate weight importance estimates, achieving state-of-the-art performance across major benchmarks.

What Problem Does This Paper Address?

In Continual Learning (CL), models must learn from a stream of tasks without "catastrophic forgetting"—the tendency to lose performance on old tasks when learning new ones.

Historically, two popular strategies have emerged:

  1. Regularization-based methods: These estimate weight importance (using the Hessian matrix) at the end of a task and penalize changes to "important" weights. However, these estimates are static; as the model evolves, the old Hessian becomes an increasingly poor approximation.
  2. Meta-Continual Learning (Meta-CL): These methods use a small memory buffer of old data to align current gradients with previous ones. While this provides a "timely" update to weight importance, the random sampling of the tiny buffer introduces massive noise (high variance), leading to unstable training and forgetting.

The authors aim to combine the "timely" updates of Meta-CL with the "accuracy" of regularization methods by tackling the variance problem.

Methods

The authors first derive a Unified Framework showing that both regularization and Meta-CL methods follow a similar iterative update rule involving a Hessian term. They prove that Meta-CL's hypergradient is essentially an implicit, online approximation of the Hessian.

To improve this, they introduce VR-MCL, which incorporates a momentum-based variance reduction technique. Instead of relying solely on the noisy gradient from the current buffer sample, VR-MCL maintains a momentum component that "smooths" the gradient estimate over time.

The iterative update process of VR-MCL uses a momentum ratio 'r' to reduce hypergradient variance.

Additionally, they propose Mask-VR, a modified training mask for the output layer. Unlike standard masks that only look at classes within a single task, Mask-VR considers all seen classes present in the memory buffer, helping the model better distinguish between tasks in class-incremental settings.

Datasets

The authors evaluated their method on three standard continual learning benchmarks:

  • Seq-CIFAR10: 5 tasks, 2 classes per task.
  • Seq-CIFAR100: 10 tasks, 10 classes per task.
  • Seq-TinyImageNet: 20 tasks, 10 classes per task.

They also tested the algorithm's robustness using imbalanced settings (Normal, Reversed, and Random distributions of samples per task) to simulate more realistic, non-stationary data streams.

Key Insights and Ideas

  • The Theoretical Bridge: The most significant insight is the proof that Meta-CL is actually a second-order optimization method in disguise. It doesn't just "align gradients"; it implicitly calculates how the Hessian changes as the model learns.
  • Variance is the Villain: The paper identifies that the primary reason Meta-CL methods like La-MAML underperform isn't a lack of information, but the high variance of the information they do have.
  • Hessian Penalty: Theoretically, the authors show that variance reduction is equivalent to adding a penalty term to the online Hessian. This prevents the model from making aggressive updates in directions that the noisy buffer sample thinks are low-curvature but are actually critical for old tasks.

Key Results

VR-MCL consistently outperformed existing state-of-the-art (SOTA) methods across all datasets and metrics, including Averaged Anytime Accuracy (AAA) and final Accuracy (Acc).

Main performance results showing VR-MCL outperforming representative CL methods.
  • Superior Performance: On Seq-CIFAR10, VR-MCL achieved 66.97% AAA, significantly higher than the previous SOTA, DER++ (64.22%).
  • Buffer Efficiency: VR-MCL is remarkably robust to small memory buffers. Even with a buffer size of only 200 samples on Seq-CIFAR100, it outperformed other methods using much larger buffers.
  • Efficiency: While meta-learning is often slow, VR-MCL is much more efficient than older Meta-CL methods like MER, making it more practical for real-world online learning.

Limitations and Future Work

  • Computational Cost: Although faster than some Meta-CL predecessors, VR-MCL still requires bi-level optimization (inner and outer loops), which is computationally more expensive than simple experience replay.
  • Inner Batch Size: The authors noted that performance gains tend to plateau as the inner batch size increases, suggesting a trade-off between computation and accuracy that needs careful tuning.
  • Future Directions: The authors suggest exploring how these variance reduction techniques could be applied to even larger-scale models or different modalities beyond image classification.

Summary updated

BibTeX
@inproceedings{wu2024meta,
  author = {Yichen Wu and Long-Kai Huang and Renzhen Wang and Deyu Meng and Ying Wei},
  title = {{Meta Continual Learning Revisited: Implicitly Enhancing Online Hessian Approximation via Variance Reduction}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=TpD2aG1h0D},
}
Figure