[Paper Review] GRACE: Loss-Resilient Real-Time Video through Neural Codecs
Grace proposes a neural video codec that jointly trains encoder and decoder under simulated packet losses to achieve superior loss resilience in real-time video communication. By training with diverse loss conditions and using reversible random mapping and random zeroing for differentiable loss simulation, Grace maintains high video quality under high packet loss, reducing undecodable frames by 95% and stall duration by 90% compared to FEC, while achieving a 38% higher MOS in user studies.
In real-time video communication, retransmitting lost packets over high-latency networks is not viable due to strict latency requirements. To counter packet losses without retransmission, two primary strategies are employed -- encoder-based forward error correction (FEC) and decoder-based error concealment. The former encodes data with redundancy before transmission, yet determining the optimal redundancy level in advance proves challenging. The latter reconstructs video from partially received frames, but dividing a frame into independently coded partitions inherently compromises compression efficiency, and the lost information cannot be effectively recovered by the decoder without adapting the encoder. We present a loss-resilient real-time video system called GRACE, which preserves the user's quality of experience (QoE) across a wide range of packet losses through a new neural video codec. Central to GRACE's enhanced loss resilience is its joint training of the neural encoder and decoder under a spectrum of simulated packet losses. In lossless scenarios, GRACE achieves video quality on par with conventional codecs (e.g., H.265). As the loss rate escalates, GRACE exhibits a more graceful, less pronounced decline in quality, consistently outperforming other loss-resilient schemes. Through extensive evaluation on various videos and real network traces, we demonstrate that GRACE reduces undecodable frames by 95% and stall duration by 90% compared with FEC, while markedly boosting video quality over error concealment methods. In a user study with 240 crowdsourced participants and 960 subjective ratings, GRACE registers a 38% higher mean opinion score (MOS) than other baselines.
Motivation & Objective
- Address the challenge of maintaining high-quality real-time video under high packet loss in low-latency networks where retransmission is infeasible.
- Overcome the limitations of traditional FEC, which suffers from sharp quality collapse beyond a fixed redundancy threshold, and error concealment, which degrades compression efficiency and lacks encoder-aware optimization.
- Design a system that maintains consistent video quality across a wide range of loss rates without requiring prior knowledge of loss conditions.
- Enable joint optimization of encoder and decoder to distribute information across packets in a way that facilitates robust reconstruction when losses occur.
- Achieve real-time performance on modern GPUs while preserving compatibility with existing video delivery pipelines.
Proposed method
- Employ a neural video codec (NVC) to integrate neural networks into video encoding and decoding, enabling end-to-end differentiable training.
- Simulate packet losses via random zeroing of the encoder’s output tensor instead of actual packet dropping, enabling backpropagation through the loss process.
- Apply reversible random mapping during frame partitioning to maintain compatibility with NVCs and reduce partitioning overhead.
- Train the encoder and decoder jointly under a spectrum of simulated loss rates (from 0% to 50%), enabling the model to generalize across diverse network conditions.
- Introduce a novel resynchronization protocol that allows the encoder and decoder to realign state without retransmission or keyframe updates, preserving decoding continuity.
- Optimize for real-time performance using model distillation (Grace-Lite) and hardware-aware compilation (OpenVINO), enabling deployment on mobile and CPU platforms.
Experimental results
Research questions
- RQ1Can joint training of neural encoder and decoder under diverse simulated packet losses significantly improve video quality under high loss rates compared to conventional FEC or error concealment?
- RQ2How does end-to-end training with differentiable loss simulation (via random zeroing) affect reconstruction quality and loss resilience compared to non-differentiable or heuristic loss modeling?
- RQ3To what extent does reversible random mapping and distribution regularization in the NVC output reduce partitioning overhead and improve compression efficiency?
- RQ4Can a loss-resilient neural codec maintain real-time performance on consumer-grade hardware (e.g., iPhone 14 Pro) while outperforming existing baselines in subjective and objective metrics?
- RQ5How does the joint training of encoder and decoder compare to training only the decoder or only the encoder under loss conditions in terms of reconstruction fidelity and robustness?
Key findings
- Grace reduces undecodable frames by 95% and stall duration by 90% compared to forward error correction (FEC) across real network traces and diverse video content.
- In a crowdsourced user study with 240 participants and 960 ratings, Grace achieved a 38% higher mean opinion score (MOS) than competing baselines, demonstrating superior user-perceived quality.
- Grace maintains video quality on par with H.265 in lossless conditions and exhibits a more graceful, gradual degradation as loss rates increase, outperforming both FEC and error concealment methods.
- On an NVIDIA A40 GPU, Grace encodes 720p video at 33 fps (29.7 ms/frame) and decodes at 51.2 fps (19.5 ms/frame), with resynchronization adding only 6 ms to encoding delay.
- Grace-Lite achieves real-time encoding and decoding on an iPhone 14 Pro with 38.1 ms and 14.4 ms delays respectively—reducing original delays by over 85%—while preserving strong loss resilience.
- Ablation studies confirm that joint training of both encoder and decoder is essential: Grace-P (only encoder trained under loss) and Grace-D (only decoder fine-tuned) show significantly worse resilience than full Grace.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.