Manuscript Offprint

arXiv:2610.27835

From Generic to Dedicated: A Novel Optimizer for Online Continual Learning

Yongyi Wu, Zheng Wang, Sen Lin

Abstract

Online Continual Learning (OCL) requires models to learn from non-stationary data streams under a strict single-pass constraint, making them highly susceptible to catastrophic forgetting. While existing studies have explored various strategies from data, architecture, and optimization perspectives, the optimizer often directly uses generic approaches such as SGD and AdamW. In this work, we reveal a new link between optimization dynamics and OCL needs by recasting Polyak-Ruppert averaging as the engine of “plasticity” and Primal averaging as the anchor of “stability”. This inspires our novel optimizer, SPIN (Stability-Plasticity Interpolation), which explicitly decouples plasticity and stability by interpolating between a fast-moving “plasticity” sequence and an adaptive “stability” sequence. We theoretically demonstrate that SPIN implicitly employs an inverse Hessian approximation, providing crucial Tikhonov regularization to damp noisy, single-sample Hessian estimates and mitigate forgetting. More importantly, SPIN can be seamlessly integrated into existing OCL methods by taking resulted gradients as input and replacing standard optimizers. Extensive experiments show that using SPIN instead of standard optimizers yields consistent and significant performance gains across multiple OCL approaches, including the challenging rehearsal-free setting and under strict memory constraints.

1 Introduction

Continual Learning (CL) aims to enable AI systems to continuously acquire new knowledge while retaining previously learned skills, a capability essential for many real-world applications where data arrives sequentially [62, 76, 59, 9]. However, the common assumption in offline CL, that models are able to revisit task data multiple times during training, rarely holds. This has motivated the rise of Online Continual Learning (OCL), a more realistic paradigm where each sample is observed only once [21, 58, 41]. Nevertheless, OCL inevitably exacerbates key challenges like catastrophic forgetting [16, 27] and the plasticity-stability dilemma [43] under strict single-pass constraints.

To address this, existing OCL research has largely followed the classical offline CL paradigm, focusing on data, loss functions, and architectural designs, such as replay, regularization, and distillation [50, 7, 24, 74, 71]. In most of these approaches, the lower-level optimizer is treated as a fixed, secondary component, directly using generic strategies such as vanilla SGD [51] or AdamW [26, 39]. In both SGD and AdamW, the gradient is evaluated at the current parameter given the newly arrived sample. Consequently, the optimization direction is dominated by the instantaneous data distribution, even when momentum is used. This behavior can lead to accelerated forgetting under non-stationary data streams. From the perspective of online optimization theory, however, the optimizer itself

∗^{*}Work done during an internship at University of Houston

†^{\dagger}Corresponding author: slin50@central.uh.edu

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

plays a decisive role in determining convergence, stability, and generalization [23]. Many works have explored the role of optimization in OCL, proposing methods that modify gradient updates via projection, reweighting, proximal constraints, or curvature-aware preconditioning [38, 8, 69, 73]. These approaches operate primarily at the level of gradient manipulation, adapting the update direction while still relying on standard optimizers. Therefore, a critical question arises: “Instead of relying on generic optimizers, can we design a novel optimizer specifically tailored to OCL that effectively mitigates the forgetting problem and further pushes the limits of existing OCL approaches?”

To answer this question, we revisit the fundamentals of stochastic optimization and establish a direct connection between its averaging mechanisms and the stability–plasticity dilemma in OCL. Specifically, we reinterpret Polyak–Ruppert averaging [48, 52] as the engine of plasticity, since it evaluates gradients at the current, fast-evolving iterate and thus quickly adapts to new data. In contrast, Primal averaging [44, 10, 13] serves as the anchor of stability, as it computes gradients at the averaged, slowly updating point, thereby retaining previously acquired knowledge. We empirically examine these two averaging schemes, as shown in Figure 1. Polyak–Ruppert averaging achieves higher learning accuracy but suffers from greater forgetting, reflecting its strong plasticity yet limited stability. Primal averaging, on the other hand, exhibits the opposite behavior, showing lower plasticity while maintaining

Figure

Figure 1: The comparison of plasticity (Learning Accuracy) and stability (Average Forgetting) of Polyak-Ruppert averaging and Primal averaging on split CIFAR-100. Learning Accuracy for the j-th task is the accuracy evaluated on the test set of task j immediately after the network has been trained sequentially from task 1 up to task j.

behavior, showing lower plasticity while maintaining superior stability.

Driven by these observations, we propose a novel optimizer, SPIN (Stability-Plasticity INterpolation), which explicitly manages this trade-off by operating on two coupled iterate sequences. SPIN maintains a plasticity model sequence for rapid adaptation and a stability model sequence for consolidated knowledge. Its core mechanism links these sequences in two ways. First, gradients are evaluated at an interpolated point between the two models, enabling a unified view of multiple averaging strategies. Second, the stability sequence is updated by smoothly integrating information from the plastic sequence, preventing corruption under the high-variance, non-stationary OCL stream. We find that this formulation not only blends the benefits of different averaging approaches, but also connects conceptually to several regularization-based and meta-continual learning methods. Our main contributions can be summarized as follows:

(1) We propose a novel optimizer dedicated for OCL, namely SPIN, which explicitly decouples plasticity and stability at the model level. Crucially, SPIN can be directly integrated into existing OCL methods by simply replacing their lower-level optimizers. In other words, SPIN operates similarly to SGD by taking only the gradients as input, regardless of how those gradients are modified by the upstream OCL methods.

(2) We establish a unified optimization framework for OCL, providing new theoretical insights into the plasticity-stability dilemma. Within this framework, we theoretically justify the design of SPIN and its effectiveness in mitigating catastrophic forgetting.

(3) Extensive experiments validate the effectiveness and generality of SPIN, showing consistent, significant performance gains across diverse OCL approaches, including the challenging rehearsal-free setting and under strict memory constraints.

References (65)