SequentialAttention++ for Block Sparsification: Differentiable Pruning Meets Combinatorial Optimization

Taisuke Yasuda, Kyriakos Axiotis, Gang Fu, Mohammadhossein Bateni, Vahab Mirrokni

Abstract

SequentialAttention++ bridges the gap between differentiable pruning (importance scoring) and combinatorial optimization (searching for the best sparse subset). By treating differentiable masks as a form of nonconvex regularization, the authors develop a new algorithm that uses a gradual "sparsification phase" to achieve state-of-the-art accuracy in block-wise neural network pruning on ImageNet and Criteo.

Introduction

Neural network pruning—removing redundant parameters to make models smaller and faster—is a classic challenge in machine learning. Historically, researchers have approached this from two orthogonal directions: importance scoring (using gradients or magnitudes) and combinatorial optimization (using iterative algorithms like Iterative Hard Thresholding).

While unstructured pruning is well-studied, structured pruning (removing entire blocks of weights) is more practical for hardware acceleration. However, block pruning often risks destroying model accuracy. SequentialAttention++ seeks a unified framework that combines differentiable importance scores to guide a sophisticated combinatorial search.

Methods

The authors introduce SequentialAttention++, a fusion of two existing techniques:

  1. Sequential Attention: A method using a trainable softmax mask to "attend" to important blocks.
  2. ACDC: An algorithm that alternates between "dense" training phases and "sparse" phases where weights are masked.
Weight partitioning and softmax masking in SequentialAttention++.

The Sparsification Phase

The core innovation is the introduction of a Sparsification Phase between the dense and sparse training periods. Instead of an abrupt jump from 0% to high sparsity (e.g., 90%), which can shock the model and ignore weight correlations, SequentialAttention++ uses an exponential pruning schedule. This allows the remaining weights to re-adjust and compensate for the loss of their neighbors.

Comparison of sparsity schedules: ACDC (step) vs. SA++ (gradual exponential).

Theoretical Insights

  • Differentiable Pruning as Nonconvex Regularization: The authors prove that many differentiable pruning tricks (like squaring weights or using softmax masks) are mathematically equivalent to applying specific nonconvex regularizers to a Group LASSO problem.
  • The "Rich Get Richer" Dynamic: By parameterizing weights with masks, large weights evolve to become even more dominant while small ones are driven to zero. The paper proves that for a wide class of these regularizers, the global optimum is unique and group-sparse.
  • Attention vs. Magnitude: For large block sizes, raw weight magnitude (Frobenius norm) is a poor proxy for importance. Softmax attention scores proved much more reliable at identifying critical blocks.

Experimental Results

The approach was evaluated on two major benchmarks:

  • ImageNet (ResNet50): SequentialAttention++ consistently outperformed the state-of-the-art ACDC algorithm. At a block size of 64x64 and ~79% sparsity, it achieved a validation accuracy of 70.30%, significantly higher than ACDC’s 67.36%.
  • Criteo (CTR Prediction): The performance gap widened at higher sparsities and larger block sizes. For 99% sparsity and block size 20, SequentialAttention++ maintained a validation loss of 0.5253, whereas ACDC lagged at 0.5427.

The method adds negligible overhead (one trainable parameter per block), making it highly efficient for practical block sizes ($\ge 8$).

Limitations and Future Work

The theoretical proofs currently rely on objective function convexity, which holds for models like logistic regression but not for deep neural networks. Characterizing local minima in the non-convex landscape of deep learning remains an open challenge. Additionally, future work may investigate whether nonconvex regularizers can lead to faster convergence during the training process itself.

Summary updated

BibTeX
@inproceedings{yasuda2024sequentialattention,
  author = {Taisuke Yasuda and Kyriakos Axiotis and Gang Fu and Mohammadhossein Bateni and Vahab Mirrokni},
  title = {{SequentialAttention++ for Block Sparsification: Differentiable Pruning Meets Combinatorial Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=BrPZMOQiSN},
}
Figure