Continual Learners are Incremental Model Generalizers

Jaehong Yoon, Sung Ju Hwang, Yue Cao

Introduction

In the traditional paradigm of machine learning, models are typically trained on static, massive datasets. However, real-world applications often demand models that can learn from a continuous stream of non-stationary data. This challenge is the focus of Continual Learning (CL). Historically, the primary obstacle in CL has been "catastrophic forgetting," where a model loses the ability to perform previous tasks as it learns new ones.

This paper proposes a paradigm shift: rather than viewing forgetting solely as a failure, the authors investigate whether the loss of task-specific details allows a model to become a more effective generalist. By reframing continual learners as "incremental model generalizers," the research demonstrates that models can actually improve their ability to capture task-generic features as they encounter more tasks, provided the right learning objectives and architectures are employed.

Rethinking Forgetting: From Specificity to Generality

Standard evaluations of CL models rely on "linear evaluation," which measures how well a model remembers specific past tasks. Under this metric, forgetting appears catastrophic. However, this paper argues that linear evaluation is an incomplete measure of a model's utility.

The authors ask: Does forgetting specific details make the model a better generalist? They shift the focus from remembering task-specific labels to the model's performance when fine-tuned on entirely new, unseen tasks. Their findings suggest that as models forget the "nitty-gritty" details of an initial task, they often retain broad, structural features that facilitate faster and more accurate learning of subsequent tasks. This suggests that CL can serve as a powerful mechanism for lifelong pre-training.

Methodology

To capitalize on this insight, the authors introduce two primary innovations designed to enhance a model's generalizability during continual learning.

1. MIM-based Unsupervised Continual Learning (UCL)

While supervised and contrastive learning methods are common in CL, they often lead the model to focus on task-specific details in deeper layers, creating a "locality trap" that hinders transferability. The authors propose using Masked Image Modeling (MIM) as the core objective. In MIM, the model learns by reconstructing missing patches of an image. This approach encourages the model to develop diverse attention across all layers, preserving task-generic features more effectively than methods that rely on explicit labels or view-comparison.

2. Global Attention Discretization (GLAD)

To ensure the model remains reusable across a sequence of tasks, the authors developed GLAD, a novel fine-tuning scheme. GLAD integrates lightweight, trainable adapters into the Multi-Head Self-Attention (MHSA) modules of a Vision Transformer (ViT).

While the adapter captures the local, task-specific features required for the current objective, a specialized constraint forces the backbone to maintain "global" (task-generic) attention. This dual-path approach ensures that the backbone remains a high-quality foundation model, improving its utility as a pre-trained starting point for every subsequent task in the sequence.

Experimental Results

The approach was validated using ImageNet-1K (split into 10 tasks of 100 classes), CIFAR-100 (10 tasks of 10 classes), and ImageNet-22K for large-scale pre-training.

  • Superior Transfer Performance: On the ImageNet-1K benchmark, the MIM-based UCL approach achieved a final fine-tuning accuracy of 75.11%. This significantly outperformed the supervised base model (71.90%) and contrastive methods (64.38%), proving that MIM is a superior choice for building generalist models in a CL setup.
  • The Impact of GLAD: Sequential fine-tuning experiments showed that GLAD consistently prevents the degradation of the foundation model. For instance, by the eighth task in a sequence, a standard supervised model reached 77.80% accuracy, whereas the inclusion of GLAD boosted performance to 79.04%.
  • Attention Diversity: Visualization of "attention distance" maps confirmed that the proposed method maintains a healthy balance of local and global focus. In contrast, standard CL models tended to lose this structural diversity as they progressed through the task sequence.

Discussion and Limitations

The research highlights that "forgetting" can be a feature of a learning system that prioritizes generalizable representations over rote memorization. However, the authors note several areas for future development:

  • Computational Costs: The GLAD module introduces additional memory and computational requirements due to its regularization terms and adapters.
  • Architecture Constraints: The current framework is optimized for attention-based architectures like ViT and Swin Transformers; its effectiveness on pure Convolutional Neural Networks (CNNs) remains to be explored.
  • Long-term Scaling: While successful over 10 tasks, the true test of "lifelong" learning will require evaluation over hundreds or thousands of sequential tasks.

Conclusion

By shifting the goal of Continual Learning from task-specific retention to incremental generalization, this paper provides a new roadmap for developing foundation models. Through the combination of Masked Image Modeling and the GLAD fine-tuning scheme, the authors demonstrate that models can become more capable generalists the more they learn, turning the problem of forgetting into an opportunity for sustainable, lifelong model improvement.

Summary updated

BibTeX
@inproceedings{yoon2023continual,
  author = {Jaehong Yoon and Sung Ju Hwang and Yue Cao},
  title = {{Continual Learners are Incremental Model Generalizers}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=WCSxSOwQTR},
}
Figure