NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Joint Autoregressive and Hierarchical Priors for Learned Image Compression

David Minnen, Johannes Ballé, George Toderici

Introduction

In the realm of image compression, the primary objective is to represent an image using as few bits as possible while maintaining high visual quality. Modern "learned" compression techniques utilize deep neural networks—specifically autoencoders—to map image pixels into a compressed "latent space."

The efficiency of this compression process depends heavily on the entropy model, a component that estimates the probability distribution of these latents. If the model can accurately predict a latent value, it requires fewer bits to store. Historically, research has focused on two distinct approaches: "hierarchical" models, which send extra side information to help the decoder, and "autoregressive" models, which predict a value based on previously decoded neighboring pixels. However, neither approach alone had managed to consistently outperform top-tier traditional codecs like BPG (based on HEVC/H.265).

This paper introduces a state-of-the-art learned image compression model that combines both hierarchical priors and autoregressive models. By leveraging these complementary techniques to better predict the probability distribution of compressed data, the authors produced the first machine-learning-based codec to outperform the industry-standard BPG format on both PSNR and MS-SSIM quality metrics.

Methods: A Joint Architecture

The authors propose a joint architecture that synergizes the strengths of both prior types, trained end-to-end using a rate-distortion loss function to balance bit usage against image distortion.

Architecture of the joint compression model

The system is built on four core components:

  1. The Core Autoencoder: A standard Convolutional Neural Network (CNN)-based encoder and decoder that transforms images into quantized latents ($y$) and reconstructs them back into pixels.
  2. The Hyperprior (Hierarchical): An additional sub-network that acts as "side information." It captures global spatial dependencies, effectively telling the decoder roughly what to expect in different regions of the image.
  3. The Context Model (Autoregressive): A model utilizing masked convolutions (similar to PixelCNN) that predicts the current latent value based on the values of its immediate spatial neighbors that have already been decoded.
  4. Conditional Gaussian Entropy Model: Instead of just predicting the "scale" (variance) of the data distribution like previous models, this entropy model predicts both the mean ($\mu$) and scale ($\sigma$). This allows the model to "center" its predictions more accurately, significantly reducing the remaining error (entropy).

Key Insights

A major takeaway from this research is that hierarchical and autoregressive priors are complementary, not redundant. The hyperprior is excellent at capturing "global" structure, while the context model excels at "local" pixel-to-pixel correlations. Using them in tandem leaves significantly less "unexplained" information.

Furthermore, moving from a Gaussian Scale Mixture (predicting only variance) to a more general Gaussian model (predicting mean and variance) was a major driver of performance. It allows the model to correct for local offsets in the data. As the model becomes more powerful, the prediction error becomes much closer to pure white noise, indicating that the model has successfully extracted almost all learnable structure from the image.

Key Results

The model was evaluated primarily on the standard Kodak image set (24 images used in compression research), with supplemental results on the high-resolution Tecnick image set.

Rate-distortion curves comparing the proposed model against baselines and variants

The joint model achieved remarkable benchmark performance:

  • Beating the Gold Standard: The model achieved a 15.8% rate reduction over the previous state-of-the-art hierarchical model.
  • Outperforming BPG: It is the first learned method to outperform BPG (the intra-frame coding of HEVC) on both PSNR (Peak Signal-to-Noise Ratio) and MS-SSIM (Multi-Scale Structural Similarity).
  • Massive Savings: Compared to legacy formats, it achieved 59.8% savings over JPEG, 35% savings over JPEG2000, and an 8.4% savings over BPG.

Limitations and Future Work

Despite its impressive compression rates, the biggest drawback of this approach is its computational complexity. Because the autoregressive component predicts values based on immediate neighbors, the decoding process is inherently serial. A pixel cannot be decoded until its preceding neighbor is finished, making it difficult to parallelize on modern GPUs and leading to slow decoding times.

The authors acknowledge this computational penalty and suggest that future work should focus on "lightweight" context models or techniques like probability density distillation to accelerate the process. Additionally, tighter hardware integration between arithmetic decoders and neural networks could eventually mitigate some of these speed bottlenecks.

Summary updated

BibTeX
@inproceedings{minnen2018joint,
  author = {David Minnen and Johannes Ballé and George Toderici},
  title = {{Joint Autoregressive and Hierarchical Priors for Learned Image Compression}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
}
Figure