[Paper Review] Masked Distillation with Receptive Tokens
This paper proposes MasKD, a novel knowledge distillation framework for dense prediction tasks that uses learnable receptive tokens to dynamically identify and prioritize pixels of interest (PoIs) in feature maps. By generating adaptive, attention-based distillation masks and leveraging multiple diverse masks via Dice loss, MasKD achieves state-of-the-art performance on object detection and semantic segmentation benchmarks without requiring task-specific priors.
Distilling from the feature maps can be fairly effective for dense prediction tasks since both the feature discriminability and localization priors can be well transferred. However, not every pixel contributes equally to the performance, and a good student should learn from what really matters to the teacher. In this paper, we introduce a learnable embedding dubbed receptive token to localize those pixels of interests (PoIs) in the feature map, with a distillation mask generated via pixel-wise attention. Then the distillation will be performed on the mask via pixel-wise reconstruction. In this way, a distillation mask actually indicates a pattern of pixel dependencies within feature maps of teacher. We thus adopt multiple receptive tokens to investigate more sophisticated and informative pixel dependencies to further enhance the distillation. To obtain a group of masks, the receptive tokens are learned via the regular task loss but with teacher fixed, and we also leverage a Dice loss to enrich the diversity of learned masks. Our method dubbed MasKD is simple and practical, and needs no priors of tasks in application. Experiments show that our MasKD can achieve state-of-the-art performance consistently on object detection and semantic segmentation benchmarks. Code is available at: https://github.com/hunto/MasKD .
Motivation & Objective
- To address the inefficiency of standard feature distillation that treats all pixels equally, despite varying contributions to model performance.
- To eliminate reliance on ground-truth bounding boxes or task-specific priors for selecting distillation regions in dense prediction tasks.
- To learn fine-grained, dynamic pixel-level importance patterns in feature maps through attention-based receptive tokens.
- To enhance distillation by capturing complex pixel dependencies using multiple diverse masks while maintaining training stability.
- To improve student model performance through a mask-weighting mechanism that accounts for varying mask importance during distillation.
Proposed method
- Introduces learnable receptive tokens that compute pixel-wise attention to identify pixels of interest (PoIs) in teacher feature maps.
- Generates a distillation mask via pixel-wise attention from the receptive token to indicate which pixels to prioritize in feature reconstruction.
- Employs multiple receptive tokens to capture diverse and complex pixel dependencies within feature maps.
- Trains the receptive tokens using the regular task loss with the teacher network fixed, enabling end-to-end optimization.
- Applies Dice loss to encourage diversity among the multiple generated masks, preventing redundancy.
- Introduces a mask weighting module that adaptively assigns importance to different masks based on their contribution to distillation.
Experimental results
Research questions
- RQ1Can dynamic, attention-based selection of pixels in feature maps improve knowledge distillation for dense prediction tasks?
- RQ2How can we learn informative and diverse distillation masks without relying on ground-truth annotations or task-specific priors?
- RQ3To what extent can multiple receptive tokens and adaptive mask weighting enhance distillation performance compared to uniform or heuristic sampling?
- RQ4Does the proposed method generalize across different architectures and tasks such as object detection and semantic segmentation?
- RQ5Can the model learn meaningful pixel dependencies that align with both teacher and student feature representations?
Key findings
- MasKD achieves a 2.4 AP gain over Faster R-CNN-R50 on COCO object detection, significantly outperforming standard distillation baselines.
- On semantic segmentation, MasKD improves DeepLabV3-R18 by 2.79 mIoU on COCO, demonstrating strong generalization across tasks.
- The method consistently improves performance across multiple backbone architectures and datasets without requiring task-specific priors.
- Ablation studies confirm that the combination of multiple masks, Dice loss for diversity, and mask weighting significantly boosts distillation efficiency.
- Visualizations show that learned masks focus on discriminative, localized regions within objects rather than entire bounding boxes, confirming fine-grained attention.
- The approach generalizes well to unseen architectures and datasets, indicating robustness and practicality in real-world deployment scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.