Abstract
Large-scale vision models have achieved state-of-the-art performance in object detection but remain computationally prohibitive for deployment. While Knowledge Distillation (KD) is a common remedy, traditional methods often fail when the capacity gap between teacher and student is too large. This paper presents DLIM-Det, a framework that enables effective distillation from "giant" models (up to 1B+ parameters) by utilizing a frozen teacher strategy and a novel Query Distillation method. DLIM-Det achieves significant performance gains, such as a +3.1 mAP improvement for a Swin-Tiny student, bridging the gap between massive pre-trained models and efficient detectors.
Introduction
In computer vision, model scaling has led to significant breakthroughs. However, the deployment of models like Swin-Large or InternImage-Huge on edge devices is hindered by their immense parameter counts. Knowledge Distillation (KD) aims to transfer knowledge from these "teachers" to smaller "students." Yet, a "capacity gap" often emerges: a much stronger teacher can paradoxically lead to a worse student. This occurs because fully fine-tuned large teachers may overfit to specific datasets, producing complex, noisy features that a compact student cannot effectively replicate.
Methodology: DLIM-Det
The authors propose DLIM-Det to overcome the capacity gap through three primary innovations:
- The Frozen Teacher Strategy: Instead of full fine-tuning, the teacher's backbone is frozen while only the detection head is trained. This preserves the teacher's generalizable features and results in sparser, more distinct object queries that are easier for the student to mimic.
- Query Distillation (QD): Specifically designed for Detection Transformers (DETRs), QD consists of:
- Query Position Distill (QPD): Aligning student object queries with the spatial positions predicted by the teacher.
- Query Relation Distill (QRD): Mimicking the self-attention maps between teacher queries to capture inter-object relationships.
- Head Inheriting: Students initialize their detection heads using parameters from the teacher to accelerate convergence.
Experimental Evaluation
The framework was evaluated on MS COCO 2017 for standard performance and LVIS to assess generalization. LVIS, with its 1203 categories, serves as a stress test for the "general knowledge" retained by the frozen teacher versus a fully fine-tuned one.
Results and Discussion
DLIM-Det demonstrates superior performance across various model scales and architectures.
- Performance Gains: A Swin-Tiny student distilled from a Swin-Large teacher achieved a +3.1 mAP improvement on COCO. This significantly outperforms prior KD methods which often struggle with large capacity gaps.
- Extreme Scaling: Distilling from the 1B+ parameter InternImage-Huge resulted in a 56.1 mAP for the InternImage-Tiny student, a +2.9 mAP gain.
- The Generalization Paradox: Experimental results confirm that a frozen teacher, while potentially having slightly lower task-specific performance, provides a better distillation signal. As shown in the LVIS evaluation, frozen teachers retain more general knowledge, which translates to better student performance on diverse datasets.
Conclusion
DLIM-Det addresses the challenges of distilling knowledge from massive vision models. By prioritizing generalizable features through frozen backbones and introducing query-specific distillation for Transformers, the method enables the creation of highly efficient yet powerful object detectors. Future work includes extending these principles to multi-modal large models and further automating the selection of frozen components.
Summary updated