Abstract
Continual learning aims to learn a model from a continuous stream of data, but it mainly assumes a fixed number of data and tasks with clear task boundaries. However, in real-world scenarios, the number of input data and tasks is constantly changing in a statistical way, not a static way. Although recently introduced incremental learning scenarios having blurry task boundaries somewhat address the above issues, they still do not fully reflect the statistical properties of real-world situations because of the fixed ratio of disjoint and blurry samples. In this paper, we propose a new Stochastic incremental Blurry task boundary scenario, called Si-Blurry, which reflects the stochastic properties of the real-world. We find that there are two major challenges in the Si-Blurry scenario: (1) intra- and inter-task forget-tings and (2) class imbalance problem. To alleviate them, we introduce Mask and Visual Prompt tuning (MVP). Extensive experiments show that our proposed MVP significantly outperforms the existing state-of-the-art methods in our challenging Si-Blurry scenario.
Introduction: Moving Beyond Static Task Boundaries
Most Continual Learning (CL) research assumes a "clean" world where a model learns tasks sequentially with clear boundaries. In reality, data streams are chaotic; new classes appear, others vanish, and some reappear sporadically. While "blurry" benchmarks were introduced to address this, they often rely on fixed ratios of data, failing to capture the true stochastic nature of real-world environments like e-commerce or search trends.
The authors identify two primary hurdles in these dynamic environments:
- Intra- and Inter-task Forgetting: Constant shifts in class distribution cause the model to forget not only old tasks but also information from very recent batches.
- Class Imbalance: Stochastic streams naturally lead to "major" (plentiful) and "minor" (rare) classes, causing models to overfit on common data and ignore rare samples.
The Si-Blurry Scenario
To better reflect real-world dynamics, the authors propose the Si-Blurry scenario. Unlike previous benchmarks like i-Blurry, which use fixed data ratios, Si-Blurry randomizes the number of classes and the ratio of "blurry" (overlapping) versus "disjoint" (new) samples. This creates a more challenging and realistic environment for online class incremental learning.
Methodology: Mask and Visual Prompt Tuning (MVP)
To address the challenges of Si-Blurry, the MVP framework introduces four key components:
- Instance-wise Logit Masking: Instead of allowing every class to compete for every prediction, the model learns to "mask" irrelevant classes for a given input. This simplifies the classification task per batch and protects previously learned knowledge from being overwritten.
- Contrastive Visual Prompt Tuning Loss ($L_{CVPT}$): Visual prompts are small learnable parameters added to a frozen backbone (e.g., ViT). MVP uses a contrastive loss to keep prompt keys distinct and anchored, ensuring the model selects the correct "knowledge pocket" for the data.
- Gradient Similarity-based Focal Loss (GSF): To mitigate class imbalance, MVP calculates an "ignore score." If a sample's gradient differs significantly from the batch average, it is likely a "minor" class being ignored. The GSF loss scales up the importance of these samples.
- Adaptive Feature Scaling (AFS): AFS scales feature vectors based on their "marginal benefit." It slows down learning for well-known samples (major classes) to prevent overfitting, while allowing more capacity for new or rare features.
Experimental Evaluation
The researchers evaluated MVP on three standard datasets adapted to the Si-Blurry configuration: CIFAR-100, Tiny-ImageNet, and ImageNet-R.
Key Results
MVP consistently outperformed state-of-the-art methods:
- Accuracy: On CIFAR-100, MVP achieved an Anytime Average Accuracy ($A_{AUC}$) of 68.10% without a memory buffer, surpassing DualPrompt (67.07%) and L2P (57.08%).
- With Memory: With a small memory buffer (MVP-R), performance reached 78.65% on CIFAR-100, significantly leading over CLIB (71.53%).
- Efficiency: MVP is designed to be lightweight, achieving superior results with much lower computational cost (4.19 TFLOPs vs. 69.6 for CLIB).
Conclusion
The Si-Blurry scenario provides a more realistic benchmark for continual learning by incorporating stochastic task boundaries. The MVP method effectively addresses the resulting forgetting and imbalance issues through innovative masking, prompt tuning, and gradient-based loss scaling. Future work may explore multi-prompt selection and batch-agnostic learning to further enhance robustness.
Summary updated