Monte Carlo Functional Regularisation for Continual Learning

Ercan Engin Kuruoglu, PhD Cantab, Prof, Ieee Fellow, Pengcheng Hao, Menghao Waiyan William Zhu, Ercan Engin KuruogluarXiv 2025 · DOI

Abstract

Continual learning (CL) seeks to enable neural networks to learn a sequence of tasks without suffering from "catastrophic forgetting." While functional regularization methods—which penalize changes in model outputs—have shown promise, they typically rely on computationally expensive linearization techniques. We introduce Monte Carlo Functional Regularisation for Continual Learning (MCFRCL), a framework that approximates prediction distributions through Monte Carlo sampling. By bypassing the need for Jacobian calculations, MCFRCL achieves high accuracy with significantly improved computational efficiency and lower memory requirements compared to existing state-of-the-art functional methods.

Introduction

In the paradigm of Continual Learning, a model must adapt to new tasks while preserving knowledge from previous ones. The primary obstacle is catastrophic forgetting, where the optimization for a new task overwrites parameters critical for prior tasks. Traditional weight-space regularization methods, such as Elastic Weight Consolidation (EWC), often fail to account for the highly non-linear relationship between network weights and predictive outputs.

Functional regularization addresses this by directly constraining the model's output distribution. However, current state-of-the-art methods like S-FSVI rely on local linearization of the network, requiring the computation of large Jacobian matrices. This process is memory-intensive and computationally taxing, limiting its applicability to large-scale models or resource-constrained environments.

Methodology: The MCFRCL Framework

MCFRCL proposes a sampling-based approach to functional regularization that avoids the overhead of linearization. The framework operates in three distinct stages:

  1. Monte Carlo (MC) Sampling: Multiple prediction samples are drawn from both the current model and the model preserved from the previous task. This captures the predictive uncertainty of the Bayesian Neural Network (BNN) without requiring explicit derivatives of the network architecture.
  2. Distribution Approximation: The samples are used to estimate the parameters of continuous probability distributions, specifically Gaussian, Laplace, or Cauchy distributions. Moment-based estimation (e.g., using mean and variance) ensures that this step is computationally efficient and differentiable.
  3. Distance Calculation: A regularization penalty is derived by calculating the distance between the current and previous task's output distributions using metrics such as Kullback–Leibler (KL) divergence or Wasserstein distance.
Overview of the MCFRCL framework: Sampling, Parameter Estimation, and Distance Calculation.

By treating the network as a BNN and utilizing MC sampling, the method effectively captures non-linear predictive behavior that linearization might miss.

Experimental Evaluation

The framework was benchmarked against standard CL datasets, including Split MNIST, Split Fashion MNIST, and Split CIFAR.

Performance and Accuracy

On the Split MNIST benchmark (40 points per task), MCFRCL achieved an accuracy of 84.85%, slightly outperforming the previous state-of-the-art functional method, S-FSVI (84.51%), and significantly exceeding weight-based methods like EWC (~20%). On the more complex CIFAR dataset, MCFRCL remained competitive, though it lagged slightly behind S-FSVI (73.16% vs 77.6%), likely due to the challenges of approximating high-dimensional distributions with a finite number of samples.

Computational Efficiency

A key advantage of MCFRCL is its efficiency. By avoiding Jacobian matrices, the method drastically reduces the computational burden.

Comparison of training time and memory usage between MCFRCL and S-FSVI across different datasets.

As shown in the experimental results, MCFRCL requires significantly less GPU memory and shorter training times per epoch than S-FSVI across all tested scenarios. This makes it a viable candidate for deployment on edge devices where memory and power are limited.

Discussion and Conclusion

MCFRCL demonstrates that simple Monte Carlo sampling can be a more efficient and often more effective alternative to complex linearization in functional regularization. The choice of distribution is critical; while Gaussian and Laplace distributions performed well, the heavy-tailed Cauchy distribution was less effective for these classification tasks.

While MCFRCL offers substantial gains in efficiency, future work will focus on improving its scalability to even more complex, high-dimensional datasets where simple parametric distributions may not fully capture the predictive manifold. Nevertheless, its lightweight nature positions it as a strong framework for real-world continual learning applications.

Summary updated

BibTeX
@misc{fellow2025monte,
  author = {Ercan Engin Kuruoglu, PhD Cantab, Prof, IEEE Fellow and Pengcheng Hao and Menghao Waiyan William Zhu and Ercan Engin Kuruoglu},
  title = {{Monte Carlo Functional Regularisation for Continual Learning}},
  year = {2025},
  eprint = {2508.13006},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.13006},
}
Figure