Enhancing Visual Continual Learning with Language-Guided Supervision

Bolin Ni, Hongbo Zhao, Chenghao Zhang, Ke Hu, Gaofeng Meng, Zhaoxiang Zhang, Shiming Xiang

Abstract

Continual Learning (CL) aims to enable models to learn tasks sequentially without suffering from catastrophic forgetting. Traditional CL methods often rely on one-hot labels and randomly initialized classifiers, leading to representation drifting and semantic blindness. We present LingoCL, a "plug-and-play" framework that utilizes fixed semantic embeddings from pretrained language models (PLMs) as supervision targets. By providing a stable and semantically structured target space, LingoCL significantly reduces forgetting and enhances knowledge transfer across tasks. Our evaluation across multiple benchmarks shows consistent improvements over state-of-the-art CL methods with zero additional training parameters.

Introduction

A fundamental challenge in deep learning is the ability to learn new information without overwriting old knowledge. In Continual Learning (CL), this manifests as catastrophic forgetting. Most existing CL approaches utilize one-hot labels, which treat every class as equally distinct and unrelated. This supervision strategy has two critical flaws:

  1. Representation Drifting: As the model learns new tasks, the vision encoder's feature space shifts to accommodate new classes, often at the expense of previously learned representations.
  2. Semantic Blindness: One-hot vectors lack semantic context. A model cannot naturally understand that a "husky" is more similar to a "wolf" than to a "toaster," hindering the transfer of relevant features between related tasks.

The LingoCL Framework

LingoCL addresses these issues by shifting supervision from abstract one-hot vectors to language-based semantics.

Overview of the LingoCL framework compared to traditional one-hot supervision, alongside a performance summary.

The framework operates in three main steps:

  1. Target Generation: Category names for each task are processed through a frozen Pretrained Language Model (PLM)—specifically the text encoder from CLIP—to generate fixed semantic embeddings.
  2. Fixed Classifier: These embeddings serve as the weights for the classifier head. Unlike traditional methods, these weights are frozen throughout the training process.
  3. Vision Training: The vision encoder is trained to map image features directly into this pre-defined, stable semantic space.

By keeping the classifier weights fixed and semantically grounded, the vision encoder has a consistent "North Star," preventing the wild shifts in feature space that typically cause forgetting.

Key Insights: Stability and Semantic Priors

A core finding of this work is that stability through rigidity is highly beneficial in CL. While fine-tuning is standard in most deep learning contexts, fine-tuning the classifier in CL is a primary driver of representation drift. By freezing the classifier, LingoCL maintains a stable target.

Comparison of representation drifting between one-hot supervision and language-guided supervision across increasing numbers of tasks.

Furthermore, using language as a prior allows the model to inherit a pre-structured world map. This enables "negative forgetting," where learning a new, semantically related task can actually improve performance on older tasks by refining shared feature representations.

Experimental Results

LingoCL was evaluated as a plugin for 11 mainstream CL baselines (e.g., LUCIR, DyTox, BiC) across datasets including CIFAR-100, ImageNet-100, and OfficeHome.

  • Performance Gains: On ImageNet-100, LingoCL improved Top-1 accuracy by 3.2% to 6.1% and reduced the forgetting rate by up to 13.1%.
  • Few-Shot Scenarios: The framework excels when data is scarce. In experiments with only 32 samples per class, LingoCL provided a massive 14.0% boost in accuracy.
  • Efficiency: LingoCL adds zero extra parameters to the final model and has a negligible impact on training time, as the PLM is only used once to generate targets.

Conclusion

LingoCL demonstrates that language-guided supervision is a powerful and efficient tool for mitigating catastrophic forgetting in continual learning. By replacing arbitrary one-hot labels with fixed semantic targets, models can maintain stable representations and leverage cross-task relationships. Future work may explore more advanced prompting techniques and the scalability of this approach to large-scale, open-world scenarios.

Summary updated

BibTeX
@inproceedings{ni2024enhancing,
  author = {Bolin Ni and Hongbo Zhao and Chenghao Zhang and Ke Hu and Gaofeng Meng and Zhaoxiang Zhang and Shiming Xiang},
  title = {{Enhancing Visual Continual Learning with Language-Guided Supervision}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure