TL;DR
Trajectory-LLM (Traj-LLM) is a novel data generator that uses Large Language Models (LLMs) to synthesize realistic vehicle trajectories from simple text descriptions. By introducing an intermediate "behavioral logic" step between text and coordinates, it produces high-fidelity synthetic data that significantly improves the performance of autonomous driving prediction models on major benchmarks.
What Problem Does This Paper Address?
Training autonomous vehicles (AVs) to predict the movement of others requires massive amounts of data, particularly for "high-intensity" interactions like overtaking, yielding, or bypassing obstacles. Collecting this data in the real world is expensive, time-consuming, and potentially dangerous.
While researchers have turned to synthetic data generators, existing tools have major drawbacks:
- Graphical Interfaces: Require tedious manual "drag-and-drop" operations.
- Programmable Interfaces: Require expert coding skills to define complex behaviors.
- Direct Language Interfaces: Previous LLM-based attempts often map text directly to trajectories, leading to unrealistic results—such as a car overtaking at a lethal 130 km/h or failing to understand that a wide road allows for more maneuvering options than a narrow one.
Methods
To solve these issues, the authors propose a two-stage "interaction-behavior-trajectory" translation process. Instead of jumping directly from a prompt like "Car A overtakes Car B" to a list of GPS coordinates, Traj-LLM thinks like a human driver first.
Stage 1: Interaction $\rightarrow$ Behavior
The model takes a brief text description and the map topology as input. It then generates a sequence of driving behaviors accompanied by human-like reasoning. For example: "Change Lane: Both the left and right sides have ample road widths, allowing for a lane change to either side."
Stage 2: Behavior $\rightarrow$ Trajectory
The model fuses these behavioral descriptions with map information to output specific motion parameters (x/y coordinates, speed, heading, and yaw).
Random Locality Attention (RLA)
A key technical innovation in this architecture is Random Locality Attention. Standard attention mechanisms might cause a model to "memorize" specific trajectories. RLA introduces controlled "jitter" and forces the model to focus on the most relevant local map features and neighboring vehicles. This ensures that the generated trajectories are not only realistic but also highly diverse.
Datasets
The researchers introduced a massive new dataset called Language-to-Trajectory (L2T) to train and evaluate their model:
- Scale: 240,000 traffic scenarios.
- Diversity: Includes six road topologies (roundabouts, T-junctions, bends, etc.) and four object classes (vehicles, pedestrians, bicycles, and traffic cones).
- Annotations: Each scenario is paired with expert-driver-annotated text describing the interactions and the underlying logic.
Key Insights and Ideas
- Logic is the Bridge: The core insight is that LLMs are better at reasoning about why a car should move than they are at directly predicting raw numerical coordinates. By forcing the model to verbalize its logic, the resulting physical movement becomes grounded in reality.
- Map-Awareness: Traj-LLM doesn't just generate a path; it adapts the path to the environment. It recognizes that a wide road offers more "legal" bypassing options than a narrow one, adjusting its generated coordinates accordingly.
- Data Augmentation: Synthetic data from Traj-LLM isn't just a toy; it's a performance booster. When added to real-world training sets, it helps models generalize better to rare, complex interactions.
Key Results
Traj-LLM was evaluated against state-of-the-art generators like CTG++ and LGen.
- Realism: Traj-LLM achieved significantly lower errors in longitudinal acceleration, lateral acceleration, and jerk. For instance, its average realism score (1.69) was vastly superior to CTG++ (8.90).
- Diversity: It produced much more varied trajectories from the same starting conditions, outperforming competitors in metrics like Map-aware Self Distance (MD).
- Downstream Impact: When the popular MTR prediction model was trained on a mix of real Waymo data and Traj-LLM synthetic data, its Mean Average Precision (mAP) improved from 0.405 to 0.416, proving the synthetic data's value for real-world applications.
Limitations and Future Work
While powerful, the authors note a few areas for growth:
- Trajectory Length: The current model focuses on 20-second segments; scaling this to longer-term planning would be beneficial.
- Instruction Granularity: Future versions could benefit from even more detailed control instructions to fine-tune specific driving styles (e.g., aggressive vs. cautious).
- Model Scale: The study primarily used Llama-7B; moving to larger foundation models might further enhance the "common sense" reasoning of the generator.
Summary updated