Conditional and Residual Methods in Scalable Coding for Humans and Machines

Anderson de Andrade, Alon Harell, Yalda Foroutan, Ivan V. Bajic

TL;DR

This paper explores "Scalable Coding for Humans and Machines" (SIC-HM), a method for compressing images so that a single bitstream can serve both AI algorithms and human viewers. The researchers compare two primary strategies—conditional and residual coding—to reuse AI-task information for image reconstruction, finding that while both perform similarly, conditional coding offers a slight edge in compression efficiency.

What Problem Does This Paper Address?

In the era of "Collaborative Intelligence," edge devices (like smart cameras) often capture data that is processed by AI in the cloud. Traditionally, if you want an AI to perform object detection and a human to view the image, you might send two separate data streams. This is incredibly redundant.

Scalable Image Coding for Humans and Machines (SIC-HM) aims to solve this by sending a "base" layer optimized for a machine task (like segmentation) and an "enhancement" layer that provides the missing details needed for a high-quality human reconstruction. The core challenge is: How do we efficiently use the information already sent for the AI to help reconstruct the pixels for the human?

The AI "sees" features (manifolds) that are very different from the RGB pixels humans see. Translating between these two worlds is the "gap" this paper seeks to bridge.

Methods

The authors evaluate two architectural philosophies for this "translation":

  1. Conditional Coding: The AI features are used as "side information" to help an entropy model predict the distribution of the reconstruction data. If the entropy model knows what the AI knows, it needs fewer bits to describe the remaining uncertainty.
  2. Residual Coding: The system uses the AI features to create a "rough draft" (prediction) of the image. It then only encodes the "residual"—the difference between that rough draft and the original image.

The Secret Sauce: To make this work, the authors proposed a novel entropy model based on a Convolutional Neural Network (CNN) with scalable residual connections and larger receptive fields. This increases the model's capacity to capture spatial dependencies without making the decoding process untractable. They also introduced a "reconstruction penalty" during the training of the AI task to ensure the features captured are actually useful for later reconstruction.

Datasets

The team tested their methods on two heavy hitters in the computer vision world:

  • Cityscapes: Focused on semantic segmentation (identifying every pixel in urban street scenes).
  • COCO 2017: Focused on object detection (identifying and bounding boxes around objects).

These datasets represent different levels of complexity, allowing the authors to see how their methods scale from simple, structured scenes (Cityscapes) to diverse, complex environments (COCO).

Key Insights and Ideas

  • The Manifold Translation: AI features live on a lower-dimensional manifold. The paper demonstrates that we can leverage dedicated learnable transformations ($h_c$ and $h_r$) to explicitly move information from the AI's "thought space" back into the visual "pixel space."
  • Theoretical vs. Practical: While information theory suggests conditional coding should be an upper bound for residual coding, the paper shows that in practice, they are remarkably close. This suggests that the choice between them might depend more on hardware implementation constraints than pure math.
  • The Importance of Entropy Modeling: A significant portion of the gains came from the improved entropy model. By using a CNN with residual blocks to model the probability of the latent representations, they achieved better compression than standard industry baselines.

Key Results

The researchers measured performance using BD-Rate (Bjontegaard Delta Rate), which calculates the percentage of bit-rate savings for the same quality (PSNR).

  • Cityscapes (Segmentation):
    • Conditional Coding: Achieved a 16.56% bit-rate reduction compared to the baseline.
  • Residual Coding: Achieved a 14.6% reduction.
  • The conditional approach utilized about 43% of the available side information from the AI task.
  • COCO (Object Detection):
    • Gains were more modest here: 4.14% for conditional and 2.47% for residual.
  • The authors attribute this to the higher complexity and variety of the COCO dataset compared to the more uniform Cityscapes images.

Limitations and Future Work

The authors noted that the performance of the base task (the AI's accuracy) can be slightly affected by the "reconstruction penalty" ($\beta$) used during training. Finding the perfect balance between "AI accuracy" and "reconstruction efficiency" remains a delicate tuning act.

Future work could involve exploring even more complex machine tasks or developing end-to-end architectures where the base machine task is specifically designed to be "reconstruction-friendly" from the start, rather than using off-the-shelf models like DeepLabV3 or Faster R-CNN.

Summary updated

BibTeX
@inproceedings{andrade2023conditional,
  author = {Anderson de Andrade and Alon Harell and Yalda Foroutan and Ivan V. Bajic},
  title = {{Conditional and Residual Methods in Scalable Coding for Humans and Machines}},
  booktitle = {Workshops @ ICME},
  year = {2023},
  doi = {10.1109/icmew59549.2023.00040},
}
Figure