Skip to main content
QUICK REVIEW

[Paper Review] Learning Lightweight Object Detectors via Multi-Teacher Progressive Distillation

Shengcao Cao, Mengtian Li|arXiv (Cornell University)|Aug 17, 2023
Advanced Neural Network ApplicationsComputer Science3 citations
TL;DR

This paper proposes Multi-Teacher Progressive Distillation (MTPD), a meta-level strategy that sequentially transfers knowledge from multiple pre-trained object detectors—ranging from convolutional to Transformer-based—into a lightweight student network. By progressively distilling from intermediate to stronger teachers, MTPD bridges architectural and capacity gaps, achieving state-of-the-art accuracy: boosting ResNet-50 RetinaNet from 36.5% to 42.0% AP and Mask R-CNN from 38.2% to 42.5% AP on MS COCO.

ABSTRACT

Resource-constrained perception systems such as edge computing and vision-for-robotics require vision models to be both accurate and lightweight in computation and memory usage. While knowledge distillation is a proven strategy to enhance the performance of lightweight classification models, its application to structured outputs like object detection and instance segmentation remains a complicated task, due to the variability in outputs and complex internal network modules involved in the distillation process. In this paper, we propose a simple yet surprisingly effective sequential approach to knowledge distillation that progressively transfers the knowledge of a set of teacher detectors to a given lightweight student. To distill knowledge from a highly accurate but complex teacher model, we construct a sequence of teachers to help the student gradually adapt. Our progressive strategy can be easily combined with existing detection distillation mechanisms to consistently maximize student performance in various settings. To the best of our knowledge, we are the first to successfully distill knowledge from Transformer-based teacher detectors to convolution-based students, and unprecedentedly boost the performance of ResNet-50 based RetinaNet from 36.5% to 42.0% AP and Mask R-CNN from 38.2% to 42.5% AP on the MS COCO benchmark.

Motivation & Objective

  • Address the challenge of knowledge distillation in object detection, where complex, variable-length outputs and architectural differences between teacher and student models hinder performance.
  • Overcome the capacity gap between lightweight students and powerful, complex teachers—especially when transferring from Transformer-based to convolutional backbones.
  • Develop a systematic, automated method for selecting and sequencing teacher models to maximize student performance without relying on trial-and-error.
  • Enable effective distillation across heterogeneous architectures, such as from Swin Transformer-based detectors to ResNet-50-based students, which previous methods failed to achieve.
  • Improve generalization in distilled models by guiding the student toward flatter minima through progressive learning.

Proposed method

  • Design a progressive distillation pipeline that sequentially trains a student model using a curated sequence of teacher detectors, starting from a less powerful but more compatible teacher and progressing to stronger, more complex ones.
  • Introduce a heuristic algorithm to automatically determine the optimal teacher sequence based on representation similarity between models, without requiring prior knowledge of the distillation mechanism.
  • Use feature-matching loss with a hyperparameter λ to align intermediate feature maps between teacher and student, with λ tuned empirically (0.5 for RetinaNet, 0.8 for Mask R-CNN).
  • Integrate MTPD with existing distillation methods (e.g., MGD, FGD, CWD) by applying the inheriting strategy only once—when initializing the student with the first teacher’s neck and head parameters.
  • Leverage Swin Transformer-based teachers with hierarchical feature maps matching those of ResNet-based students, enabling direct distillation without additional feature map matching functions.
  • Train all models using MMDetection with standard settings: 8 GPUs, 12 epochs, input resolution 1333×800 for COCO, and 1920×1200 for Argoverse-HD, using SGD with momentum 0.9.
Figure 1: Our proposed Multi-Teacher Progressive Distillation (MTPD) leads to state-of-the-art student detection performance. When switching the teacher model from a convolution-based detector to a Transformer-based one with stronger detection performance, the student does not become more accurate,
Figure 1: Our proposed Multi-Teacher Progressive Distillation (MTPD) leads to state-of-the-art student detection performance. When switching the teacher model from a convolution-based detector to a Transformer-based one with stronger detection performance, the student does not become more accurate,

Experimental results

Research questions

  • RQ1Can progressive distillation from multiple teachers improve the performance of lightweight object detectors beyond single-teacher distillation?
  • RQ2Does sequential distillation from a sequence of teachers—starting with a more compatible intermediate model and progressing to a stronger final teacher—close the capacity gap between heterogeneous models?
  • RQ3Can knowledge be effectively transferred from Transformer-based detectors (e.g., Swin Transformer) to convolutional-based students (e.g., ResNet-50), despite architectural differences?
  • RQ4Does MTPD lead to better generalization in the student model, as evidenced by flatter loss landscapes?
  • RQ5Can the proposed heuristic for teacher sequence selection outperform manual or random ordering without prior knowledge of distillation mechanisms?

Key findings

  • MTPD achieves state-of-the-art performance on MS COCO, improving ResNet-50 RetinaNet from 36.5% to 42.0% AP and Mask R-CNN from 38.2% to 42.5% AP.
  • Progressive distillation from an intermediate teacher (ResNet-101) followed by a final teacher (ResNeXt-101) yields 41.4% AP, outperforming both direct distillation from the final teacher (41.0%) and using the intermediate teacher exclusively (40.7%).
  • The method enables unprecedented knowledge transfer from Transformer-based teachers (Swin Transformer) to convolutional students, which previous methods could not achieve due to architectural incompatibility.
  • The improvement in student performance is due to better generalization, not just optimization, as evidenced by the student converging to a flatter minimum in the loss landscape.
  • The heuristic-based teacher sequence selection algorithm effectively identifies optimal training order without requiring prior knowledge of the distillation mechanism, and consistently improves performance across diverse settings.
  • MTPD is compatible with existing distillation techniques (e.g., MGD, FGD, CWD), consistently improving performance regardless of the complexity of the distillation loss used.
Figure 2: Multi-Teacher Progressive Distillation (MTPD) for object detectors. Left : For each teacher-student pair, the training target consists of two parts: $L_{\text{distill}}$ minimizes the discrepancy between the neck feature maps of the student and the current teacher, and $L_{\text{detect}}$
Figure 2: Multi-Teacher Progressive Distillation (MTPD) for object detectors. Left : For each teacher-student pair, the training target consists of two parts: $L_{\text{distill}}$ minimizes the discrepancy between the neck feature maps of the student and the current teacher, and $L_{\text{detect}}$

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.