Learning Soft Driving Constraints from Vectorized Scene Embeddings while Imitating Expert Trajectories

Niloufar Saeidi Mobarakeh, Behzad Khamidehi, Chunlin Li, Hamidreza Mirkhani, Fazel Arasteh, Mohammed Elmahgiubi, Weize Zhang, Kasra Rezaee, Pascal PoupartarXiv 2024 · DOI

Introduction

Imitation learning (IL) has become a cornerstone of autonomous vehicle (AV) motion planning, leveraging vast amounts of expert human driving data to teach models how to navigate complex environments. However, standard IL models often operate as "black boxes," lacking explicit understanding of the underlying safety rules—such as lane boundaries or collision avoidance—that govern expert behavior. This lack of interpretability makes it difficult to diagnose failures: did the model fail to understand the goal, or did it simply ignore a safety constraint?

Furthermore, existing methods for learning constraints often rely on reinforcement learning (RL) within high-fidelity simulators. Creating simulators that accurately reflect real-world physics and diverse human behaviors is both technically challenging and prohibitively expensive. This paper introduces a novel framework for learning "soft" driving constraints directly from vectorized scene embeddings, enabling safer and more interpretable motion planning without the need for a simulator.

Methodology: Decoupled Scoring and Vectorized Embeddings

The core of the proposed approach is the integration of soft constraint learning into a standard imitation learning pipeline. The architecture utilizes VectorNet to represent the driving environment as a set of polylines (vectors), capturing precise spatial relationships between lane lines, curbs, and other agents.

Overview of the proposed motion planning architecture, highlighting the decoupling of reward and constraint scoring.

As shown in Figure 1, the system decouples the evaluation of candidate trajectories into two distinct components:

  1. Reward ($r$): Measures how closely a trajectory resembles expert human behavior.
  2. Constraint ($c$): A "soft" value between 0 and 1 representing the safety and feasibility of the path (e.g., collision-free, on-road).

These components are combined using a Maximum Entropy formulation, where the probability $P(\tau)$ of selecting a trajectory $\tau$ is proportional to the product of its reward and its constraint score. This ensures that even a high-reward path (one that looks very "human") will be rejected if it violates safety constraints.

Automated Labeling Strategy

To train the constraint module without a simulator, the researchers developed an automated labeling scheme applied directly to recorded datasets. By analyzing generated candidate trajectories against the static map and dynamic agents in the training data, labels are assigned based on safety outcomes.

Automated labeling strategy for generating constraint labels from expert trajectory data without a simulator.

As illustrated in Figure 2, trajectories are categorized and labeled:

  • Constraint = 1: The trajectory most similar to the ground truth expert path.
  • Constraint = 0: Trajectories that result in collisions, veer outside the road map, or represent "stuck" scenarios where the vehicle stops unnecessarily.
  • No Label: Collision-free trajectories generated by the planner that do not match the expert path are left unlabeled to avoid penalizing safe but non-expert behavior.

Experimental Results

The model was evaluated on the InD Dataset (drone footage of German intersections) and the TrafficJams Dataset (highway congestion). The inclusion of the soft constraint module led to significant performance gains:

  • Safety and Success: On the InD dataset, the success rate improved from 60.3% to 69.2%. In highway scenarios (TrafficJams), the collision rate was reduced from 36.94% to 27.11%.
  • Road Compliance: The "outside road" metric dropped to 0.0% upon the introduction of map-based constraints.
  • Causal Attention: Qualitatively, the constraint module improved the model's visual attention. The planner learned to focus on "causal agents"—the specific vehicles or obstacles that directly impact safety—rather than irrelevant background elements.

Discussion and Future Work

By treating constraints as "soft" gradients rather than binary "hard" rules, the model better navigates the ambiguities of real-world driving. This simulator-free approach bridges the "reality gap" often found in RL-based methods.

Future research will aim to expand the scope of learned constraints to include social nuances, such as yielding etiquette and complex merging behaviors. Additionally, further benchmarking against other state-of-the-art constraint-learning methods in unified environments will be essential to fully characterize the framework's advantages.

Reference: Saeidi Mobarakeh, N., et al. (2024). Learning Soft Driving Constraints from Vectorized Scene Embeddings while Imitating Expert Trajectories. arXiv:2412.05717v1 [cs.RO].

Summary updated

BibTeX
@misc{mobarakeh2024learning,
  author = {Niloufar Saeidi Mobarakeh and Behzad Khamidehi and Chunlin Li and Hamidreza Mirkhani and Fazel Arasteh and Mohammed Elmahgiubi and Weize Zhang and Kasra Rezaee and Pascal Poupart},
  title = {{Learning Soft Driving Constraints from Vectorized Scene Embeddings while Imitating Expert Trajectories}},
  year = {2024},
  eprint = {2412.05717},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.05717},
}
Figure