ModiPick: SLA-aware Accuracy Optimization For Mobile Deep Inference

Samuel S. Ogden, Tian GuoarXiv 2019

Abstract

Mobile deep learning applications often offload inference to cloud servers to overcome local hardware constraints. However, the inherent variability of mobile networks introduces significant latency jitter, leading to frequent Service Level Agreement (SLA) violations or sacrificed accuracy. We propose ModiPick, a cloud-based model selection framework that dynamically adapts to real-time network conditions. By treating inference as a probabilistic trade-off between accuracy and latency, ModiPick improves SLA adherence by up to 88.5% and reduces end-to-end latency by 42% compared to static greedy approaches.

Introduction: The Network Variability Problem

Deep learning has enabled transformative features in mobile applications, such as real-time translation and sophisticated image recognition. Due to the high computational requirements of these models, developers frequently offload inference to powerful cloud backends. The primary obstacle to this approach is network variability.

Empirical CDF of network transfer times across different connection types, highlighting the significant variability and "jitter" inherent in mobile environments.

As shown in Figure 1, network latency varies drastically not only between connection types (e.g., Campus WiFi vs. LTE Hotspot) but also within a single connection type. Traditional cloud services often use static model selection, which fails in these dynamic environments: high-accuracy models cause SLA violations during network lags, while lightweight models sacrifice accuracy even when network conditions are optimal.

The ModiPick Framework

ModiPick addresses this "lose-lose" scenario through a three-stage probabilistic algorithm designed to maximize accuracy within a specific time budget.

  1. Baseline Selection: The system estimates the available time budget by subtracting the current network transfer time from the SLA. It identifies a baseline model statistically likely to complete within this budget, considering both the mean and standard deviation of historical execution times.
  2. Exploration Set Generation: ModiPick identifies a "pool" of eligible models, including more accurate (but slower) candidates and faster "safety net" models.
  3. Probabilistic Selection: A utility function selects the final model from the pool. This function balances model accuracy, the risk of SLA violation, and the "freshness" of the model's performance profile, allowing the system to explore and update its knowledge of the current environment.

Experimental Evaluation

The researchers evaluated ModiPick using a prototype Android application on a MotoX device connected to an Amazon EC2 p2.xlarge backend. The model pool consisted of 12 state-of-the-art CNNs, ranging from SqueezeNet and various MobileNetV1 versions to larger models like Inception V4 and NasNet Large. Evaluation was performed using real-world network profiles collected from Campus WiFi, Home WiFi, Public WiFi, and LTE connections.

Key Results and Discussion

ModiPick demonstrates superior performance in maintaining high accuracy while strictly adhering to latency constraints.

SLA Misses and Accuracy as a function of the SLA Target. As the time budget increases, ModiPick intelligently shifts to more accurate models while keeping SLA violations near zero.

As illustrated in Figure 6, ModiPick effectively manages the trade-off between accuracy and reliability. When the SLA target is tight (e.g., < 200ms), the system prioritizes meeting the deadline, resulting in lower accuracy but fewer misses. As the target increases, ModiPick "gradually" transitions to more accurate models like MobileNet 1.0. Overall, the framework improved SLA adherence by up to 88.5% and achieved up to 42% lower end-to-end latency compared to greedy static models.

Conclusion and Future Work

ModiPick provides a robust solution for mobile deep inference by making model selection SLA-aware and network-adaptive. While currently focused on image recognition, future work includes extending the framework to NLP tasks, optimizing for cloud costs, and automating confidence thresholds based on real-time feedback.

Summary updated

BibTeX
@misc{ogden2019modipick,
  author = {Samuel S. Ogden and Tian Guo},
  title = {{ModiPick: SLA-aware Accuracy Optimization For Mobile Deep Inference}},
  year = {2019},
  eprint = {1909.02053},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.02053},
}
Figure