NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Model compression as constrained optimization, with application to neural nets. Part V: combining compressions

Miguel Á. Carreira-Perpiñán, Yerlan IdelbayevarXiv 2021

Abstract

Deploying large-scale neural networks on edge devices requires significant model compression. While techniques like quantization, pruning, and low-rank approximation are often used in isolation or sequentially, this paper proposes a novel additive combination framework. By framing compression as a constrained optimization problem solved via the Learning-Compression (LC) algorithm, the authors demonstrate that combining methods additively allows them to compensate for each other's weaknesses. This approach yields massive compression ratios—up to 117x on AlexNet—without sacrificing accuracy.

Introduction

As neural networks grow in complexity, their memory and computational footprints become prohibitive for resource-constrained environments like IoT sensors and mobile devices. Traditional compression strategies typically involve a single method or a greedy sequential pipeline (e.g., pruning followed by quantization). However, such sequential approaches are often suboptimal because they do not account for the interactions between different compression constraints. This work introduces a simultaneous optimization strategy where the final weight matrix is a sum of multiple compressed components, leading to superior performance and efficiency.

The Additive Compression Framework

The core innovation of this research is the definition of a weight matrix $\mathbf{W}$ as the sum of separately compressed parts: $\mathbf{W} = \mathbf{W}_1 + \mathbf{W}_2 + ...

  • \mathbf{W}_K$. For instance, a network might represent its weights as the sum of a 1-bit quantized matrix (binarization) and a highly sparse matrix (pruning).
Visual comparison of individual and additive compression techniques.

This additive structure is computationally efficient for inference. Because matrix-vector multiplication is distributive, the output can be computed as $\mathbf{W}x = \mathbf{W}_1x + \mathbf{W}_2x$. In hardware, this allows for fast, specialized kernels to handle the quantized part while a sparse engine handles the corrections.

The Learning-Compression (LC) Algorithm

To optimize these additive models, the authors utilize the Learning-Compression (LC) algorithm. This framework treats compression as a constrained optimization problem, alternating between two primary phases:

  1. Learning (L) Step: The model weights are updated to minimize the task loss (e.g., cross-entropy) using standard stochastic gradient descent (SGD). A quadratic penalty term is added to pull the weights toward a form that satisfies the compression constraints.
  2. Compression (C) Step: The current weights are projected onto the additive compressed space. Since finding the optimal sum is non-trivial, the authors employ an alternating optimization approach: they freeze all components except one, optimize that component, and repeat the process until convergence.

Key Insights: Pruning as Correction

A significant finding is that in an additive setup (e.g., Quantization + Pruning), the role of pruning changes. Instead of simply removing unimportant weights, the sparse matrix acts as a high-precision correction layer. It "rescues" the model from the most damaging errors introduced by heavy quantization. This is particularly evident in network biases; the algorithm naturally allocates sparse corrections to biases, which are known to be highly sensitive to precision loss.

Furthermore, the research highlights that different architectures have distinct "personalities." ResNets and AlexNet benefit most from Quantization + Pruning, whereas VGG-style networks are better served by a combination of Low-Rank Approximation and Pruning.

Experimental Results

The additive approach was validated across several standard benchmarks:

  • ResNet110 on CIFAR-10: Achieved a 17x compression ratio using 1-bit quantization and 3% sparse corrections, remarkably improving test error from 6.02% to 5.58%.
  • VGG16 on CIFAR-10: A combination of low-rank approximation and 2% sparse corrections resulted in a ~61x compression with negligible accuracy loss.
  • AlexNet on ImageNet: By combining low-rank approximation, 1-bit binarization, and sparse corrections, the model was compressed 117x (down to ~2 MB) with no degradation in top-1 or top-5 accuracy.
  • Hardware Deployment: On an NVIDIA Jetson Nano, these compressed models provided real-world inference speedups of up to 3.46x.

Conclusion

By moving beyond sequential compression to a joint, additive optimization framework, this work demonstrates that "1+1" can indeed equal "3." The complementary nature of quantization, pruning, and low-rank approximation allows for extreme compression ratios that were previously unattainable. Future work will explore non-additive combinations and the theoretical convergence properties of these mixed-constraint optimization problems.

Summary updated

BibTeX
@misc{carreiraperpinan2021model,
  author = {Miguel Á. Carreira-Perpiñán and Yerlan Idelbayev},
  title = {{Model compression as constrained optimization, with application to neural nets. Part V: combining compressions}},
  year = {2021},
  eprint = {2107.04380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.04380},
}
Figure