[Paper Review] DiffStack: A Differentiable and Modular Control Stack for Autonomous Vehicles
DiffStack introduces a differentiable and modular control stack for autonomous vehicles that integrates learned motion prediction with differentiable model predictive control (MPC) and planning, enabling end-to-end backpropagation through decision-making components. This approach improves planning performance by up to 15% in open-loop metrics and reduces lane-keeping and control effort costs in closed-loop simulation, demonstrating that planning-aware prediction enhances downstream decision-making without sacrificing interpretability.
Autonomous vehicle (AV) stacks are typically built in a modular fashion, with explicit components performing detection, tracking, prediction, planning, control, etc. While modularity improves reusability, interpretability, and generalizability, it also suffers from compounding errors, information bottlenecks, and integration challenges. To overcome these challenges, a prominent approach is to convert the AV stack into an end-to-end neural network and train it with data. While such approaches have achieved impressive results, they typically lack interpretability and reusability, and they eschew principled analytical components, such as planning and control, in favor of deep neural networks. To enable the joint optimization of AV stacks while retaining modularity, we present DiffStack, a differentiable and modular stack for prediction, planning, and control. Crucially, our model-based planning and control algorithms leverage recent advancements in differentiable optimization to produce gradients, enabling optimization of upstream components, such as prediction, via backpropagation through planning and control. Our results on the nuScenes dataset indicate that end-to-end training with DiffStack yields substantial improvements in open-loop and closed-loop planning metrics by, e.g., learning to make fewer prediction errors that would affect planning. Beyond these immediate benefits, DiffStack opens up new opportunities for fully data-driven yet modular and interpretable AV architectures. Project website: https://sites.google.com/view/diffstack
Motivation & Objective
- To address compounding errors and integration challenges in modular autonomous vehicle (AV) stacks by enabling joint optimization of prediction, planning, and control.
- To retain the interpretability and formal guarantees of hand-engineered planning and control modules while making them differentiable for data-driven training.
- To demonstrate that differentiable algorithms can be composed into real-world AV stacks trained on large-scale datasets like nuScenes.
- To enable planning-aware motion prediction by optimizing prediction models with respect to downstream control objectives through gradient flow.
- To open new pathways for fully data-driven yet modular and interpretable AV architectures.
Proposed method
- Introduces a modular AV stack with a learned neural network for motion prediction, and differentiable model predictive control (MPC) and planning algorithms.
- Employs differentiable optimization techniques to make the MPC controller and planner differentiable, enabling gradient backpropagation from control loss to prediction module.
- Uses a differentiable planner that generates trajectory candidates and a differentiable controller that computes control actions via convex optimization with differentiable constraints.
- Trains the prediction module end-to-end using gradients from the final control objective, allowing it to learn predictions that minimize downstream planning and control costs.
- Employs a closed-loop simulation setup with the nuScenes dataset to evaluate performance under realistic driving scenarios.
- Utilizes a composite cost function in planning that includes trajectory cost, collision cost, lane-keeping cost, and control effort, all differentiable for optimization.
Experimental results
Research questions
- RQ1Can differentiable hand-engineered planning and control algorithms be effectively composed with learned prediction models in a real-world AV stack?
- RQ2To what extent does end-to-end training with gradient flow through planning and control improve prediction quality for decision-making?
- RQ3How does a differentiable stack compare to standard modular stacks in terms of closed-loop planning and control performance?
- RQ4Can the prediction module learn to reduce errors that negatively impact planning when trained with downstream control objectives?
- RQ5Can differentiable stacks enable interpretable, modular architectures that still achieve data-driven performance gains?
Key findings
- DiffStack improves open-loop planning metrics by up to 15% compared to standard modular stacks by learning planning-aware predictions.
- In closed-loop simulation, DiffStack reduces trajectory cost by 4.37×10⁻² compared to 0.87×10⁻² for the standard stack, indicating superior overall planning performance.
- DiffStack achieves lower lane-keeping cost (4.84×10⁻²) and control effort (0.99×10⁻²) compared to the standard stack (8.91×10⁻² and 0.18×10⁻²), respectively, indicating smoother and more stable driving.
- The standard stack performs worse in closed-loop evaluation than in open-loop, suggesting that integration errors and poor prediction quality degrade performance in dynamic environments.
- DiffStack compensates for artificially introduced integration errors and tunes cost functions to produce plans more similar to human driving behavior.
- The results demonstrate that differentiable stacks can jointly optimize prediction, planning, and control while preserving modularity, interpretability, and verifiability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.