Self-Distilled Vision Transformer for Domain Generalization

Maryam Sultana, Muzammal Naseer, Muhammad Haris Khan, Salman Khan, Fahad Shahbaz Khan
7/25/2022
68 citations
cs.CVcs.AIcs.LG
transformer-attention

Official code: maryam089/SDViT (43 stars, Python, MIT, PyTorch, last commit 2022-12-02).

Abstract

In the recent past, several domain generalization (DG) methods have been proposed, showing encouraging performance, however, almost all of them build on convolutional neural networks (CNNs). There is little to no progress on studying the DG performance of vision transformers (ViTs), which are challenging the supremacy of CNNs on standard benchmarks, often built on i.i.d assumption.

Show full abstract

This renders the real-world deployment of ViTs doubtful. In this paper, we attempt to explore ViTs towards addressing the DG problem. Similar to CNNs, ViTs also struggle in out-of-distribution scenarios and the main culprit is overfitting to source domains. Inspired by the modular architecture of ViTs, we propose a simple DG approach for ViTs, coined as self-distillation for ViTs. It reduces the overfitting of source domains by easing the learning of input-output mapping problem through curating non-zero entropy supervisory signals for intermediate transformer blocks. Further, it does not introduce any new parameters and can be seamlessly plugged into the modular composition of different ViTs. We empirically demonstrate notable performance gains with different DG baselines and various ViT backbones in five challenging datasets. Moreover, we report favorable performance against recent state-of-the-art DG methods. Our code along with pre-trained models are publicly available at: https://github.com/maryam089/SDViT.

View on arXivView PDF

Code Implementations(1)

maryam089/SDViTOfficial100%
PyTorchMIT

Official repository for "Self-Distilled Vision Transformer for Domain Generalization" (ACCV-2022 ORAL)

437Python, ShellJun 17, 20224 years agoMIT
deep-learningdomain-generalizationpytorchvision-transformer

Similar Papers

Cite this paper

@article{sultana2022selfdistilled,
  title  = {Self-Distilled Vision Transformer for Domain Generalization},
  author = {Maryam Sultana and Muzammal Naseer and Muhammad Haris Khan and Salman Khan and Fahad Shahbaz Khan},
  year   = {2022},
  eprint = {2207.12392},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.12392v3}
}

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

Discussion