Distilling Self-Supervised Vision Transformers for Weakly-Supervised Few-Shot Classification & Segmentation

Dahyun Kang, Piotr Koniusz, Minsu Cho, Naila Murray
2/14/2026

No official code found. Best implementation: dahyun-kang/cst (46 stars, MIT, last commit 2023-10-22).

Abstract

We address the task of weakly-supervised few-shot image classification and segmentation, by leveraging a Vision Transformer (ViT) pretrained with self-supervision. Our proposed method takes token representations from the self-supervised ViT and leverages their correlations, via selfattention, to produce classification and segmentation predictions through separate task heads. Our model is able to effectively learn to perform classification and segmentation in the absence of pixel-level labels during training, using only image-level labels. To do this it uses attention maps, created from tokens generated by the self-supervised ViT backbone, as pixel-level pseudo-labels. We also explore a practical setup with “mixed” supervision, where a small number of training images contains ground-truth pixel-level labels and the remaining images have only image-level labels. For this mixed setup, we propose to improve the pseudo-labels using a pseudo-label enhancer that was trained using the available ground-truth pixel-level labels. Experiments on Pascal-5i and COCO-20i demonstrate significant performance gains in a variety of supervision settings, and in particular when little-to-no pixel-level labels are available.

View on arXivView PDF

Code Implementations(1)

dahyun-kang/cstCommunity59%
MIT

[CVPR'23] Official PyTorch implementation of Distilling Self-Supervised Vision Transformers for Weakly-Supervised Few-Shot Classification & Segmentation

461PythonJun 16, 20233 years agoMIT

Similar Papers

Cite this paper

@article{kang2026distilling,
  title  = {Distilling Self-Supervised Vision Transformers for Weakly-Supervised Few-Shot Classification & Segmentation},
  author = {Dahyun Kang and Piotr Koniusz and Minsu Cho and Naila Murray},
  year   = {2026},
  eprint = {2307.03407},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2307.03407},
  journal = {CVPR 2023 2023}
}

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

Discussion