DORA: Dynamic Online Reinforcement Agent for Token Pruning in Vision Transformers
Kaixuan He, Song Chen, Yi Kang
Key points
From the paper's conclusion- We propose DORA (Dynamic Online Reinforcement Agent), which learns an input-adaptive pruning policy itself for frozen ViTs.
Abstract
Vision Transformers (ViTs) incur quadratic self-attention cost in the number of tokens. Most token-reduction methods adapt token identities within a prescribed layer-wise compression schedule, or search a static mask offline, and thus limit online adaptation of when and how much to prune. We propose DORA (Dynamic Online Reinforcement Agent), which learns an input-adaptive pruning policy itself for frozen ViTs. At each eligible block, a hierarchical actor decides whether to prune, how many tokens to remove, and which tokens to remove from each image's evolving representation. Because early deletions change the states observed by later decisions, DORA formulates pruning as a finite-horizon Markov decision process. Complete-prefix shadow evaluations convert final-prediction fidelity into localized per-step credit, while closed-loop accuracy feedback adjusts the fidelity penalty toward a shared accuracy-drop target. A privileged critic and all shadow computations are training-only. Deployment retains the frozen backbone and a lightweight actor that applies hard deletion and packed variable-length FlashAttention, converting token reduction into measured speedups. On ImageNet-1K with DeiT-Base, DORA reduces FLOPs by 38.4% relative to the uncompressed backbone within one percentage point of accuracy loss. Averaged across four ViT-type backbones at matched accuracy, DORA uses 13.2% fewer FLOPs and achieves 32.4% higher throughput than the corresponding per-backbone baseline means. Under zero-shot transfer to ImageNet-A, these gains widen to 20.3% and 45.6%, respectively.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ProgResViT: Progressive Resolution and Width for Adaptive Vision TransformersarXiv · 2026
- Differentiable Virtual-Slot Partitioning for Adaptive Tokenization in Vision TransformersarXiv · 2026
- LearnPrunerV2: Learnable Progressive Token Pruning for Vision-Language ModelsarXiv · 2026
- PURA: Video Token Pruning via Unified Spatiotemporal Redundancy AssessmentarXiv · 2026
- LookThere! Sparse Vision by Reinforced SelectionarXiv · 2026
- Token Pruning Needs a Protected Sink Token: Coherent Spatial Aggregation in Vision TransformersarXiv · 2026