Context-Aware Token Selection and Packing for Enhanced Vision Transformer
Not on the map. Why?
Abstract (arXiv)
In recent years, the long-range attention mechanism of vision transformers has driven significant performance breakthroughs across various computer vision tasks. However, the traditional self-attention mechanism, which processes both informative and non-informative tokens, suffers from inefficiency and inaccuracies. While sparse attention mechanisms have been introduced to mitigate these issues by pruning tokens involved in attention, they often lack context-awareness and intelligence. These mechanisms frequently apply a uniform token selection strategy across different inputs for batch training or optimize efficiency only for the inference stage. To overcome these challenges, we propose a novel algorithm: Select and Pack Attention (SPA). SPA dynamically selects informative tokens using a low-cost gating layer supervised by selection labels and packs these tokens into new batches, enabling a variable number of tokens to be used in parallelized GPU batch training and inference. Extensive experiments across diverse datasets and computer vision tasks demonstrate that SPA delivers superior performance and efficiency, including a 0.6 mAP improvement in object detection and a 16.4% reduction in computational costs.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 32 of its 40 references that are in the map. First posted on arXiv 31 Oct 2024.
Builds on
32 of 40 references.
References · 32
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2023Segment Anythingcited by 8,158
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,339
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,893
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2016Categorical Reparameterization with Gumbel-Softmaxcited by 2,708
- 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
- 2021SwinIR: Image Restoration Using Swin Transformercited by 1,869
20 more
- 2020GLU Variants Improve Transformercited by 1,724
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2017Deformable Convolutional Networkscited by 1,481
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
- 2022Not All Patches are What You Need: Expediting Vision Transformers via Token Reorganizationscited by 359
- 2023Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolutioncited by 226
- 2023SparseViT: Revisiting Activation Sparsity for Efficient High-Resolution Vision Transformercited by 60
- 2022Towards Understanding Mixture of Experts in Deep Learningcited by 52
- 2024Time Series Modeling for Heart Rate Prediction: From ARIMA to Transformerscited by 35
- 2023Transformer-VQ: Linear-Time Transformers via Vector Quantizationcited by 26
- 2024Harnessing Earnings Reports for Stock Predictions: A QLoRA-Enhanced LLM Approachcited by 24
- 2024Towards Resilient and Efficient LLMs: A Comparative Study of Efficiency, Performance, and Adversarial Robustnesscited by 22
- 2021Heterogeneous Multi-task Learning with Expert Diversitycited by 18
- 2024Evaluating Modern Approaches in 3D Scene Reconstruction: NeRF vs Gaussian-Based Methodscited by 16
- 2022Multi-manifold Attention for Vision Transformerscited by 12
- 2020GateNet: Gating-Enhanced Deep Network for Click-Through Rate Predictioncited by 10
- 2023Transformer-based Selective Super-Resolution for Efficient Image Refinementcited by 7
- 2023Patch-based Selection and Refinement for Early Object Detectioncited by 5
- 2020MetaGater: Fast Learning of Conditional Channel Gated Networks via Federated Meta-Learningcited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.