A Hybrid Image Codec with Learned Residual Coding

Wei-Cheng Lee, Hsueh-Ming HangWorkshops @ CVPR 2020

Presented at the CVPR 2020 Workshop on Learned Image Compression (CLIC), this research explores a "best of both worlds" approach to image compression. By combining the established reliability of the Versatile Video Coding (VVC) standard with the flexibility of deep learning, the authors demonstrate a method to significantly improve visual quality at extremely low bitrates (~0.15 bpp).

Addressing the Efficiency of Residual Coding

Traditional image codecs like JPEG, HEVC (BPG), and VVC are highly optimized but tend to produce noticeable artifacts—such as blocking or blurring—when pushed to very low bitrates. While end-to-end neural compression models have emerged as strong competitors, they often struggle to maintain structural consistency or require massive amounts of data to learn what traditional codecs already do well.

The challenge addressed here is efficient residual coding. In a typical layered scheme, a base image is encoded, followed by the "residual" (the difference between the original and the base). However, simple subtraction often misses complex spatial relationships. The authors aim to improve residual representation by using "side information" from the base layer more effectively.

Proposed Hybrid Architecture

Detailed architecture of the proposed hybrid codec, highlighting the Local Attention Block and the interaction between the base layer ($x_c$) and the original image ($x$).

The proposed system utilizes a three-layer architecture designed to fix specific mistakes made by traditional codecs:

  1. Base Layer: Uses a standard VVC (intra) codec. At a target of 0.15 bits-per-pixel (bpp), the system allocates roughly 0.125 bpp to this layer.
  2. Residual Layer: A learned autoencoder that takes a 6-channel tensor as input: the original RGB image concatenated with the VVC-decoded RGB image. This allows the network to learn specifically where the base codec failed.
  3. Local Attention Module: A 4-layer CNN generates an attention mask based on the base-layer output. This mask identifies object boundaries and high-frequency areas where VVC typically struggles, allowing the residual layer to focus its limited bit budget (approx. 0.025 bpp) on the most critical areas.
  4. Refinement Network: A final post-processing neural network at the decoder merges the base-layer output and the decoded residual to resynthesize the final image, further reducing artifacts.

Key Insights

  • Context over Subtraction: Rather than seeing only an error signal, providing the base-layer output as context allows the network to better predict where artifacts are likely to occur based on the known behavior of the VVC codec.
  • Attention as Bit-Saver: The spatial attention module acts as a gatekeeper. By signaling object edges, it prevents the system from wasting bits on flat areas where the base VVC layer is already sufficient.
  • Hybrid Stability: Using VVC as a base layer provides a "safety net." The neural network doesn't have to learn how to represent an entire image from scratch, making the training process more stable and robust.

Performance Evaluation

MS-SSIM performance on the Kodak dataset. The proposed hybrid models significantly outperform the VVC (VTM7.1) and BPG standards at low bitrates.

The system was trained on the CLIC 2020 dataset and evaluated using the Kodak PhotoCD benchmark at a total bitrate of approximately 0.15 bpp.

  • Quantitative Results: When optimized for MS-SSIM, the proposed system achieved a score of 0.9579, significantly higher than the standard VTM7.1 (VVC) score of 0.9305. When optimized for PSNR, the system reached 30.498 dB, outperforming VTM7.1's 29.141 dB.
  • Qualitative Results: Visual comparisons demonstrate that the hybrid system preserves sharper edges and more natural textures in complex areas, such as roof tiles or text, compared to the "muddier" results of pure VVC at the same bitrate.

Limitations and Future Directions

While effective, the system increases computational complexity by requiring a full VVC decode followed by multiple neural network passes. The current fixed bit-allocation ratio (roughly 5:1 between base and residual layers) could also be improved with a dynamic strategy that adjusts based on image complexity. Future work may involve deeper integration of learned components directly into the VVC coding loop to yield even higher efficiency gains.

Summary updated

BibTeX
@inproceedings{lee2020hybrid,
  author = {Wei-Cheng Lee and Hsueh-Ming Hang},
  title = {{A Hybrid Image Codec with Learned Residual Coding}},
  booktitle = {Workshops @ CVPR},
  year = {2020},
  doi = {10.1109/cvprw50498.2020.00077},
}
Figure