Leveraging Cloud Computing to Make Autonomous Vehicles Safer

Peter Schafhalter, Sukrit Kalra, Le Xu, Joseph E. Gonzalez, Ion Stoica

Introduction

Autonomous vehicles (AVs) are currently limited by a significant "hardware gap." To navigate safely in complex environments, these vehicles must process high-fidelity sensor data using state-of-the-art (SOTA) AI models in real-time. However, on-board hardware is constrained by power, cooling, and slow hardware update cycles. Consequently, AVs often trade accuracy for speed, running "lighter" models that may fail to detect subtle hazards.

While cloud computing offers virtually infinite, cutting-edge hardware, it is notoriously unreliable for safety-critical tasks due to unpredictable wireless network (5G/LTE) latency and dead zones. This research proposes a system that harnesses the cloud’s accuracy without sacrificing basic reliability through a speculative execution design.

System Architecture and Methodology

The core of the proposed system is a speculative cloud execution framework. The vehicle attempts to obtain high-accuracy results from the cloud but seamlessly falls back to its on-board hardware if the network lags. This ensures that cloud-assisted safety never comes at the cost of basic operational reliability.

The proposed system architecture for speculative cloud execution, showing the decision-making process between local and cloud-assisted tasks.

Key components of the architecture include:

  • The Arbitrage Opportunity: The researchers demonstrate that a powerful cloud GPU (e.g., NVIDIA A100) can run complex models so much faster than a car's on-board chip (e.g., NVIDIA Orin) that it can often complete the computation and return the result over the network faster than the car could finish a simpler local task. SOTA vision transformers run up to 8.4x faster in the cloud, a margin that often exceeds network latency.
  • Deadline-Aware Operators: The system extends standard AV programming models with a use_cloud API, allowing developers to specify a "deadline" for cloud results.
  • Parallel Execution & Fallback: The system triggers both a local (low-accuracy, low-latency) task and a cloud (high-accuracy) task. If the cloud result arrives before the deadline, it is used; otherwise, the system instantly falls back to the local result.
  • Logical Timestamps: To avoid wall-clock synchronization issues, logical counters match cloud results with their original sensor frames.

Experimental Evaluation

The system was evaluated using the high-fidelity CARLA simulator and three NHTSA crash scenarios: high-speed traffic jams, occluded vehicles running red lights, and unexpected pedestrians jaywalking.

To ground the simulation in reality, the researchers conducted field tests in San Francisco, collecting actual 5G latency distributions along routes used by commercial AV fleets. While the median latency was approximately 68ms, the data revealed a "long tail" where latency could spike up to 3 seconds, highlighting the necessity of a robust fallback mechanism.

Heatmap of 5G network latency collected during field tests in San Francisco, illustrating the unpredictable nature of wireless connectivity in urban environments.

Key Results and Insights

  • Collision Avoidance: In a high-speed (24 m/s) traffic jam scenario, local-only models failed to stop in time. The cloud-assisted model identified the obstacle 222ms earlier using a more accurate detector, successfully avoiding the collision.
  • Latency Resilience: The proposed system successfully mitigated 5G latency spikes. While a naive cloud-dependent system would have failed during network jitters, the speculative approach maintained a safety baseline via local compute.
  • Enhanced Perception: Using the cloud to integrate data from nearby vehicles (V2X) allowed the AV to brake early for hazards it could not physically see, such as a car running a red light behind an occlusion.

Limitations and Future Work

Despite the performance gains, several challenges remain. Uploading raw data from the dozens of cameras found on modern AVs is currently infeasible for standard 5G uplinks, necessitating research into intelligent data compression. Additionally, automating the calculation of optimal deadlines based on vehicle speed and environment, as well as hardening the system against cloud-based security threats, are critical areas for future development.

Summary updated

BibTeX
@inproceedings{schafhalter2023leveraging,
  author = {Peter Schafhalter and Sukrit Kalra and Le Xu and Joseph E. Gonzalez and Ion Stoica},
  title = {{Leveraging Cloud Computing to Make Autonomous Vehicles Safer}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2023},
  doi = {10.1109/iros55552.2023.10341821},
}
Figure