Grace++: Loss-Resilient Real-Time Video Communication under High Network Latency

Yihua Cheng, Anton Arapin, Ziyi Zhang, Qizheng Zhang, Hanchen Li, Nick Feamster, Junchen JiangarXiv 2023 · DOI

TL;DR

This paper introduces GRACE, a novel neural video codec designed for real-time communication that maintains high video quality even with significant packet loss. By jointly training the encoder and decoder on a spectrum of simulated packet losses, GRACE achieves a more graceful degradation in quality compared to existing methods, significantly reducing video freezes and improving user experience.

What Problem Does This Paper Address?

Real-time video communication, crucial for applications like video conferencing and cloud gaming, is highly susceptible to packet loss. Retransmitting lost packets is often infeasible due to the strict latency requirements of these applications, especially over high-latency networks. Traditional solutions like Forward Error Correction (FEC) require pre-determining redundancy levels, which is challenging and can lead to lower quality if not optimized. Decoder-side error concealment, while useful, often compromises compression efficiency and struggles to recover lost information effectively without encoder adaptation. This leaves a gap for systems that can maintain good video quality and a smooth user experience in the face of unpredictable packet loss without resorting to retransmissions.

Methods

GRACE tackles this problem by employing a neural video codec (NVC) where both the encoder and decoder are jointly trained. The core innovation lies in simulating a spectrum of packet losses during training. This is achieved by randomly "masking" (zeroing out) a fraction of the encoder's output tensor, forcing the NVC to learn to be resilient to such data corruption.

Key technical contributions include:

  • Joint Encoder-Decoder Training with Simulated Loss: Unlike traditional NVCs trained assuming perfect transmission, GRACE's training objective explicitly incorporates a probability distribution of packet loss, enabling the encoder to distribute information more robustly and the decoder to better reconstruct corrupted frames.
  • Reversible Randomized Packetization: To ensure that simulated packet loss during training accurately reflects real-world scenarios, GRACE uses a reversible random mapping to split the encoded tensor into packets. If a packet is lost, the corresponding tensor elements are zeroed out, mimicking the effect of masking.
  • Optimistic Encoding with Dynamic State Resync: To maintain real-time performance, GRACE employs an "optimistic" encoding strategy where the encoder assumes packets will arrive. When packet loss does occur, the decoder can still decode partially received frames. Crucially, the decoder signals loss information back to the encoder, which then efficiently "resyncs" its internal state by re-decoding only the necessary recent frames, preventing error propagation without blocking the pipeline.
  • Efficient NVC Implementation (GRACE-Lite): To enable deployment on resource-constrained devices like mobile phones, GRACE-Lite incorporates optimizations such as using downscaled images for motion estimation, skipping frame smoothing, and reducing floating-point precision.
  • Accurate Bitrate Control: GRACE can dynamically adjust its output bitrate by training multiple residual encoders, allowing for faster adjustments than re-encoding entire frames from scratch.

Datasets

  • Training: The model was trained on the 90k Vimeo dataset.
  • Evaluation: The system was evaluated on 61 videos sampled from four public datasets: Kinetics, Gaming, UVG, and FVC. These datasets span various resolutions and content types, including human actions, gaming, and general HD videos.

Key Insights and Ideas

  • Joint training is key: The paper strongly suggests that training the encoder and decoder together under a range of packet loss conditions is far more effective for loss resilience than training them separately or relying solely on decoder-side post-processing.
  • Simulating loss during training is crucial: Simply training a decoder to handle corrupted data isn't enough; the encoder needs to learn to distribute information in a way that anticipates potential loss.
  • Graceful degradation is achievable: GRACE demonstrates that video quality doesn't have to plummet dramatically with packet loss. Instead, it can degrade more smoothly, leading to a better perceived user experience.
  • Real-time constraints require clever engineering: The "Optimistic Encoding with Dynamic State Resync" mechanism is a critical insight for making loss-resilient systems practical in real-time scenarios, avoiding the blocking issues of traditional approaches.

Key Results

  • Loss Resilience: GRACE reduces undecodable frames by 95% and stall duration by 90% compared to state-of-the-art FEC baselines. It achieves SSIM improvements of 0.5–4 dB over other loss-resilient schemes under 20–80% packet loss.
  • Video Quality: In lossless scenarios, GRACE's quality is on par with conventional codecs like H.265. Under packet loss, it exhibits a significantly less pronounced decline in quality.
  • User Experience: A user study with 240 participants showed GRACE achieved a 38% higher Mean Opinion Score (MOS) than other baselines.
  • Real-time Performance: GRACE-Lite achieves over 25 fps on mobile devices (iPhone 14 Pro) and real-time encoding/decoding on GPUs.

Limitations and Future Work

  • Computational Cost: While GRACE-Lite improves efficiency, achieving 30 fps on very resource-constrained devices still requires significant optimization. Running on regular CPUs can demand many cores.
  • Compression Efficiency: For certain video content with high spatial complexity, GRACE's compression efficiency might be lower than traditional codecs like H.26x.
  • Generalization: Like many NVCs, GRACE might face challenges in generalizing to video content that deviates significantly from its training data.
  • Multiparty Conferencing: The current work focuses on unicast video. Future work could explore extending GRACE to multiparty conferencing scenarios.
  • Lightweight Models: Distilling more lightweight models suitable for less powerful devices is a promising direction.

Summary updated

BibTeX
@misc{cheng2023grace,
  author = {Yihua Cheng and Anton Arapin and Ziyi Zhang and Qizheng Zhang and Hanchen Li and Nick Feamster and Junchen Jiang},
  title = {{Grace++: Loss-Resilient Real-Time Video Communication under High Network Latency}},
  year = {2023},
  eprint = {2305.12333},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.12333},
}
Figure