Systematic Weight Pruning of DNNs using Alternating Direction Method of Multipliers

Tianyun Zhang, Shaokai Ye, Yipeng Zhang, Yanzhi Wang, Makan Fardad

Abstract

As Deep Neural Networks (DNNs) grow in complexity, their deployment on resource-constrained hardware becomes increasingly difficult. Traditional weight pruning methods often rely on heuristic, iterative "prune-and-retrain" cycles that lack theoretical guarantees and are computationally expensive. This paper introduces a systematic framework that treats weight pruning as a constrained nonconvex optimization problem solved via the Alternating Direction Method of Multipliers (ADMM). By integrating pruning constraints directly into the optimization process, the proposed method achieves significantly higher compression ratios—up to 40x on standard benchmarks—without sacrificing accuracy, while converging faster than previous state-of-the-art approaches.

Introduction

The massive parameter counts of modern DNNs pose a significant barrier to their use in mobile phones, embedded systems, and IoT devices. Weight pruning, which involves removing unnecessary connections to create sparse models, is a common solution. However, the field has long been dominated by heuristic methods, most notably the work by Han et al. (2015), which involves manually pruning weights and retraining to recover accuracy. These methods are often time-consuming and may fail to find the optimal balance between model sparsity and performance. This research seeks to move beyond these heuristics by providing a mathematically rigorous, systematic approach to network pruning.

Methodology: Pruning as Optimization

The core innovation of this work is the formulation of pruning as a mathematical optimization problem with a cardinality constraint. The goal is to minimize the network's loss function while ensuring that the number of non-zero weights in each layer $i$ remains below a specific threshold $l_i$.

Because this cardinality constraint is nonconvex and difficult to solve using standard gradient descent, the authors employ the Alternating Direction Method of Multipliers (ADMM). ADMM breaks the complex optimization problem into three manageable sub-problems that are solved iteratively:

  1. The $W$-step: This step minimizes the network loss function combined with a quadratic penalty term. It functions similarly to standard training but incorporates a specialized form of $L_2$ regularization that accounts for the desired sparsity.
  2. The $Z$-step: This is the "projection" step. The weights are projected onto the feasible set by keeping only the $l_i$ weights with the largest magnitudes and setting all others to zero. Remarkably, while the constraint is nonconvex, this Euclidean projection is computationally trivial.
  3. The $U$-step: This step updates a "dual variable" that tracks the discrepancy between the current weights and the desired sparse structure, acting as a dynamic coordinator for the next iteration.

After the ADMM process converges (typically within 20 iterations), weights near zero are permanently removed. The remaining weights undergo a final round of traditional retraining to polish the model's performance.

Experimental Results

The framework was evaluated using the MNIST benchmark on two architectures: LeNet-300-100 (a fully connected network) and LeNet-5 (a convolutional neural network). The results demonstrated a significant improvement over the previous state-of-the-art:

  • LeNet-300-100: The method achieved a 22.9x reduction in weights (leaving only 4.37% of parameters) with no loss in accuracy. Previous heuristic methods typically achieved only a 12x reduction on the same architecture.
  • LeNet-5: The framework achieved a massive 40.2x reduction in weights (leaving only 2.49% of parameters).
  • Layer-Specific Efficiency: In LeNet-5, convolutional layer weights were reduced by 10x. This is particularly important for hardware deployment, as convolutional layers typically dominate the total floating-point operations (FLOPs).

Discussion and Insights

By using ADMM, pruning is transformed from a destructive post-training act into a constructive constraint that guides the weights during the optimization process. The authors found that the $W$-step—the most computationally intensive part of the process—requires only about 1/10th the steps of training the original network from scratch. This makes the entire framework highly efficient compared to the repetitive retraining required by heuristic methods.

However, some limitations remain. The current evaluation is focused on the MNIST dataset and LeNet architectures; the complexity of pruning deeper networks like ResNets on larger datasets like ImageNet remains to be fully explored. Additionally, the method introduces hyperparameters such as penalty parameters ($\rho_i$) and target sparsity levels ($l_i$) for every layer, which may require tuning. Finally, while the weight count is reduced, "unstructured" pruning (removing random weights) requires specialized software or hardware support to translate into actual speedups on standard GPUs.

Conclusion

This systematic framework demonstrates that treating weight pruning as a constrained optimization problem via ADMM is both theoretically sound and practically superior to traditional heuristics. By achieving higher compression ratios with faster convergence, this approach provides a robust path toward deploying sophisticated DNNs on resource-constrained edge devices.

Summary updated

BibTeX
@inproceedings{zhang2018systematic,
  author = {Tianyun Zhang and Shaokai Ye and Yipeng Zhang and Yanzhi Wang and Makan Fardad},
  title = {{Systematic Weight Pruning of DNNs using Alternating Direction Method of Multipliers}},
  booktitle = {Workshops @ ICLR},
  year = {2018},
}
Figure