Vehicle trajectory prediction works, but not everywhere

Mohammadhossein Bahari, Saeed Saadatnejad, Ahmad Rahimi, Mohammad Shaverdikondori, Mohammad Shahidzadeh, Seyed-Mohsen Moosavi-Dezfooli, Alexandre AlahiCVPR 2021

Abstract

Vehicle trajectory prediction is nowadays a fundamental pillar of self-driving cars. Both the industry and research communities have acknowledged the need for such a pillar by providing public benchmarks. While state-of-the-art methods are impressive, i.e., they have no off-road prediction, their generalization to cities outside of the benchmark remains unexplored. In this work, we show that those methods do not generalize to new scenes. We present a method that automatically generates realistic scenes causing state-of-the-art models to go off-road. We frame the problem through the lens of adversarial scene generation. The method is a simple yet effective generative model based on atomic scene generation functions along with physical constraints. Our experiments show that more than 60% of existing scenes from the current benchmarks can be modified in a way to make prediction methods fail (i.e., predicting off-road). We further show that the generated scenes (i) are realistic since they do exist in the real world, and (ii) can be used to make existing models more robust, yielding 30-40% reductions in the off-road rate.

Introduction

Self-driving cars rely on trajectory prediction to forecast the movement of surrounding vehicles. While modern models like LaneGCN or WIMP demonstrate near-zero "off-road" prediction rates on popular datasets like Argoverse, these benchmarks are limited to a few specific cities. This raises a critical question: are these models truly reasoning about road structures, or are they simply memorizing the layouts of their training environments?

If a model encounters a road geometry it hasn't seen before—even one that is physically possible and common globally—it might predict a path that dangerously intersects with sidewalks or buildings. Since collecting annotated data for every possible road configuration is infeasible, there is a pressing need for methods to test and improve model robustness using synthetic but realistic scenarios.

Methodology: Adversarial Scene Generation

The researchers developed a framework for Realistic Adversarial Scene Generation. Rather than perturbing pixels, the method modifies the underlying vector representation of the road using three "atomic" transformation functions: smooth-turn, double-turn, and ripple-road.

Atomic scene transformations used to generate adversarial road geometries: (a) original scene, (b) single-turn, (c) double-turn, and (d) ripple-road.

To ensure these generated roads are physically plausible, the authors apply constraints based on Newtonian physics. They calculate the maximum feasible speed for a given curvature; if a generated road is too sharp for the vehicle's speed, the scenario is discarded or the vehicle's history is scaled to maintain feasibility. Finally, black-box optimization is used to find parameters that maximize the model's Hard Off-road Rate (HOR).

Experimental Setup and Real-World Validation

The primary training and testing were conducted using the Argoverse dataset. To validate the realism of the generated adversarial scenes, the authors used OpenStreetMap (OSM) to retrieve real-world map data from New York, Paris, Hong Kong, and New Mexico. By employing a feature extractor (MapNet) and a K-tree algorithm, they identified actual locations that matched their synthetic adversarial scenes.

Real-world instances of adversarial road geometries retrieved from OpenStreetMap in Paris, Hong Kong, and New Mexico.

Results and Insights

The study revealed a massive generalization gap. While models like LaneGCN had a HOR of nearly 0% on original Argoverse scenes, this rate jumped to 66% on adversarial scenes. This suggests that current evaluation metrics are overly optimistic.

A key finding is that models often rely too heavily on a vehicle’s past trajectory while ignoring road boundaries. When the road geometry changes but the history remains constant, models tend to "blindly" follow the historical path. Interestingly, a rule-based Model Predictive Control (MPC) system maintained a 0% off-road rate on the same scenes, proving that the failures of deep learning models stem from poor reasoning rather than impossible geometry.

Crucially, adversarial training proved effective. By fine-tuning models on a mix of original and generated "hard" scenes, the HOR on the most challenging transformation set dropped from 66% to 46% without sacrificing accuracy on standard benchmarks.

Conclusion and Future Work

Current state-of-the-art trajectory prediction models are highly accurate but lack robustness to novel road geometries. This work demonstrates that adversarial scene generation can expose these vulnerabilities and provide a path toward more robust systems. Future research could expand the variety of transformations to include lane merging or complex intersections and explore multi-agent failure modes, such as collisions between dynamic agents.

Summary updated

BibTeX
@misc{bahari2021vehicle,
  author = {Mohammadhossein Bahari and Saeed Saadatnejad and Ahmad Rahimi and Mohammad Shaverdikondori and Mohammad Shahidzadeh and Seyed-Mohsen Moosavi-Dezfooli and Alexandre Alahi},
  title = {{Vehicle trajectory prediction works, but not everywhere}},
  year = {2021},
  eprint = {2112.03909},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.03909},
}
Figure