Skip to main content
QUICK REVIEW

[Paper Review] A Programmable Approach to Model Compression.

V. Roshan Joseph, Saurav Muralidharan|arXiv (Cornell University)|Nov 6, 2019
Machine Learning and Data ClassificationComputer Science29 references6 citations
TL;DR

This paper introduces Condensa, a programmable model compression system that uses sample-efficient constrained Bayesian optimization to automatically discover optimal sparsity ratios for neural network compression. By enabling users to compose custom compression strategies in Python, Condensa achieves up to 65x memory reduction and 2.22x throughput improvement with as few as 10 samples per search.

ABSTRACT

Deep neural networks frequently contain far more weights, represented at a higher precision, than are required for the specific task which they are trained to perform. Consequently, they can often be compressed using techniques such as weight pruning and quantization that reduce both model size and inference time without appreciable loss in accuracy. Compressing models before they are deployed can therefore result in significantly more efficient systems. However, while the results are desirable, finding the best compression strategy for a given neural network, target platform, and optimization objective often requires extensive experimentation. Moreover, finding optimal hyperparameters for a given compression strategy typically results in even more expensive, frequently manual, trial-and-error exploration. In this paper, we introduce a programmable system for model compression called Condensa. Users programmatically compose simple operators, in Python, to build complex compression strategies. Given a strategy and a user-provided objective, such as minimization of running time, Condensa uses a novel sample-efficient constrained Bayesian optimization algorithm to automatically infer desirable sparsity ratios. Our experiments on three real-world image classification and language modeling tasks demonstrate memory footprint reductions of up to 65x and runtime throughput improvements of up to 2.22x using at most 10 samples per search. We have released a reference implementation of Condensa at this https URL.

Motivation & Objective

  • To address the challenge of manually tuning hyperparameters for model compression across diverse neural networks and deployment platforms.
  • To reduce the computational and human cost of finding optimal compression strategies through automated, sample-efficient search.
  • To enable users to programmatically compose complex compression strategies using a flexible, extensible Python-based interface.
  • To minimize inference time or memory footprint while preserving model accuracy through intelligent hyperparameter search.
  • To provide a scalable, reusable framework for model compression that supports diverse tasks and hardware targets.

Proposed method

  • Condensa allows users to define compression strategies using a Python-based DSL composed of modular operators for pruning and quantization.
  • It formulates the compression search problem as a constrained optimization task, where the objective is to minimize latency or model size under accuracy constraints.
  • The system employs a novel sample-efficient constrained Bayesian optimization algorithm to explore the hyperparameter space with minimal evaluation cost.
  • It dynamically adjusts sparsity ratios across layers based on performance feedback, using probabilistic models to predict optimal configurations.
  • The framework supports both structured and unstructured sparsity, enabling fine-grained control over compression trade-offs.
  • It integrates with existing deep learning frameworks and supports end-to-end compression pipelines from model training to deployment.

Experimental results

Research questions

  • RQ1How can model compression be automated to reduce the need for manual hyperparameter tuning across diverse neural networks and hardware platforms?
  • RQ2What is the minimum number of evaluations required to discover high-quality compression configurations while maintaining accuracy?
  • RQ3Can a programmable interface enable flexible and composable compression strategies without sacrificing optimization efficiency?
  • RQ4How effective is sample-efficient constrained Bayesian optimization in discovering optimal sparsity ratios for model compression?
  • RQ5To what extent can automated compression reduce memory footprint and improve inference throughput in real-world tasks?

Key findings

  • Condensa achieved up to 65x reduction in model memory footprint across three real-world image classification and language modeling tasks.
  • The system improved inference throughput by up to 2.22x while maintaining model accuracy.
  • Optimal compression configurations were discovered using as few as 10 evaluation samples per search, demonstrating high sample efficiency.
  • The framework successfully compressed models across diverse architectures and tasks with minimal user intervention.
  • The programmable interface enabled users to compose complex, task-specific compression strategies with ease and reproducibility.
  • The constrained Bayesian optimization approach outperformed baseline methods in both convergence speed and final solution quality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.