Abstract
Autonomous driving systems rely on complex task graphs where execution times are often unpredictable. Traditional scheduling methods either over-provision hardware or fail to account for the physical state of the vehicle, leading to a "performance-responsiveness" gap. This paper presents HCPerf, a hierarchical coordination framework that uses real-time driving performance metrics, such as tracking error, to dynamically prioritize computing tasks. HCPerf consists of an internal coordinator that reorders the task queue based on current driving accuracy and an external coordinator that adapts task rates to manage system load. Evaluation on simulation and hardware testbeds shows that HCPerf improves driving accuracy by up to 45.94% and maintains near-zero deadline miss ratios under heavy load.
Introduction
Modern autonomous vehicles (AVs) integrate a multitude of tasks—ranging from high-frequency sensing and perception to complex path planning and control—typically structured as a Directed Acyclic Graph (DAG). A significant challenge in these systems is the variability of task execution times, which can fluctuate based on environmental complexity. For instance, perception tasks require significantly more processing power in dense urban environments compared to open highways.
The Performance-Responsiveness Gap
Existing scheduling approaches often fall short. Static scheduling relies on worst-case execution time (WCET) estimates, leading to inefficient hardware utilization. Conversely, system-centric adaptive scheduling monitors CPU load but lacks awareness of the vehicle's physical performance. This creates a conflict between the need for high throughput (for smooth, comfortable driving) and high responsiveness (for safety-critical maneuvers).
Hierarchical Coordination Strategy
HCPerf introduces a two-tier strategy to bridge this gap:
Internal Coordination: The Tactician
The internal coordinator manages the "ready queue" by adjusting task priorities in real-time. It utilizes a Performance Directed Controller (PDC) based on Model-Free Control (MFC) to calculate a priority adjustment coefficient derived from the vehicle's tracking error. When the error is high, the Dynamic Priority Scheduler (DPS) elevates the priority of control tasks, ensuring immediate physical response.
External Coordination: The Strategist
To handle overall system workload, the external coordinator employs a Task Rate Adapter (TRA). This feedback controller monitors the deadline miss ratio. If the system becomes overloaded, the TRA dynamically scales back the sampling rates of source tasks (e.g., LiDAR or cameras) to ensure the system remains schedulable without compromising safety.
Experimental Evaluation and Results
HCPerf was evaluated using the Apollo Cyber RT platform in simulation and a 1:10 scaled hardware testbed. The framework was compared against standard schedulers including High Priority First (HPF) and Earliest Deadline First (EDF).
The results indicate that HCPerf significantly enhances driving performance, with accuracy improvements ranging from 7.69% to 45.94%. In speed tracking scenarios, HCPerf reduced the Root Mean Square (RMS) error to 0.55 m/s, a substantial improvement over the 1.28 m/s error observed with the standard Apollo scheduler. Furthermore, HCPerf demonstrated exceptional stability; even when task execution times were doubled, it maintained a near-zero deadline miss ratio, whereas baseline schedulers experienced misses of up to 6%.
Conclusion
By treating the system scheduler as a closed-loop controller informed by physical performance, HCPerf provides a robust solution for real-time AV task management. Its lightweight design and model-free adaptability make it a practical candidate for deployment on resource-constrained edge platforms, ensuring both driving comfort and safety in dynamic environments.
Summary updated