Skip to main content
QUICK REVIEW

[Paper Review] Entroformer: A Transformer-based Entropy Model for Learned Image Compression

Yichen Qian, Ming Lin|arXiv (Cornell University)|Feb 11, 2022
Advanced Data Compression TechniquesComputer Science41 citations
TL;DR

Entroformer introduces a transformer-based entropy model with diamond relative position encoding and top-k self-attention to improve learned image compression, achieving state-of-the-art rate-distortion performance with faster decoding via a parallel bidirectional context two-pass framework.

ABSTRACT

One critical component in lossy deep image compression is the entropy model, which predicts the probability distribution of the quantized latent representation in the encoding and decoding modules. Previous works build entropy models upon convolutional neural networks which are inefficient in capturing global dependencies. In this work, we propose a novel transformer-based entropy model, termed Entroformer, to capture long-range dependencies in probability distribution estimation effectively and efficiently. Different from vision transformers in image classification, the Entroformer is highly optimized for image compression, including a top-k self-attention and a diamond relative position encoding. Meanwhile, we further expand this architecture with a parallel bidirectional context model to speed up the decoding process. The experiments show that the Entroformer achieves state-of-the-art performance on image compression while being time-efficient.

Motivation & Objective

  • Improve predictive accuracy of the entropy model to boost compression efficiency without increasing distortion.
  • Capture long-range spatial dependencies in latent representations beyond CNN-based models.
  • Enhance decoding speed with a parallel bidirectional context and two-pass decoding.
  • Provide a stable training framework for transformer-based entropy modeling in image compression.

Proposed method

  • Use a transformer-based entropy model (Entroformer) to predict Gaussian parameters for latents conditioned on hyperprior and context.
  • Introduce diamond-shaped relative position encoding (diamond RPE) to bias attention with 2D spatial priors.
  • Apply a top-k self-attention mechanism to distill informative dependencies and stabilize training.
  • Extend to a parallel two-pass decoding framework with bidirectional context to accelerate decoding while maintaining performance.
  • Combine hyperprior, context model, and a linear fusion to predict (μ, σ) for the Gaussian entropy model.

Experimental results

Research questions

  • RQ1Can a transformer-based entropy model outperform CNN-based entropy models in learned image compression?
  • RQ2What benefits do diamond RPE and top-k attention provide for probability distribution estimation in latent codes?
  • RQ3Does a parallel bidirectional context with two-pass decoding maintain or improve RD performance while speeding up decoding?

Key findings

  • Entroformer with joint hyperprior and context modeling outperforms state-of-the-art CNN-based methods by 5.2% and BPG by 20.5% at low bit rates on Kodak (PSNR).
  • A 2D relative position encoding with a diamond boundary plus top-k self-attention improves compression efficiency (up to 5.8% bpp saving over CNN baselines in ablations).
  • Bidirectional context with two-pass decoding achieves faster decoding on GPUs with negligible performance loss compared to serial/unidirectional variants.
  • Parallel Entroformer maintains strong RD performance, with only around 1% degradation when compared to serial implementations, while offering speedups.
  • Ablation shows relative and diamond RPE encodings significantly improve performance over absolute or no-position encoding.

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.