SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.15466 · CVPR · 2023

Supervised Masked Knowledge Distillation for Few-Shot Transformers

Han Lin, Jiawei Ma, Shiyuan Huang, Xudong Lin, Guangxing Han, Shih-Fu Chang

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 3 functions out of this paper's own repositories and ran 3 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
HL-hanlin/SMKD — 3 of 3
FunctionStatusWhere it lives
SMKDLoss Ran HL-hanlin/SMKD/loss_functions.py
code served (permissive licence) · get_code("c8428feabdbe5795")
crops_in_same_class Ran HL-hanlin/SMKD/loss_functions.py
code served (permissive licence) · get_code("e4dd4fff7cec529a")
list_duplicates Ran HL-hanlin/SMKD/loss_functions.py
code served (permissive licence) · get_code("ff99bd46f9fb5458")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Vision Transformers (ViTs) emerge to achieve impressive performance on many data-abundant computer vision tasks by capturing long-range dependencies among local features. However, under few-shot learning (FSL) settings on small datasets with only a few labeled data, ViT tends to overfit and suffers from severe performance degradation due to its absence of CNN-alike inductive bias. Previous works in FSL avoid such problem either through the help of self-supervised auxiliary losses, or through the dextile uses of label information under supervised settings. But the gap between self-supervised and supervised few-shot Transformers is still unfilled. Inspired by recent advances in self-supervised knowledge distillation and masked image modeling (MIM), we propose a novel Supervised Masked Knowledge Distillation model (SMKD) for few-shot Transformers which incorporates label information into selfdistillation frameworks. Compared with previous selfsupervised methods, we allow intra-class knowledge distillation on both class and patch tokens, and introduce the challenging task of masked patch tokens reconstruction across intra-class images. Experimental results on four few-shot classification benchmark datasets show that our method with simple design outperforms previous methods by a large margin and achieves a new start-of-the-art. Detailed ablation studies confirm the effectiveness of each component of our model. Code for this paper is available here: https://github.com/HL-hanlin/SMKD.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2303.15466")
get_code_for_paper("2303.15466")
have("2303.15466")

Connect an agent — have() is free.