Skip to main content
QUICK REVIEW

[Paper Review] To Compress, or Not to Compress: Characterizing Deep Learning Model Compression for Embedded Inference

Qing Qin, Jie Ren|arXiv (Cornell University)|Oct 21, 2018
Advanced Neural Network ApplicationsComputer Science19 references7 citations
TL;DR

This paper provides a comprehensive empirical characterization of model compression techniques—pruning and quantization—on the NVIDIA Jetson TX2 embedded platform, evaluating their impact on inference speed, energy use, model size, and accuracy across 11 diverse deep learning models. It demonstrates that compression effectiveness is highly architecture- and target-specific, with no universal optimal setting, and offers actionable guidelines for selecting compression strategies based on application constraints.

ABSTRACT

The recent advances in deep neural networks (DNNs) make them attractive for embedded systems. However, it can take a long time for DNNs to make an inference on resource-constrained computing devices. Model compression techniques can address the computation issue of deep inference on embedded devices. This technique is highly attractive, as it does not rely on specialized hardware, or computation-offloading that is often infeasible due to privacy concerns or high latency. However, it remains unclear how model compression techniques perform across a wide range of DNNs. To design efficient embedded deep learning solutions, we need to understand their behaviors. This work develops a quantitative approach to characterize model compression techniques on a representative embedded deep learning architecture, the NVIDIA Jetson Tx2. We perform extensive experiments by considering 11 influential neural network architectures from the image classification and the natural language processing domains. We experimentally show that how two mainstream compression techniques, data quantization and pruning, perform on these network architectures and the implications of compression techniques to the model storage size, inference time, energy consumption and performance metrics. We demonstrate that there are opportunities to achieve fast deep inference on embedded systems, but one must carefully choose the compression settings. Our results provide insights on when and how to apply model compression techniques and guidelines for designing efficient embedded deep learning systems.

Motivation & Objective

  • To understand the performance trade-offs of model compression techniques in real-world embedded systems.
  • To evaluate how pruning and quantization affect inference time, energy consumption, model size, and accuracy on resource-constrained devices.
  • To identify when and how to apply compression techniques effectively for embedded deep learning workloads.
  • To provide data-driven guidelines for optimizing model compression based on application-specific constraints.
  • To reveal that model size reduction does not always lead to faster inference, challenging assumptions in the field.

Proposed method

  • Conducted extensive experiments on the NVIDIA Jetson TX2 platform using 11 representative DNNs from image classification and NLP domains.
  • Applied two mainstream compression techniques: magnitude-based pruning and post-training weight quantization to 8-bit and 4-bit precision.
  • Measured and compared key metrics: inference latency, energy consumption, model storage size, and prediction accuracy pre- and post-compression.
  • Used a quantitative, cross-architecture evaluation framework to analyze compression behavior across diverse network architectures.
  • Evaluated the combined effect of pruning and quantization to assess synergistic gains.
  • Analyzed the impact of compression on different network types, including CNNs and RNNs, to identify architecture-specific trends.

Experimental results

Research questions

  • RQ1How do pruning and quantization affect inference time, energy consumption, model size, and accuracy across diverse DNN architectures on embedded platforms?
  • RQ2Does reducing model size through compression always lead to faster inference on embedded devices?
  • RQ3Which compression technique—pruning or quantization—offers better trade-offs for specific network types like RNNs or CNNs?
  • RQ4What are the performance implications of combining pruning and quantization, and when does the overhead of quantization outweigh pruning benefits?
  • RQ5Can we identify a Pareto-optimal configuration of compression parameters that balances size, speed, and accuracy for embedded deployment?

Key findings

  • Pruning enables fine-grained control over prediction accuracy and is particularly effective for RNNs due to their recurrent structure.
  • Quantization reduces model size more effectively than pruning but may not always reduce inference time due to hardware-specific memory access patterns.
  • The performance gain from compression is highly dependent on the underlying neural network architecture, with no one-size-fits-all configuration.
  • Combining pruning and quantization can yield synergistic improvements, but only when the quantization overhead does not negate gains from sparsity.
  • Model size reduction does not guarantee faster inference—some compressed models exhibit increased latency due to inefficient memory access or computation patterns.
  • For applications requiring high confidence in predictions, such as surveillance, pruning is preferable due to its controllable accuracy trade-off.

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.