Skip to main content
QUICK REVIEW

[Paper Review] Learning Efficient Detector with Semi-supervised Adaptive Distillation

Shitao Tang, Litong Feng|arXiv (Cornell University)|Jan 2, 2019
Advanced Neural Network ApplicationsComputer Science20 references14 citations
TL;DR

This paper proposes Semi-supervised Adaptive Distillation (SAD), a knowledge distillation method that adaptively weights hard-to-learn and hard-to-mimic samples in single-stage object detectors using soft labels from a teacher network. By focusing distillation loss on challenging samples and leveraging unlabeled data with soft targets, SAD enables a ResNet-50 student to surpass a ResNet-101 teacher on COCO, achieving 36.9 mAP at 90ms inference time—faster and more accurate than prior models.

ABSTRACT

Knowledge Distillation (KD) has been used in image classification for model compression. However, rare studies apply this technology on single-stage object detectors. Focal loss shows that the accumulated errors of easily-classified samples dominate the overall loss in the training process. This problem is also encountered when applying KD in the detection task. For KD, the teacher-defined hard samples are far more important than any others. We propose ADL to address this issue by adaptively mimicking the teacher's logits, with more attention paid on two types of hard samples: hard-to-learn samples predicted by teacher with low certainty and hard-to-mimic samples with a large gap between the teacher's and the student's prediction. ADL enlarges the distillation loss for hard-to-learn and hard-to-mimic samples and reduces distillation loss for the dominant easy samples, enabling distillation to work on the single-stage detector first time, even if the student and the teacher are identical. Besides, ADL is effective in both the supervised setting and the semi-supervised setting, even when the labeled data and unlabeled data are from different distributions. For distillation on unlabeled data, ADL achieves better performance than existing data distillation which simply utilizes hard targets, making the student detector surpass its teacher. On the COCO database, semi-supervised adaptive distillation (SAD) makes a student detector with a backbone of ResNet-50 surpasses its teacher with a backbone of ResNet-101, while the student has half of the teacher's computation complexity. The code is avaiable at https://github.com/Tangshitao/Semi-supervised-Adaptive-Distillation

Motivation & Objective

  • To address the inefficiency of knowledge distillation in single-stage detectors, where easy samples dominate the loss and hard samples are under-prioritized.
  • To enable effective knowledge distillation when student and teacher networks are identical or when labeled and unlabeled data come from different distributions.
  • To improve semi-supervised object detection by using soft labels from a teacher on unlabeled data, rather than hard targets.
  • To develop a method that adapts distillation weights based on both prediction uncertainty (hard-to-learn) and prediction gap (hard-to-mimic), enhancing distillation on hard samples.

Proposed method

  • Proposes Adaptive Distillation Loss (ADL), which dynamically adjusts distillation weights based on two types of hard samples: those with high uncertainty in teacher predictions (hard-to-learn) and those with large prediction gaps between teacher and student (hard-to-mimic).
  • ADL increases loss for hard-to-learn and hard-to-mimic samples while reducing loss for easy samples, preventing the latter from dominating the training objective.
  • Applies ADL in both supervised and semi-supervised settings, using soft labels from the teacher on unlabeled data to guide student training.
  • Introduces a data selection strategy for unlabeled data, prioritizing images where the teacher predicts at least one object (positive responses) to improve distillation efficiency.
  • Uses soft targets (logits) from the teacher model as supervision signals for unlabeled data, avoiding the inefficiency of hard targets that are often predictable by the student.
  • Employs a unified training scheme where the student is trained on both labeled data with ground truth and unlabeled data with soft targets using ADL.

Experimental results

Research questions

  • RQ1Can adaptive distillation improve knowledge distillation in single-stage detectors where easy samples dominate the loss?
  • RQ2Can soft labels from a teacher on unlabeled data improve student performance even when the student and teacher are identical or when data distributions differ?
  • RQ3Does focusing on hard-to-learn and hard-to-mimic samples through adaptive loss weighting lead to better generalization than standard distillation?
  • RQ4Can a student model surpass its teacher in accuracy when trained with a combination of labeled and unlabeled data using adaptive distillation?
  • RQ5How effective is the proposed unlabeled data selection method when labeled and unlabeled data come from different distributions?

Key findings

  • A ResNet-50 student detector trained with SAD surpasses its ResNet-101 teacher on COCO, achieving 36.9 mAP at 90ms inference time—faster and more accurate than RetinaNet-50-800.
  • The student model achieves 36.6 mAP when guided by a ResNext-101 teacher, outperforming the teacher despite having half the computational complexity.
  • Even when the student and teacher are identical, ADL improves performance by focusing distillation on hard samples, demonstrating effectiveness beyond model capacity differences.
  • In the semi-supervised setting with unlabeled data from ImageNet (different distribution than COCO), the method maintains performance gains, especially when selecting positive-response images (where teacher detects objects).
  • The proposed unlabeled data selection method improves distillation performance when the fraction of positive-response images is low (e.g., ρ ≤ 0.2), which reflects real-world data scarcity.
  • SAD enables a student detector to achieve 36.9 mAP with only 90ms inference time, outperforming FPN-FRCN and RetinaNet-101-800 in both accuracy and speed.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.