Abstract
Pre-trained deep neural networks (DNNs) are being widely deployed by industry for making business decisions and to serve users; however, a major problem is model decay, where the DNN's predictions become more erroneous over time, resulting in revenue loss or unhappy users. To mitigate model decay, DNNs are retrained from scratch using old and new data. This is computationally expensive, so retraining happens only once performance significantly decreases. Here, we study how continual learning (CL) could potentially overcome model decay in large pre-trained DNNs and greatly reduce computational costs for keeping DNNs up-to-date. We identify the "stability gap" as a major obstacle in our setting. The stability gap refers to a phenomenon where learning new data causes large drops in performance for past tasks before CL mitigation methods eventually compensate for this drop. We test two hypotheses to investigate the factors influencing the stability gap and identify a method that vastly reduces this gap. In large-scale experiments for both easy and hard CL distributions (e.g., class incremental learning), we demonstrate that our method reduces the stability gap and greatly increases computational efficiency. Our work aligns CL with the goals of the production setting, where CL is needed for many applications.
The Challenge of Model Decay and the Stability Gap
In industrial applications, Deep Neural Networks (DNNs) are rarely static. As real-world data evolves—a phenomenon known as "concept drift"—models trained on historical data begin to lose their predictive power. This model decay typically necessitates expensive offline retraining, where the model is rebuilt from scratch using the entire accumulated dataset.
Continual Learning (CL) offers a more efficient alternative by updating models incrementally. However, the transition to CL reveals a critical phenomenon: the Stability Gap. While researchers have long studied "catastrophic forgetting" (the permanent loss of old knowledge), the stability gap describes a transient but severe dip in performance on old tasks that occurs immediately after a model begins learning new data.
As shown in the figure above, the model's accuracy on old tasks plummets at the start of new training iterations before slowly recovering. In production environments, such as recommendation engines or autonomous systems, this temporary "blackout" period is unacceptable, even if the model eventually recovers its performance.
Stability Gap Mitigation (SGM)
To address this, the authors propose SGM (Stability Gap Mitigation), a method that combines four key strategies to stabilize the learning process:
- Data-Driven Weight Initialization: New class weights are often initialized randomly, causing a high initial loss that disrupts existing representations. SGM initializes these weights using the mean of unit-length embeddings from the penultimate layer, placing them in a mathematically favorable starting position.
- Dynamic Soft Targets: Instead of rigid "hard" labels, SGM uses soft targets that reflect class similarities. This prevents new data from aggressively overwriting old knowledge by acknowledging the relationships between new and old categories.
- LoRA (Low-Rank Adaptation): To balance plasticity and stability, SGM utilizes LoRA. By freezing the bulk of pre-trained weights and only training a small, low-rank parameter subspace, the model can learn new features without destabilizing its foundation.
- OOCF (Old Output Class Freezing): This technique freezes the output units for previously learned classes during rehearsal, ensuring that the "exit gates" for old knowledge remain fixed while the model adapts to new inputs.
Quantitative Results and Efficiency
The effectiveness of SGM was evaluated using large-scale datasets including ImageNet-1K and Places365. The researchers introduced three normalized metrics to quantify performance: the Stability Gap ($S_\Delta$), Plasticity Gap ($P_\Delta$), and Continual Knowledge Gap ($CK_\Delta$).
As detailed in the table above, SGM significantly outperforms standard baselines. Notably, it reduces the stability gap ($S_\Delta$) to nearly zero (0.006) compared to Naive Finetuning (0.743). Beyond stability, SGM achieved a 16.7× reduction in network updates and a 31.9× speedup in TFLOPs compared to traditional joint retraining, all while maintaining accuracy levels comparable to the theoretical upper bound.
Conclusion
The SGM method demonstrates that the stability gap is not an inherent necessity of continual learning but a manageable byproduct of how models are updated. By focusing on the process of learning rather than just the final result, SGM brings CL closer to the requirements of real-world production systems, offering a path toward efficient, always-on model maintenance without the risks of transient performance failure.
Summary updated