Jigsaw-ViT: Learning Jigsaw Puzzles in Vision Transformer

Yingyi Chen, Xi Shen, Yahui Liu, Qinghua Tao, Johan A. K. Suykens
7/25/2022
cs.CV

No official code found. Best implementation: yingyichen-cyy/JigsawViT (45 stars, last commit 2023-12-08).

Abstract

The success of Vision Transformer (ViT) in various computer vision tasks has promoted the ever-increasing prevalence of this convolution-free network. The fact that ViT works on image patches makes it potentially relevant to the problem of jigsaw puzzle solving, which is a classical self-supervised task aiming at reordering shuffled sequential image patches back to their natural form. Despite its simplicity, solving jigsaw puzzle has been demonstrated to be helpful for diverse tasks using Convolutional Neural Networks (CNNs), such as self-supervised feature representation learning, domain generalization, and fine-grained classification. In this paper, we explore solving jigsaw puzzle as a self-supervised auxiliary loss in ViT for image classification, named Jigsaw-ViT. We show two modifications that can make Jigsaw-ViT superior to standard ViT: discarding positional embeddings and masking patches randomly. Yet simple, we find that Jigsaw-ViT is able to improve both in generalization and robustness over the standard ViT, which is usually rather a trade-off. Experimentally, we show that adding the jigsaw puzzle branch provides better generalization than ViT on large-scale image classification on ImageNet. Moreover, the auxiliary task also improves robustness to noisy labels on Animal-10N, Food-101N, and Clothing1M as well as adversarial examples. Our implementation is available at https://yingyichen-cyy.github.io/Jigsaw-ViT/.

View on arXivView PDF

Code Implementations(1)

(Pattern Recognition Letters 2023) PyTorch implementation of "Jigsaw-ViT: Learning Jigsaw Puzzles in Vision Transformer"

458C++, CudaSep 12, 20222 years ago
adversarial-examplesclothing1mfood101imagenetnoisy-label-learning+1 more

Similar Papers

Cite this paper

@article{chen2022jigsawvit,
  title  = {Jigsaw-ViT: Learning Jigsaw Puzzles in Vision Transformer},
  author = {Yingyi Chen and Xi Shen and Yahui Liu and Qinghua Tao and Johan A. K. Suykens},
  year   = {2022},
  eprint = {2207.11971},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.11971v2}
}

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

Discussion