[Paper Review] Vision Transformer Adapter for Dense Predictions
ViT-Adapter augments plain Vision Transformer with a lightweight, pre-training-free adapter that injects image priors and reconstructs multi-scale features, achieving state-of-the-art-like performance on dense prediction tasks without modifying ViT architecture.
This work investigates a simple yet powerful dense prediction task adapter for Vision Transformer (ViT). Unlike recently advanced variants that incorporate vision-specific inductive biases into their architectures, the plain ViT suffers inferior performance on dense predictions due to weak prior assumptions. To address this issue, we propose the ViT-Adapter, which allows plain ViT to achieve comparable performance to vision-specific transformers. Specifically, the backbone in our framework is a plain ViT that can learn powerful representations from large-scale multi-modal data. When transferring to downstream tasks, a pre-training-free adapter is used to introduce the image-related inductive biases into the model, making it suitable for these tasks. We verify ViT-Adapter on multiple dense prediction tasks, including object detection, instance segmentation, and semantic segmentation. Notably, without using extra detection data, our ViT-Adapter-L yields state-of-the-art 60.9 box AP and 53.0 mask AP on COCO test-dev. We hope that the ViT-Adapter could serve as an alternative for vision-specific transformers and facilitate future research. The code and models will be released at https://github.com/czczup/ViT-Adapter.
Motivation & Objective
- Motivate bridging the performance gap between plain ViT and vision-specific transformers for dense prediction tasks.
- Propose a pre-training-free adapter that injects image-related inductive biases into ViT without changing its backbone.
- Design three modules (spatial prior, spatial feature injector, multi-scale feature extractor) to enable dense predictions.
- Demonstrate that ViT-Adapter achieves competitive or superior results across object detection, instance segmentation, and semantic segmentation.
Proposed method
- Introduce ViT-Adapter as a two-part architecture: a plain ViT backbone and a three-module adapter.
- Spatial Prior Module to build a three-resolution feature pyramid (1/8, 1/16, 1/32) from the input image using a ConvNet stem.
- Spatial Feature Injector to fuse spatial priors into ViT via cross-attention between ViT tokens and spatial features.
- Multi-Scale Feature Extractor to produce hierarchical multi-scale features by cross-attention and FFN operations, enabling a feature pyramid for dense prediction.
- Interactions within ViT: split ViT encoders into N blocks (N typically 4); in each block, inject priors and extract multi-scale features; final 1/8, 1/16, 1/32 features are upsampled to form a 1/4-scale feature map for downstream heads.
- Employ deformable attention as the default sparse attention within the adapter and use a balanced initialization to preserve ViT pre-trained weights.
Experimental results
Research questions
- RQ1Can a pre-training-free adapter introduce vision-specific inductive biases to plain ViT to close the gap with vision-specific transformers for dense prediction tasks?
- RQ2How do spatial priors, cross-attention-based feature injection, and multi-scale feature extraction contribute to dense prediction performance?
- RQ3Does ViT-Adapter enable plain ViT backbones to achieve competitive results on object detection, instance segmentation, and semantic segmentation without extra pre-training data?
- RQ4How does multi-modal pre-training further boost ViT-Adapter performance compared to ImageNet pre-training alone?
Key findings
- ViT-Adapter consistently improves plain ViT performance across object detection, instance segmentation, and semantic segmentation compared with vision-specific backbones under regular ImageNet-1K pre-training.
- With multi-modal pre-training, ViT-Adapter-L achieves 60.9 box AP and 53.0 mask AP on COCO test-dev without extra detection data.
- ViT-Adapter-S outperforms ViT-Det and several vision-specific models under equivalent pre-training, indicating effective transfer of image priors via the adapter.
- Semantic segmentation results with ImageNet-22K pre-training show ViT-Adapter-B/L achieving competitive or superior mIoU compared to Swin-B/L and others, and multi-modal pre-training yields additional gains (e.g., ViT-Adapter-L ★ on ADE20K).
- Ablation studies confirm that each component (SPM, Spatial Feature Injector, Multi-Scale Feature Extractor) contributes to performance gains, with the full ViT-Adapter yielding substantial improvements over the baseline.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.