[Paper Review] Vision Transformer with Super Token Sampling
This paper proposes Super Token Vision Transformer (STViT), a hierarchical vision transformer that introduces super tokens to reduce redundancy in shallow layers by learning sparse associations between visual tokens and super tokens. By decomposing global self-attention into a sparse association map and low-rank attention, STViT achieves efficient global context modeling with 86.4% top-1 accuracy on ImageNet-1K and state-of-the-art performance on COCO and ADE20K benchmarks.
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.
Motivation & Objective
- To address high redundancy in local feature learning within shallow layers of vision transformers.
- To enable efficient and effective global context modeling at early network stages without sacrificing long-range dependency.
- To reduce computational cost of self-attention while preserving global representation capacity.
- To design a hierarchical vision transformer backbone that outperforms existing methods with minimal parameter increase.
Proposed method
- Introduces super tokens as semantically meaningful, compact representations of visual content, inspired by superpixel over-segmentation.
- Proposes Super Token Attention (STA): a three-step mechanism involving sparse association learning, self-attention on super tokens, and feature reconstruction to the original token space.
- Decomposes standard global self-attention into a product of a sparse association map and a low-dimensional attention matrix, reducing FLOPs quadratically.
- Employs a fast sampling algorithm to predict super tokens via sparse association learning, minimizing computational overhead.
- Integrates convolutional position embedding (CPE) for flexible positional encoding across resolutions.
- Incorporates ConvFFN with shortcut connections to enhance local feature learning and improve performance.
Experimental results
Research questions
- RQ1Can we achieve efficient and effective global context modeling in the early stages of a vision transformer without relying on local attention or early-stage convolutions?
- RQ2Can super tokens—derived from superpixel principles—effectively reduce redundancy in shallow layers while preserving global dependency modeling?
- RQ3Does decomposing global self-attention into sparse association and low-rank attention significantly reduce FLOPs without performance degradation?
- RQ4How does the proposed STViT backbone compare to existing vision transformers in terms of accuracy, efficiency, and generalization across vision tasks?
Key findings
- STViT-S achieves 86.4% top-1 accuracy on ImageNet-1K with 52M parameters, outperforming Swin-T and DeiT-S.
- On COCO object detection, STViT-S achieves 53.9 box AP and 46.8 mask AP, surpassing baseline models with similar or larger parameters.
- For ADE20K semantic segmentation, STViT-S attains 51.9 mIOU, exceeding Swin-T by 2.6 mIOU and outperforming Uniformer by 1.2 mIOU.
- Ablation studies confirm that super token sampling is most effective in early stages, with one sampling iteration yielding optimal performance.
- The addition of ConvFFN and CPE consistently improves performance, with CPE providing the largest gain (0.4% accuracy boost).
- STA reduces FLOPs significantly—e.g., 3.97G vs. 4.6G in DeiT-S—while maintaining or improving accuracy.
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.