Dispatch-Aware Ragged Attention for Pruned Vision Transformers
On the map: Efficient LLM inference and serving → Token pruning and merging for ViTs
Abstract (arXiv)
Token pruning methods for Vision Transformers (ViTs) promise quadratic reductions in attention FLOPs by dropping uninformative patches. Yet standard variable-length attention APIs -- including FlashAttention-2's varlen and PyTorch's NestedTensor SDPA -- fail to translate these savings into proportional wall-clock gains at the short post-pruning sequence lengths typical of ViTs (≤197 tokens). We identify a dispatch-overhead bottleneck: at these lengths, host-side kernel dispatch consumes ~50,μs regardless of workload, exceeding the actual GPU compute time at moderate-to-high pruning rates. We present a lightweight bidirectional Triton attention kernel whose dispatch floor is ~24,μs -- roughly 2.17× lower than FlashAttention-2 varlen -- allowing pruning savings to become visible in wall-clock time. Integrated into a complete pack-attend-unpack pipeline and evaluated on an NVIDIA RTX 4000 Ada Generation GPU, our system achieves 1.88× end-to-end throughput over padded PyTorch SDPA at standard 224×224 inputs, scaling to 2.51× at 384×384. Against FlashAttention-2 varlen -- the strongest baseline -- our kernel delivers 9-12% higher throughput at serving batch sizes (BS=1-4), and 2.17× lower kernel latency at 80% token pruning. Numerical correctness is verified with max absolute logit difference <0.004 and bit-exact top-1 predictions.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Token pruning and merging for ViTs, one of 12 directions in Efficient LLM inference and serving. Builds on 11 of its 13 references that are in the map. First posted on arXiv 16 Apr 2026.
Builds on
11 of 13 references.
Closest ancestors · 1
Same direction, newest first
- 2022Token Merging: Your ViT But Faster17 Oct
Other references · 10
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 506
- 2022Not All Patches are What You Need: Expediting Vision Transformers via Token Reorganizationscited by 363
- 2021Adaptive Token Sampling For Efficient Vision Transformerscited by 183
- 2021Self-attention Does Not Need O(n2) Memorycited by 154
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2023PPT: Token Pruning and Pooling for Efficient Vision Transformers
- 2025HEART-VIT: Hessian-Guided Efficient Dynamic Attention and Token Pruning in Vision Transformer
- 2021SPViT: Enabling Faster Vision Transformers via Soft Token Pruning
- 2026ToaSt: Token Channel Selection and Structured Pruning for Efficient ViT
- 2026ASAP: Attention Sink Anchored Pruning
- 2026DORA: Dynamic Online Reinforcement Agent for Token Pruning in Vision Transformers
- 2025Similarity-Aware Token Pruning: Your VLM but Faster
- 2025Balanced Token Pruning: Accelerating Vision Language Models Beyond Local Optimization