Abstract
Deep neural networks (DNNs) have been widely used in various video analytic tasks. These tasks demand real-time responses. Due to the limited processing power on mobile devices, a common way to support such real-time analytics is to offload the processing to an edge server. This paper examines how to speed up the edge server DNN processing for multiple clients. In particular, we observe batching multiple DNN requests significantly speeds up the processing time. Based on this observation, we first design a novel scheduling algorithm to exploit the batching benefits of all requests that run the same DNN. Our algorithms are general and can support different objectives, such as minimizing the completion time or maximizing the on-time ratio. We then extend our algorithm to handle requests that use different DNNs with or without shared layers. Finally, we develop a collaborative approach to further improve performance by adaptively processing some of the requests or portions of the requests locally at the clients. Our implementation shows the effectiveness of our approach under different request distributions.
Introduction
Real-time video analytics—powering applications like autonomous driving, smart surveillance, and AR/VR—require heavy-duty DNN processing. Mobile devices often lack the computational power to run these models locally in real-time, necessitating offloading to edge servers. However, edge servers face a "traffic jam" problem when multiple clients send requests simultaneously. Traditional scheduling (like First-In-First-Out) fails to account for the unique structure of DNNs. This paper identifies a massive missed opportunity: layer-wise batching. Running multiple images through a DNN as a single batch is often only marginally slower than running one, yet most current systems do not exploit this effectively across independent clients.
The Batching Advantage
The core motivation for this work is the "Batching Free Lunch." Empirical measurements on a Tesla P100 GPU reveal that while processing 10 requests individually takes approximately 132ms, processing them as a single batch takes only 28ms—a 4.7x speedup.
As shown in Figure 3(a), the running time per request drops sharply as batch size increases. Figure 3(b) demonstrates the concept of "Strategic Waiting": by delaying a request slightly to join a batch, the total processing time drops so significantly that the initial delay is more than recovered, leading to lower overall completion times.
System Design and Methods
The proposed framework introduces several novel components to exploit these benefits:
- Batch-Aware Scheduling: Using dynamic programming, the scheduler identifies optimal "splitting points" to group requests. It decides whether a request should run immediately or wait a few milliseconds to form a larger, more efficient batch with upcoming requests.
- Layer-Wise Granularity: The system understands that DNNs are sequences of layers. It can batch requests at specific layers, even if the requests use different models that share a common "backbone" (e.g., feature extractors).
- Collaborative Execution: When the server or network is congested, the system adaptively switches to "Partial Offloading." The mobile client processes the first few layers, compresses the intermediate feature maps using H.264, and sends them to the server to complete the task.
- Multi-DNN Permutation: For servers running diverse models, the scheduler calculates the best order of model execution to maximize throughput.
Experimental Evaluation
The researchers evaluated the system using video frames from the MOT16 dataset and real-world LTE uplink traces (4Mbps to 20Mbps). The model suite included VGG16, ResNet50, GoogleNet, SSD, and FCN.
Key Results
- Capacity Boost: The proposed scheduling improved system capacity (concurrent clients supported) by 20%–67% over standard batching and by 40%–400% over non-batched strategies.
- Deadline Success: When maximizing the on-time ratio, the scheme outperformed the industry-standard "Earliest Deadline First" (EDF) by more than 22%.
- Collaborative Gain: Partial offloading provided an additional 67% capacity boost over server-only strategies during peak congestion.
Conclusion and Future Work
This research demonstrates that layer-wise batching and collaborative execution can significantly enhance the scalability of edge-assisted DNN serving. Future work includes dynamically adjusting GPU memory bounds per layer to unlock further performance and exploring the battery-life trade-offs for mobile devices during partial offloading.
Summary updated