DSSLIC: Deep Semantic Segmentation-based Layered Image Compression

Mohammad Akbari, Jie Liang, Jingning HanOpenReview 2022

TL;DR

This paper introduces DSSLIC, a novel image compression framework that leverages deep semantic segmentation. By encoding the segmentation map as a base layer, DSSLIC enables a more efficient and semantically aware reconstruction, outperforming existing codecs like BPG in both objective metrics and visual quality. This approach also opens doors for downstream tasks like image search and object-based compression.

What Problem Does This Paper Address?

Traditional image compression methods, while highly optimized, often struggle to preserve semantic information, leading to artifacts that degrade visual quality, especially at low bitrates. Deep learning has shown promise in image compression, but existing methods often treat images as mere collections of pixels, neglecting their inherent structure and meaning. The authors aim to bridge this gap by incorporating semantic understanding directly into the compression pipeline, hypothesizing that this will lead to more perceptually pleasing and efficient compression. They are motivated by recent advances in GANs that can synthesize high-quality images from semantic maps, suggesting a powerful synergy between segmentation and image generation for compression.

Methods

The DSSLIC framework is a layered approach with three main components:

  1. Semantic Segmentation (SegNet): A pre-trained PSPNet is used to extract a semantic segmentation map ($s$) from the input image ($x$). This map is losslessly encoded as the base layer.
  2. Compact Representation (CompNet): The segmentation map ($s$) and the original image ($x$) are fed into a CompNet to generate a low-dimensional, compact representation ($c$). This is encoded as the first enhancement layer.
  3. Reconstruction and Residual Encoding (RecNet & FineNet): A RecNet, incorporating a FineNet (a modified GAN generator), reconstructs a coarse version of the image ($x'$) using the upsampled compact representation ($c'$) and the segmentation map ($s$). The FineNet is trained to predict the missing fine details. The residual ($r$) between the original image ($x$) and the reconstructed image ($x'$) is then calculated and encoded as the second enhancement layer using a lossy codec (BPG).

The FineNet generator is trained adversarially using two discriminators operating at different image scales to ensure both global coherence and fine detail reconstruction. The overall loss function is a hybrid of reconstruction losses (L1, SSIM, VGG perceptual loss) and adversarial GAN losses.

Datasets

  • Training: Cityscapes (30 semantic labels) and ADE20K (150 semantic labels) datasets were used for training. Images were resized to 512x1024 for Cityscapes and 256x256 for ADE20K.
  • Evaluation: The Kodak dataset (24 images) was used for testing, along with the ADE20K and Cityscapes test sets.

Key Insights and Ideas

  • Semantic Information as a Compression Primitive: The core idea is that semantic information (what objects are present and where) is a valuable primitive for image compression, not just pixel values. Encoding this first allows for a more informed reconstruction.
  • Layered Compression for Flexibility: The layered approach (segmentation map, compact image, residual) offers flexibility. The base layer (segmentation map) is lossless, while enhancement layers can be progressively decoded for varying quality.
  • GANs for Detail Synthesis: Leveraging GANs (specifically FineNet) to synthesize missing details based on the segmentation map and a compact representation is crucial for achieving high perceptual quality.
  • Bridging Compression and Understanding: The inclusion of semantic maps naturally enables downstream tasks like object-based manipulation and search, making the compressed bitstream more than just a collection of pixels.

Key Results

  • Performance Outperformance: DSSLIC consistently outperforms H.265/HEVC-based BPG, JPEG, JPEG2000, and WebP in both PSNR and MS-SSIM metrics across a wide range of bitrates on ADE20K, Cityscapes, and Kodak datasets.
  • Significant Gains at Low Bitrates: The gains are particularly pronounced at lower bitrates. For example, on ADE20K, DSSLIC achieves over 2 dB PSNR gain compared to BPG in the 0.4-0.7 bpp range.
  • Visual Quality: Visual examples demonstrate that DSSLIC produces perceptually superior results, with fewer blocking artifacts (compared to JPEG) and better preservation of fine details and textures (compared to BPG and WebP), especially in complex scenes.
  • Generalization: The model trained on ADE20K generalizes well to the Kodak dataset, indicating robustness.
  • Efficiency: While not the primary focus, the paper notes that the average RecNet decoding time for Kodak images is around 44s on CPU and 0.013s on GPU, suggesting reasonable computational complexity for the reconstruction phase.

Limitations and Future Work

  • High-Rate Performance: The paper suggests improving high-rate performance as a future direction.
  • YUV vs. RGB: The current framework is trained and tested on RGB images. Modifying it for YUV-coded images is suggested for broader applicability.
  • Computational Cost: While not explicitly detailed as a limitation, the use of deep networks and GANs implies a higher computational cost compared to traditional codecs, especially for encoding.
  • Further Applications: The authors envision applying the framework to other tasks beyond compression, such as image search and object-based adaptive compression.

Summary updated

BibTeX
@misc{akbari2022dsslic,
  author = {Mohammad Akbari and Jie Liang and Jingning Han},
  title = {{DSSLIC: Deep Semantic Segmentation-based Layered Image Compression}},
  year = {2022},
  url = {https://openreview.net/forum?id=rLGVs58sbA},
  howpublished = {OpenReview},
}
Figure