Multi-Label Knowledge Distillation

Penghui Yang, Ming-Kun Xie, Chen-Chen Zong, Lei Feng, Gang Niu, Masashi Sugiyama, Sheng-Jun Huang

Abstract

Knowledge Distillation (KD) has revolutionized single-label classification by allowing compact student models to inherit the performance of large teacher models. However, standard KD techniques often falter in Multi-Label Learning (MLL) environments where images contain multiple, independent objects. We introduce L2D (Multi-label Logits and Label-wise Embedding Distillation), a framework designed to address the unique challenges of MLL. By decomposing complex scenes into independent binary tasks and enforcing structural consistency in label-specific embeddings, L2D enables student models to capture minor objects and complex label correlations that traditional methods overlook.

The Challenge of Multi-Label Distillation

While KD is highly successful for tasks like "Is this a cat?", it struggles with scenes containing a bus, a car, and a person simultaneously. The authors identify two primary failure modes in existing KD methods when applied to MLL:

  1. Logit Mismatch: Standard KD relies on the softmax function, which assumes probabilities sum to one. In MLL, labels are independent, making softmax-based distillation mathematically inappropriate.
  2. Feature Overlooking: Global feature-based KD typically processes the entire image at once. In a busy scene, a model might focus entirely on a large, dominant object (like a bus) while completely neglecting smaller "minor" classes (like a person or a car).

The L2D Framework

To solve these issues, the researchers proposed a two-pronged approach that targets both the output logits and the intermediate feature representations.

The L2D framework decomposes multi-label distillation into logit-level and embedding-level components.

Multi-Label Logits Distillation (MLD)

Instead of treating the output as a single probability distribution, L2D employs a "one-versus-all" strategy. It breaks the multi-label problem into a set of independent binary classification problems. The student model then learns to match the teacher’s confidence for each label individually using KL divergence, ensuring that the independence of labels is preserved.

Label-wise Embedding Distillation (LED)

This is the core innovation of the framework. Rather than distilling a global feature map, L2D uses a label-wise embedding encoder to generate specific feature vectors for every class. It then enforces two types of structural consistency:

  • Class-Aware (CD): Ensures that the student’s representation of a specific class (e.g., "car") across different images is as compact and abstract as the teacher's.
  • Instance-Aware (ID): Ensures that different labels within the same image (e.g., "sea" vs. "sky") remain distinct and dispersed in the student's feature space, preventing the model from confusing visually similar objects.

Experimental Results

L2D was evaluated on major multi-label benchmarks, including MS-COCO 2014, Pascal VOC 2007, and NUS-WIDE, using various architectures like ResNet, MobileNet, and Swin Transformers.

Quantitative Performance

L2D consistently outperformed state-of-the-art (SOTA) distillation methods like ReviewKD and PKT. For instance, on MS-COCO with a ResNet-101 teacher and ResNet-34 student, L2D achieved a 72.87% mAP, a significant jump from the student's 70.31% baseline and the previous SOTA of 70.39%.

Visual Precision and Localization

Attention map visualizations using LayerCAM highlight the qualitative benefits of L2D. While traditional KD methods often get "distracted" by background elements or dominant objects, L2D stays locked on the correct pixels for each specific label.

LayerCAM visualizations demonstrate that L2D focuses more accurately on target objects (Bus, Car, Person) compared to vanilla and other KD methods.

Key Insights

  • Structural Knowledge is Key: In MLL, the most valuable information provided by the teacher is the relationship between labels. L2D captures this by analyzing how embeddings cluster (intra-class) and separate (inter-class).
  • Magnifying Minor Objects: By forcing the model to generate label-wise embeddings, L2D acts like a magnifying glass, ensuring that even small or minor objects receive dedicated attention during training.
  • Architecture Agnostic: L2D performs exceptionally well even when the teacher and student have different architectures (e.g., distilling from a Transformer to a CNN), suggesting the learned label structures are universal.

Conclusion and Future Work

L2D provides a robust solution for distilling knowledge in complex, multi-label environments. While it requires the addition of a label-wise embedding encoder, the performance gains in precision and mAP are substantial. Future research may explore even deeper structural information, such as hierarchical label relationships (e.g., "husky" as a subset of "dog"), to further refine the distillation process.

Summary updated

BibTeX
@inproceedings{yang2023multi,
  author = {Penghui Yang and Ming-Kun Xie and Chen-Chen Zong and Lei Feng and Gang Niu and Masashi Sugiyama and Sheng-Jun Huang},
  title = {{Multi-Label Knowledge Distillation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure