AccDecoder: Accelerated Decoding for Neural-enhanced Video Analytics

Tingting Yuan, Liang Mi, Weijun Wang, Haipeng Dai, Xiaoming Fu

Abstract

Modern video analytics systems face a significant tension between the high-resolution requirements of deep learning models and the strict latency constraints of real-time processing. While neural Super-Resolution (SR) can enhance low-quality streams to improve detection accuracy, its computational overhead is often prohibitive. This paper presents AccDecoder, a content-aware, neural-enhanced video decoder that bridges this gap. By leveraging existing video codec metadata and a Deep Reinforcement Learning (DRL) scheduler, AccDecoder intelligently selects processing pipelines for video frames, achieving a 6–21% accuracy boost and a 20–80% reduction in latency compared to state-of-the-art baselines.

1. Introduction

Video analytics, particularly object detection in surveillance, thrives on high-resolution input. However, real-world deployments often rely on low-quality, heavily compressed streams due to bandwidth and hardware limitations. While neural Super-Resolution (SR) can "up-scale" these videos to recover lost detail, the process is computationally expensive—often requiring ~500ms per frame. This far exceeds the <33ms threshold required for real-time 30 FPS applications.

Existing solutions typically treat every frame with equal priority, ignoring the temporal redundancy and varying informational value inherent in video streams. AccDecoder addresses these inefficiencies by treating the video decoder not just as a decompression tool, but as an active participant in the analytics pipeline that reuses motion data already present in the video stream.

2. System Architecture

AccDecoder introduces a "plug-and-play" decoder architecture that manages three distinct processing pipelines through an intelligent scheduler:

2.1 The Three-Tier Pipeline

  1. Pipeline ❶ (SR + Inference): This pipeline designates specific "anchor frames" to undergo full neural super-resolution followed by an inference DNN (e.g., YOLOv5). This provides the high-quality baseline for subsequent frames.
  2. Pipeline ❷ (SR Transfer + Inference): Rather than running SR on every frame, this pipeline transfers the quality gains from a previous anchor frame to the current frame using motion vectors (MVs) and residuals from the video codec. This allows the system to maintain high visual quality at a fraction of the computational cost.
  3. Pipeline ❸ (Inference Reuse): For frames with minimal change or predictable motion, the system skips the inference DNN entirely. It reuses the bounding box results from a previous frame by shifting them according to the detected motion vectors in the video stream.

2.2 The DRL Scheduler

At the heart of AccDecoder is an Asynchronous Advantage Actor-Critic (A3C) reinforcement learning agent. The agent determines the optimal pipeline for each video "chunk" by analyzing content features (via a lightweight VGG16) and codec features.

A key innovation is the use of the Laplacian of the residuals as a proxy for scene complexity. By analyzing the difference between frames (residuals) rather than raw pixel data, the system reduces feature extraction time by 34% while maintaining a high correlation with inference accuracy. This allows the scheduler to increase the inference rate dynamically when vehicle density or velocity increases.

3. Performance Evaluation

3.1 Experimental Setup

The authors evaluated AccDecoder using diverse datasets, including VisDrone (for detection-driven SR training), CityScapes (for inference loss calculation), and real-world surveillance footage from YouTube and the "Yoda" dataset. Performance was compared against several baselines: Glimpse, AWStream, DDS, and Reducto.

3.2 Key Results

  • Accuracy: AccDecoder demonstrated an F1-score improvement of 6–38% over competitive baselines like DDS and Glimpse.
  • Throughput: The system achieved a throughput of approximately 35 FPS, successfully meeting the real-time threshold where other SR-based methods failed.
  • Efficiency: By only designating approximately 6% of frames as "anchor frames," the system amortizes the high cost of SR across the entire stream. This resulted in a latency reduction of 20–80% compared to most baselines.

4. Discussion and Future Work

AccDecoder demonstrates that video codec data—specifically motion vectors and residuals—is a "goldmine" for accelerating neural analytics. By reusing the work already performed during video encoding, the system avoids redundant calculations.

However, limitations remain. The current "SR Transfer" method can occasionally blur very small objects due to interpolation errors, leading to missed detections. Future iterations may explore macroblock-level selection, allowing the scheduler to enhance specific regions of interest within a frame rather than the entire frame. Additionally, joint optimization between the camera-side encoder and the server-side decoder could further refine the accuracy-latency tradeoff.

5. Conclusion

AccDecoder provides a scalable solution for high-accuracy, real-time video analytics. By integrating neural enhancement directly into the decoding process and utilizing DRL for intelligent scheduling, it overcomes the computational bottlenecks of traditional super-resolution, providing a viable path for sophisticated analytics in resource-constrained environments.

Summary updated

BibTeX
@inproceedings{yuan2023accdecoder,
  author = {Tingting Yuan and Liang Mi and Weijun Wang and Haipeng Dai and Xiaoming Fu},
  title = {{AccDecoder: Accelerated Decoding for Neural-enhanced Video Analytics}},
  booktitle = {INFOCOM},
  year = {2023},
  doi = {10.1109/infocom53939.2023.10228933},
}
Figure