Base Layer Efficiency in Scalable Human-Machine Coding

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

TL;DR

Researchers have developed a more efficient way to compress images for "hybrid" use cases where machines (AI) watch the content constantly, but humans only tune in occasionally. By switching from parallel to sequential training of the compression layers, they achieved 20-40% bitrate savings for machine tasks like object detection without sacrificing the ability to reconstruct high-quality images for human eyes.

What Problem Does This Paper Address?

In the world of "Human-Machine Coding," we face a dilemma. Most video data today (like surveillance or traffic feeds) is analyzed by AI, not humans. To save bandwidth, we use scalable codecs: a "base layer" provides just enough data for an AI to perform a task (like detecting a car), and an "enhancement layer" provides the extra data needed to reconstruct a pretty picture for a human operator if an accident occurs.

The problem is that current state-of-the-art (SOTA) scalable codecs are surprisingly inefficient at the base layer. Because these systems are usually trained to optimize both layers simultaneously, the base layer often ends up "bloated" with information that is useless for the AI task but helpful for human viewing. Since the AI runs 24/7 and the human only watches occasionally, this inefficiency leads to massive cumulative data waste.

Methods

The authors identify the root cause as a "leakage" of task-irrelevant information. If a feature helps reconstruct the image but doesn't help the AI task, a parallel training process has no incentive to keep it out of the base layer.

To fix this, they propose a Sequential Training approach:

  1. Optimize the Base Layer First: They train the base layer in isolation using an Information Bottleneck (IB) framework. This forces the encoder to find the smallest possible representation that still allows the AI to perform its task accurately.
  2. Freeze and Build: Once the base layer is optimized, they "freeze" it so it cannot be changed.
  3. Residual Enhancement: They then build the enhancement layer. They create a "preview transform" that makes a rough guess of the image from the base layer data, calculates the "residual" (the difference between the guess and the real image), and then compresses only that residual for the human-viewing layer.

Datasets

The models were trained and evaluated using several industry-standard datasets:

  • Training: JPEG-AI, CLIC, and VIMEO-90K (standard for learning-based compression).
  • Machine Task Evaluation: COCO2017 and COCO2014 validation sets for testing object detection and instance segmentation.
  • Reconstruction Evaluation: The Kodak dataset (24 uncompressed images) was used to measure how well the enhancement layer recreates images for humans.

Key Insights and Ideas

  • The "Case 2" Trap: The authors prove that if a feature is only useful for humans, parallel training is indifferent about whether it goes in the base or enhancement layer. This is why previous models had "fat" base layers.
  • Sequential is Better for Scalability: By forcing the base layer to be "task-pure" through sequential training, you ensure the system is at its most efficient during the 99% of the time when only the machine is "watching."
  • The Frequency Threshold: The paper introduces a practical formula to decide when to use this codec. For example, if you use YOLOv3 for detection, this new method is more efficient than standard compression as long as a human is viewing the feed less than 59% of the time.

Key Results

The proposed method sets a new SOTA for rate-accuracy performance in scalable coding:

  • BD-Rate Savings: Compared to the previous leading model (Choi 2022), the new approach achieved significant bitrate savings at the same accuracy levels:
  • -36.5% for object detection using Faster R-CNN.
  • -41.7% for object detection using YOLOv3.
  • -18.9% for instance segmentation using Mask R-CNN.
  • Visual Quality: While the enhancement layer is slightly less efficient than a dedicated single-layer human codec (like Cheng2020), it still offers a massive net gain in bandwidth for real-world surveillance scenarios.

Limitations and Future Work

The primary trade-off is that the enhancement layer's reconstruction quality is slightly lower (in terms of PSNR) than top-tier non-scalable codecs. The authors acknowledge this and suggest that further optimization of the enhancement layer's architecture could bridge this gap. Additionally, the current work focuses on static images; extending this sequential optimization logic to video (temporal scalability) is a logical next step for the field.

Summary updated

BibTeX
@inproceedings{foroutan2023base,
  author = {Yalda Foroutan and Alon Harell and Anderson de Andrade and Ivan V. Bajic},
  title = {{Base Layer Efficiency in Scalable Human-Machine Coding}},
  booktitle = {ICIP},
  year = {2023},
  doi = {10.1109/icip49359.2023.10223087},
}
Figure