Scalable Image Coding for Humans and Machines

Hyomin Choi, Ivan V. Bajic

Introduction

The proliferation of cameras in infrastructure and autonomous systems has shifted the primary consumer of visual data from humans to machines. Traditional image compression standards like JPEG or HEVC are optimized for human psychovisual perception, often retaining details irrelevant to machine tasks or discarding features critical for computer vision. This paper addresses the inefficiency of current "compress-then-analyze" or "analyze-then-compress" paradigms by proposing a scalable image codec that serves both audiences from a single bitstream.

Methodology

The proposed system utilizes a variational autoencoder (VAE) architecture designed for latent-space scalability. Instead of a monolithic compressed representation, the latent space is partitioned into a base layer and one or more enhancement layers. This allows a machine to perform its task using only the base layer, while a human can view a high-quality reconstruction by adding enhancement layers from the same bitstream.

Conceptual overview of latent-space scalability serving both analysis (machine vision) and input reconstruction (human vision).

Latent-Space Partitioning and Transformation

The base layer is optimized to support machine vision tasks such as object detection. To bridge the gap between compressed latents and the feature maps expected by pre-trained models (e.g., YOLOv3), the authors introduce Latent Space Transform (LST) blocks. These blocks map the compressed data into the specific feature space required by the vision back-end without needing full image reconstruction.

Detailed architecture of the scalable encoder and decoders, showing the flow from input image to machine vision results and reconstructed output.

Information Steering

The model is trained using a multi-task rate-distortion Lagrangian loss function. This approach "steers" task-critical information into the base layer, ensuring high performance for AI tasks at low bitrates. The enhancement layers provide the additional information necessary for high-fidelity image reconstruction for human viewers. The paper also provides a theoretical proof that latent spaces in non-generative DNNs are at least as compressible as the original input, justifying this feature-based compression approach.

Key Results

The scalable codec demonstrates significant efficiency gains across industry-standard datasets like COCO (for machine tasks) and Kodak (for human vision):

  • Bitrate Efficiency: The model achieves 37% to 80% bitrate savings for machine vision tasks compared to traditional codecs like HEVC and VVC at equivalent accuracy levels.
  • Machine Vision Performance: On the COCO dataset, the system maintains high Mean Average Precision (mAP) even at bitrates where standard codecs typically experience a total performance breakdown.
  • Reconstruction Quality: For human viewing, the multi-layer model remains competitive with state-of-the-art DNN-based codecs and outperforms HEVC in metrics like PSNR and MS-SSIM.
  • Computational Advantage: For machine tasks, the system bypasses pixel reconstruction entirely, as the AI operates directly on transformed latent features.

Conclusion and Future Work

By enabling a single bitstream to support both machine analytics and human inspection, this research offers a path toward more efficient visual data management in "smart" environments. While the computational complexity of DNN-based codecs remains a hurdle—with the 3-layer model being roughly 3x slower to decode than simpler models—the massive bitrate savings provide a compelling case for future standardization. Future work will likely focus on post-hoc task integration and aligning these architectures with emerging global standards like MPEG Video Coding for Machines.

Summary updated

BibTeX
@article{choi2022scalable,
  author = {Hyomin Choi and Ivan V. Bajic},
  title = {{Scalable Image Coding for Humans and Machines}},
  journal = {IEEE TIP},
  year = {2022},
  doi = {10.1109/tip.2022.3160602},
}
Figure