Beyond Sharpness: A Flatness Decomposition Framework for Efficient Continual Learning
Yanan Chen, Tieliang Gong, Yunjiao Zhang, Wen Wen
TL;DR
Continual learning suffers from catastrophic forgetting, and while flatness of minima can improve generalization, prior sharpness-aware methods are costly and treat sharpness as a single signal. The authors propose FLAD, a flatness-decomposition framework that separates sharpness perturbations into gradient-aligned and stochastic-noise components, retaining only the noise part to promote generalization, plus a lightweight scheduling scheme. They formalize loss-landscape metrics with $R^{0}_{\rho}(w)$ and $R^{1}_{\rho}(w)$, present a decomposed optimization using EMA gradient approximations and Hessian-vector products, and prove convergence for nonconvex CL with a rate of $\mathcal{O}(\log n^T/\sqrt{n^T})$. Empirically, FLAD improves performance across diverse CL benchmarks when plugged into replay-, regularization-, and expansion-based methods, and even partial usage yields substantial efficiency gains, making curvature-guided CL practical at scale.
Abstract
Continual Learning (CL) aims to enable models to sequentially learn multiple tasks without forgetting previous knowledge. Recent studies have shown that optimizing towards flatter loss minima can improve model generalization. However, existing sharpness-aware methods for CL suffer from two key limitations: (1) they treat sharpness regularization as a unified signal without distinguishing the contributions of its components. and (2) they introduce substantial computational overhead that impedes practical deployment. To address these challenges, we propose FLAD, a novel optimization framework that decomposes sharpness-aware perturbations into gradient-aligned and stochastic-noise components, and show that retaining only the noise component promotes generalization. We further introduce a lightweight scheduling scheme that enables FLAD to maintain significant performance gains even under constrained training time. FLAD can be seamlessly integrated into various CL paradigms and consistently outperforms standard and sharpness-aware optimizers in diverse experimental settings, demonstrating its effectiveness and practicality in CL.
