Machine Perception-Driven Image Compression: A Layered Generative Approach

Yuefeng Zhang, Chuanmin Jia, Jiannhui Chang, Siwei Ma · DOI

TL;DR

This paper introduces a layered generative image compression model designed to satisfy both human viewers and machine learning algorithms simultaneously. By splitting images into distinct content and semantic layers, the framework achieves outstanding perceptual quality at extreme compression ratios while allowing computer vision models to perform tasks like classification and segmentation directly on the compressed data—saving up to 99.6% in bitrate compared to transmitting full RGB images.

What Problem Does This Paper Address?

With the explosion of visual data from video conferencing, social media, and surveillance, we face a dual challenge: efficiently storing/transmitting images (data compression) and automatically understanding them (machine perception). Historically, these two fields have progressed down separate paths.

Traditional compression codecs (like JPEG or VVC) optimize for pixel-level fidelity or human vision, often discarding subtle features that machines need. Conversely, standard computer vision pipelines require fully decoding compressed bitstreams back into raw RGB pixels before processing them, which wastes significant computational time and memory. While recent "Video Coding for Machines" (VCM) frameworks attempt to bridge this gap, they are typically rigid and tailored to a single downstream task. The authors tackle the challenge of creating a flexible, task-agnostic compression model that preserves high perceptual quality for humans while enabling efficient, direct multi-task machine analysis in the compressed domain.

Methods

The authors propose an end-to-end learning-based layered compression pipeline combined with a multi-task analysis network.

Fig. 5. Overview of our proposed approach. We transform the original image signal into two-layered representations: reconstruction-oriented IR and semantic- oriented IS. Two targets are illustrated, including 1) compression; 2) machine perception of the compressed representation.

Key components include:

  • Layered Encoder: Inspired by Marr's computational vision theory, the model splits the input image into two distinct latent representations: a reconstruction-oriented feature ($I_R$) capturing spatial content, and a semantic-oriented feature ($I_S$) capturing style and texture as a compact 1D vector.
  • Generative Decoder & Fusion Module: Instead of standard pixel-matching decoding, the decoder uses Adaptive Instance Normalization (AdaIN) to fuse the content ($I_R$) and semantic ($I_S$) streams. It leverages a Generative Adversarial Network (GAN) discriminator to synthesize sharp, realistic, and human-eye-friendly details even at ultra-low bitrates.
  • Compressed-Domain Multi-Task Analysis: Rather than decoding the image to run computer vision models, a task-agnostic analysis network processes the intermediate quantized latents ($z_1, z_2$) directly.
Fig. 6. Illustration of our multi-task analysis network architecture. Here C and S are class numbers for classification and segmentation, respectively. For the Resblock, we follow the second kind of deep residual block design in [43].

The pipeline can be trained either separately (freezing the compression model and training the analysis network) or jointly to find the optimal balance between bitrate, human reconstruction quality, and machine task accuracy.

Datasets

The model was trained and evaluated on CelebAMask-HQ, a large-scale, high-resolution facial dataset containing 30,000 images. Each image includes:

  • 40 attribute labels (used for the classification/attribute estimation task).
  • High-quality pixel-level masks for 19 semantic classes (used for the semantic segmentation task).

Images were resized to $256 \times 256$ pixels for the experiments, following standard dataset splits.

Key Insights and Ideas

  • The Power of the Compressed Domain: Learning-based compression latents are inherently rich in compact semantic information. This makes them highly viable inputs for deep learning models, bypassing the need for a decoder entirely on the machine-perception side.
  • The Three-Way Trade-Off: The paper highlights a complex, real-world trade-off between compression rate, human perceptual distortion, and machine perception performance. Optimizing for one often impacts the others, but joint training can mitigate these losses.
  • Channel Redundancy: Through channel-wise visualization, the authors discovered that nearly 80% of the latent feature channels contribute very little to the final bitrate, allowing for a simple yet effective channel-cutting strategy for bitrate control.

Key Results

  • Perceptual Superiority: At extremely low bitrates (bits per pixel, $\text{bpp} \le 0.1$), the proposed model significantly outperforms traditional codecs (JPEG, BPG, VVC) and standard learning-based codecs in human-centric perceptual metrics like FID and NIQE, avoiding severe blocking or blurring artifacts.
  • Massive Bitrate Savings: Direct analysis on the compressed latents achieved comparable accuracy to running models on original raw RGB images while saving up to 99.6% of the transmitted bitrate. For instance, a low-bitrate model ($\text{bpp} = 0.096$) only sacrificed $0.8\%$ in mean Intersection over Union (mIoU) for semantic segmentation compared to the uncompressed baseline.
  • Efficiency Gains: Processing data directly in the compressed domain saved $50\%$ of storage costs on the receiver side and reduced model parameter complexity by $3\%$ compared to analyzing fully reconstructed images.

Limitations and Future Work

  • Domain Specificity: The current implementation and evaluation focus heavily on human face data (CelebAMask-HQ). Generative models excel here because faces follow a highly predictable structure. Generalizing this layered approach to complex, arbitrary scenes remains an open challenge.
  • Sensitivity to Outliers: Because the generative decoder relies heavily on learned data distributions (prior knowledge), it struggles to accurately reconstruct rare accessories or unusual features, which can disproportionately degrade class-specific segmentation metrics. Future work will look into improving the robustness of these semantic representations.

Summary updated

BibTeX
@article{zhang2025machine,
  author = {Yuefeng Zhang and Chuanmin Jia and Jiannhui Chang and Siwei Ma},
  title = {{Machine Perception-Driven Image Compression: A Layered Generative Approach}},
  journal = {IEEE Trans. Circuits Syst. Video Technol.},
  year = {2025},
  doi = {10.1109/tcsvt.2024.3418493},
}
Figure