Learning Lightweight Object Detectors via Multi-Teacher Progressive Distillation

Shengcao Cao, Mengtian Li, James Hays, Deva Ramanan, Yu-Xiong Wang, Liang-Yan Gui · DOI

Introduction

In the current landscape of computer vision, there is a persistent tension between model accuracy and deployment efficiency. While massive architectures, particularly Vision Transformers, have pushed the boundaries of what is possible in object detection, their computational requirements often make them unsuitable for resource-constrained edge devices like mobile phones or autonomous robots.

Knowledge Distillation (KD) has long been the standard technique for addressing this gap, where a large, pre-trained "teacher" model guides the training of a smaller "student." However, traditional KD faces a significant hurdle known as the capacity gap: if the teacher is too complex relative to the student, the student fails to learn effectively. This paper introduces Multi-Teacher Progressive Distillation (MTPD), a strategy that bridges this gap by using a sequence of increasingly complex teachers to provide a structured learning curriculum.

The MTPD Framework

The core innovation of MTPD is the move from a single-teacher paradigm to a multi-stage, sequential process. Instead of attempting to mimic a high-performance teacher immediately, the student model follows a progressive path.

Progressive Distillation

In this framework, the student is trained in stages. It begins by learning from a teacher that is only slightly more capable than its baseline. Once it has mastered those features, it moves to a more advanced intermediate teacher, eventually reaching the final, high-performance "target" teacher. This "stepping stone" approach ensures that the knowledge being transferred is always within the student's current learning capacity.

Backward Greedy Selection (BGS)

To solve the problem of selecting the optimal sequence of teachers from a vast pool of potential architectures, the authors developed Backward Greedy Selection (BGS). This heuristic algorithm works backward from the target teacher. It calculates an "adaptation cost"—the difficulty of mapping one model's features to another using a simple linear layer—to identify the most compatible preceding teacher. This allows for the efficient construction of a distillation chain without exhaustive trial and error.

Simple Feature Matching

While many KD methods rely on complex, specialized loss functions, the authors found that a simple L2 loss between the "neck" (the feature aggregator) of the teacher and student is remarkably effective when applied within the MTPD framework. This simplicity makes the method highly adaptable to various architectures.

Key Insights and Empirical Findings

The researchers' analysis yielded several critical insights into why MTPD outperforms traditional methods:

  • Sequential vs. Simultaneous: The study demonstrates that distilling from a sequence of teachers is superior to distilling from an ensemble of teachers simultaneously. Learning from multiple teachers at once can provide conflicting signals that confuse a small student, whereas sequential learning allows for clear, incremental progress.
  • Generalization and the "Flatter Minimum": By analyzing the loss landscape, the authors discovered that distillation does not necessarily help the student reach a lower training loss. Instead, it guides the student toward a "flatter minimum." In deep learning, flatter minima are strongly associated with better generalization to unseen data, explaining why distilled models perform so well on validation sets.
  • Bridging the Architecture Divide: MTPD represents the first successful attempt to distill knowledge from Transformer-based teachers (such as Swin Transformers) into CNN-based students (such as ResNet). Historically, the structural differences between these architectures made direct distillation ineffective.

Experimental Results

The authors evaluated MTPD primarily on the MS COCO 2017 benchmark, with additional testing on the Argoverse-HD dataset for streaming perception in autonomous driving. The results demonstrate a new state-of-the-art for distilled ResNet-50 based detectors:

  • RetinaNet (ResNet-50): Performance improved from 36.5% to 42.0% AP on MS COCO.
  • Mask R-CNN (ResNet-50): Performance increased from 38.2% to 42.5% AP (Box) and 34.7% to 37.3% AP (Mask).
  • Efficiency Gains: A distilled Mask R-CNN student achieved accuracy comparable to the heavy-duty "HTC" teacher while running nearly 4x faster (49ms vs. 181ms per image).

Conclusion

Multi-Teacher Progressive Distillation proves that in machine learning, the path to high performance is often as important as the destination. By treating knowledge distillation as a curriculum-based educational process rather than a single transfer event, MTPD allows lightweight models to achieve unprecedented accuracy. While the training process is more computationally intensive than single-teacher KD, the resulting efficiency and performance gains make it a powerful tool for deploying advanced vision systems on the edge.

Summary updated

BibTeX
@inproceedings{cao2023learning,
  author = {Shengcao Cao and Mengtian Li and James Hays and Deva Ramanan and Yu-Xiong Wang and Liang-Yan Gui},
  title = {{Learning Lightweight Object Detectors via Multi-Teacher Progressive Distillation}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=R1EpLoMpMl},
}
Figure