A Surrogate Lagrangian Relaxation-based Model Compression for Deep Neural Networks

Deniz Gurevin, Shanglin Zhou, Lynn Pepin, Bingbing Li, Mikhail A. Bragin, Caiwen Ding, Fei Miao

Abstract

Network pruning is a widely used technique to reduce computation cost and model size for deep neural networks. However, the typical three-stage pipeline, i.e., training, pruning and retraining (fine-tuning) significantly increases the overall training trails. In this paper, we develop a systematic weight-pruning optimization approach based on Surrogate Lagrangian relaxation (SLR), which is tailored to overcome difficulties caused by the discrete nature of the weight-pruning problem while ensuring fast convergence. We further accelerate the convergence of the SLR by using quadratic penalties. Model parameters obtained by SLR during the training phase are much closer to their optimal values as compared to those obtained by other state-of-the-art methods. We evaluate the proposed method on image classification tasks, i.e., ResNet-18 and ResNet-50 using ImageNet, and ResNet-18, ResNet-50 and VGG-16 using CIFAR-10, as well as object detection tasks, i.e., YOLOv3 and YOLOv3-tiny using COCO 2014 and Ultra-Fast-Lane-Detection using TuSimple lane detection dataset. Experimental results demonstrate that our SLR-based weight-pruning optimization approach achieves higher compression rate than state-of-the-arts under the same accuracy requirement. It also achieves a high model accuracy even at the hard-pruning stage without retraining (reduces the traditional three-stage pruning to two-stage). Given a limited budget of retraining epochs, our approach quickly recovers the model accuracy.

Introduction

Deep Neural Networks (DNNs) have achieved remarkable success in various fields, but their high computational and memory requirements hinder deployment on resource-constrained edge devices. Weight pruning is a common strategy to mitigate this by removing redundant parameters. However, the standard industry pipeline—comprising training, pruning, and extensive fine-tuning—is computationally expensive. Current optimization methods like the Alternating Direction Method of Multipliers (ADMM) often struggle with the discrete "on/off" nature of pruning constraints, leading to slow convergence and significant accuracy drops immediately after pruning.

Methodology: Surrogate Lagrangian Relaxation (SLR)

To address these challenges, we propose a weight-pruning optimization approach based on Surrogate Lagrangian Relaxation (SLR). We formulate pruning as a constrained optimization problem where the objective is to minimize the loss function subject to a cardinality constraint on the number of non-zero weights.

Key components of the SLR approach include:

  • Decomposition: The complex pruning problem is broken into simpler sub-problems: one focusing on the loss function and the other on the cardinality constraint.
  • Surrogate Optimality: Unlike traditional methods that require exact solutions for sub-problems, SLR utilizes surrogate optimality conditions. It updates Lagrangian multipliers based on approximate solutions, preventing the "zigzagging" behavior common in discrete optimization and accelerating convergence.
  • Quadratic Penalties: The integration of quadratic terms into the relaxation helps the algorithm better respect constraints, further stabilizing and speeding up the training process.

Experimental Results

The SLR method was evaluated across multiple architectures and datasets, including CIFAR-10, ImageNet, COCO 2014, and TuSimple.

Image Classification Performance

On the CIFAR-10 dataset, SLR demonstrated a significant advantage in both convergence speed and accuracy retention. For ResNet-18, SLR achieved 89.93% accuracy immediately after pruning, whereas ADMM only reached 72.84% at the same 8.71x compression rate. This high initial accuracy effectively reduces the traditional three-stage pruning process to two stages, as the model requires minimal to no retraining.

Accuracy vs. Epoch for SLR and ADMM on CIFAR-10 across ResNet-18, ResNet-50, and VGG-16 architectures.

As shown in Figure 1, SLR (blue line) converges to the baseline accuracy (dashed line) significantly faster than ADMM (red line) across all tested architectures. For VGG-16, SLR reached the target accuracy threshold nearly 3x faster than the state-of-the-art ADMM.

Scalability to Large-Scale Datasets

The efficiency of SLR extends to the ImageNet dataset. In tests with ResNet-18 and ResNet-50, SLR consistently maintained higher accuracy throughout the training epochs compared to ADMM, demonstrating its robustness for large-scale applications.

Accuracy vs. Epoch for SLR and ADMM on ImageNet for ResNet-18 and ResNet-50.

Object and Lane Detection

Beyond classification, SLR excelled in object detection tasks. On the TuSimple lane detection benchmark, SLR maintained 89.72% accuracy at an extreme 77.67x compression rate, while ADMM's accuracy dropped to 46.09% under identical constraints. Similarly, for YOLOv3-tiny on COCO 2014, SLR achieved higher Mean Average Precision (mAP) than ADMM across all tested compression levels.

Conclusion

Surrogate Lagrangian Relaxation provides a powerful framework for DNN model compression. By effectively handling discrete constraints and ensuring fast multiplier convergence, SLR achieves higher compression rates and superior accuracy retention compared to existing methods. Its ability to maintain high accuracy immediately after pruning significantly reduces the overall training time, offering a more efficient path for deploying advanced DNNs on edge hardware.

Summary updated

BibTeX
@inproceedings{gurevin2021surrogate,
  author = {Deniz Gurevin and Shanglin Zhou and Lynn Pepin and Bingbing Li and Mikhail A. Bragin and Caiwen Ding and Fei Miao},
  title = {{A Surrogate Lagrangian Relaxation-based Model Compression for Deep Neural Networks}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.24963/ijcai.2021/344},
}
Figure