Abstract
Autonomous vehicles (AVs) must interpret sensor data and generate responses in a timely manner to ensure safety. However, timing-related safety requirements are often overlooked. This paper introduces COLA, a framework to characterize and mitigate tail latency in Level-4 AV computing systems. We observe that latency is highly susceptible to environmental fluctuations, such as traffic density, leading to bursty computation and memory access. Furthermore, static computation pipelines often fail to meet dynamic real-world latency requirements. COLA addresses these issues through adaptive data flows and proactive processing. Evaluation on Baidu Apollo and Autoware shows a 1.65x improvement in worst-case latency and avoids 93% of accidents in Apollo.
Introduction: The Danger of the "Tail"
In Level-4 autonomous driving, where human intervention is absent, timing is a critical safety component. While average performance metrics are common, safety is governed by tail latency: the worst-case delays that occur during system stress. Current AV stacks, such as Baidu Apollo and Autoware, utilize complex multi-stage pipelines consisting of perception, prediction, and planning. A delay in one stage can ripple through the entire system, a phenomenon known as "latency aggregation."
When a module lags due to a sudden burst of traffic or a complex environment, the resulting tail latency can cause the vehicle to miss critical safety windows, such as failing to yield to a pedestrian or reacting too late to a reckless cut-in.
Methods: Optimizing the Critical Path
COLA (Characterizing and Optimizing the Tail Latency) introduces three primary system-level optimizations to tame these delays:
- Adaptive DataFlow (Fastpath): Instead of uniform processing, COLA identifies high-risk objects and triggers a "fastpath"—a simplified, lower-latency version of prediction and planning modules—to ensure a reaction happens within the safety deadline.
- Proactive Processing: To reduce idle time, COLA uses "ahead-of-time" processing to update internal states (like vehicle position or road info) before the next sensor frame is fully processed, shaving milliseconds off the critical path.
- Best-Effort Work Stealing: COLA implements a coroutine system that allows tasks to "steal" idle CPU cycles from other groups without violating primary task deadlines, improving overall resource utilization.
Key Insights: Environmental Impact on Latency
A core finding of this research is the direct correlation between the driving environment and system performance. Specifically, traffic density drives bursty computation and memory access.
As shown in Figure 6, heavier traffic increases the computational load exactly when the system needs to be most responsive. Current systems suffer from "entangled priority," where the system waits to process all detected objects before moving to the next stage. COLA advocates for object-level deadlines, prioritizing immediate hazards over distant objects.
Evaluation and Results
The researchers evaluated COLA using the high-fidelity CARLA simulator across 8,329 scenarios, including NHTSA pre-crash reports and Apollo industrial test cases.
- Latency Improvement: COLA achieved a 1.65x improvement in worst-case (tail) latency and a 1.3x improvement in average latency.
- Safety Gains: In the Baidu Apollo stack, COLA prevented 93% of accidents that occurred in the baseline system due to processing delays.
- Efficiency Trade-offs: The safety gains come with a minor 6.43% increase in commute time due to the more conservative nature of the "fastpath" planning.
Conclusion
COLA demonstrates that addressing tail latency is essential for AV safety. By moving away from static, all-or-nothing processing toward adaptive, priority-aware pipelines, AV systems can become significantly more resilient to the unpredictable nature of real-world driving. Future work will explore extending these concepts into the perception layer and optimizing for specialized AV hardware.
Summary updated