Fast and Slow Variational Continual Learning

Subarnaduti Paul, Yohan Jung, Mohammad Emtiyaz Khan, Siddharth Swaroop, Thomas Möllenhoff, Martin MundtarXiv 2026

TL;DR

The authors introduce Continual IVON (CoVON), a novel optimizer that embeds a biologically inspired "fast and slow" adaptation mechanism directly into the training process of a single neural network. By leveraging variational continual learning and online curvature estimates, CoVON effectively balances stability and plasticity across tasks without the massive computational overhead or complex architectures of traditional continual learning methods.

What Problem Does This Paper Address?

When deep learning models are deployed in the real world, they often encounter non-stationary environments where data distributions change over time. Standard optimizers like SGD and Adam excel at learning the task at hand but suffer from catastrophic forgetting—they overwrite previously learned knowledge when exposed to new data.

To combat this, the field of continual learning (CL) typically relies on external add-ons: storing old data in replay buffers, freezing specific architectural components, or adding complex post-hoc regularization terms (like EWC). These methods are often computationally expensive, difficult to scale, or biologically implausible.

This paper addresses a fundamental question: Can we build knowledge retention directly into the optimization process itself? Inspired by the Complementary Learning Systems (CLS) theory in neuroscience—which posits that the brain balances rapid learning (hippocampus) with slow consolidation (neocortex)—the authors seek to build a single optimizer that naturally operates on two distinct timescales.

Methods

CoVON builds upon the Variational Continual Learning (VCL) framework, generalizing it into a elegant two-stage update loop:

  1. Fast Adaptation (Inner Loop): When a new task arrives, the model rapidly adapts using a recently proposed variational optimizer called IVON (Improved Variational Online Newton). Instead of tracking just a single weight value, IVON maintains a diagonal Gaussian distribution (posterior) over the weights. This allows the optimizer to naturally estimate weight uncertainty and curvature "for free" during standard training steps.
  2. Slow Consolidation (Outer Loop): After a task is learned, CoVON consolidates this new knowledge into a slow-moving outer posterior. Crucially, instead of a simple moving average, it performs uncertainty-guided posterior merging. Weights with high uncertainty (plastic weights) are allowed to move significantly, while weights with low uncertainty (stable, critical weights) are fiercely preserved.
Figure 1: CoVON balances stability and plasticity in Variational Continual Learning through fast and slow adaptation steps in a single model, where the VCL block denotes the variational update in Eq. 1. The slow-moving posterior (red) slowly consolidates information from the previous posterior and the new fast posterior (blue), merging the models together. The fast posterior is trained on the current data using the previous slow posterior as a new prior in a Bayesian continual update.

Because IVON shares a nearly identical form and computational cost with Adam, CoVON can be seamlessly dropped into existing pipelines.

Datasets

The authors rigorously evaluated CoVON across a diverse suite of benchmarks spanning computer vision and large language models:

  • Permuted MNIST: A classic, sequential digit-recognition baseline used to validate the core VCL mechanics.
  • Domain-Incremental Learning (DIL) Benchmarks: CDDB-Hard (continual deepfake detection), CORe50 (continual object recognition across 11 domains), and DomainNet (a massive multi-domain dataset featuring 345 classes).
  • Multilingual Pre-training: Sequential language modeling across English $\rightarrow$ German $\rightarrow$ French using a 125M parameter GPT-style model.
  • LLM Fine-Tuning: Sequential reasoning tasks using a Qwen3-1.7B model trained on GSM8K (mathematics), Alpaca-Code (code generation), and ARC-Challenge (commonsense reasoning).

Key Insights and Ideas

  • Curvature for Free: Traditional regularization methods like EWC require an expensive, separate pass over the entire dataset at the end of every task to calculate weight importance (the Hessian matrix). CoVON extracts this curvature information online during normal training steps via variational parameter sampling.
  • Precision-Aware Merging Matters: The "aha moment" of the paper lies in the ablation studies. Merging models using an Exponential Moving Average (EMA) helps, but weighting the merge by the optimizer's accumulated precision/curvature information yields a massive boost in final accuracy.
Figure 2: (a) Comparison of CoVON against recent VCL approaches on a Sequential Permuted MNIST-Hard benchmark. Here, CoVON-NoM denotes the variant without posterior merging (this is then the same as VCL using natural-gradient updates), whereas CoVON includes this slow update, as shown in Eq. 10. CoVON-NoM already outperforms the strongest baseline TD-VCL, and the merging- based update further improves the model performance, demonstrating the importance of the interplay between fast and slow components. (b) Ablation study of the fast and slow components of CoVON. Considering only fast IVON-like updates unsurprisingly leads to catastrophic forgetting, which is partially alleviated by adding a prior. On the contrary, using both fast and slow mechanisms offers a significant improvement, where the full fast and slow VCL mechanism of CoVON outperforms a curvature-unaware EMA-based merging of past posteriors.

Key Results

  • Superior Accuracy in Vision: On the massive DomainNet benchmark, CoVON achieved an average accuracy of 59.89%, outperforming the strongest exemplar-free baseline (PINA) by 4.1% while maintaining exceptionally low forgetting rates.
  • Scalability to LLMs: During multilingual pre-training, CoVON successfully prevented the model from overwriting its English capabilities when learning French and German, achieving the lowest overall validation perplexity (31.89) compared to AdamW and IVON baselines (which spiked to ~85).
  • Minimal Forgetting in Reasoning: When fine-tuning Qwen3-1.7B, standard AdamW suffered a ~70% drop in math performance after learning coding and commonsense reasoning. CoVON exhibited a mere 4% degradation in math capabilities, matching the performance of standard fine-tuning on new tasks while preserving the old.
  • High Efficiency: Unlike EWC, which increases computational overhead by over 200% at task transitions due to post-hoc calculations, CoVON introduces virtually no substantial runtime or memory overhead compared to standard AdamW training.

Limitations and Future Work

While CoVON marks a significant step forward, the authors note a few limitations:

  • Diagonal Variance Assumption: CoVON relies on a mean-field (diagonal) Gaussian approximation for the weight posteriors. Exploring more expressive posterior distributions could capture richer correlations between weights.
  • The Buffer Gap: CoVON operates purely at the optimizer level without a data replay buffer. While it performs exceptionally well, a small performance gap remains compared to "cumulative training" (where all data is stored and trained together). Combining CoVON with lightweight memory replay mechanisms is a promising future direction.

Summary updated

BibTeX
@misc{paul2026fast,
  author = {Subarnaduti Paul and Yohan Jung and Mohammad Emtiyaz Khan and Siddharth Swaroop and Thomas Möllenhoff and Martin Mundt},
  title = {{Fast and Slow Variational Continual Learning}},
  year = {2026},
  eprint = {2606.24007},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.24007},
}
Figure