Bi-Level Optimization Augmented with Conditional Variational Autoencoder for Autonomous Driving in Dense Traffic

Arun Kumar Singh, Jatan Shrestha, Nicola Albarella

TL;DR

This paper introduces a novel bi-level optimization framework for autonomous driving that jointly optimizes high-level behavioral decisions (like lane changes and speed) and low-level trajectory planning. By augmenting this with a Conditional Variational Autoencoder (CVAE) for warm-starting, the approach achieves significantly better safety in dense traffic compared to state-of-the-art methods, while maintaining competitive driving efficiency.

What Problem Does This Paper Address?

Autonomous driving systems inherently have a hierarchical structure. A high-level "behavioral layer" decides on maneuvers like lane changes and speed adjustments based on the traffic situation and driving goals. This layer then influences a lower-level "trajectory planner" that generates the actual motion commands. However, existing methods struggle to effectively exploit the strong coupling between these two layers. Sampling-based approaches often fail to adapt behavioral decisions based on how well the planned trajectory performs. While end-to-end Reinforcement Learning (RL) can learn this interaction, purely data-driven RL methods often falter in safety-critical scenarios, especially in unseen environments. This paper tackles the challenge of jointly optimizing these layers to ensure safe and efficient driving, particularly in complex, dense traffic.

Methods

The core of the paper is a bi-level optimization formulation. The upper level optimizes behavioral parameters (like desired lateral offsets and velocities for different segments of the driving horizon), while the lower level optimizes the actual trajectory (position and velocity over time) to satisfy these behavioral inputs and various constraints (collision avoidance, lane boundaries, etc.).

What's novel is how they tackle this:

  • Joint Optimization: Instead of treating the layers separately, they are optimized together. The upper-level cost function is influenced by the optimal solution of the lower-level problem.
  • Gradient-Free Optimization: They employ a gradient-free sampling-based optimization technique for the upper-level problem. This avoids issues with non-convexity and infeasibility that can plague gradient-based methods.
  • Batch Processing: The lower-level trajectory planner, which involves solving Quadratic Programs (QPs), is efficiently solved in batches on a GPU. This is crucial for real-time performance.
  • Conditional Variational Autoencoder (CVAE): To improve the efficiency of the bi-level optimizer, they train a CVAE. This model learns to provide a good initial distribution of behavioral parameters, significantly reducing the number of iterations and samples needed for convergence, especially in resource-constrained scenarios. The CVAE architecture combines feed-forward networks with a differentiable optimization layer.

Datasets

The paper uses the highway-env simulator for training and evaluation. No specific real-world datasets are mentioned for training the CVAE or the bi-level optimizer. The CVAE is trained using "demonstrations" collected via the cross-entropy method from the simulator, aiming to mimic expert trajectories.

Key Insights and Ideas

  • The "Aha!" Moment: The tight coupling between behavioral decisions and trajectory planning is critical for safety, especially in dense traffic. Simply optimizing one layer without considering the other's performance leads to suboptimal and potentially unsafe outcomes.
  • Gradient-Free for Robustness: Using gradient-free methods for the upper-level optimization makes the approach more robust to the non-convex nature of the problem and the potential infeasibility of the lower-level planner.
  • CVAE as a "Smart Guess": The CVAE doesn't replace the bi-level optimizer but acts as a powerful warm-start. It learns to predict reasonable behavioral parameters based on the driving context, drastically speeding up convergence and improving safety, particularly when computational resources are limited.
  • Projection is Key: Projecting the initial trajectory samples onto the feasible set of constraints (collision avoidance, lane boundaries) is crucial for exploring diverse and safe maneuvers.

Key Results

  • Safety in Dense Traffic: The proposed bi-level optimization approach significantly outperforms state-of-the-art Model Predictive Control (MPC) and Reinforcement Learning (RL) baselines in terms of collision rate, especially in dense traffic scenarios (e.g., a 4-10x reduction in collision rate in dense four-lane scenarios).
  • Competitive Efficiency: The approach maintains competitive driving efficiency (average speed) compared to baselines, particularly in collision-free episodes.
  • CVAE Initialization Benefits: Using the CVAE for initialization leads to a substantial reduction in collision rate (e.g., 4x reduction with a small batch size) and allows for achieving good performance with fewer iterations or smaller batch sizes.
  • Real-time Performance: The GPU-accelerated batch processing of the lower-level planner enables real-time operation, with feedback rates around 100 Hz achievable.

Limitations and Future Work

  • CVAE Demonstrations: The CVAE is trained on "demonstrations" generated by a cross-entropy method. The paper acknowledges that these demonstrations might be sub-optimal, which could potentially affect the learned initialization.
  • RL Baselines Performance: The RL baselines (DQN and PPO) struggled significantly in dense environments, performing reasonably only in sparse two-lane traffic. This highlights the difficulty RL faces in guaranteeing safety in complex scenarios.
  • Future Work: The authors suggest extending this framework to an RL setting where the policy combines a neural network for higher-level decisions and a local MPC. They conjecture that an Augmented Random Search technique could be used for end-to-end training, mirroring the structure of their proposed algorithm.

Summary updated

BibTeX
@inproceedings{singh2023bi,
  author = {Arun Kumar Singh and Jatan Shrestha and Nicola Albarella},
  title = {{Bi-Level Optimization Augmented with Conditional Variational Autoencoder for Autonomous Driving in Dense Traffic}},
  booktitle = {Case},
  year = {2023},
  doi = {10.1109/case56687.2023.10260485},
}
Figure