Masked Distillation with Receptive Tokens

Tao Huang, Yuan Zhang, Shan You, Fei Wang, Chen Qian +2 more
5/29/2022
cs.CVcs.LG
distillation

Official code: hunto/MasKD (72 stars, Python, Apache-2.0, PyTorch, last commit 2023-04-14).

Abstract

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.

Show full abstract

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 .

View on arXivView PDF

Code Implementations(1)

hunto/MasKDOfficial100%
PyTorchApache-2.0

Official implementation of paper "Masked Distillation with Receptive Tokens", ICLR 2023.

725Python, ShellMay 27, 20223 years agoApache-2.0
detectionkdmaskdpytorchsegmentation

Similar Papers

Cite this paper

@article{huang2022masked,
  title  = {Masked Distillation with Receptive Tokens},
  author = {Tao Huang and Yuan Zhang and Shan You and Fei Wang and Chen Qian and Jian Cao and Chang Xu},
  year   = {2022},
  eprint = {2205.14589},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.14589}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.14589.svg)](https://codeofpaper.com/paper/2205.14589)

Discussion