Abstract
Traditional Deep Video Compression (DVC) frameworks are primarily optimized for human perception, often resulting in significant bitstream redundancy when the video is consumed by machine vision algorithms. This paper introduces a task-aware encoder control framework that enables a single, pre-trained DVC decoder to efficiently support multiple downstream machine vision tasks. By implementing Dynamic Vision Mode Prediction (DVMP) and a dynamic Group of Pictures (GoP) selection network at the encoder side, the proposed method achieves substantial bitrate savings—up to 41%—without requiring any modifications or retraining of the standard decoder.
Introduction
As machine vision applications like autonomous driving and smart surveillance become ubiquitous, the demand for video compression optimized for AI tasks has grown. Current Deep Video Compression (DVC) models typically prioritize reconstruction metrics such as Peak Signal-to-Noise Ratio (PSNR) or Structural Similarity Index (SSIM). However, these metrics often allocate bits to background details and textures that are irrelevant to machine vision tasks like object detection or tracking.
Previous attempts to bridge this gap often relied on "one-to-one" codecs, where a specific encoder-decoder pair is trained for each individual task. This approach is impractical for large-scale deployment due to the overhead of maintaining multiple models. The challenge lies in creating a flexible system where a single, standard video decoder can serve diverse AI tasks while maintaining the ability to provide high-quality video for human viewing when necessary.
Methodology
The authors propose a task-aware encoder controller that mimics the flexibility of traditional codecs (e.g., H.264/H.265) by making intelligent encoding decisions based on the target task. This is achieved through two primary components integrated into the encoder side:
1. Dynamic Vision Mode Prediction (DVMP)
The DVMP module analyzes the "hyperprior"—the metadata describing feature distributions—to identify which elements are critical for the specific AI task. It generates a "skip/no-skip" mask that identifies redundant information. For elements deemed unnecessary for the machine task, the encoder replaces the residual data with a predicted mean value. This process creates a lightweight frame type known as the $P_m$ frame, which significantly reduces the bitrate required for residual and contextual information while preserving the features necessary for AI inference.
2. GoP Selection Network
Video content varies in temporal complexity; a static surveillance shot requires a different compression strategy than a high-motion sequence. The authors developed a GoP selection network that performs a rapid pre-analysis using optical flow (via RAFT) and object detection. This network dynamically determines the optimal sequence of standard P-frames and task-optimized $P_m$ frames, ensuring that the bit allocation is tailored to the temporal dynamics of the scene.
Crucially, because these modifications occur entirely at the encoder, the resulting bitstream remains fully compatible with the original, pre-trained DVC decoder. This ensures "backward compatibility" and allows the system to switch back to a standard human-viewing mode without changing the receiver's hardware or software.
Experimental Setup
The framework was integrated into three state-of-the-art DVC architectures: FVC, DCVC, and TCM. Evaluation was conducted across three major machine vision benchmarks:
- Multi-Object Tracking (MOT): Tested on the MOT17 dataset.
- Video Object Detection (VOD): Tested on the ImageNet VID dataset.
- Video Action Recognition (VAR): Tested on the UCF101 dataset.
- Reconstruction Quality: Human-viewing quality was verified using HEVC Class B and C datasets.
Key Insights and Results
Bitrate Efficiency
The task-aware controller demonstrated significant improvements in the Rate-Performance (R-P) trade-off. Compared to baseline codecs, the controlled versions achieved bitrate savings of:
- 27.54% for FVC
- 41.82% for DCVC
- 12.64% for TCM
These savings are achieved because the controller effectively identifies that in high-bitrate models, up to 80% of the bitstream is often dedicated to reconstruction details that do not contribute to AI task accuracy.
Control vs. Fine-tuning
A common alternative to encoder control is fine-tuning a codec for a specific task. However, the authors demonstrated that fine-tuning often inadvertently increases the bitrate. This occurs because fine-tuning can disrupt the inter-frame reference structure that the DVC relies on for temporal compression. The proposed control approach avoids this pitfall by maintaining the integrity of the pre-trained decoder's motion compensation and reconstruction logic.
Task-Specific Prioritization
Visualization of the DVMP masks reveals that the network learns to prioritize fine details for small or distant objects while masking out large, easily recognizable objects or static backgrounds. This intelligent prioritization allows the system to maintain high accuracy in challenging tracking scenarios while discarding redundant data.
Limitations and Future Work
While the framework offers substantial bandwidth gains, it introduces additional computational overhead at the encoder due to the pre-analysis stage (optical flow and detection). Currently, this adds a small amount of latency (e.g., increasing DCVC encoding time from 1.675s to 1.738s), which may be a constraint for low-power edge devices. Future research will focus on optimizing the complexity of the controller and exploring more adaptive GoP structures to make the system viable for real-time mobile encoding.
Conclusion
Task-aware encoder control represents a significant step toward a unified video compression standard for both humans and machines. By shifting the intelligence to the encoder and keeping the decoder fixed, this method provides a scalable, efficient, and backward-compatible solution for the next generation of AI-driven video services.
Summary updated