PILOT: Efficient Planning by Imitation Learning and Optimisation for Safe Autonomous Driving

Henry Pulver, Francisco Eiras, Ludovico Carozza, Majd Hawasly, Stefano V. Albrecht, Subramanian Ramamoorthy

TL;DR

PILOT is a hybrid motion planning framework that combines the speed of deep imitation learning with the safety guarantees of model-based optimization. By using a neural network to "warm-start" a lightweight optimizer, it achieves a 7x speedup over state-of-the-art planners while maintaining nearly identical safety and comfort performance.

What Problem Does This Paper Address?

Motion planning for autonomous vehicles (AVs) usually falls into two camps, both with significant drawbacks:

  1. Model-based Optimization: These planners (like Model Predictive Control) are excellent at satisfying safety constraints and comfort requirements. However, they are computationally expensive—often too slow for real-time reactions in complex urban environments because solving these non-linear problems from scratch is NP-hard.
  2. Data-driven Imitation Learning (IL): These neural networks are incredibly fast at inference. However, they are "black boxes" that lack formal safety guarantees. If a network encounters a situation it hasn't seen in training (out-of-distribution), it might output a trajectory that is kinematically impossible or, worse, results in a collision.

The authors address this "safety vs. efficiency" trade-off by proposing a system where a neural network provides a "best guess" that an efficient optimizer then refines and validates.

Methods

The PILOT (Planning by Imitation Learning and Optimisation) framework consists of two main phases:

1. Training (The "Expert-in-the-Loop")

The authors use a high-performance but slow optimizer called 2S-OPT as the "expert." To train the neural network ($N_\theta$), they employ a DAgger-style (Dataset Aggregation) approach. Instead of just learning from static logs, the agent drives in a simulator. When it makes a mistake or encounters a new state, the expensive expert planner is called to provide the optimal trajectory for that specific state, which is then added to the training set. This helps the network learn how to recover from its own errors.

2. Inference (The Hybrid Pipeline)

At runtime, the process follows a two-step "Predict-then-Correct" pipeline:

  • Prediction: The neural network takes a bird’s-eye view image of the scene and the vehicle's state to predict a trajectory ($\tau_{N\theta}$).
  • Correction: This predicted trajectory is used to warm-start an efficient Nonlinear Programming (NLP) solver. Because the solver starts very close to a good solution, it converges much faster than if it started from a naive guess. This solver ensures the final plan satisfies all hard constraints (kinematics, road boundaries, and collision avoidance).

Datasets

The researchers evaluated PILOT using the CARLA simulator (v0.9.10):

  • LARGESCALE Dataset: Comprises 20,604 planning problems generated in CARLA’s Town02 with up to 40 non-ego vehicles. Testing was performed on a separate set of 1,000 problems in Town01.
  • SMALLSCALE Dataset: A simpler set of 20,000 problems involving straight roads and fewer obstacles, used specifically to compare PILOT against baseline architectures like Constrained Policy Nets (CPN).

Key Insights and Ideas

  • Warm-Starting is the Secret Sauce: The primary bottleneck in optimization is finding a feasible starting point. By using a neural network to "jump" the solver to the right neighborhood of the solution space, the authors turn a slow optimization problem into a fast refinement task.
  • Safety as a Filter: PILOT treats the neural network as a proposal mechanism and the optimizer as a safety filter. This allows the system to benefit from the "intuition" of deep learning without inheriting its lack of interpretability or reliability.
  • Imitation is Easier than Direct Optimization: The authors found that training a network to imitate an expert (using a simple $L_2$ loss) was far more stable and effective than trying to train a network to directly minimize a complex cost function with many constraints (the approach taken by Constrained Policy Nets).

Key Results

  • Massive Speedup: PILOT achieved an average total runtime of 120ms, compared to 870ms for the expert 2S-OPT planner. This represents an ~86% reduction in runtime.
  • High Fidelity: Despite the speedup, the "cost" of the trajectories (a measure of safety and comfort) only increased by about 5% compared to the expensive expert.
  • Constraint Satisfaction: While the neural network alone often failed to meet kinematic constraints (like steering limits), the combined PILOT system satisfied all constraints in 99.4% of test cases.
  • Superior to Heuristics: PILOT significantly outperformed simple baselines (like assuming constant velocity or acceleration) for warm-starting the solver, proving that the learned "intuition" of the NN is valuable.

Limitations and Future Work

  • Expert Ceiling: PILOT is fundamentally designed to imitate an expert. If the expert planner has flaws or sub-optimal behaviors, the neural network will likely learn them too.
  • Multi-modality: The current model uses a simple $L_2$ loss, which can struggle with multi-modal situations (e.g., a choice between overtaking on the left vs. the right). The authors suggest exploring Conditional Imitation Learning to handle these "either/or" decisions better.
  • Advanced Experts: Future work could involve using even more complex experts during training (like ensemble planners) since the expert's complexity only impacts training time, not real-time inference speed.

Summary updated

BibTeX
@inproceedings{pulver2021pilot,
  author = {Henry Pulver and Francisco Eiras and Ludovico Carozza and Majd Hawasly and Stefano V. Albrecht and Subramanian Ramamoorthy},
  title = {{PILOT: Efficient Planning by Imitation Learning and Optimisation for Safe Autonomous Driving}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2021},
  doi = {10.1109/iros51168.2021.9636862},
}
Figure