Pixel-Wise Contrastive Distillation

Junqiang Huang, Zichao Guo
11/1/2022
cs.CV
contrastive-ssldistillation

Official code: allo-rene/pcd (2 stars, Python, MIT, last commit 2024-03-02).

Abstract

We present a simple but effective pixel-level self-supervised distillation framework friendly to dense prediction tasks. Our method, called Pixel-Wise Contrastive Distillation (PCD), distills knowledge by attracting the corresponding pixels from student's and teacher's output feature maps.

Show full abstract

PCD includes a novel design called SpatialAdaptor which ``reshapes'' a part of the teacher network while preserving the distribution of its output features. Our ablation experiments suggest that this reshaping behavior enables more informative pixel-to-pixel distillation. Moreover, we utilize a plug-in multi-head self-attention module that explicitly relates the pixels of student's feature maps to enhance the effective receptive field, leading to a more competitive student. PCD \textbf{outperforms} previous self-supervised distillation methods on various dense prediction tasks. A backbone of \mbox{ResNet-18-FPN} distilled by PCD achieves $37.4$ AP$^\text{bbox}$ and $34.0$ AP$^\text{mask}$ on COCO dataset using the detector of \mbox{Mask R-CNN}. We hope our study will inspire future research on how to pre-train a small model friendly to dense prediction tasks in a self-supervised fashion.

View on arXivView PDF

Code Implementations(1)

allo-rene/pcdOfficial100%
MIT

PyTorch implementation of Pixel-Wise Contrastive Distillation: https://arxiv.org/abs/2211.00218

20PythonFeb 26, 20242 years agoMIT

Similar Papers

Cite this paper

@article{huang2022pixelwise,
  title  = {Pixel-Wise Contrastive Distillation},
  author = {Junqiang Huang and Zichao Guo},
  year   = {2022},
  eprint = {2211.00218},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.00218}
}

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/2211.00218.svg)](https://codeofpaper.com/paper/2211.00218)

Discussion