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

Diversify, Contextualize, and Adapt: Efficient Entropy Modeling for Neural Image Codec

Jun-Hyuk Kim, Seungeon Kim, Won-Hee Lee, Dokwan Oh

TL;DR

Researchers have developed DCA, a new entropy modeling framework that significantly boosts neural image compression by diversifying "forward adaptation" contexts. By using local, regional, and global information simultaneously, DCA achieves a 3.73% BD-rate gain over current state-of-the-art methods while maintaining high decoding efficiency.

What Problem Does This Paper Address?

In neural image compression, an entropy model is used to estimate the probability distribution of quantized latent representations. The more accurate this estimate, the fewer bits are needed to store the image.

Modern models use two main strategies:

  1. Forward Adaptation: Sending extra "hyperprior" information along with the image data.
  2. Backward Adaptation: Predicting the next piece of data based on what has already been decoded (autoregressive modeling).

While backward adaptation is powerful, it is often slow because it operates serially. Recent "parallel" models use a few-step approach (like quadtree partitioning) to speed things up. However, these models typically rely on a single type of forward context—regional information. The authors argue this is a major bottleneck, especially in the very first decoding step where no backward context is available yet. Without enough "hints" from the forward adaptation, the model struggles to predict the distribution accurately, leading to bit-rate inefficiencies.

Methods

The authors propose the DCA (Diversify, Contextualize, and Adapt) framework to break this bottleneck by expanding the types of context the model can access.

Proposed DCA framework utilizing Regional, Global, and Local contexts
  • Diversify: Instead of just one regional hyperprior, DCA extracts three distinct types of hyper latent representations:
  • Local: Captures channel-wise dependencies within small patches (16x16).
  • Regional: Captures dependencies across spatially adjacent elements (the standard approach).
  • Global: Captures long-range dependencies across the entire image using a Transformer-based architecture.
  • Contextualize: The model doesn't just dump these contexts together. It uses a step-adaptive approach. At each of the four decoding steps, it sequentially integrates Regional, then Global, and finally Local features. This ensures that the model uses the most relevant information available at that specific stage of decoding.
  • Adapt: These contextualized features are used to predict the Gaussian distribution parameters (mean and variance) for each element, allowing for precise entropy coding.

Datasets

  • Training: The model was trained on OpenImages, using 300,000 randomly sampled images.
  • Evaluation: Performance was measured on two standard benchmarks: Kodak (24 images) and Tecnick (100 images).

Key Insights and Ideas

  • The "First Step" Bottleneck: The authors identified that the first step of parallel decoding is the most bit-expensive because it lacks backward context. Diversifying forward context specifically targets this weakness.
  • Information Hierarchy: Not all contexts are equal. The paper suggests that modeling higher-level semantic information (Regional) first, followed by lower-level details (Local/Global), is more effective than the reverse.
  • Independence vs. Diversity: Simply adding more of the same type of context doesn't help because of the mathematical assumption that hyperlatents are independent. By choosing contexts that cover different spatial ranges (Local vs. Global), they provide truly "new" information to the model.
  • Efficiency Balance: While adding more contexts increases complexity, the authors used efficient blocks (like DepthConv and Swin Transformers) to ensure the decoding time remains practical for real-world use.

Key Results

Rate-distortion performance showing DCA outperforming baselines
  • Compression Efficiency: DCA achieved a 3.73% BD-rate gain (meaning it uses 3.73% fewer bits for the same quality) over the previous state-of-the-art quadtree-based baseline on the Kodak dataset.
  • Comparison to Traditional Codecs: It achieved an 11.96% average rate saving over VTM-12.1 (the reference software for the H.266/VVC standard).
  • Speed vs. Accuracy: DCA offers a superior trade-off compared to complex autoregressive models. While slightly slower than the simplest parallel baselines (82ms vs 67ms decoding time), it is significantly faster than high-performing but heavy models like MLIC++ (242ms).
  • Visual Quality: Qualitative results show that DCA preserves textures and details better than traditional codecs at low bit-rates.

Limitations and Future Work

  • Architectural Constraints: The authors noted that they relied on existing architectural blocks (SwinT, Informer). They believe performance could be further improved by designing neural architectures specifically tailored for these diverse contexts.
  • Diversification Criteria: The study focused on spatial range as the primary way to diversify context. Future work could explore other criteria, such as frequency-based diversification.
  • Proprietary Code: The implementation code is currently proprietary, which may limit immediate reproducibility by the wider research community.

Summary updated

BibTeX
@inproceedings{kim2024diversify,
  author = {Jun-Hyuk Kim and Seungeon Kim and Won-Hee Lee and Dokwan Oh},
  title = {{Diversify, Contextualize, and Adapt: Efficient Entropy Modeling for Neural Image Codec}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=gvg8pExqdd},
}
Figure