Stable Diffusion is a Natural Cross-Modal Decoder for Layered AI-Generated Image Compression

Ruijie Chen, Qi Mao, Zhengxue ChengDcc 2024

TL;DR

This paper introduces a novel framework for compressing AI-generated images (AIGIs) by leveraging Stable Diffusion as a cross-modal decoder. By decomposing AIGIs into semantic, structural, and textural layers, the method achieves impressive compression ratios at ultra-low bitrates while enabling direct image editing without full decoding.

What Problem Does This Paper Address?

The rapid proliferation of AI-generated images (AIGIs) presents a significant challenge for efficient storage and transmission. While existing image compression techniques are well-established for natural images, they often fall short when applied to AIGIs, which are generated by complex models like text-to-image diffusion models. Furthermore, current compression methods for AIGIs primarily rely on text prompts, neglecting other human-comprehensible modalities that could enrich the compression process and enable new functionalities. This paper addresses the need for a specialized compression framework for AIGIs that can efficiently capture their unique characteristics and facilitate downstream applications like editing.

Methods

The core of the proposed method is a layered cross-modal compression framework that utilizes Stable Diffusion (SD) as a decoder. The framework encodes an AIGI into three distinct layers:

  • Semantic Layer: This layer captures high-level semantic information using text prompts generated by an image-to-text model (BLIP-2). These prompts are then compressed using Zstd.
  • Structure Layer: This layer encodes structural information. Depending on the image content, it can use either edge maps (extracted by PiDiNet) or human pose keypoints (extracted by Openpose). These representations are then downsampled and compressed using VVC or Zstd, respectively.
  • Texture Layer: This layer preserves local texture details using an 8x8 color palette map, which is downsampled from the original image.

The key innovation lies in using Stable Diffusion as a decoder. By feeding these layered priors (semantic, structure, and texture) into SD, the framework can reconstruct the image at varying fidelity levels. Crucially, the decoder can reconstruct images using only the semantic layer, or progressively add structure and texture information for higher fidelity. The T2I-Adapter is incorporated into SD to better integrate these multimodal priors.

Datasets

The paper evaluates its framework on the AGIQA-3K dataset, which comprises 2982 AIGIs generated by novel text-to-image models, with a resolution of 512x512. The dataset is noted to contain images generated by various AI models.

Key Insights and Ideas

  • Stable Diffusion as a Natural Decoder: The paper makes a compelling argument that diffusion models like Stable Diffusion are inherently well-suited as decoders for AIGIs, given their generative capabilities and ability to interpret various conditional inputs.
  • Layered Priors for Scalable Compression: Decomposing AIGIs into semantic, structural, and textural layers allows for a scalable compression approach. Transmitting more layers leads to higher fidelity reconstructions, catering to different user needs.
  • Direct Image Editing: A significant advantage is the ability to manipulate the compressed bitstream directly for image editing (structure manipulation, texture synthesis, object erasing) without requiring a full decoding and re-encoding cycle. This opens up new possibilities for interactive AIGI manipulation.
  • Beyond Text Prompts: The framework moves beyond solely relying on text prompts by incorporating structural and textural information, leading to more accurate and perceptually pleasing reconstructions.

Key Results

  • Superior Compression at Ultra-Low Bitrates: The proposed method achieves superior performance compared to traditional codecs like VVC and JPEG2000, as well as the neural compressor PerCo, at ultra-low bitrates (less than 0.02 bpp).
  • High Perceptual Quality: Qualitative comparisons show that the method yields reconstructed images with more realistic details and higher semantic fidelity. Quantitative metrics like FID and NIQE are competitive with state-of-the-art methods.
  • Scalable Reconstruction: Rate-distortion curves demonstrate that image fidelity improves as more structural and textural information is provided during decoding, highlighting the scalability of the layered bitstream.
  • Effective Image Editing: The paper showcases impressive results for structure manipulation, texture synthesis, and object erasing, demonstrating the practical utility of the framework for AIGI editing.

Limitations and Future Work

  • Dataset Specificity: While the AGIQA-3K dataset is used, the framework's performance on AIGIs generated by a wider variety of models and with different characteristics might warrant further investigation.
  • Computational Cost: While not explicitly detailed as a limitation, diffusion models are generally computationally intensive, which could be a consideration for real-time applications.
  • Future Work: The authors suggest that their framework paves the way for future research in AIGI compression and editing, particularly in exploring more sophisticated ways to leverage multimodal priors and optimize the decoding process. The ability to perform downstream editing without full decoding is highlighted as a key direction.

Summary updated

BibTeX
@inproceedings{chen2024stable,
  author = {Ruijie Chen and Qi Mao and Zhengxue Cheng},
  title = {{Stable Diffusion is a Natural Cross-Modal Decoder for Layered AI-Generated Image Compression}},
  booktitle = {Dcc},
  year = {2024},
}
Figure