DropPos: Pre-Training Vision Transformers by Reconstructing Dropped Positions

Haochen Wang, Junsong Fan, Yuxi Wang, Kaiyou Song, Tong Wang +1 more
9/1/2023

No official code found. Best implementation: Haochen-Wang409/DropPos (61 stars, Apache-2.0, last commit 2024-04-30).

Abstract

As it is empirically observed that Vision Transformers (ViTs) are quite insensitive to the order of input tokens, the need for an appropriate self-supervised pretext task that enhances the location awareness of ViTs is becoming evident. To address this, we present DropPos, a novel pretext task designed to reconstruct Dropped Positions. The formulation of DropPos is simple: we first drop a large random subset of positional embeddings and then the model classifies the actual position for each non-overlapping patch among all possible positions solely based on their visual appearance. To avoid trivial solutions, we increase the difficulty of this task by keeping only a subset of patches visible. Additionally, considering there may be different patches with similar visual appearances, we propose position smoothing and attentive reconstruction strategies to relax this classification problem, since it is not necessary to reconstruct their exact positions in these cases. Empirical evaluations of DropPos show strong capabilities. DropPos outperforms supervised pre-training and achieves competitive results compared with state-of-the-art self-supervised alternatives on a wide range of downstream benchmarks. This suggests that explicitly encouraging spatial reasoning abilities, as DropPos does, indeed contributes to the improved location awareness of ViTs. The code is publicly available at https://github.com/Haochen-Wang409/DropPos.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[NeurIPS'23] DropPos: Pre-Training Vision Transformers by Reconstructing Dropped Positions

614Shell, PythonSep 12, 20232 years agoApache-2.0
ade20kcococomputer-visiondeep-learningdetection+7 more

Similar Papers

Cite this paper

@article{wang2023droppos,
  title  = {DropPos: Pre-Training Vision Transformers by Reconstructing Dropped Positions},
  author = {Haochen Wang and Junsong Fan and Yuxi Wang and Kaiyou Song and Tong Wang and Zhaoxiang Zhang},
  year   = {2023},
  eprint = {2309.03576},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.03576},
  journal = {NEURIPS 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/2309.03576.svg)](https://codeofpaper.com/paper/2309.03576)

Discussion