Semantics Disentanglement and Composition for Versatile Codec toward both Human-eye Perception and Machine Vision Task

Jinming Liu, Yuntao Wei, Junyan Lin, Shengyang Zhao, Heming Sun, Zhibo Chen, Wenjun Zeng, Xin JinarXiv 2024 · DOI

Abstract

Image compression has traditionally faced a trade-off between optimizing for human visual quality and machine vision accuracy. We present DISCOVER (DISentanglement and COmposition VERsatile codec), a framework that utilizes Multimodal Large Language Models (MLLMs) to disentangle task-relevant semantic objects from backgrounds. By prioritizing these objects in the bitstream and employing generative diffusion models at the decoder to reconstruct a high-fidelity background, DISCOVER achieves significant bitrate reductions—up to 80%—without compromising performance for either human or machine observers.

Introduction

Standard image codecs like JPEG or VVC are designed for human perception, often discarding high-frequency information that machine learning models require for tasks like object detection. Conversely, Image Coding for Machines (ICM) methods often produce visually unappealing results and lack versatility across different tasks.

Conceptual comparison of image coding paradigms: (a) traditional autoencoders, (b) multi-task codecs, and (c) the proposed DISCOVER framework.

The DISCOVER framework addresses this "versatility gap" by creating a semantically structured bitstream. It identifies what a machine needs to "see" for a specific task, transmits that data with high priority, and uses generative AI to "hallucinate" a plausible, high-quality background for the human viewer.

Methodology

The DISCOVER framework operates through three integrated phases:

1. Semantics Analysis

To maintain efficiency, the system uses an MLLM (such as GPT-4o) once per task to define relevant labels (e.g., "car, person"). A grounding model (e.g., Grounding DINO) then performs a single-step analysis on input images to locate these objects, avoiding the overhead of per-image MLLM prompting.

2. Semantics Disentanglement

The encoder separates the image into task-related elements and background. The bitstream is structured to prioritize task-relevant objects, allowing for "partial transmission" where only the most critical data is sent at high bitrates.

The detailed architecture of the DISCOVER framework, illustrating the flow from semantics analysis to disentangled coding and generative composition.

3. Semantics Composition

At the decoding stage, a generative diffusion model (based on Stable Diffusion 2.1) takes the task-specific data and fills in the missing background using generative priors. This ensures the final image is visually complete and aesthetically pleasing to humans, even if the background was not fully transmitted.

Experimental Setup

The framework was trained on a diverse dataset of 50,000 images from OpenImage, COCO, CLIC2020, Flickr2K, and Div2K. Evaluation was conducted across several benchmarks:

  • Machine Vision: MS COCO2017 (detection/segmentation) and ImageNet (classification).
  • Human Perception: Kodak, CLIC2020, and COCO2017.

Results and Discussion

DISCOVER demonstrates substantial improvements over the VTM-12.1 anchor:

  • Machine Vision Performance: The system achieved BD-rate savings of -80.41% for object detection, -80.32% for instance segmentation, and -77.63% for classification. This indicates that DISCOVER can maintain state-of-the-art accuracy at a fraction of the traditional file size.
  • Human Visual Quality: Reconstructed images align well with human expectations. In detection-focused tasks, the framework achieved a BD-FID of -45.615, outperforming traditional methods in perceptual alignment at low bitrates.
  • Generative Infilling: Qualitative results show that while traditional methods blur textures under bandwidth constraints, DISCOVER's use of diffusion priors maintains sharp, detailed reconstructions of key objects and plausible backgrounds.

Conclusion

DISCOVER represents a significant step toward versatile image coding. By making the bitstream "task-aware" and leveraging generative models for reconstruction, it satisfies the requirements of both human and machine vision. Future work will focus on reducing the computational complexity of the diffusion-based decoding process and extending the framework to video compression.

Summary updated

BibTeX
@misc{liu2024semantics,
  author = {Jinming Liu and Yuntao Wei and Junyan Lin and Shengyang Zhao and Heming Sun and Zhibo Chen and Wenjun Zeng and Xin Jin},
  title = {{Semantics Disentanglement and Composition for Versatile Codec toward both Human-eye Perception and Machine Vision Task}},
  year = {2024},
  eprint = {2412.18158},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.18158},
}
Figure