Video Coding for Machine: Compact Visual Representation Compression for Intelligent Collaborative Analytics

Wenhan Yang, Haofeng Huang, Yueyu Hu, Ling-Yu Duan, Jiaying LiuarXiv 2021

Abstract

Video Coding for Machines (VCM) is an emerging field that optimizes visual data compression for AI models rather than human viewers. This paper provides a comprehensive survey of the VCM landscape and introduces a novel "codebook-hyperprior" compression model for jointly compressing deep neural network features. This approach significantly reduces bitrates while maintaining high accuracy across multiple, diverse downstream machine vision tasks, addressing the bandwidth challenges of IoT and smart city infrastructures.

Introduction

Traditional video codecs, such as H.264 and HEVC, are designed to preserve visual details that appeal to human perception. However, in the era of IoT and smart cities, a vast majority of video data is analyzed exclusively by AI. Transmitting high-quality video for machine tasks like object detection or segmentation is often redundant and wasteful of bandwidth. While edge-based feature extraction is efficient, it lacks the flexibility to support multiple tasks without creating data redundancy. VCM addresses this by creating a single, compact, compressed visual representation capable of supporting diverse machine vision tasks at extremely low bitrates.

VCM Taxonomy and Paradigms

The VCM landscape can be categorized into several distinct architectural paradigms, including adaptive mode selection, generative coding, and layered coding. These methods vary in how they balance the reconstruction of raw pixels with the extraction of task-relevant features.

Categorization of VCM methods: adaptive mode, generative coding, and layered coding.

A fundamental shift in VCM research is the move from simple intermediate feature compression to full intermediate feature optimization. In the latter, learnable transforms are jointly optimized with downstream task models to minimize a combined rate-distortion (R-D) objective, ensuring that the compressed bitstream retains the most critical information for machine analysis.

Comparison of intermediate feature compression (a) and optimization (b) frameworks.

Proposed Codebook-Hyperprior Architecture

To advance VCM, the authors propose a novel architecture featuring a Codebook-Hyperprior Model. Standard learned compression uses hyperpriors to estimate data entropy, but these typically fail on deep neural network features due to their lack of dense spatial structure. The proposed codebook-based hyperprior maps these features into a space where entropy can be accurately estimated and minimized. Additionally, a Multi-Task Transfer Mapping sub-network aggregates features from multiple tasks into a single unified bitstream, which is then decoded and split back into task-specific features at the receiver side.

Evaluation and Key Insights

The model was evaluated on the Taskonomy dataset, testing performance across a mix of semantic tasks (e.g., scene classification) and geometric tasks (e.g., surface normal estimation). Key findings include:

  • The Hyperprior Gap: Redesigning the entropy bottleneck via a codebook is crucial, as neural tensors do not behave like pixels.
  • Task Grouping: Compressing features for similar tasks (e.g., geometry-related) yields better results than grouping unrelated tasks, which can act as noise.
  • Geometric Foundations: Mid-level geometry features transfer more effectively to unseen tasks than high-level semantic features, providing a more robust basis for general-purpose VCM.

Key Results

The proposed method achieves superior rate-distortion performance compared to baselines like Intermediate Deep Feature Compression (IDFC). For semantic segmentation, the model reached a 29.35% mIoU at just 0.013 bits-per-pixel (bpp), whereas IDFC required double the bitrate (0.026 bpp) for a lower 28.41% mIoU. Jointly compressing well-chosen task groups saved approximately 17% to 19% in total bitrate compared to compressing the features for each task individually.

Conclusion

VCM represents a vital step toward efficient collaborative analytics in distributed systems. By optimizing representations specifically for machine tasks, significant bandwidth savings can be achieved without sacrificing AI performance. Future work will focus on reducing decoding complexity and further exploring the trade-offs between human and machine vision requirements.

Summary updated

BibTeX
@misc{yang2021video,
  author = {Wenhan Yang and Haofeng Huang and Yueyu Hu and Ling-Yu Duan and Jiaying Liu},
  title = {{Video Coding for Machine: Compact Visual Representation Compression for Intelligent Collaborative Analytics}},
  year = {2021},
  eprint = {2110.09241},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.09241},
}
Figure