TL;DR
This paper introduces Wrapper-Aware Rate-Distortion Optimization (WA-RDO) for Feature Coding for Machines (FCM). By making the inner video codec's bit allocation aware of how a post-processing neural network "wrapper" will interpret the compressed features, they achieve state-of-the-art performance comparable to more complex codecs, while maintaining low computational overhead.
What Problem Does This Paper Address?
Modern computer vision systems often distribute neural network inference across devices. Feature Coding for Machines (FCM) is a technique where the first part of a neural network runs on a transmitter, its output features are compressed, and then sent to a receiver for the second part of the inference. This is particularly useful for bandwidth-constrained scenarios.
The challenge lies in compressing these neural network features. Traditional video codecs are optimized for natural images, not the specific statistical properties of neural network features. While current FCM methods use "wrapper" neural networks to adapt features for compression, the standard Rate-Distortion Optimization (RDO) used by these codecs aims to minimize the Sum of Squared Errors (SSE) between the compressed features and their reconstructed versions. This SSE optimization is blind to the post-processing wrapper. Consequently, the inner codec might waste bits preserving information that the wrapper will later discard, or conversely, discard information crucial for the wrapper's task. This paper addresses this mismatch by making the RDO process "wrapper-aware."
Methods
The core contribution is a Wrapper-Aware Rate-Distortion Optimization (WA-RDO) method. Instead of minimizing the standard SSE, WA-RDO minimizes a weighted SSE. This weighting is derived from the Jacobian of the post-processing "restoration wrapper" network. Essentially, it assigns higher importance (and thus more bits) to feature components that are more critical for the wrapper's reconstruction.
To make this practical for resource-constrained encoders, they propose two key simplifications:
- Temporal Simplification (IWA-RDO): Importance maps (derived from the Jacobian) are computed only for intra-coded (I) frames and then reused for subsequent predictive (P) and bi-predictive (B) frames within a Group of Pictures (GOP). This leverages temporal redundancy in features.
- Architectural Simplification (FWA-RDO): Instead of computing the Jacobian dynamically for each input, they average the importance maps over a large dataset of training examples. This results in a fixed, "frozen" importance map that is architecture- and task-dependent but input-independent. This eliminates the need for the restoration wrapper to be present in the encoder.
Datasets
The experiments were conducted using the MPEG FCM common test conditions (CTC), which include four image and video datasets:
- SFU: Used for object detection, image segmentation, and object tracking.
- HiEve: Used for object detection.
- OIV6: Contains only images, used for object detection, instance segmentation, and object tracking.
- TVD: Used for object tracking.
The paper also mentions using a subset of images from the OIv6 dataset for averaging importance maps in the FWA-RDO method.
Key Insights and Ideas
- The "blindness" of traditional RDO is a bottleneck: Standard SSE-based RDO in video codecs doesn't account for the downstream neural network's interpretation of the compressed features, leading to suboptimal bit allocation for FCM tasks.
- Jacobian as an importance indicator: The Jacobian of the restoration wrapper provides a principled way to quantify the importance of different feature components for reconstruction.
- Temporal consistency is exploitable: Feature importance maps exhibit temporal similarity, allowing for efficient reuse across frames (IWA-RDO).
- Architectural consistency simplifies things greatly: The importance map is surprisingly consistent across different inputs for a given wrapper, enabling a "frozen" map approach (FWA-RDO) that removes the need for the decoder-side wrapper in the encoder.
- Bridging the codec generation gap: The proposed methods can make older, more efficient codecs (like HEVC) perform on par with newer, more complex ones (like VVC) for FCM tasks.
Key Results
- Performance matching state-of-the-art: WA-RDO implemented on HEVC matches the performance of VVC-based FCM with SSE-RDO (the current state-of-the-art). For AVC, it matches the performance of SSE-RDO HEVC.
- Minimal runtime overhead: IWA-RDO and FWA-RDO introduce negligible runtime overhead compared to standard SSE-RDO. FWA-RDO is even faster than SSE-RDO in HEVC due to averaging over higher QPs.
- Significant complexity reduction: Compared to VVC, their modified AVC and HEVC codecs offer complexity reductions of 72% and 28.13%, respectively.
- Validation of approximations: The paper validates that the dominant distortion term in their approximation is indeed the Jacobian-based term, especially at higher bitrates.
Limitations and Future Work
- Approximation at low bitrates: The authors acknowledge that their high-rate approximations might degrade at very low bitrates, though their results show effectiveness in the tested range.
- Future work: The authors suggest exploring other wrapper-based pipelines, different codecs, and novel transform designs. They also mention the potential for extending these ideas to other "coding for machines" scenarios.
Summary updated