Gradient-Guided Epsilon Constraint Method for Online Continual Learning

Fei Zhu (Centre for Artificial Intelligence and Robotics Hong Kong Institute of Science & Innovation, Chinese Academy of Sciences) · Qingfu Zhang (City University of Hong Kong) · Zhe Zhao (University of Science and Technology of China) · Song Lai (City University of Hong Kong) · Changyi Ma (The Chinese University of Hong Kong) · Xi Lin (City University of Hong Kong) · GAOFENG MENG (Institute of Automation, Chinese Academy of Sciences)
$\epsilon$-constraint optimizationconstraint satisfactionempirical evaluationsexperience replaygeneralizationgradient-guided epsilon constraintmemory lossmemory retentiononline continual learningoptimization problemoverfittingplasticityslack variablesoft constraintstability

Online Continual Learning (OCL) requires models to learn sequentially from data streams with limited memory. Rehearsal-based methods, particularly Experience Replay (ER), are commonly used in OCL scenarios. This paper revisits ER through the lens of $\epsilon$-constraint optimization, revealing that ER implicitly employs a soft constraint on past task performance, with its weighting parameter post-hoc defining a slack variable. While effective, ER's implicit and fixed slack strategy has limitations: it can inadvertently lead to updates that negatively impact generalization, and its fixed trade-off between plasticity and stability may not optimally balance current streaming with memory retention, potentially overfitting to the memory buffer. To address these shortcomings, we propose the \textbf{G}radient-Guided \textbf{E}psilon \textbf{C}onstraint (\textbf{GEC}) method for online continual learning. GEC explicitly formulates the OCL update as an $\epsilon$-constraint optimization problem, which minimize the loss on the current task data and transform the stability objective as constraints and propose a gradient-guided method to dynamically adjusts the update direction based on whether the performance on memory samples violates a predefined slack tolerance $\bar{\varepsilon}$: if forgetting exceeds this tolerance, GEC prioritizes constraint satisfaction; otherwise, it focuses on the current task while controlling the rate of increase in memory loss. Empirical evaluations on standard OCL benchmarks demonstrate GEC's ability to achieve a superior trade-off, leading to improved overall performance.