TL;DR
The paper introduces Ibis, a resource management system for edge clouds that uses analytic queueing models to predict the performance of AI inference tasks on shared hardware accelerators. By accounting for the non-linear latency interference that occurs when multiple applications share a GPU or TPU, Ibis can host up to 2.3X more applications in a cluster compared to traditional methods while strictly maintaining latency guarantees.
What Problem Does This Paper Address?
Edge computing is essential for latency-sensitive applications like mobile Augmented Reality (AR) and IoT analytics. To handle the heavy lifting of Deep Neural Network (DNN) inference, edge servers often use specialized accelerators like NVIDIA Jetson GPUs or Google EdgeTPUs.
However, unlike cloud-grade CPUs or high-end GPUs, these edge accelerators often lack hardware virtualization or isolation features. When multiple "tenants" (different applications) share one accelerator, they interfere with each other. Traditional cluster management treats resources like a "knapsack" problem—if you have 8GB of RAM, you can fit four 2GB apps. But latency doesn't work that way; it's non-linear. Adding one more application might cause the response times of all existing applications to spike, violating their Service Level Objectives (SLOs).
Methods
The authors propose a model-driven approach called Ibis. The core innovation lies in using Queueing Theory to create mathematical "digital twins" of different hardware behaviors:
- Network of Queues: They model the request path as a tandem queue: first the CPU (which is virtualized and isolated), then the shared Accelerator (which is not).
- TPU Modeling: Since EdgeTPUs process tasks one-by-one (First-Come-First-Served), they use an $M/G/1/FCFS$ model. Crucially, they incorporate context-switching overhead—the time it takes to swap a DNN model from the host RAM into the TPU's limited on-chip memory.
- GPU Modeling: Edge GPUs use time-sharing. The authors found that requests from the same app behave like FCFS, while requests from different apps behave like Processor Sharing (PS). They use a hybrid model to bound expected response times.
- Ibis Placement Algorithm: Instead of just checking if an app "fits" in memory, Ibis uses these queueing equations to predict if a new app will cause any app on that node to miss its latency deadline.
- AI-as-a-Service (AIaaS) Grouping: Ibis can opportunistically group applications using the same DNN model to save memory and reduce context-switching.
Datasets
The researchers evaluated Ibis using a diverse set of workloads:
- DNN Models: Two dozen popular models across families like AlexNet, ResNet, EfficientNet, Yolo, Inception, VGG, and DenseNet.
- Inference Data: Images from the ImageNet dataset.
- Workload Traces: To simulate realistic multi-tenant traffic, they used the public Azure VM trace to determine the distribution of application sizes and arrival patterns.
Key Insights and Ideas
- Latency is Non-Additive: You cannot simply sum up resource requirements. A model-driven approach is required to understand how the arrival rate of one app affects the waiting time of another.
- The TPU "Memory Tax": The authors quantified that switching models on an EdgeTPU takes 10–17ms. For a fast model, the "tax" of loading it can be longer than the actual inference time.
- Hardware Heterogeneity Matters: Small DNN models often run faster on a TPU, but large models perform better on a GPU because the GPU has enough onboard RAM to avoid the "memory tax" of constant swapping. Ibis exploits this by dynamically choosing the best accelerator type for each specific model.
- Policing via Token Buckets: To prevent a "noisy neighbor" from ruining performance for everyone, Ibis uses token buckets to rate-limit incoming requests, triggering migrations only when a sustained workload increase is detected.
Key Results
- Capacity Boost: Ibis hosted 2.3X more DNN applications than traditional knapsack-based hosting algorithms while maintaining zero latency violations.
- Prediction Accuracy: The analytic models closely matched real-world experimental data across various utilization levels for both GPUs and TPUs.
- AIaaS Efficiency: Grouping applications that use the same model (AIaaS) doubled the capacity of individual nodes by amortizing the memory footprint of the runtime environment.
- Dynamic Resilience: The system successfully identified "hotspots" (nodes where an app's arrival rate increased) and migrated those apps to quieter nodes without affecting other tenants.
Limitations and Future Work
- Poisson Assumption: The models assume a Poisson arrival process for requests. While standard in queueing theory, real-world edge traffic can sometimes be "burstier," which might require more complex G/G/1 models.
- Inference Only: The paper focuses strictly on inference. Resource management for edge training (federated learning) would introduce different constraints, such as long-running tasks that cannot be easily time-shared.
- Power Consumption: While the paper mentions the low power of edge devices, it does not explicitly include power-awareness in its placement heuristics (e.g., consolidating workloads to turn off a node).
Summary updated