Vision Transformer with Super Token Sampling
Preprint
Abstract
Vision transformer has achieved impressive performance for many vision tasks. However, it may suffer from high redundancy in capturing local features for shallow layers. Local self-attention or early-stage convolutions are thus utilized, which sacrifice the capacity to capture long-range dependency. A challenge then arises: can we access efficient and effective global context modeling at the early stages of a neural network? To address this issue, we draw inspiration from the design of superpixels, which reduces the number of image primitives in subsequent processing, and introduce super tokens into vision transformer. Super tokens attempt to provide a semantically meaningful tessellation of visual content, thus reducing the token number in self-attention as well as preserving global modeling. Specifically, we propose a simple yet strong super token attention (STA) mechanism with three steps: the first samples super tokens from visual tokens via sparse association learning, the second performs self-attention on super tokens, and the last maps them back to the original token space. STA decomposes vanilla global attention into multiplications of a sparse association map and a low-dimensional attention, leading to high efficiency in capturing global dependencies. Based on STA, we develop a hierarchical vision transformer. Extensive experiments demonstrate its strong performance on various vision tasks. In particular, without any extra training data or label, it achieves 86.4% top-1 accuracy on ImageNet-1K with less than 100M parameters. It also achieves 53.9 box AP and 46.8 mask AP on the COCO detection task, and 51.9 mIOU on the ADE20K semantic segmentation task. Code is released at https://github.com/hhb072/STViT.Keywords
All Related Versions
This publication has 37 references indexed in Scilit:
- End-to-End Object Detection with Transformers2020
- Semantic Understanding of Scenes Through the ADE20K DatasetInternational Journal of Computer Vision, 2018
- Superpixel Sampling Networks2018
- Unified Perceptual Parsing for Scene Understanding2018
- Superpixels and Polygons Using Simple Non-iterative Clustering2017
- Superpixel-Based Tracking-by-Segmentation Using Markov Chains2017
- Deep Networks with Stochastic Depth2016
- Manifold SLIC: A Fast Method to Compute Content-Sensitive Superpixels2016
- Microsoft COCO: Common Objects in Context2014
- Entropy rate superpixel segmentation2011