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

A Programmable Approach to Model Compression

Vinu Joseph, Saurav Muralidharan, Animesh Garg, Michael Garland, Ganesh GopalakrishnanarXiv 2019

Introduction

Deep neural networks (DNNs) have revolutionized fields from computer vision to natural language processing, but their deployment is often hindered by their massive size and computational requirements. While compression techniques like pruning and quantization exist, they are notoriously difficult to apply effectively. Finding the optimal balance between model size, inference speed, and accuracy typically requires exhaustive manual tuning and is highly dependent on the specific hardware target.

The Condensa Framework

Condensa is a programmable framework designed to simplify and automate the model compression pipeline. Unlike traditional tools that rely on rigid configuration files, Condensa provides an imperative Python-based library. This allows developers to compose complex compression strategies using standard programming constructs like loops and conditional logic.

The Condensa Framework architecture, illustrating the two-phase optimization process and the L-C optimizer.

The framework's core innovation lies in its two-stage optimization process:

  1. Sample-Efficient Bayesian Optimization (BO): Condensa uses a novel acquisition function, Domain-Restricted Upper Confidence Bound (DR-UCB), to find the maximum global sparsity that maintains accuracy within a user-defined threshold. This process is highly efficient, typically requiring fewer than 10 search iterations.
  2. Accuracy Recovery via Learning-Compression (L-C): Once a target sparsity is identified, the L-C algorithm alternates between "learning" (training with a penalty) and "compression" (finding the best mathematical representation of weights). This approach automatically determines the optimal sparsity distribution across different layers of the network.

Experimental Evaluation

The authors evaluated Condensa across several standard benchmarks including CIFAR-10 (VGG-19, ResNet56), ImageNet (VGG-16), and WikiText-2 (LSTM). These experiments tested various compression schemes, including unstructured pruning, quantization, filter pruning for CNNs, and block pruning for LSTMs.

Key Results and Insights

Condensa consistently achieved state-of-the-art results with minimal search overhead. A key insight from the study is that monotonicity in the accuracy-sparsity relationship can be exploited to rapidly shrink the search space. Furthermore, the framework demonstrates that non-uniform layer-wise sparsity is essential for maximizing hardware speedups, as later layers in convolutional networks often tolerate significantly higher compression.

Performance comparison of Condensa against baselines and other state-of-the-art compression methods across various datasets and architectures.

As shown in the results table, Condensa achieved a 188x reduction in memory footprint for VGG-19 on CIFAR-10 using a combined pruning and quantization strategy. When optimizing for throughput, it delivered a 2.59x speedup on GPUs with filter pruning while maintaining or even slightly improving baseline accuracy. On ImageNet, the framework achieved a 29.29x memory reduction, demonstrating its scalability to large-scale datasets.

Conclusion and Future Work

Condensa represents a significant step toward making model compression accessible and hardware-aware. By combining a programmable interface with efficient automated tuning, it removes the manual trial-and-error often associated with pruning and quantization.

While the current search process is highly efficient in terms of iterations, the computational cost of evaluating large models on massive datasets remains a challenge. Future work will focus on extending the Bayesian optimization engine to handle multiple hyperparameters simultaneously, such as automatically selecting optimal block sizes or mixed-precision data types for different hardware backends.

Summary updated

BibTeX
@misc{joseph2019programmable,
  author = {Vinu Joseph and Saurav Muralidharan and Animesh Garg and Michael Garland and Ganesh Gopalakrishnan},
  title = {{A Programmable Approach to Model Compression}},
  year = {2019},
  eprint = {1911.02497},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.02497},
}
Figure