An Attention-Based Representation Distillation Baseline for Multi-label Continual Learning

Martin Menabue, Emanuele Frascaroli, Matteo Boschini, Lorenzo Bonicelli, Angelo Porrello, Simone Calderara

Introduction

Catastrophic forgetting remains a primary hurdle in training neural networks on sequential tasks. While recent advancements in Vision Transformers (ViTs) and prompting techniques have shown promise in single-label classification, real-world applications often involve multi-label scenarios where objects possess multiple attributes. This work identifies a critical performance gap: methods optimized for single-label continual learning (CL) frequently fail when transitioned to multi-label environments. Researchers at the University of Modena and Reggio Emilia challenge the notion that forgetting is a solved problem, revealing that modern ViTs struggle significantly with the realistic challenge of multi-label classification.

The Challenge of Multi-Label Continual Learning

Multi-label continual learning (MLCL) introduces complexities absent in single-label tasks, such as incomplete information and intricate inter-class relationships. Current state-of-the-art "prompting" methods, like L2P or CODA-Prompt, which typically freeze the backbone and learn task-specific prompts, struggle in these settings. The authors argue that freezing the backbone limits the model's capacity to learn the overlapping features necessary for multi-label recognition, suggesting that the CL community may be over-optimizing for simplified scenarios.

Selective Class Attention Distillation (SCAD)

To address these challenges, the authors propose Selective Class Attention Distillation (SCAD). The framework utilizes a frozen, pretrained teacher ViT and a trainable student ViT.

Overview of the SCAD framework, illustrating the teacher-student architecture, the selective attention module, and the feature propagation loss.

The core components of SCAD include:

  • Attention Distillation: Rather than aligning raw feature vectors, SCAD distills the attention maps of the class token. This captures the spatial relationships and decision-making process of the teacher model, focusing on how the model "looks" at an image.
  • Selective Adapters: To prevent the student from becoming too rigid, SCAD employs learnable adapters that generate binary masks via Gumbel-Softmax. These masks allow the student to selectively ignore teacher information that may be irrelevant to the current task, preserving plasticity for new tasks while maintaining stability for old ones.
  • Asymmetric Cross-Entropy (ACE) and Rehearsal: The method integrates a memory buffer for experience replay and utilizes ACE to handle missing labels in the data stream by only penalizing classes present in the current batch.

Experimental Evaluation

The performance of SCAD was evaluated on two challenging benchmarks:

  • IIRC CIFAR-100: A multi-label setup involving superclass and subclass labels with incomplete information.
  • Incremental WebVision: A new, large-scale benchmark introduced in this work, consisting of 350,000 images with 300 real-world tags. This dataset is particularly difficult due to significant "annotation noise" typical of web-scraped data.

Results and Discussion

SCAD demonstrated superior performance across both benchmarks using the Precision-Weighted Jaccard Similarity (PWJS) metric. On IIRC-CIFAR, SCAD achieved 66.58%, significantly outperforming DER++-ACE (61.82%) and dwarfing prompting methods like L2P (3.76%). On the noisy Incremental WebVision dataset, SCAD reached 22.17%, outperforming standard Experience Replay (21.63%).

Key insights from the study include:

  • Prompting is not a Silver Bullet: Freezing the backbone limits the learning of complex feature overlaps required for multi-label tasks.
  • The Importance of Selectivity: "Blind" distillation is less effective than the selective approach offered by SCAD, which avoids overwhelming the student with irrelevant information.
  • Rehearsal is Still King: In multi-label settings, keeping a small buffer of past examples remains significantly more robust than rehearsal-free methods.

Conclusion

SCAD provides a robust baseline for multi-label continual learning by combining selective attention distillation with experience replay. While the computational overhead of the dual-ViT setup is a consideration, the method's ability to maintain stability without sacrificing plasticity marks a significant step forward. Future research will focus on improving efficiency and addressing the challenges of extreme label noise in real-world data streams.

Summary updated

BibTeX
@inproceedings{menabue2024attention,
  author = {Martin Menabue and Emanuele Frascaroli and Matteo Boschini and Lorenzo Bonicelli and Angelo Porrello and Simone Calderara},
  title = {{An Attention-Based Representation Distillation Baseline for Multi-label Continual Learning}},
  booktitle = {LOD},
  year = {2024},
  doi = {10.1007/978-3-031-82481-4\_15},
}
Figure