NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Pruning by Active Attention Manipulation

Zahra Babaiee, Lucas Liebenwein, Ramin Hasani, Daniela Rus, Radu Grosu

TL;DR

Pruning by Active Attention Manipulation (PAAM) is a novel end-to-end method that sparsifies convolutional neural networks (CNNs) during training by learning filter importance through an attention mechanism. Unlike traditional methods that require pre-trained models or manual per-layer budget tuning, PAAM automatically discovers optimal sparse architectures from scratch, often achieving significant parameter reductions while actually improving model accuracy.

What Problem Does This Paper Address?

Deep learning models, particularly CNNs, have become massive, leading to high computational costs and memory footprints that make deployment on edge devices (like phones or embedded sensors) difficult. Pruning—the process of removing redundant parameters—is the standard solution.

However, existing structured pruning methods (which remove entire filters rather than individual weights) face several hurdles:

  1. Independence Assumption: Most methods treat filters as independent, ignoring the complex correlations between them.
  2. Local vs. Global: Importance is often calculated locally within a layer, missing the inter-dependencies between layers.
  3. Manual Overhead: Researchers often have to manually define "pruning budgets" for every single layer, which is tedious and likely sub-optimal.
  4. Multi-stage Pipelines: Many techniques require a fully pre-trained "teacher" network before pruning can even begin.

Methods

PAAM introduces an Attention Network (AN) that sits alongside the CNN during training. Instead of using simple heuristics like weight magnitude, PAAM learns analog "importance scores" for every filter.

The Attention Mechanism

The core idea is to learn scores $S_l$ from the filter weights $F_l$. The paper proposes two versions:

  • Vanilla PAAM: Uses a standard linear transformation.
  • KQ PAAM: Uses a Key-Query (KQ) scaled dot-product attention mechanism (similar to Transformers). This version is much more memory-efficient and scales to large datasets like ImageNet by computing correlations in "chunks."
Figure 2: PAAM learns the importance scores of the filters from the filter weights.

Leaky-Exponential Activation

To ensure these scores are useful for gradient descent, the authors designed a custom leaky-exponential activation function. Standard functions like SoftMax force a "winner-take-all" scenario, but pruning requires many filters to potentially stay at a score of 1. This custom function ensures scores stay in the $[0, 1+\epsilon]$ range and maintains non-zero gradients across the entire domain, preventing scores from getting "stuck" during training.

Figure 3: The leaky-exponen- tial activation function.

Training Schedule

PAAM follows a specific four-phase schedule:

  1. Warm-up: Train the dense network normally.
  2. Train PAAM: Freeze the CNN weights and train the Attention Network to learn scores, using $L_1$ regularization to encourage sparsity.
  3. Train Sparse Weights: Freeze the scores and update the CNN weights.
  4. Fine-tune: Once the final sparse structure is determined (by binarizing the scores), perform a final fine-tuning of the remaining weights.
Figure 1: Sensitivity-based filter pruning schedule.

Datasets

The authors evaluated PAAM on standard computer vision benchmarks:

  • CIFAR-10: Using ResNet56 and ResNet110 architectures.
  • ImageNet: Using the larger ResNet50 architecture to test scalability.

Key Insights and Ideas

  • Automatic Budget Discovery: Perhaps the most powerful feature of PAAM is that it requires only one global hyperparameter ($\lambda$) to control the overall pruning ratio. The model then automatically decides which layers can afford to lose the most filters.
  • Pruning as Regularization: Interestingly, the pruned models often outperformed the dense baselines. This suggests that the attention-based pruning process acts as a form of structural regularization, forcing the network to learn more robust, non-redundant features.
  • Discovery of Bottlenecks: In ResNets, PAAM naturally learned to prune the first layer of residual blocks more heavily than the second, effectively "discovering" the efficiency of bottleneck architectures without human intervention.

Key Results

PAAM consistently outperformed state-of-the-art (SOTA) methods across different models and datasets.

  • CIFAR-10 (ResNet56): Achieved a 1.02% accuracy gain while reducing parameters by 52.3%.
  • CIFAR-10 (ResNet110): Achieved a 1.19% accuracy gain with a 54.9% parameter reduction.
  • ImageNet (ResNet50): PAAM achieved a 1.06% accuracy increase over the baseline while pruning 51.1% of parameters. This outperformed the next best SOTA method by a margin of 11% in terms of the accuracy/pruning trade-off.
Table 1: Results on the Cifar10 dataset with ResNet56 and ResNet110 for medium (top part) and for large (bottom part) pruning ratios, respectively. The quantity ∆shows the difference in the accuracy (Acc) between the baseline dense model used, and the resulting pruned network. Note that PAAM does not use a pretrained baseline. Numbers are taken from the reported results of the cited papers.

Limitations and Future Work

  • Memory Constraints: While KQ PAAM solves the scaling issue for ResNet50, the "Vanilla" version can run out of memory on layers with a very high number of filters due to the size of the attention weight matrix.
  • Hyperparameter Sensitivity: Although it removes per-layer budgets, users still need to tune the global regularization factor $\lambda$ and the attention scaling factor $\alpha$.
  • Future Directions: The authors suggest that PAAM could be integrated into Neural Architecture Search (NAS) frameworks to help distill complex networks into salient, high-performance micro-architectures automatically.

Summary updated

BibTeX
@misc{babaiee2022pruning,
  author = {Zahra Babaiee and Lucas Liebenwein and Ramin Hasani and Daniela Rus and Radu Grosu},
  title = {{Pruning by Active Attention Manipulation}},
  year = {2022},
  eprint = {2210.11114},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.11114},
}
Figure