Cloud Is Closer Than It Appears: Revisiting the Tradeoffs of Distributed Real-Time Inference
Organizations: University of California Los Angeles · University of California Riverside
Abstract
The increasing deployment of deep neural networks (DNNs) in cyber-physical systems (CPS) enhances perception fidelity, but imposes substantial computational demands on execution platforms, posing challenges to real-time control deadlines. Traditional distributed CPS architectures typically favor on-device inference to avoid network variability and contention-induced delays on remote platforms. However, this design choice places significant energy and computational demands on the local hardware. In this work, we revisit the assumption that cloud-based inference is intrinsically unsuitable for latency-sensitive control tasks. We demonstrate that, when provisioned with high-throughput compute resources, cloud platforms can effectively amortize network and queueing delays, enabling them to match or surpass on-device performance for real-time decision-making. Specifically, we develop a formal analytical model that characterizes distributed inference latency as a function of the sensing frequency, platform throughput, network delay, and task-specific safety constraints. We instantiate this model in the context of emergency braking for autonomous driving and validate it through extensive simulations using real-time vehicular dynamics. Our empirical results identify concrete conditions under which cloud-based inference adheres to safety margins more reliably than its on-device counterpart. These findings challenge prevailing design strategies and suggest that the cloud is not merely a feasible option, but often the preferred inference location for distributed CPS architectures. In this light, the cloud is not as distant as traditionally perceived; in fact, it is closer than it appears.
Figures & tables
| Model | mAP | Cloud / A5000 | On-Device / Jetson | ||
|---|---|---|---|---|---|
| Energy (J) | Latency (s) | Energy (J) | Latency (s) | ||
| YOLO11x | 54.7 | 1.66 | 0.029 | 0.75 | 0.126 |
| YOLO11l | 53.4 | 1.27 | 0.028 | 0.75 | 0.126 |
| YOLO11m | 51.5 | 0.92 | 0.021 | 0.58 | 0.095 |
| YOLO11s | 47.0 | 0.76 | 0.019 | 0.43 | 0.088 |
| YOLO11n | 39.5 | 0.73 | 0.019 | 0.41 | 0.079 |
Distributed Inference
Distributed inference runs machine-learning models across multiple devices or sites to meet compute, latency, memory, privacy, and reliability needs.
See all 75 papers