Abstract: Video Coding for Machines (VCM) is an emerging field that optimizes video compression for AI tasks rather than human visual perception. A key metric in VCM is the Just Recognizable Difference (JRD), representing the maximum distortion a machine can tolerate before performance degrades. This paper presents DT-JRD, a Deep Transformer-based model that predicts JRD thresholds in a single pass. By employing a Vision Transformer (ViT) backbone with distortion-aware fine-tuning and Gaussian distribution-based soft labels, DT-JRD achieves significant improvements in prediction accuracy and compression efficiency, yielding a 29.58% bit rate reduction over the VVC standard for object detection tasks.
Introduction
Traditional video compression standards like HEVC and VVC are designed around the human visual system, utilizing the concept of Just Noticeable Difference (JND) to discard information that the human eye cannot perceive. However, with the rise of autonomous systems and smart cities, a growing volume of video data is processed by machine vision algorithms. Machines perceive distortions differently than humans, necessitating a shift toward machine-centric metrics like Just Recognizable Difference (JRD). JRD defines the threshold of compression distortion beyond which a machine's task performance (e.g., object detection) begins to fail.
The Efficiency Challenge in JRD Prediction
Previous attempts to model JRD often relied on iterative binary classification. To find the JRD threshold for an image, these models would test multiple compression levels (Quantization Parameters or QPs) against a set of binary classifiers to determine the point of failure. This approach is computationally expensive and slow during inference.
As shown in Figure 1, DT-JRD addresses this by reframing JRD prediction as a single-pass, multi-class classification problem. Instead of searching through QP levels, the model directly predicts the JRD level from the original image, significantly enhancing inference speed and efficiency.
Proposed DT-JRD Architecture
The DT-JRD model leverages a Vision Transformer (ViT-Large/32) architecture to capture global dependencies and frequency-domain shifts caused by compression artifacts. The architecture incorporates several novel components to optimize performance for the JRD task.
- 2D Interpolation for Position Embedding: To handle the diverse sizes of objects in datasets like COCO, the model uses bicubic interpolation on pre-trained position embeddings. This allows the model to process high-resolution inputs (384x384) while maintaining the spatial context learned during large-scale pre-training.
- Distortion-Aware Fine-Tuning (DAFT): Standard fine-tuning often leads to overfitting on small datasets, while linear probing may fail to capture complex distortion features. DAFT strikes a balance by freezing low-level feature layers and the final LayerNorm while training the deep feature extraction blocks (indicated by the "tunable" icons in Figure 3). This enables the model to simultaneously recognize object content and assess distortion levels.
- Gaussian Distribution-based Soft Labels (GDSL): Machine vision performance does not drop off a cliff at a single QP level; rather, it degrades gracefully. DT-JRD utilizes GDSL to provide "soft" labels during training. Instead of a one-hot vector, the target is a Gaussian distribution centered on the ground-truth JRD. This approach provides more informative gradients and reflects the reality that neighboring distortion levels produce similar machine responses.
Experimental Results
The model was evaluated on a comprehensive JRD dataset derived from COCO, featuring over 29,000 images across 80 categories. DT-JRD achieved a Mean Absolute Error (MAE) of 5.574, a 13.1% improvement over previous state-of-the-art models. When integrated into a VCM pipeline for object detection (using Faster R-CNN), the model enabled a 29.58% bit rate reduction compared to the VVC all-intra standard while maintaining the same mean Average Precision (mAP).
Conclusion
DT-JRD represents a significant step forward in Video Coding for Machines. By moving to a single-pass Transformer-based architecture and introducing distortion-aware training strategies, the authors have created a model that is both highly accurate and computationally efficient. Future work will explore the model's generalizability to other codecs and more complex machine vision tasks like instance segmentation.
Summary updated