Skip to main content
QUICK REVIEW

[Paper Review] CAT: Compression-Aware Training for bandwidth reduction

Chaim Baskin, Brian Chmiel|arXiv (Cornell University)|Sep 25, 2019
Algorithms and Data CompressionComputer Science40 references10 citations
TL;DR

CAT (Compression-Aware Training) reduces memory bandwidth in CNNs by training models to produce low-entropy feature maps, enabling efficient entropy coding during inference. By minimizing activation entropy via a differentiable loss term, CAT achieves up to 4× memory bandwidth reduction—e.g., 1.79 bits per value on ResNet-34 with only 0.2% accuracy drop—without hardware changes.

ABSTRACT

Convolutional neural networks (CNNs) have become the dominant neural network architecture for solving visual processing tasks. One of the major obstacles hindering the ubiquitous use of CNNs for inference is their relatively high memory bandwidth requirements, which can be a main energy consumer and throughput bottleneck in hardware accelerators. Accordingly, an efficient feature map compression method can result in substantial performance gains. Inspired by quantization-aware training approaches, we propose a compression-aware training (CAT) method that involves training the model in a way that allows better compression of feature maps during inference. Our method trains the model to achieve low-entropy feature maps, which enables efficient compression at inference time using classical transform coding methods. CAT significantly improves the state-of-the-art results reported for quantization. For example, on ResNet-34 we achieve 73.1% accuracy (0.2% degradation from the baseline) with an average representation of only 1.79 bits per value. Reference implementation accompanies the paper at https://github.com/CAT-teams/CAT

Motivation & Objective

  • Address the high memory bandwidth and energy cost of deep neural network inference in hardware accelerators.
  • Reduce the memory footprint of feature maps beyond standard quantization by leveraging entropy-based compression.
  • Develop a training method that makes activations more compressible without sacrificing model accuracy.
  • Enable universal, hardware-agnostic bandwidth reduction through differentiable entropy regularization during training.
  • Explore the rate-distortion tradeoff between compression efficiency and model accuracy in quantized networks.

Proposed method

  • Introduce a differentiable entropy regularization loss that penalizes high entropy in quantized feature maps during training.
  • Combine the standard task loss (e.g., cross-entropy) with a weighted entropy penalty term, controlled by hyperparameter λ.
  • Use soft entropy approximation (via Gumbel-Softmax or similar) to make the entropy term differentiable through quantization.
  • Train models to produce quantized activations with skewed distributions (e.g., sharp peaks at zero), reducing entropy and improving compressibility.
  • Apply standard entropy coding (e.g., Huffman or arithmetic coding) at inference to compress the low-entropy quantized activations.
  • Demonstrate the method across multiple architectures: ResNet, MobileNetV2, and SSD512 with VGG backbone, under various bit-widths and λ values.

Experimental results

Research questions

  • RQ1Can training deep networks to minimize activation entropy improve compressibility without degrading accuracy?
  • RQ2How does entropy regularization affect the rate-distortion tradeoff in quantized CNNs?
  • RQ3What is the impact of differentiable entropy regularization on model robustness and convergence across random initializations?
  • RQ4How does the method scale across different network architectures and bit-widths (e.g., 5–8 bits) in classification and detection tasks?
  • RQ5Can entropy-based compression be universally applied across hardware platforms with minimal inference overhead?

Key findings

  • On ResNet-34, CAT achieves 73.1% top-1 accuracy (0.2% drop from baseline) with only 1.79 bits per value, enabling 2.23× higher compression than unregularized training.
  • For ResNet-18, the method reduces average activation representation to 1.515 bits per value (5-bit quantization), with entropy close to 1 bit, enabling near-optimal compression.
  • The rate-distortion tradeoff shows that entropy can be reduced below 1 bit per value at the cost of 2% accuracy drop, demonstrating strong compression potential.
  • The method is robust across multiple random seeds: ResNet-18 achieves 69.122% ± 0.016 accuracy and 1.5150 ± 0.0087 bits per value, showing minimal variance.
  • Replacing soft entropy with a compressibility loss yields nearly identical results (e.g., 69.36% accuracy vs. 69.49% for entropy loss), confirming that entropy minimization is the key mechanism.
  • Increasing batch size from 16 to 64 improved ResNet-50 accuracy by over 0.5% with only 0.1 bits/value increase in entropy, indicating training stability benefits.

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.