AWP: Activation-based Window Pruning for Gigapixel Object Detection
Abstract
Gigapixel object detection in High-Resolution Wide (HRW) images faces extreme spatial sparsity where targets often occupy less than 5% of the image area while computation is wasted on vast uninformative regions. Existing token selection methods require either complex evolutionary search or training additional learnable modules. We present AWP (Activation-based Window Pruning), built on the discovery that feed-forward network (FFN) activations in trained vision transformers naturally encode window importance, enabling a parameter-free, training-free selection mechanism without additional modules. Leveraging this intrinsic signal, AWP performs window pruning with consistent improvements. On PANDA, fine-tuned AWP at k=0.5 improves over SparseFormer at k=0.7 by 1.6 AP50 points and 4.3 small-object AP points while reducing backbone FLOPs by 26.2%. When applied to Swin Transformer, AWP demonstrates strong generalization, retaining 95.7% of baseline AP50 with 50% windows pruned without retraining, and the same signal also transfers to other backbones (PVTv2, RMT) and to additional detection benchmarks. Remarkably, AWP enables zero-shot application by directly replacing learned selection modules, improving baseline AP50 by 0.6 points without retraining. Our work reveals that window-based vision transformers inherently encode spatial importance through FFN activations, offering a simple yet powerful alternative to existing selection mechanisms, especially for High-Resolution Wide images.