Introduction
Deep Convolutional Neural Networks (CNNs) have revolutionized computer vision but remain computationally intensive, hindering deployment on resource-constrained edge devices. While pruning—removing redundant parameters—is a common solution, traditional structured pruning methods often struggle with manual tuning, local optimization, and complex multi-stage pipelines. Pruning by Active Attention Manipulation (PAAM) addresses these challenges by integrating pruning directly into the training process as a learnable task.
The Challenges of Structured Pruning
Existing structured pruning methods, which remove entire filters to ensure hardware compatibility, face four primary hurdles:
- Local vs. Global Optimization: Most techniques evaluate filter importance within a single layer, ignoring inter-layer dependencies.
- Manual Budgeting: Engineers must often manually define pruning ratios for each layer, a tedious and sub-optimal process.
- Independence Assumptions: Methods frequently assume filters act independently, failing to account for correlations.
- Complex Pipelines: The traditional "train-prune-finetune" cycle is computationally expensive and cumbersome.
Methodology: Learning to Prune
PAAM introduces a novel end-to-end framework that learns filter importance scores through an internal attention mechanism.
Attention Network (AN) and Analog Scoring
Instead of binary masks, PAAM utilizes a small "attention" sub-network to generate analog importance scores for each filter. These scores multiply the feature maps, allowing the model to use standard gradient descent to learn which filters are redundant.
Capturing Filter Correlations
To scale to complex architectures like ResNet50 on ImageNet, the authors developed KQ PAAM. This variant employs a scaled dot-product attention mechanism, similar to Transformers, to efficiently learn correlations between filters. This "social" approach allows the network to identify and downscore redundant, highly correlated filters.
Leaky-Exponential Activation
Standard activation functions like Sigmoid or Softmax proved ineffective for pruning. PAAM utilizes a custom Leaky-Exponential function. This ensures scores remain positive, start at a value of 1 (representing a fully dense network), and maintain non-zero gradients to prevent the model from getting "stuck" during the learning process.
Integrated Training Schedule
PAAM enables training a sparse network from scratch. It employs an alternating schedule: training the Attention Network to identify redundancy, followed by training the CNN weights to adapt to the emerging sparse structure.
Key Insights
- Automatic Architecture Discovery: PAAM automatically discovers optimal layer configurations. For instance, in ResNet blocks, it consistently prunes the first layer more aggressively than the second, effectively rediscovering the "bottleneck" design pattern without human intervention.
- The Accuracy Bonus: Remarkably, PAAM often yields models that are more accurate than their dense counterparts. This suggests that attention-based pruning acts as a powerful regularizer, removing noise and forcing the network to focus on the most salient features.
Experimental Results
PAAM was evaluated on CIFAR-10 (ResNet56/110) and ImageNet (ResNet50), consistently outperforming state-of-the-art (SOTA) methods like CHIP and HRank.
On ImageNet, PAAM(KQ) achieved a 51.1% parameter reduction while providing a 1.06% Top-1 accuracy gain. Similar results were observed on CIFAR-10, where ResNet110 saw a 54.9% parameter reduction with a 1.19% accuracy increase.
Conclusion and Future Work
PAAM represents a significant step forward in automated model compression. By treating pruning as a learnable attention task, it eliminates the need for manual layer budgeting and pre-trained models while delivering superior accuracy. Future research may explore applying PAAM to Neural Architecture Search (NAS) to automatically design hardware-efficient models from the ground up.
Summary updated