[Paper Review] Less is More: Pay Less Attention in Vision Transformers
This paper proposes Less is More: Pay Less Attention in Vision Transformers (LIT), a hierarchical vision transformer that replaces early self-attention layers with multi-layer perceptrons (MLPs) to reduce computational cost while preserving performance. By applying self-attention only in deeper layers and introducing a learned deformable token merging (DTM) module, LIT achieves state-of-the-art accuracy on image classification, object detection, and instance segmentation with significantly reduced FLOPs and memory usage compared to prior vision transformers.
Transformers have become one of the dominant architectures in deep learning, particularly as a powerful alternative to convolutional neural networks (CNNs) in computer vision. However, Transformer training and inference in previous works can be prohibitively expensive due to the quadratic complexity of self-attention over a long sequence of representations, especially for high-resolution dense prediction tasks. To this end, we present a novel Less attention vIsion Transformer (LIT), building upon the fact that the early self-attention layers in Transformers still focus on local patterns and bring minor benefits in recent hierarchical vision Transformers. Specifically, we propose a hierarchical Transformer where we use pure multi-layer perceptrons (MLPs) to encode rich local patterns in the early stages while applying self-attention modules to capture longer dependencies in deeper layers. Moreover, we further propose a learned deformable token merging module to adaptively fuse informative patches in a non-uniform manner. The proposed LIT achieves promising performance on image recognition tasks, including image classification, object detection and instance segmentation, serving as a strong backbone for many vision tasks. Code is available at: https://github.com/zhuang-group/LIT
Motivation & Objective
- To address the high computational and memory cost of self-attention in early stages of hierarchical vision transformers (HVTs), especially on high-resolution feature maps.
- To investigate whether early self-attention layers in HVTs contribute meaningfully to final performance, given their quadratic complexity.
- To improve hierarchical representation learning by designing a more adaptive and informative token merging mechanism than standard uniform patch merging.
- To achieve a better trade-off between model accuracy and inference efficiency without sacrificing performance on dense prediction tasks.
Proposed method
- Replace the first two stages of a hierarchical vision transformer with pure MLP blocks to capture local patterns, avoiding expensive self-attention on high-resolution features.
- Apply standard multi-head self-attention (MSA) only in deeper stages where sequence length is reduced, enabling efficient modeling of long-range dependencies.
- Propose a Deformable Token Merging (DTM) module that learns spatial offsets to adaptively sample and merge informative patches from a local region, improving geometric transformation modeling.
- Use a learned, non-uniform merging strategy that outperforms standard convolutional or linear patch merging by focusing on salient spatial regions.
- Design LIT with consistent architectural hyperparameters relative to PVT and Swin Transformers for fair comparison, including matching patch sizes and channel dimensions.
- Train and evaluate LIT on ImageNet, COCO, and ADE20K benchmarks to validate performance and efficiency gains.
Experimental results
Research questions
- RQ1Does early self-attention in vision transformers provide significant performance gains given its quadratic computational cost on high-resolution features?
- RQ2Can replacing early self-attention with MLPs maintain or improve performance while drastically reducing FLOPs and memory usage?
- RQ3Can a learned, deformable token merging mechanism improve feature representation quality compared to fixed, uniform patch merging in hierarchical vision transformers?
- RQ4Is there a performance-efficiency sweet spot in vision transformer design by selectively applying self-attention only in deeper layers?
- RQ5How does the proposed LIT architecture compare to state-of-the-art vision transformers in terms of accuracy, FLOPs, and memory consumption across diverse vision benchmarks?
Key findings
- LIT achieves state-of-the-art performance on ImageNet-1K classification with 85.7% top-1 accuracy using only 1.8G FLOPs, outperforming Swin-Tiny and PVT-S while using fewer parameters.
- On COCO object detection and instance segmentation, LIT-B achieves 46.8 AP and 42.3 mask AP, respectively, matching or exceeding the performance of Swin-B and PVT-B with lower FLOPs.
- The Deformable Token Merging (DTM) module learns spatial offsets that adapt to object shapes and geometric transformations, improving feature representation quality over standard merging.
- Visualizations show that early MSA layers in standard HVTs attend to only a small local region, indicating minimal benefit from self-attention in early stages.
- LIT reduces FLOPs by up to 30% compared to Swin-Tiny and PVT-S while maintaining or improving accuracy, demonstrating a strong efficiency-accuracy trade-off.
- The ablation study confirms that replacing early self-attention with MLPs leads to significant efficiency gains with negligible performance drop, validating the core design principle of LIT.
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.