Learning Lightweight Object Detectors via Multi-Teacher Progressive Distillation

Shengcao Cao, Mengtian Li, James Hays, Deva Ramanan, Yu-Xiong Wang, Liangyan Gui

Introduction: The Capacity Gap in Object Detection

In the deployment of computer vision for resource-constrained environments—such as autonomous driving, drones, and augmented reality headsets—engineers face a persistent trade-off between accuracy and efficiency. While massive models like Transformers achieve state-of-the-art accuracy, their computational and memory demands make them impractical for edge devices.

Knowledge Distillation (KD) is a proven strategy to bridge this gap, utilizing a large, accurate "teacher" model to train a smaller, faster "student" model. However, applying KD to object detection is notoriously difficult. Unlike standard image classification, object detection involves complex, variable-length outputs like bounding boxes and segmentation masks.

Furthermore, a significant "capacity gap" often hinders the process. If a teacher model is vastly more complex or uses a fundamentally different architecture (e.g., a Transformer teacher guiding a Convolutional student), the student struggles to absorb the representations. It is akin to teaching calculus to a primary school student without covering algebra first.

The Solution: Multi-Teacher Progressive Distillation (MTPD)

To overcome the capacity gap, researchers introduce Multi-Teacher Progressive Distillation (MTPD). Rather than relying on a single, massive teacher model, MTPD employs a "curriculum" of increasingly complex teachers to help the lightweight student gradually adapt.

How MTPD Works

The MTPD framework is built on three core methodological pillars:

  1. Sequential Distillation: Traditional multi-teacher setups often ensemble or average the knowledge of several teachers simultaneously. MTPD instead trains the student sequentially—one teacher at a time. This prevents "conflicting supervision," a scenario where different teachers suggest contradictory feature representations for the same object, which can confuse the student.
  2. Backward Greedy Selection (BGS): To construct the optimal curriculum, the authors developed the BGS algorithm. BGS builds the sequence of teachers in reverse. Starting from the ultimate, highest-performing teacher, it identifies an intermediate teacher whose feature space is closest (measured via a simple linear mapping) to the target. This process repeats backward until it reaches a model close to the student's initial capacity.
  3. Simple Feature Matching: While many modern KD methods rely on highly complex loss functions, MTPD demonstrates that a straightforward $L_2$ distance loss is highly effective. By applying this loss progressively to the "neck" of the network (the module that aggregates features), the student smoothly transitions its feature representations.

Key Insights

  • The Stepping Stone Effect: Intermediate teachers act as crucial bridges. By first aligning the student's feature space with a "medium-strength" teacher, the network is reorganized into a state that makes it significantly easier to absorb complex knowledge from a "super-teacher" later in the sequence.
  • Transformer-to-CNN Transfer: MTPD marks a breakthrough by successfully distilling knowledge from Transformer-based detectors (like Swin Transformers) into classical Convolutional Neural Network (CNN) students (like ResNet-50). This allows edge devices to retain the high-speed hardware optimizations of CNNs while benefiting from the superior representational power of Transformers.
  • Generalization Over Optimization: The researchers observed that distillation actually increases the student's training loss while decreasing its validation loss. This indicates that progressive distillation acts as a powerful regularizer. It guides the student toward "flatter minima" in the loss landscape, resulting in better generalization to unseen data.

Empirical Results

The MTPD approach was rigorously evaluated on the MS COCO 2017 benchmark and the challenging Argoverse-HD dataset (which focuses on high-resolution video and distant objects). The results demonstrate a significant leap over previous state-of-the-art distillation methods:

  • RetinaNet (ResNet-50): Average Precision (AP) jumped from 36.5% to 42.0% on COCO.
  • Mask R-CNN (ResNet-50): AP improved from 38.2% to 42.5%.
  • Large Object Gains: The progressive method proved particularly effective at improving the detection of large objects ($AP_L$), yielding gains of up to 6%.
  • Inference Efficiency: The distilled Mask R-CNN student achieved accuracy comparable to a much heavier "HTC" teacher model, but operated 3.5x faster (51ms compared to 181ms per frame).

Limitations and Future Directions

While the empirical results are highly compelling, the paper outlines a few areas for future refinement:

  • Theoretical Foundations: The "adaptation cost" metric used in the BGS algorithm to select teachers is currently a heuristic. Developing a more rigorous theoretical framework to explain why specific feature similarities facilitate better distillation remains an open challenge.
  • Training Overhead: Because the student must be trained sequentially across multiple teachers, the total training time is longer than standard single-teacher distillation. However, this is a one-time, offline cost that yields a permanently faster and more accurate model for deployment.
  • Automated Curriculums: Future research could explore automated methods to dynamically generate or "morph" teacher models during training, rather than selecting them from a pre-defined pool.

By rethinking how knowledge is transferred across architectural divides, MTPD provides a highly practical blueprint for deploying next-generation perception models on resource-constrained hardware.

Summary updated

BibTeX
@inproceedings{cao2023learning,
  author = {Shengcao Cao and Mengtian Li and James Hays and Deva Ramanan and Yu-Xiong Wang and Liangyan 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