Structured Sparsity Inducing Adaptive Optimizers for Deep Learning

Tristan Deleu, Yoshua Bengio

TL;DR

This paper introduces a method to bring structured sparsity (such as pruning entire convolutional channels or matrix rows) to deep learning models trained with adaptive optimizers like Adam. By deriving and efficiently approximating weighted proximal operators for group-based penalties, the authors achieve significant model compression directly during training without sacrificing convergence guarantees or requiring brittle post-processing.

What Problem Does This Paper Address?

Deep neural networks are notoriously overparameterized. Pruning weights reduces their memory footprint and speeds up inference, but the way you prune matters. Standard $\ell_1$ regularization leads to unstructured sparsity—randomly scattered zeros that standard hardware (like GPUs) cannot easily accelerate. Conversely, structured sparsity groups parameters together (e.g., entire convolutional channels or matrix rows) and zeroes them out in blocks, leading to immediate hardware speedups.

Figure 1. Structured sparsity in neural networks. (Left) An example of the effect of unstructured sparsity inducing penalties, e.g. the ℓ1 penalty, on a convolutional layer. The zeros of each filter are represented in blue. (Middle) An example of the effect of structured sparsity inducing penalties, e.g. the mixed ℓ1/ℓ2 norm, on a similar convolutional layer. The filters are grouped together, depending on their input channel, and whole groups are encouraged to be equal to zero: this is a channel-wise structure (Wen et al., 2016). Here, the sparsity pattern effectively removes the effect of the second input channel from the network’s predictions. (Right) Graphs of the two structured sparsity inducing penalties (in 1-D, for visualization) studied in this paper. The ℓ1 norm applies a larger penalty for large values of x, whereas the Minimax Concave Penalty (MCP) saturates after a certain point.

Modern deep learning relies heavily on adaptive optimizers (Adam, RMSprop, Adagrad) that dynamically rescale gradients coordinate by coordinate. Standard proximal gradient methods—the mathematical gold standard for cleanly handling non-differentiable sparsity penalties—assume a uniform space and fail when combined with this coordinate-wise rescaling. While "weighted" proximal operators can correct for this in unstructured sparsity, doing so for structured (group) penalties has remained an open challenge. Because the optimizer's rescaling factors vary within each group, they break the mathematical symmetry needed for clean, closed-form solutions.

Methods

The authors derive the weighted proximal operator for two key structured sparsity regularizers:

  1. Mixed $\ell_1/\ell_2$ norm (Group Lasso)
  2. Group Minimax Concave Penalty (group MCP), which reduces the estimation bias that typically plagues large weights under standard lasso penalties.

Because coordinate-wise rescaling rules out a closed-form solution, the authors formulate the weighted proximal operator as a one-dimensional root-finding problem ($\theta^*$). They solve this numerically using the Newton-Raphson algorithm, which converges rapidly in practice.

Crucially, the authors provide a rigorous convergence analysis. They prove that using this inexact (numerically approximated) proximal operator inside an adaptive proximal framework (like ProxGen) fully preserves the non-asymptotic convergence guarantees of the exact method, provided the approximation error decreases sufficiently over time.

Additionally, they introduce an indirect pruning procedure: zeroing out a channel's outgoing weights in layer $t$ means that the corresponding input channel in layer $t+1$ no longer contributes to the network. The algorithm prunes these cascading dependencies from right to left.

Datasets

The method was evaluated on standard benchmarks across two distinct domains:

  • CIFAR-10: Used for training computer vision models (VGG-16 and ResNet-34).
  • SQuAD 1.1: A large-scale question-answering dataset used for fine-tuning a language transformer (BERT).

Key Insights and Ideas

  • The Geometry of Rescaling: Adaptive optimizers distort the geometry of the parameter space. A group penalty expects a spherical constraint ($\ell_2$ norm), but coordinate-wise scaling warps this sphere into an ellipsoid, making exact projection impossible without iterative numerical methods.
  • Inexactness is Safe: You don't need perfect mathematical precision at every optimization step. As long as the root-finding algorithm gets closer to the true value ($\theta^*$) as training progresses, the overall optimization trajectory remains stable and theoretically sound.
  • The Ripple Effect: Pruning isn't isolated. Thanks to the network's layered architecture, direct structured pruning in one layer unlocks "free" indirect pruning in adjacent layers, significantly multiplying the total parameter reduction.

Key Results

  • True Zeros vs. Brittle Thresholds: Traditional subgradient methods fail to find exact zeros during training, requiring a highly sensitive post-processing threshold step that can catastrophically degrade accuracy. The proposed proximal method naturally drives groups to exact zeros during training.
  • VGG-16 Compression: Reached a low level of group sparsity (~22% of groups remaining) while maintaining 89.55% accuracy (compared to a 90.76% dense baseline). After applying indirect pruning, the effective network size plummeted to just 3% of the original parameters.
Layer-by-layer parameter reduction in VGG-16 and BERT after pruning.
  • BERT Scaling: Group MCP achieved 61.33% group sparsity with an F1 score of 79.95 (baseline 88.27), demonstrating that structured sparsity can scale to massive transformer architectures.
  • Computational Efficiency: The Newton-Raphson approach proved to be roughly 3x faster than bisection-based alternatives and far more efficient than generic proximal approximation methods like AdaProx.

Limitations and Future Work

  • Transformer Grouping Constraints: For BERT, the authors penalized rows of the key, query, and value matrices independently. Grouping these matrices together under a single joint penalty could yield much higher compression rates.
  • Non-Disjoint Groups: The current formulation assumes groups are entirely disjoint. Extending this to overlapping or tree-structured hierarchies remains an open avenue.
  • Broader Applications: Beyond network pruning, these weighted proximal operators could be applied to other structured optimization problems, such as causal structure discovery.

Summary updated

BibTeX
@misc{deleu2021structured,
  author = {Tristan Deleu and Yoshua Bengio},
  title = {{Structured Sparsity Inducing Adaptive Optimizers for Deep Learning}},
  year = {2021},
  eprint = {2102.03869},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.03869},
}
Figure