Deep Learning-based Image Compression with Trellis Coded Quantization

Binglin Li, Mohammad Akbari, Jie Liang, Yang Wang

Abstract

This paper presents an end-to-end neural image compression framework that integrates Trellis Coded Quantization (TCQ) to improve rate-distortion performance. By replacing standard uniform scalar quantization with a structured vector quantization approach, the authors achieve significant gains at low bitrates, outperforming traditional codecs and standard neural baselines on benchmark datasets like Kodak and Tecnick.

Introduction

In deep learning-based image compression, an encoder transforms an image into a latent representation, which must be quantized into discrete values for storage or transmission. Most modern architectures utilize Uniform Scalar Quantization (SQ) due to its simplicity. However, SQ is mathematically suboptimal because it induces cubic Voronoi regions that do not pack high-dimensional space efficiently.

While Vector Quantization (VQ) is theoretically optimal, its computational complexity grows exponentially with dimensionality. This research aims to bridge the gap by employing Trellis Coded Quantization (TCQ)—a method that offers VQ-like performance with the computational efficiency of a trellis search.

Proposed Architecture

The authors propose an end-to-end architecture consisting of three main components: a convolutional encoder/decoder, a TCQ module, and an entropy model.

System architecture of the proposed end-to-end image compression model, featuring a CNN encoder, TCQ quantizer, and PixelCNN++ entropy model.
  1. Encoder/Decoder: A convolutional neural network (CNN) downsamples the image. The decoder uses "PixelShuffle" layers to progressively reconstruct the image from low to high resolution.
  2. Trellis Coded Quantizer (TCQ): Instead of rounding each latent value independently, TCQ finds an optimal path through a trellis (using a Viterbi-like approach) to minimize distortion.
  3. Entropy Model: The framework employs PixelCNN++ to estimate the probability distribution of the quantized latents, allowing the network to minimize the joint Rate-Distortion (R-D) cost: $D + \lambda H$.

The "Soft-to-Hard" Training Strategy

Quantization is inherently non-differentiable. To enable backpropagation, the authors use a "soft quantization" strategy during training—a differentiable approximation that allows gradients to flow. As training progresses, they transition to "hard" assignments to match actual inference behavior. Additionally, they introduced a specific indexing method to ensure the indices generated by the trellis search remain spatially correlated for effective entropy coding.

Experimental Results

The model was trained on the ADE20K dataset and evaluated on the Kodak PhotoCD and Tecnick SAMPLING benchmarks.

Rate-distortion performance (MS-SSIM vs. bpp) on Kodak (a) and Tecnick (b) datasets, comparing the proposed TCQ method against traditional and neural baselines.

Quantitative Performance

  • TCQ vs. SQ: In head-to-head comparisons on the same baseline model, TCQ consistently outperformed SQ. At low bitrates (approximately 0.07 bits per pixel), TCQ achieved a 0.41 dB gain in PSNR on the Kodak dataset and a 0.68 dB gain on the Tecnick dataset.
  • Competitive Benchmarking: The model achieved results comparable to or better than established deep learning models (e.g., Ballé et al. 2017) and traditional codecs like JPEG, JPEG2000, and BPG at low bitrates.

Qualitative Analysis

Visually, the TCQ-based model preserves textures—such as cloud patterns and ripples—significantly better than JPEG or JPEG2000. Traditional codecs often suffer from "blocking" or "blurring" artifacts at high compression ratios, whereas the proposed method maintains structural integrity.

Conclusion

TCQ effectively enhances neural image compression by providing more flexible quantization regions than standard scalar methods. While the performance gap narrows at higher bitrates where model capacity becomes the primary bottleneck, TCQ remains a powerful tool for low-bitrate efficiency. Future work may involve integrating more efficient entropy models, such as hyper-priors, to further improve bitrate estimation.

Summary updated

BibTeX
@inproceedings{li2020deep,
  author = {Binglin Li and Mohammad Akbari and Jie Liang and Yang Wang},
  title = {{Deep Learning-based Image Compression with Trellis Coded Quantization}},
  booktitle = {DCC},
  year = {2020},
  doi = {10.1109/dcc47342.2020.00009},
}
Figure