[Paper Review] GASL: Guided Attention for Sparsity Learning in Deep Neural Networks
This paper proposes Guided Attention for Sparsity Learning (GASL), a generic, attention-based method that enforces structured and unstructured sparsity in deep neural networks by supervising pruning via variance regularization to prevent accuracy drop. It achieves state-of-the-art sparsity (48% on Cifar-100) with 2.91× speedup and robust performance across hyperparameter settings.
The main goal of network pruning is imposing sparsity on the neural network by increasing the number of parameters with zero value in order to reduce the architecture size and the computational speedup. In most of the previous research works, sparsity is imposed stochastically without considering any prior knowledge of the weights distribution or other internal network characteristics. Enforcing too much sparsity may induce accuracy drop due to the fact that a lot of important elements might have been eliminated. In this paper, we propose Guided Attention for Sparsity Learning (GASL) to achieve (1) model compression by having less number of elements and speed-up; (2) prevent the accuracy drop by supervising the sparsity operation via a guided attention mechanism and (3) introduce a generic mechanism that can be adapted for any type of architecture; Our work is aimed at providing a framework based on interpretable attention mechanisms for imposing structured and non-structured sparsity in deep neural networks. For Cifar-100 experiments, we achieved the state-of-the-art sparsity level and 2.91x speedup with competitive accuracy compared to the best method. For MNIST and LeNet architecture we also achieved the highest sparsity and speedup level.
Motivation & Objective
- To address the accuracy drop commonly caused by aggressive pruning in deep neural networks.
- To develop a generic, architecture-agnostic method for inducing both structured and unstructured sparsity.
- To supervise the sparsity learning process using an interpretable attention mechanism that monitors model performance.
- To reduce reliance on extensive hyperparameter tuning by enhancing robustness to sparsity regularization coefficients.
- To maintain high model accuracy even at high sparsity levels, especially beyond 70%.
Proposed method
- Introduces a guided attention mechanism that uses variance regularization to supervise which neurons or channels should remain active during pruning.
- Applies a dual-loss objective: standard classification loss plus a variance-based regularization loss to control sparsity dynamics.
- Employs a dynamic sparsity coefficient λs and a variance coefficient α = λv/λs to balance pruning and performance retention.
- Adapts to both unstructured (weight-level) and structured (filter/channel/feature map-level) sparsity through a modular attention module.
- Integrates with existing structured attention frameworks, enhancing them with performance-aware pruning guidance.
- Uses iterative pruning with retraining to maintain accuracy while progressively increasing sparsity.
Experimental results
Research questions
- RQ1Can a supervised attention mechanism effectively control sparsity to prevent accuracy degradation in deep networks?
- RQ2How does GASL perform in comparison to state-of-the-art methods at high sparsity levels (e.g., >70%)?
- RQ3Is the proposed method robust to hyperparameter tuning, particularly the variance regularization coefficient α?
- RQ4Can GASL be applied generically across different network architectures and sparsity types (structured/unstructured)?
- RQ5Does attention-based supervision lead to better computational speedup without sacrificing model accuracy?
Key findings
- On Cifar-100, GASL achieved 48% sparsity with 2.91× speedup and only 25.41% error, outperforming the baseline and prior methods at high sparsity levels.
- At 80% sparsity, GASL reduced accuracy drop to 2.23%, significantly outperforming methods like ℓ1-regularization (4.21%) and structured sparsity learning (2.81%).
- The method demonstrated robustness to α hyperparameter variation across [0.01, 100], with minimal accuracy drop variation, indicating low sensitivity to tuning.
- For MNIST and LeNet, GASL achieved the highest sparsity and speedup levels among compared methods, confirming its generality.
- The attention mechanism effectively guided pruning by preserving critical features, as evidenced by stable performance even under aggressive sparsity.
- The method maintained model complexity and did not increase the number of parameters, despite adding a variance regularization term.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.