Introduction
Real-time video analytics for applications like autonomous driving and augmented reality demand high-performance Deep Neural Network (DNN) inference. While edge servers provide the necessary computational power, they often struggle with high concurrency. Traditional scheduling methods fail to leverage the inherent efficiency of GPU batching, leading to throughput bottlenecks. This paper introduces a novel scheduling framework designed to optimize edge-server DNN inference through adaptive batching and collaborative execution.
Methodology: Layer-Wise and Batching-Aware Scheduling
The proposed framework moves beyond simple First-In-First-Out (FIFO) scheduling by implementing a multi-tiered optimization strategy.
Dynamic Programming for Optimal Batching
The core of the system is a Dynamic Programming (DP) algorithm that identifies optimal splitting points in a request stream. It evaluates whether to process a request immediately or wait for subsequent requests to form a larger batch, maximizing throughput without violating latency constraints.
Granular Layer Management
Unlike traditional schedulers that treat DNN tasks as monolithic jobs, this framework operates at the layer level. By understanding the internal structure of DNNs, the scheduler can batch requests that are at identical layers, even if they originated at different times or from different models sharing a common backbone.
Collaborative Edge Execution
To further reduce server load, the system supports partial offloading. Mobile clients perform initial layer processing locally, sending compressed intermediate feature maps—shrunk using hardware-accelerated H.264 compression—to the edge server. This collaborative approach significantly increases the overall serving capacity of the edge infrastructure.
Key Insights: The Efficiency of Batching
The primary motivation for this work is the "Batching Free Lunch" observed in modern GPUs. As shown in Figure 1, the marginal cost of adding requests to a batch is remarkably low.
For instance, on an Nvidia Tesla P100, a single GoogleNet request might take 24ms, but a batch of ten takes only 28ms. This means nine additional requests are processed for only 4ms of extra time. The scheduler exploits this by strategically delaying early-arriving requests to group them with later ones, reducing the total time the GPU spends on overhead like loading model weights.
Evaluation and Results
The framework was evaluated using diverse models (VGG16, ResNet50, SSD, FCN) and real-world traces. Key findings include:
- Throughput: System capacity increased by 20%–67% compared to standard batching and up to 400% over non-batched baselines.
- Latency: Completion times for complex video tasks were reduced by 25%–32% relative to state-of-the-art GPU schedulers like Nexus.
- Deadline Adherence: The algorithm outperformed Earliest Deadline First (EDF) by over 22% in terms of capacity while meeting real-time constraints.
- Collaborative Gains: Client-side partial processing provided an additional 67% boost in system capacity.
Conclusion
By combining layer-aware scheduling with strategic batching and collaborative execution, this framework significantly enhances the scalability of edge-based DNN inference. Future work will address dynamic memory management and energy efficiency on mobile clients to further refine the system for diverse hardware environments.
Summary updated