Fast-iTPN: Integrally Pre-Trained Transformer Pyramid Network with Token Migration

Yunjie Tian, Lingxi Xie, Jihao Qiu, Jianbin Jiao, Yaowei Wang +2 more
11/23/2022
cs.CVcs.AI
transformer-attention

Official code: sunsmarterjie/iTPN (219 stars, Python, last commit 2024-07-28).

Abstract

We propose integrally pre-trained transformer pyramid network (iTPN), towards jointly optimizing the network backbone and the neck, so that transfer gap between representation models and downstream tasks is minimal. iTPN is born with two elaborated designs: 1) The first pre-trained feature pyramid upon vision transformer (ViT). 2) Multi-stage supervision to the feature pyramid using masked feature modeling (MFM). iTPN is updated to Fast-iTPN, reducing computational memory overhead and accelerating inference through two flexible designs.

Show full abstract

1) Token migration: dropping redundant tokens of the backbone while replenishing them in the feature pyramid without attention operations. 2) Token gathering: reducing computation cost caused by global attention by introducing few gathering tokens. The base/large-level Fast-iTPN achieve 88.75%/89.5% top-1 accuracy on ImageNet-1K. With 1x training schedule using DINO, the base/large-level Fast-iTPN achieves 58.4%/58.8% box AP on COCO object detection, and a 57.5%/58.7% mIoU on ADE20K semantic segmentation using MaskDINO. Fast-iTPN can accelerate the inference procedure by up to 70%, with negligible performance loss, demonstrating the potential to be a powerful backbone for downstream vision tasks. The code is available at: github.com/sunsmarterjie/iTPN.

View on arXivView PDF

Code Implementations(1)

sunsmarterjie/iTPNOfficial100%

(CVPR2023/TPAMI2024) Integrally Pre-Trained Transformer Pyramid Networks -- A Hierarchical Vision Transformer for Masked Image Modeling

2197Python, ShellNov 19, 20222 years ago

Similar Papers

Cite this paper

@article{tian2022fastitpn,
  title  = {Fast-iTPN: Integrally Pre-Trained Transformer Pyramid Network with Token Migration},
  author = {Yunjie Tian and Lingxi Xie and Jihao Qiu and Jianbin Jiao and Yaowei Wang and Qi Tian and Qixiang Ye},
  year   = {2022},
  eprint = {2211.12735},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2211.12735}
}

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

Discussion