Abstract
Modern computer vision models, including Vision Transformers (ViTs) and large Convolutional Neural Networks (ConvNets), achieve state-of-the-art performance but at a high computational cost. A significant portion of this cost is spent on redundant spatial data. Existing patch pruning techniques often require expensive re-training or are architecture-specific. We introduce PaPr, a training-free, one-step patch pruning method. PaPr employs ultra-lightweight ConvNets as "scouts" to identify and prune redundant patches before the primary model begins processing. Our method is architecture-agnostic, requires zero re-training, and reduces FLOPs by up to 3.7x in video recognition tasks with negligible accuracy loss.
Introduction
In computer vision, model scale often correlates with accuracy, yet deploying these models in production remains challenging due to their computational "tax." Much of this overhead stems from processing background information—like empty sky or static scenery—that contributes little to the final prediction. While patch pruning aims to mitigate this, current state-of-the-art (SOTA) methods typically involve multi-stage pruning or require fine-tuning the backbone, limiting their practical utility.
The Efficiency-Flexibility Trade-off
Pruning methods generally face three major hurdles: significant training overhead for mask generators, incremental pruning that delays computational savings to later layers, and architectural lock-in to specific features like attention maps.
As shown in Figure 1, PaPr addresses these issues by performing pruning immediately after patch extraction in a single step, using a frozen "scout" model. This allows for computational savings throughout the entire depth of the network without the need for specialized training.
Methodology: The PaPr Pipeline
The core of PaPr is the observation that even low-accuracy, lightweight ConvNets (e.g., MobileOne-S0) possess a strong hierarchical inductive bias that naturally preserves spatial information, making them excellent at localizing important regions.
Generating the Patch Significance Map (PSM)
The pipeline begins with a proposal model processing the input image. To avoid the biases of a small model's classification errors, PaPr ignores the final Fully-Connected (FC) layer. Instead, it averages the feature maps from the final convolutional layer to generate a Patch Significance Map (PSM).
As illustrated in Figure 3, the PSM is upsampled to match the target model's grid. The bottom $z\%$ of patches, identified as background, are then pruned. In vanilla ViTs, these patches are discarded as tokens. In hierarchical models like Swin or ConvNext, the background patches are "zeroed out" during pixel-wise operations to maintain spatial structure while still achieving hardware-level speedups.
Experimental Evaluation
PaPr was evaluated on industry-standard benchmarks:
- ImageNet-1k & ImageNet-22k: For image classification and scaling analysis.
- Kinetics-400: For video recognition, leveraging high temporal redundancy.
Results and Discussion
- Efficiency: In video recognition using ViT-L, PaPr reduced redundant patches by 70%, resulting in a 3.7x reduction in FLOPs with less than a 0.8% drop in accuracy.
- Performance: On ImageNet, PaPr outperformed the popular Token Merging (ToMe) method, achieving 2.14% higher accuracy at a similar computational budget.
- Training Acceleration: Uniquely, PaPr can be used during the training phase of large models, speeding up the process by 1.6x because it does not require the backbone to be pre-trained.
- Complementarity: PaPr is compatible with existing methods like ToMe. When combined, they achieve Pareto optimal performance, pushing inference speeds further than either method alone.
Conclusion and Future Work
PaPr demonstrates that lightweight ConvNets can serve as effective spatial priors for pruning much larger models without additional training. While the proposal model introduces a small overhead, the overall gains in inference and training speed are substantial. Future research may explore PaPr's application in dense prediction tasks like semantic segmentation and further optimize hardware-specific implementations for masked inputs.
Summary updated