Online Curvature-Aware Replay: Leveraging 2nd Order Information for Online Continual Learning.

Edoardo Urettini, Antonio Carta · DOI · OpenReview

TL;DR

This paper introduces OCAR, a novel online continual learning (OCL) method that leverages second-order information (Fisher Information Matrix) to stabilize learning and improve plasticity. By treating OCL as a second-order joint optimization problem with explicit KL-divergence constraints on replay data, OCAR achieves state-of-the-art performance across several benchmarks, outperforming existing methods in both stability and plasticity.

What Problem Does This Paper Address?

Online Continual Learning (OCL) deals with models that continuously learn from a stream of data without explicit task boundaries. This setting is challenging because traditional methods often fail, and existing replay-based OCL methods suffer from instabilities and forgetting, especially after task shifts. A key issue is the "stability gap," a sudden performance drop at task boundaries, and a loss of plasticity, hindering the model's ability to adapt to new information over time. The paper aims to address these fundamental algorithmic failures by developing an OCL optimizer that actively balances stability and plasticity.

Methods

The core of OCAR is its formulation of OCL as a second-order online joint optimization problem. Instead of relying solely on first-order gradients, OCAR uses the Fisher Information Matrix (FIM) to precondition the gradient. This FIM, approximated efficiently using the Kronecker-factored Approximate Curvature (K-FAC) method, acts as a stabilizer to prevent forgetting and accelerates optimization in non-interfering directions.

Key methodological contributions include:

  • Formalizing OCL as Second-Order Joint Optimization: Treating OCL as optimizing over both past and new data, with explicit KL-divergence constraints on replay data.
  • Leveraging FIM for Preconditioning: Using the FIM to capture the loss function's curvature, providing both plasticity and stability. This is a departure from traditional methods that use FIM as a penalization term.
  • K-FAC Approximation: Employing K-FAC for efficient FIM computation, with specific adjustments for OCL settings.
  • Stability Constraint: Incorporating a KL-divergence constraint on the variation of model predictions on replay data to ensure stability.
  • Hyperparameter Tuning and Scheduling: Developing strategies for tuning hyperparameters like $\alpha$ (learning rate), $\lambda$ (stability constraint strength), and $\tau$ (Tikhonov regularization) to balance stability and plasticity.

Datasets

The paper evaluates OCAR on the following datasets:

  • Split CIFAR100 (20 Tasks): A class-incremental benchmark.
  • Split Tiny ImageNet (20 Tasks): Another class-incremental benchmark.
  • Online CLEAR (10 Tasks): A domain-incremental benchmark.

Key Insights and Ideas

  • Second-order information is crucial for OCL: The paper argues that first-order information is insufficient for stable and plastic OCL, and second-order information (curvature) is necessary to navigate the complex loss landscape and avoid catastrophic forgetting.
  • FIM as a Preconditioner, not just a Penalty: OCAR's novel use of the FIM as a gradient preconditioner, rather than a penalty term, allows for more direct adaptation to the geometry of the parameter space, leading to improved optimization.
  • The role of Tikhonov regularization: The paper highlights the importance of $\tau$ in stabilizing second-order optimization, especially in non-i.i.d. settings where the Fisher can exacerbate instabilities.
  • Hyperparameter interpretation: The study provides a clear interpretation of how hyperparameters $\alpha$, $\lambda$, and $\tau$ influence the stability-plasticity tradeoff, offering guidance for their selection.
  • OCAR's robustness: The method demonstrates strong performance across different types of continual learning (class-incremental and domain-incremental), suggesting its general applicability.

Key Results

  • State-of-the-art performance: OCAR consistently outperforms existing state-of-the-art methods on Split CIFAR100 and Split Tiny ImageNet across multiple metrics, including average accuracy (Acc), average anytime accuracy (AAA), and worst-case accuracy (WC-Acc).
  • Improved stability and plasticity: OCAR achieves higher average accuracy and significantly better continual metrics (AAA and WC-Acc) compared to baselines, indicating a superior balance between learning new information and retaining old knowledge.
  • Efficient optimization: Despite using second-order information, OCAR is computationally efficient due to the K-FAC approximation and achieves competitive training times, often faster than other sophisticated methods.
  • Effective on domain-incremental learning: OCAR also shows remarkable performance on the Online CLEAR benchmark, outperforming previous SOTA methods.
  • Combinatorial potential: Integrating OCAR with other methods like ER-ACE further boosts performance, demonstrating its compatibility and potential for synergistic gains.

Limitations and Future Work

  • Hyperparameter selection: While the paper provides insights into hyperparameter tuning, selecting optimal values can still be challenging, especially in nonstationary settings where the optimal configuration might change over time. The paper notes that their shorter stream for hyperparameter selection might be suboptimal.
  • K-FAC approximations: While K-FAC is efficient, it's still an approximation. Exploring other second-order approximations or exact FIM computation for smaller models could be future work.
  • Dynamic adaptation of $\alpha$ and $\tau$: The paper suggests future research into feasible dynamic adaptation of $\alpha$ and $\tau$ to further improve performance and robustness.
  • Comparison of curvature approximations: Investigating different approximations of curvature beyond FIM could be a fruitful direction.
  • Theoretical understanding: Further theoretical analysis of OCAR's dynamics and its relationship with information geometry could provide deeper insights.

Summary updated

BibTeX
@inproceedings{urettini2025online,
  author = {Edoardo Urettini and Antonio Carta},
  title = {{Online Curvature-Aware Replay: Leveraging 2nd Order Information for Online Continual Learning.}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
}
Figure