Abstract: For learned image compression, the autoregressive context model is proved effective in improving the rate-distortion (RD) performance. Because it helps remove spatial redundancies among latent representations. However, the decoding process must be done in a strict scan order, which breaks the parallelization. We propose a parallelizable checkerboard context model (CCM) to solve the problem. Our two-pass checkerboard context calculation eliminates such limitations on spatial locations by re-organizing the decoding order. Speeding up the decoding process more than 40 times in our experiments, it achieves significantly improved computational efficiency with almost the same rate-distortion performance. To the best of our knowledge, this is the first exploration on parallelization-friendly spatial context model for learned image compression.
Introduction
Learned image compression has seen significant advances through the use of deep neural networks. A key component in achieving high rate-distortion (RD) performance is the autoregressive context model, which exploits spatial redundancies in latent representations. However, traditional autoregressive models rely on a serial decoding process (e.g., raster scan), which creates a significant computational bottleneck. This serial dependency prevents parallelization on modern hardware like GPUs, making high-performance neural decoding impractical for many real-world applications.
The Checkerboard Context Model (CCM)
To address the serial bottleneck, the authors propose the Checkerboard Context Model (CCM). The core innovation is the reorganization of the decoding order into a two-pass parallelizable process.
As illustrated in the figure above, standard serial models (a, b) must process pixels sequentially. In contrast, the CCM (c, d) utilizes a checkerboard pattern. The decoding is split into two distinct stages:
- Pass 1 (Anchors): The decoder identifies half of the pixels in a checkerboard pattern as "anchors." These are decoded in parallel using only the hyperprior (side information) without spatial context.
- Pass 2 (Non-Anchors): The remaining pixels are then decoded simultaneously. Because their immediate neighbors (the anchors) were decoded in the first pass, the model can use them as spatial context to predict the non-anchors accurately.
The overall framework integrates this context model ($g_{cm}$) and entropy parameters estimation ($g_{ep}$) into a standard variational autoencoder structure. While the encoder can process the entire image in a single pass using a masked convolution, the decoder leverages the two-pass checkerboard strategy to maximize throughput.
Key Insights and Results
Experiments conducted on the Kodak and Tecnick datasets revealed several critical insights:
- Proximity vs. Quantity: The researchers found that the mutual information between pixels decays rapidly with distance. Surprisingly, the checkerboard pattern (using 4 immediate neighbors) outperformed the standard serial 5x5 model (using 12 neighbors) because the checkerboard neighbors are physically closer to the target pixel, providing a stronger causal relationship.
- Massive Speedup: On an Nvidia TITAN XP, the decoding time for a Kodak image dropped from 1323ms (serial) to just 29ms (checkerboard)—a speedup of over 40 times.
- Competitive Compression: Despite the parallelization, the CCM maintains state-of-the-art performance, significantly outperforming conventional codecs like JPEG2000 and BPG with minimal RD penalty compared to slower serial neural models.
Conclusion
The Checkerboard Context Model provides a practical solution to the serial decoding problem in learned image compression. By enabling massive parallelization with negligible loss in compression efficiency, it makes high-performance neural codecs significantly more viable for deployment. Future work may involve combining this approach with channel-wise context to further exploit redundancies without sacrificing speed.
Summary updated