A Faster Path to Continual Learning

Wei Li, Hangjie Yuan, Zixiang Zhao, Borui Kang, Ziwei Liu, Tao Feng

TL;DR

C-Flat Turbo is a new, highly efficient optimizer that accelerates continual learning by up to 1.25× while maintaining or even improving model accuracy. By identifying and exploiting direction-invariant components in flatness gradients, it safely skips redundant, expensive backward passes and dynamically adjusts its regularization intensity as training stabilizes across tasks.

What Problem Does This Paper Address?

In Continual Learning (CL), neural networks must learn from a continuous stream of tasks without suffering from "catastrophic forgetting"—the tendency to overwrite previously learned knowledge. One promising strategy to combat this is finding flat minima in the loss landscape. If a model converges to a wide, flat valley rather than a sharp pit, small shifts in data distribution across tasks won't cause the loss to skyrocket.

The recently proposed C-Flat optimizer excels at finding these flat minima by explicitly optimizing for both zeroth-order sharpness and first-order flatness. However, this protection comes at a steep price: C-Flat requires three additional gradient computations (backward passes) per training iteration. This massive computational overhead makes it painfully slow and impractical for large-scale models or long task sequences.

The authors of this paper set out to answer a crucial question: Can we harvest the regularization benefits of C-Flat without paying the full computational tax?

Methods

The authors introduce C-Flat Turbo, an enhanced optimizer designed to bypass redundant gradient calculations through three core mechanisms:

  1. Taking Shortcuts Toward Flatness: The authors analyze the geometry of C-Flat's updates and discover that the component of the flatness gradient orthogonal to the proxy model's gradient ($\mathbf{g}_{vf}$) changes very slowly across iterations. Instead of recomputing the full flatness term at every step, C-Flat Turbo caches this direction-invariant component and reuses it for $k-1$ "surrogate steps," drastically cutting down on backward passes.
  2. Stage-Wise Turbo Step Scheduling: By tracking gradient dynamics across multiple sequential tasks, the authors observe that both sharpness and flatness gradients progressively stabilize over time. They introduce a linear scheduler that gradually increases the shortcut interval ($k$) for later tasks, unlocking more speedups as the model matures.
  3. Adaptive Triggering: Rather than applying flatness regularization blindly, C-Flat Turbo uses an Exponential Moving Average (EMA) to monitor online sharpness. It only triggers the expensive flatness optimization when the current gradient variance exceeds a dynamic threshold, falling back to standard empirical risk minimization (ERM) when the landscape is already well-behaved.

The geometric intuition behind these shortcuts and how they compare to prior methods like LookSAM can be seen in the authors' schematic:

Schematic illustration of C-Flat Turbo gradient decomposition vs LookSAM

Datasets

The method was rigorously evaluated across several prominent computer vision datasets under class-incremental learning settings:

  • CIFAR100: A standard benchmark split into 10 tasks of 10 classes each.
  • CUB200: A fine-grained dataset of bird species.
  • ImageNet-R & ObjectNet: Challenging datasets exhibiting significant domain gaps relative to standard pre-trained models.
  • DomainNet: Used in the appendix to evaluate domain-incremental learning (DIL).

Key Insights and Ideas

  • The Latent Invariance of Flatness: The core "aha!" moment of the paper is that flatness-promoting gradients are remarkably stable—even more stable than the sharpness gradients exploited by previous fast optimizers like LookSAM. This stability means that reusing a cached flatness direction over multiple steps introduces negligible approximation error.
  • Cross-Task Stabilization: As a model progresses through a continual learning stream, the parameter space naturally becomes flatter and more structured. Sharpness and flatness gradients fluctuate wildly during early tasks but smooth out later on. This justifies the use of a progressive scheduler that takes larger "turbo steps" as training goes on.

Key Results

C-Flat Turbo consistently delivers on its promise of being both faster and stronger:

  • Substantial Speedups: Across various state-of-the-art CL frameworks (such as L2P, Ranpac, and EASE), C-Flat Turbo achieves a 1.0× to 1.25× speedup over standard C-Flat. When integrated with the EASE framework on CIFAR100, it boosts throughput from 44.25 images/sec to 102.74 images/sec—effectively doubling the training speed.
  • Preserved or Improved Accuracy: Despite skipping a large portion of the gradient computations, C-Flat Turbo matches or exceeds C-Flat's accuracy. For instance, when training from scratch using the iCaRL method on ResNet-18, C-Flat Turbo improved final task accuracy by 1.61% compared to vanilla iCaRL, while being significantly faster than standard C-Flat.

Limitations and Future Work

While C-Flat Turbo represents a major step forward, the authors note a few limitations:

  • Baseline Overhead: Although it is much faster than C-Flat, it is still computationally heavier than standard optimizers like vanilla SGD due to the baseline cost of maintaining EMA statistics and calculating the initial flatness components.
  • Scope of Evaluation: The current evaluation focuses primarily on image classification benchmarks within class-incremental learning. The authors suggest that exploring how C-Flat Turbo behaves in other complex CL domains—such as vision-language models or reinforcement learning agents—is an important direction for future research.

Summary updated

BibTeX
@inproceedings{li2026faster,
  author = {Wei Li and Hangjie Yuan and Zixiang Zhao and Borui Kang and Ziwei Liu and Tao Feng},
  title = {{A Faster Path to Continual Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=BchSD4CJqI},
}
Figure