Large Trajectory Models are Scalable Motion Predictors and Planners

Qiao Sun, Shiduo Zhang, Danjiao Ma, Jingzhe Shi, Derun Li, Simian Luo, Yu Wang, Ningyi Xu, Guangzhi Cao, Hang Zhao

Abstract

Motion prediction and planning are vital tasks in autonomous driving, and recent efforts have shifted to machine learning-based approaches. The challenges include understanding diverse road topologies, reasoning traffic dynamics over a long time horizon, interpreting heterogeneous behaviors, and generating policies in a large continuous state space. Inspired by the success of large language models in addressing similar complexities through model scaling, we introduce a scalable trajectory model called State Transformer (STR). STR reformulates the motion prediction and motion planning problems by arranging observations, states, and actions into one unified sequence modeling task. Our approach unites trajectory generation problems with other sequence modeling problems, powering rapid iterations with breakthroughs in neighbor domains such as language modeling. Remarkably, experimental results reveal that large trajectory models (LTMs), such as STR, adhere to the scaling laws by presenting outstanding adaptability and learning efficiency. Qualitative results further demonstrate that LTMs are capable of making plausible predictions in scenarios that diverge significantly from the training data distribution. LTMs also learn to make complex reasonings for long-term planning, without explicit loss designs or costly high-level annotations.

Introduction

Autonomous driving operates in a "long-tail" environment where traditional rule-based systems struggle to account for the vast diversity of road topologies and human behaviors. While machine learning has made significant strides, many current models are specialized for narrow tasks and often fail to scale effectively, hitting performance plateaus. This work investigates whether the scaling laws that have revolutionized natural language processing can be applied to the domain of motion. We propose that a unified, scalable architecture can learn to navigate complex environments by treating driving as a "next-state prediction" task, analogous to how Large Language Models (LLMs) predict the next token.

Methodology: The State Transformer (STR)

The core of our approach is the State Transformer (STR), which reformulates motion prediction and planning as a conditional sequence modeling problem.

Architecture

STR utilizes a standard GPT-2 causal transformer backbone. The model processes a single sequence comprising four key components:

  1. Context: Encoded environmental data including maps, traffic light states, and historical trajectories of all agents.
  2. Proposals: High-level intentions (e.g., "turn left") that serve as prompts for the model.
  3. Key Points: Sparse future waypoints (at intervals such as 0.5s, 1s, 2s, 4s, and 8s) acting as anchors for long-term reasoning.
  4. Future States: The final high-frequency (10Hz) trajectory output.
The architecture of the State Transformer (STR) model.

To address the inherent multimodality of driving—where multiple valid paths exist for a single scenario—we integrate a diffusion-based decoder for the Key Points. This allows the model to capture a wide distribution of potential futures rather than converging on a single, potentially erroneous "average" path.

Experimental Setup

We evaluated STR on two large-scale real-world datasets:

  • NuPlan: Focused on motion planning, containing over 900 hours of driving data and 1 billion human-driving waypoints across four cities.
  • Waymo Open Motion Dataset (WOMD): Focused on motion prediction to assess the model's ability to anticipate the actions of other road users.

Scaling Laws and Insights

Our experiments confirm that Large Trajectory Models (LTMs) follow predictable scaling laws. We observed a consistent "log-log" relationship where increasing model parameters (from 300k to 1.5 billion) and dataset size leads to a predictable decrease in evaluation loss.

Scaling laws for Large Trajectory Models showing loss reduction with increased model size, dataset size, and training steps.

Key observations include:

  • Emergent Reasoning: The 1.5B parameter model naturally developed complex behaviors, such as stopping behind vehicles and proactive lane changes, without explicit rule-based programming.
  • Zero-Shot Generalization: Larger models demonstrated superior performance in "unseen" cities (e.g., training in Boston and testing in Las Vegas), suggesting they learn fundamental driving principles rather than just memorizing local maps.
  • Data Efficiency: Larger models are more efficient learners, achieving lower loss levels in fewer training steps compared to smaller architectures.

Results

In the NuPlan planning task, the 1.5B parameter STR achieved an Open Loop Score (OLS) of 86.6, significantly outperforming baselines like PlanCNN (64.0) and Urban Driver (76.0). In the WOMD prediction task, STR matched state-of-the-art performance with a 0.32 mAP, demonstrating that a general-purpose architecture can compete with highly specialized models. Furthermore, in closed-loop reactive simulations, STR-16M outperformed the PDM-Open baseline across safety and progress metrics.

Conclusion and Future Work

The State Transformer demonstrates that scaling is a viable path toward more robust autonomous driving systems. While the model shows immense promise, challenges remain in perfectly integrating high-frequency dynamic information like traffic lights and managing the substantial computational costs of training. Future research will focus on incorporating more dynamic map features and exploring the integration of LTMs with vision-language models to create comprehensive foundation models for robotics.

Summary updated

BibTeX
@misc{sun2023large,
  author = {Qiao Sun and Shiduo Zhang and Danjiao Ma and Jingzhe Shi and Derun Li and Simian Luo and Yu Wang and Ningyi Xu and Guangzhi Cao and Hang Zhao},
  title = {{Large Trajectory Models are Scalable Motion Predictors and Planners}},
  year = {2023},
  eprint = {2310.19620},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.19620},
}
Figure