Multi-Label Image Classification via Knowledge Distillation from Weakly-Supervised Detection

Yongcheng Liu, Lu Sheng, Jing Shao, Junjie Yan, Shiming Xiang, Chunhong PanACM Multimedia 2018 · DOI

Abstract

Multi-label image classification is a fundamental but challenging task towards general visual understanding. Existing methods found the region-level cues (e.g., features from RoIs) can facilitate multi-label classification. Nevertheless, such methods usually require laborious object-level annotations (i.e., object labels and bounding boxes) for effective learning of the object-level visual features. In this paper, we propose a novel and efficient deep framework to boost multi-label classification by distilling knowledge from weakly-supervised detection task without bounding box annotations. Specifically, given the image-level annotations, (1) we first develop a weakly-supervised detection (WSD) model, and then (2) construct an end-to-end multi-label image classification framework augmented by a knowledge distillation module that guides the classification model by the WSD model according to the class-level predictions for the whole image and the object-level visual features for object RoIs. The WSD model is the teacher model and the classification model is the student model. After this cross-task knowledge distillation, the performance of the classification model is significantly improved and the efficiency is maintained since the WSD model can be safely discarded in the test phase. Extensive experiments on two large-scale datasets (MS-COCO and NUS-WIDE) show that our framework achieves superior performances over the state-of-the-art methods on both performance and efficiency.

Introduction

Multi-label image classification (MLIC) involves identifying all objects or concepts present in a single image. Unlike single-label classification, MLIC must handle objects that are small, occluded, or scattered across a frame. Standard approaches often rely on "global" image features, which can overlook fine-grained local details. While object detection techniques—which focus on specific regions of interest (RoIs)—are better at identifying these objects, they typically require expensive bounding-box annotations and are computationally intensive during inference.

Comparison between standard multi-label classification and weakly-supervised object detection. Detection provides spatial cues that improve label accuracy.

This research addresses a critical question: How can we provide a fast, simple classifier with the "spatial awareness" of a detector using only inexpensive, image-level labels? The authors propose a framework that "teaches" a standard classifier to think like an object detector through knowledge distillation.

Methodology

The proposed framework utilizes a two-stage Knowledge Distillation (KD) process where a complex "teacher" model trains a simpler "student" model.

1. The Teacher (T-WDet)

The first stage involves training a Weakly-Supervised Detection (WSD) model. This model utilizes region proposals (generated via EdgeBoxes) to locate objects. Crucially, it only requires image-level labels; it identifies object locations by determining which regions contribute most significantly to the correct classification.

2. The Student (S-Cls)

The student is a standard CNN-based multi-label classifier. During training, it is optimized to mimic the teacher's behavior through two mechanisms:

  • Feature-level Transfer: The student is forced to mimic the teacher's features within specific object RoIs, teaching the student where to look.
  • Prediction-level Transfer: The student mimics the teacher's final class probabilities. This uses a "class-aware" distillation with learnable temperatures, allowing the model to capture complex semantic dependencies (e.g., the co-occurrence of "cat" and "sofa").
The architecture of the proposed framework, showing the T-WDet teacher distilling knowledge to the S-Cls student via feature and prediction transfer.

At test time, the teacher model is discarded. The student operates as a standalone, highly efficient classifier, maintaining the speed of a standard CNN while benefiting from the teacher's spatial knowledge.

Experimental Results

The framework was evaluated on two large-scale benchmarks: MS-COCO (80 categories) and NUS-WIDE (81 concept labels).

  • MS-COCO: The proposed method achieved a Mean Average Precision (mAP) of 74.6%, a significant improvement over the baseline (70.9%) and previous region-based methods like RMAM (72.2%).
  • NUS-WIDE: The model reached an mAP of 60.1%, outperforming the baseline (55.6%) and other advanced distillation techniques like FitNets (57.4%).

Qualitative analysis confirms that after distillation, the model correctly identifies small or overlapping objects that the baseline model missed, such as utensils on a crowded table.

Conclusion

This paper demonstrates that cross-task distillation—moving from detection to classification—provides unique spatial cues that a classifier cannot learn independently. By using a WSD teacher, the student learns to focus on semantic regions without ever requiring human-drawn bounding boxes. This method provides a "free" performance boost because the added complexity is only present during the training phase, ensuring high efficiency during deployment.

Summary updated

BibTeX
@inproceedings{liu2018multi,
  author = {Yongcheng Liu and Lu Sheng and Jing Shao and Junjie Yan and Shiming Xiang and Chunhong Pan},
  title = {{Multi-Label Image Classification via Knowledge Distillation from Weakly-Supervised Detection}},
  booktitle = {ACM Multimedia},
  year = {2018},
  doi = {10.1145/3240508.3240567},
}
Figure