Skip to main content
QUICK REVIEW

[Paper Review] DropPos: Pre-Training Vision Transformers by Reconstructing Dropped Positions

Haochen Wang, Junsong Fan|arXiv (Cornell University)|Sep 7, 2023
Advanced Neural Network ApplicationsComputer Science4 citations
TL;DR

DropPos proposes a self-supervised pretext task for Vision Transformers that enhances spatial reasoning by reconstructing the positions of randomly dropped positional embeddings. By masking patches and dropping their positional embeddings, the model learns to predict positions solely from visual appearance, achieving state-of-the-art performance with 84.2% top-1 accuracy on ImageNet-1K using only 800 pre-training epochs, outperforming MAE by +0.6%.

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.

Motivation & Objective

  • To address the lack of positional awareness in Vision Transformers, which are empirically insensitive to token order.
  • To design a self-supervised pretext task that explicitly enhances spatial reasoning and location understanding in ViTs.
  • To overcome limitations of existing methods like contrastive learning and masked image modeling in promoting spatial generalization.
  • To avoid trivial solutions and pre-train/fine-tune discrepancies in position-aware representation learning.
  • To improve downstream performance on vision tasks requiring strong spatial reasoning, such as segmentation and detection.

Proposed method

  • DropPos masks a random subset of image patches and drops the corresponding positional embeddings, forcing the model to predict the original position of each visible patch.
  • The model performs a patch-wise classification task, predicting the correct position among all possible positions using only visual features and a few anchor patches with intact positional embeddings.
  • Position smoothing is applied to relax the classification task when patches have similar visual appearances, reducing the need for exact position reconstruction.
  • An attentive reconstruction strategy is introduced to guide the model toward more robust position prediction by focusing on spatial context.
  • The method avoids pre-train/fine-tune discrepancy by not removing all positional embeddings, preserving partial positional signals during pre-training.
  • The task is formulated as a self-supervised learning objective that encourages ViTs to learn spatial layouts and shape relationships from visual appearance alone.

Experimental results

Research questions

  • RQ1Can a self-supervised pretext task that explicitly reconstructs positions improve the spatial reasoning and location awareness of Vision Transformers?
  • RQ2Does reconstructing positions from visual appearance alone lead to better representation learning than contrastive or masked image modeling?
  • RQ3How can we prevent trivial solutions when training ViTs to predict positions using only visual features?
  • RQ4Can position reconstruction be made robust to visual similarity between patches without requiring exact position prediction?
  • RQ5Does improved position sensitivity translate to better performance on downstream vision tasks requiring spatial understanding?

Key findings

  • DropPos achieves 84.2% top-1 accuracy on ImageNet-1K using only 800 epochs of pre-training, surpassing MAE pre-trained for 1600 epochs by +0.6%.
  • On COCO object detection and instance segmentation benchmarks, DropPos consistently outperforms MAE, demonstrating improved spatial reasoning capabilities.
  • On ADE20k semantic segmentation, DropPos achieves 47.8% mIoU with 800 pre-training epochs, exceeding MAE by +0.8%.
  • Linear probing experiments show that DropPos pre-trained models achieve higher top-1 accuracy in position prediction (88.0%) after fine-tuning, indicating stronger spatial modeling ability.
  • Qualitative results confirm that DropPos can reconstruct positions accurately even under extreme masking (γ=0.75), demonstrating robustness.
  • Ablation studies confirm that enhanced position sensitivity directly improves performance on downstream tasks, validating the core motivation of the method.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.