Introduction
The development of autonomous vehicles (AVs) relies heavily on realistic simulators where "smart agents"—including vehicles, cyclists, and pedestrians—exhibit human-like behaviors. Traditional data-driven simulators typically employ an encoder-decoder architecture, where an encoder processes a fixed historical window and a decoder predicts future trajectories.
However, this paradigm suffers from two significant limitations. First, the manual split between history and future is often arbitrary, preventing the model from learning from every possible temporal point. Second, applying "next-token prediction" to high-frequency trajectory data (e.g., 10 Hz) often leads to a "copy-paste" trap. In this scenario, models achieve low training loss by simply repeating the current state for the next 0.1s step, failing to learn complex social or temporal reasoning.
Methodology
Next-Patch Prediction Paradigm (NP3)
To address the "copy-paste" issue, BehaviorGPT introduces the Next-Patch Prediction Paradigm (NP3). Instead of predicting a single subsequent state at $t+1$, the model predicts a "patch" consisting of multiple future steps (e.g., 10 steps representing 1 second of motion). This approach forces the model to reason about high-level behaviors and long-range spatial-temporal interactions rather than relying on local continuity.
Triple-Attention Decoder
BehaviorGPT utilizes a homogeneous, decoder-only architecture. This design treats every patch symmetrically, maximizing data utilization by allowing the model to learn from all history-future pairs in a sequence in parallel. The core of the model is a Transformer decoder featuring three specialized attention mechanisms:
- Temporal Self-Attention: Analyzes the historical trajectory of an individual agent.
- Agent-Map Cross-Attention: Integrates environmental context, such as lane geometry and road boundaries.
- Agent-Agent Self-Attention: Models the social interactions and dependencies between different agents within the scene.
The model employs a Relative Spacetime Representation, ensuring features are coordinate-independent and enhancing the model's ability to generalize across different traffic scenarios.
Experimental Results
BehaviorGPT was evaluated on the Waymo Open Motion Dataset (WOMD) and secured first place in the 2024 Waymo Open Sim Agents Challenge (WOSAC).
The model demonstrated exceptional efficiency, achieving state-of-the-art results with only 3 million parameters—a significant contrast to competing models like GUMP, which utilize over 500 million parameters. Key performance metrics include:
- Realism Score: 0.7473, surpassing previous benchmarks.
- minADE: 1.4147, representing the lowest error among top-tier contenders.
- Social Interaction: Enabling agent-agent attention resulted in a 34.66% improvement in collision-related realism metrics.
Discussion and Limitations
While BehaviorGPT represents a significant step forward in efficient agent simulation, several challenges remain. The model is currently "kinematics-free," meaning it does not explicitly enforce physical constraints like a bicycle model, which can occasionally lead to physically improbable paths. Furthermore, like many autoregressive models, it is susceptible to compounding errors over long horizons, which can result in agents drifting off-road. Future work will focus on incorporating formal kinematic models and enhancing controllability via language-based or goal-oriented prompts.
Summary updated