Abstract
Knowledge Distillation (KD) has emerged as a powerful technique for compressing large-scale models into efficient students. However, its application to object detection is often hindered by the extreme imbalance between foreground and background features and the difficulty of representing small objects. This paper introduces Dual Relation Knowledge Distillation (DRKD), a framework that shifts the focus from individual feature values to the relational dependencies between pixels and instances. By capturing global context and inter-object relationships, DRKD significantly enhances the performance of student detectors, particularly in challenging scenarios involving small objects.
Introduction
In the field of computer vision, the deployment of high-performance object detectors on resource-constrained devices necessitates model compression. Knowledge Distillation (KD) facilitates this by transferring knowledge from a complex "teacher" model to a compact "student" model. While KD has seen great success in image classification, its effectiveness in object detection is limited by the spatial complexity of the task. Traditional methods often struggle with feature imbalance—where background noise overwhelms critical object information—and the inherent difficulty of detecting small objects with limited pixel data.
To address these issues, we present Dual Relation Knowledge Distillation (DRKD). Unlike conventional KD methods that prioritize point-to-point feature mimicry, DRKD emphasizes the structural relationships within an image. By distilling both pixel-wise and instance-wise relations, the student model learns a more robust representation of the scene, leading to state-of-the-art results on the MS COCO benchmark.
Challenges in Detection Distillation
Applying KD to object detection presents two primary hurdles:
- Feature Imbalance: In most detection datasets, background pixels significantly outnumber foreground pixels. Standard KD approaches often treat all spatial locations equally, leading the student to allocate disproportionate capacity to learning background features rather than the objects of interest.
- Small Object Representation: Small objects lack sufficient internal features for independent identification. Their detection relies heavily on contextual cues and their relationship to surrounding elements, which are often lost in standard distillation pipelines.
The DRKD Framework
DRKD addresses these challenges through a two-pronged relational distillation strategy applied across multiple scales of the feature pyramid.
Pixel-wise Relation Distillation
This module focuses on capturing the global dependencies between pixels. Rather than comparing individual pixel values, DRKD utilizes a Global Reasoning (GloRe) unit. This unit projects pixel features into a high-dimensional graph space, where graph convolutions are used to model how a pixel in one region of the image relates to pixels in distant regions. This relational approach allows the student to understand the global context, effectively filtering out background noise and prioritizing foreground structures.
Instance-wise Relation Distillation
Beyond pixel-level context, DRKD distills the relationships between different object instances. The framework calculates a similarity matrix that represents how various detected objects interact or relate to one another. To ensure the student learns from high-quality information, a Relation Filter Module is employed to highlight meaningful instance connections while suppressing noisy or irrelevant relations. This is particularly beneficial for small objects, as their identity is often clarified by their proximity or relationship to larger, more distinct objects (e.g., a "ball" in relation to a "player").
Experimental Results
The effectiveness of DRKD was evaluated on the MS COCO 2017 dataset using both one-stage (RetinaNet) and two-stage (Faster R-CNN) detectors with ResNet-50 backbones.
Performance Gains
DRKD demonstrated substantial improvements over the baseline models:
- Faster R-CNN: The mean Average Precision (mAP) increased from 38.4% to 41.6%, a gain of +3.2%.
- RetinaNet: The mAP improved from 37.4% to 40.3%, a gain of +2.9%.
Small Object Detection
A standout result of the DRKD framework is its impact on small object detection. On the RetinaNet architecture, the accuracy for small objects ($AP_S$) rose from 20.0% to 23.8%. This significant boost confirms that relational knowledge provides the necessary context for identifying objects that lack strong independent feature signatures.
Comparative Analysis
DRKD consistently outperformed established distillation methods, including FGFI, DeFeat, and NLD. The results suggest that relational distillation is more robust to the foreground-background imbalance than traditional feature-based mimicry.
Conclusion and Future Work
Dual Relation Knowledge Distillation (DRKD) provides a novel perspective on model compression for object detection. By prioritizing the "structure" of the scene over raw pixel values, DRKD enables student models to achieve higher accuracy and better handle small objects.
While the current results are promising, future research could focus on reducing the computational overhead introduced by graph convolutions during the training phase. Additionally, exploring the application of dual relations in tasks such as instance segmentation or panoptic segmentation could further validate the versatility of the relational distillation approach.
Summary updated