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

Pruning by Active Attention Manipulation

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

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:

  1. Local vs. Global Optimization: Most techniques evaluate filter importance within a single layer, ignoring inter-layer dependencies.
  2. Manual Budgeting: Engineers must often manually define pruning ratios for each layer, a tedious and sub-optimal process.
  3. Independence Assumptions: Methods frequently assume filters act independently, failing to account for correlations.
  4. 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.

The PAAM architecture, illustrating the Attention Network (AN) and the KQ variant for large-scale models.

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.

Performance comparison of PAAM(KQ) against SOTA pruning methods on the ImageNet dataset using ResNet50.

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

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