Control-Aware Prediction Objectives for Autonomous Driving

Rowan McAllister, Blake Wulfe, Jean Mercat, Logan Ellis, Sergey Levine, Adrien Gaidon · DOI · OpenReview

Abstract

Traditional trajectory prediction models in autonomous driving prioritize geometric accuracy, often failing to account for the downstream impact on vehicle control. This paper introduces Control-Aware Prediction Objectives (CAPO), a framework that weights prediction errors based on their influence on the ego-vehicle's steering and braking. By utilizing attention mechanisms and counterfactual reasoning, CAPO enables prediction models to focus on safety-critical agents without requiring a differentiable planner. Experiments in the CARLA simulator demonstrate that CAPO significantly improves driving safety, reducing collisions by an order of magnitude compared to standard baselines.

Introduction

In the standard modular pipeline for autonomous driving, the system is divided into discrete components: perception, prediction, and planning. While this separation allows for easier debugging and interpretability, it introduces a significant "objective mismatch." Prediction modules are typically trained to minimize geometric metrics, such as Average Displacement Error (ADE), or to maximize the likelihood of a trajectory. However, these metrics are agnostic to the downstream task of driving.

In a real-world driving environment, not all agents are created equal. A prediction error of one meter regarding a vehicle three lanes away is often inconsequential, whereas the same error regarding a pedestrian stepping into the ego-vehicle’s path can be catastrophic. While end-to-end learning attempts to bridge this gap, it often requires every component in the stack to be mathematically differentiable—a requirement that is frequently incompatible with the complex, rule-based, or non-differentiable planners used in industrial applications. This paper proposes CAPO to bridge this gap while maintaining the modularity and flexibility of the driving stack.

Control-Aware Prediction Objectives (CAPO)

The authors propose two distinct methods for calculating importance weights to guide the training of prediction models, ensuring they prioritize agents that most affect the ego-vehicle's behavior.

1. Attention-based CAPO

This method leverages a multi-head attention mechanism where the ego-vehicle attends to other agents in the scene. By training the model to jointly predict the ego-vehicle's path alongside the paths of other agents, the learned attention weights naturally highlight which agents the planner is reacting to. These weights are then utilized to scale the prediction loss, forcing the model to "pay more attention" to agents that historically influence the ego-vehicle's trajectory.

2. Counterfactual Action-Discrepancy CAPO

The counterfactual approach employs a "what-if" analysis. For any given scene, the system calculates the ego-vehicle's control output using the ground-truth trajectory of a nearby agent. It then replaces that ground truth with a predicted sample and observes the resulting change in the planner's output. If the control output changes significantly, the agent is deemed safety-critical.

Crucially, this method only requires "forward passes" of the planner. This allows CAPO to be integrated with existing, complex, and non-differentiable planning software, making it highly practical for real-world deployment where planners are often black-box or non-gradient-friendly systems.

Experimental Evaluation

The researchers evaluated CAPO using the CARLA simulator (Town01) in a challenging "suburban driving" scenario. The environment featured an ego-vehicle navigating a road lined with pedestrians, some of whom would randomly jaywalk across the street. This setup was specifically designed to test the model's ability to distinguish between irrelevant agents (pedestrians on the sidewalk) and critical agents (jaywalkers).

CAPO was compared against several baselines, including standard likelihood-based models (R2P2), attention-only models, and "Oracle" distributions with perfect knowledge of the simulation physics.

Key Results and Insights

The quantitative results demonstrate a clear advantage for control-aware objectives. The best-performing CAPO method (R2P2 Weight_πk) achieved a 99.0% success rate, a significant improvement over the 89.0% success rate of the standard baseline. Most notably, the CAPO-trained model resulted in only 1 collision over 100 test episodes, whereas the standard prediction baseline resulted in 11 collisions.

The Metric Paradox

A key insight from the study is the divergence between standard prediction metrics and actual driving safety. The authors found that a model might exhibit a worse ADE while resulting in a safer driving outcome. By focusing its limited learning capacity on safety-critical agents, the model may become less accurate at predicting irrelevant agents, but the overall system performance improves because the errors that remain do not impact the planner's decisions.

Sparsity of Interaction

In typical driving data, the vast majority of agents (often upwards of 99%) do not influence the ego-vehicle's immediate control. CAPO effectively acts as a filter, allowing the neural network to ignore the "noise" of the crowd and concentrate on the small fraction of agents that necessitate a control response.

Limitations and Future Work

While CAPO shows great promise, the authors note several areas for future exploration:

  • Data Dependence: The counterfactual method requires access to the planner during training or a comprehensive replay buffer of planner responses.
  • Scenario Complexity: The current study focused on jaywalking; future work should evaluate CAPO in more complex multi-agent environments, such as high-density urban intersections.
  • Expert Data Assumptions: The framework currently assumes training data is sourced from an "expert" system. Investigating how these objectives handle suboptimal or noisy driving data is a necessary next step for robustness.

Conclusion

CAPO provides a robust framework for making trajectory prediction "control-aware" without sacrificing the benefits of a modular autonomous driving stack. By aligning prediction objectives with the ultimate goal of safe planning, CAPO significantly reduces collisions and improves the reliability of autonomous systems in interactive environments.

Summary updated

BibTeX
@inproceedings{mcallister2022control,
  author = {Rowan McAllister and Blake Wulfe and Jean Mercat and Logan Ellis and Sergey Levine and Adrien Gaidon},
  title = {{Control-Aware Prediction Objectives for Autonomous Driving}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2022},
  url = {https://openreview.net/forum?id=jizOlrse4e},
}
Figure