Skip to main content
QUICK REVIEW

[Paper Review] DeepCABAC: Context-adaptive binary arithmetic coding for deep neural network compression

Simon Wiedemann, Heiner Kirchhoffer|arXiv (Cornell University)|May 15, 2019
Advanced Data Compression TechniquesComputer Science10 citations
TL;DR

DeepCABAC proposes a context-adaptive binary arithmetic coding method for compressing deep neural networks by jointly optimizing quantization and entropy coding via a rate-distortion trade-off. It achieves a 63.6× compression ratio on VGG16 with no accuracy loss, reducing the model to just 8.7MB.

ABSTRACT

We present DeepCABAC, a novel context-adaptive binary arithmetic coder for compressing deep neural networks. It quantizes each weight parameter by minimizing a weighted rate-distortion function, which implicitly takes the impact of quantization on to the accuracy of the network into account. Subsequently, it compresses the quantized values into a bitstream representation with minimal redundancies. We show that DeepCABAC is able to reach very high compression ratios across a wide set of different network architectures and datasets. For instance, we are able to compress by x63.6 the VGG16 ImageNet model with no loss of accuracy, thus being able to represent the entire network with merely 8.7MB.

Motivation & Objective

  • Address the gap in post-sparsification compression by integrating quantization and entropy coding more effectively.
  • Overcome limitations of existing methods that decouple quantization from compression, ignore parameter correlations, or use suboptimal entropy coding.
  • Minimize redundancy in bitstream representation while preserving model accuracy through joint optimization of rate and distortion.
  • Enable high compression ratios for diverse network architectures without fine-tuning post-compression.
  • Achieve state-of-the-art compression performance by leveraging CABAC’s efficiency and adapting it to neural network weight distributions.

Proposed method

  • Binarizes quantized weights using a multi-stage binarization process: significance flag, sign bit, magnitude bins, and fixed-length residual coding.
  • Applies context-adaptive binary arithmetic coding (CABAC) with on-the-fly probability model updates based on local weight statistics.
  • Optimizes quantization levels by minimizing a weighted rate-distortion function where rate is computed via CABAC-estimated bitstream size.
  • Uses equidistant quantization points derived from weight standard deviations, enabling fixed-point inference and reduced complexity.
  • Applies compression layer-wise on pre-sparsified networks, excluding biases and normalization layers.
  • Selects optimal quantization granularity (S) via exhaustive search over {0, ..., 256} to maximize compression ratio.

Experimental results

Research questions

  • RQ1Can a context-adaptive entropy coder like CABAC significantly improve compression of sparsified deep neural networks compared to standard methods?
  • RQ2How does coupling quantization with entropy coding via a joint rate-distortion optimization affect model compression and accuracy?
  • RQ3To what extent can DeepCABAC compress diverse network architectures—including VGG16, ResNet50, and MobileNet—without accuracy degradation?
  • RQ4Does the use of adaptive context models and binarization strategies reduce bitstream redundancy compared to scalar Huffman coding or fixed models?
  • RQ5Can DeepCABAC achieve state-of-the-art compression ratios even without fine-tuning after compression?

Key findings

  • DeepCABAC achieves a 63.6× compression ratio on the VGG16 ImageNet model with no accuracy loss, reducing it to 8.7MB.
  • The method improves average compression gains by 74% (±8%) across multiple architectures compared to prior post-sparsification methods.
  • On ResNet50, it achieves a 5.95× compression ratio with 74.12% top-1 accuracy, outperforming previous results.
  • For MobileNet-v1, it achieves a 12.7× compression ratio with 66.18% accuracy, demonstrating effectiveness on lightweight models.
  • On LeNet-300-100 and LeNet5, it achieves compression ratios of 1.82× and 0.72× respectively, with minimal accuracy drop.
  • The method maintains high performance even when sparsity levels are lower than in prior work, indicating robustness to sparsity variance.

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.