Dynamic Prompt Adjustment for Multi-label Class-Incremental Learning

Haifeng Zhao, Yuguang Jin, Leilei Ma

TL;DR

This paper introduces a novel framework for Multi-Label Class-Incremental Learning (MLCIL) leveraging pre-trained vision-language models (CLIP). By combining a dual-context prompt tuning mechanism with a diversity- and confidence-driven sample replay strategy, the method effectively mitigates catastrophic forgetting in complex, multi-object real-world scenarios.

What Problem Does This Paper Address?

Most research in Class-Incremental Learning (CIL) operates under a simplifying assumption: each image contains only a single object category. In the real world, however, scenes are inherently multi-label (e.g., an image containing a person, a dog, and a cat simultaneously).

When a model learns incrementally in a multi-label environment, it encounters a severe hurdle. In new training sessions, an image might only be labeled with the newly introduced category, leaving previously learned categories unlabelled or implicitly treated as negative background. This partial labeling severely aggravates "catastrophic forgetting"—where learning new things obliterates old knowledge. While foundation models like CLIP show immense promise for zero-shot tasks, directly fine-tuning them in an incremental fashion still leads to rapid knowledge decay.

The authors contrast single-label and multi-label incremental learning setups in Figure 1:

Single-label vs Multi-label Class-Incremental Learning

Methods

To tackle MLCIL without massive parameter expansion, the authors propose a prompt-adjustment framework built on top of a frozen CLIP backbone. It consists of two primary components:

  1. Incremental-Context Prompt (ICP): Instead of standard prompt tuning, ICP employs a dual-context prompt mechanism. It learns category-specific prompts ($t_c$) alongside supplementary context prompts ($t_s$) that omit class embeddings. This dual structure helps the text encoder capture broader context and reduces class-specific bias during incremental updates.
  2. Selective Confidence Cluster Replay (SCCR): Rather than saving random or average-feature samples to a memory buffer, SCCR uses K-means clustering on distilled region features to ensure sample diversity. Within each cluster, it selects "hard" samples—specifically those with the lowest predicted probability from the previous session's model—to be replayed in the current session.
  3. Textual Prompt Consistency Loss ($\mathcal{L}_{tpc}$): To prevent the text embeddings from drifting too far during incremental steps, this regularization loss minimizes the cosine distance between the textual features generated by the current model and those from the previous session's model.

The overall framework is optimized using a combination of Asymmetric Loss (ASL)—which handles positive/negative imbalances typical in multi-label tasks—and the consistency loss.

Overview of the proposed framework

Datasets

The authors evaluated their approach using standard multi-label benchmarks adapted for incremental learning:

  • MS-COCO: Features 80 distinct categories. It was tested under two incremental schedules: B0-C10 (0 base classes, 10 classes added per session) and B40-C10 (40 base classes, 10 classes added per session).
  • PASCAL VOC 2007: Features 20 categories, evaluated under B0-C4 and B10-C2 setups.

Key Insights and Ideas

  • Contextual Prompts Neutralize Bias: Standard prompt tuning binds too tightly to individual class names. Introducing a parallel, class-agnostic context prompt prevents the text encoder from developing a myopic bias toward newly introduced classes.
  • Replaying Low-Confidence Samples Wins: Traditional rehearsal methods often save average or prototypical samples. This paper demonstrates that partitioning the feature space via clustering (for diversity) and then targeting low-confidence ("hard") samples within those clusters is far more effective at anchoring old boundaries in multi-label spaces.
  • Prompt Regularization as an Anchor: Forcing the text embeddings generated by the prompt tokens to remain consistent across incremental steps acts as an effective anchor, preventing the vision-language alignment from drifting.

Key Results

  • MS-COCO Performance: Under the B40-C10 setting with a modest buffer size of 20 samples per class, the proposed method achieved a final session accuracy (mAP) of 78.4%, outperforming the previous state-of-the-art method (KRT-R) by 3.2%.
  • PASCAL VOC Performance: In the B10-C2 setup with only 2 samples per class replayed, the method achieved a last accuracy of 84.1%, leading the runner-up by 3.6%.
  • Qualitative Stability: Visualized attention maps demonstrate that the model maintains a steady, sharp focus on old base categories (such as bicycles or elephants) even after multiple incremental training sessions, confirming that it successfully retains old knowledge while absorbing new labels.
Attention map visualization across sessions

Limitations and Future Work

Not discussed in the paper.

Summary updated

BibTeX
@inproceedings{zhao2024dynamic,
  author = {Haifeng Zhao and Yuguang Jin and Leilei Ma},
  title = {{Dynamic Prompt Adjustment for Multi-label Class-Incremental Learning}},
  booktitle = {BICS},
  year = {2024},
  doi = {10.1007/978-981-96-2882-7\_6},
}
Figure