MATRIX: Multi-Agent Trajectory Generation with Diverse Contexts

Zhuo Xu, Rui Zhou, Yida Yin, Huidong Gao, Masayoshi Tomizuka, Jiachen Li

Introduction

Training autonomous robots to navigate human-centric environments is a classic "chicken and egg" problem. Robust navigation policies require massive amounts of high-quality, interactive human trajectory data. However, collecting and annotating real-world data is labor-intensive and often fails to capture the full spectrum of "what-if" scenarios. While algorithmic data generators exist, they frequently produce robotic, unrealistic movements that do not translate well to real-world applications.

This paper introduces MATRIX (Multi-Agent TRajectory generation with dIverse conteXts), a generative framework designed to bridge this gap. MATRIX produces synthetic human trajectories that are both highly diverse and physically realistic by explicitly modeling human intent and motion primitives.

The Challenge of Multi-Modality

Most current trajectory models assume that human behavior follows a conditional Gaussian distribution. In reality, human intent is inherently multi-modal. For instance, a pedestrian walking down a hallway might turn toward a coffee machine, head for an exit, or continue straight to a desk. Simple models often suffer from "mode collapse," where they only predict the most likely (average) path, resulting in synthetic datasets that lack the diversity found in the real world.

Furthermore, many generators struggle with physical realism. While they may produce paths that are mathematically close to ground truth coordinates, the resulting motion can be jerky or physically impossible. For synthetic data to be effective for training robots via imitation learning, it must match the statistical distribution of human motion primitives, such as velocity and acceleration.

The MATRIX Architecture

The MATRIX framework employs a three-pillar architecture to ensure both diversity and realism:

  1. Spatial-Temporal Encoding: Using a graph-based encoder inspired by Trajectron++, the model extracts context from the history of all agents in a scene. This captures the complex social interactions and dependencies between pedestrians.
  2. Explicit Destination Reasoning: Rather than relying on an abstract latent variable, MATRIX explicitly models the probability of future destinations using a Gaussian Mixture Model (GMM). By sampling from different kernels within the GMM, the model can generate entirely different "intents" for the same starting condition. To prevent the GMM from collapsing into a single point, the authors implement a custom mode collapse regularization loss that forces the kernels to remain distinct and spread out.
  3. Residual Action Decoder: Instead of predicting absolute coordinates, the GRU-based decoder predicts residual displacements ($\Delta s$). This residual structure acts as a soft safety constraint, encouraging smooth transitions toward the sampled destination and ensuring the resulting paths adhere to the physical constraints of human walking.

Experimental Evaluation

The researchers evaluated MATRIX on two gold-standard benchmarks for pedestrian dynamics: the ETH (including ETH and HOTEL subsets) and UCY (including ZARA1, ZARA2, and UNIV subsets) datasets. These datasets provide real-world coordinates of humans navigating busy outdoor spaces, serving as a baseline for both accuracy and behavioral diversity.

Metrics for Realism and Diversity

Beyond standard displacement errors (ADE/FDE), the paper introduces two critical evaluation perspectives:

  • Average Self Distance (ASD): This measures the diversity of the generated trajectories. MATRIX prioritizes high ASD to ensure the generated data covers a wide range of possible behaviors.
  • The $\chi^2$ Realism Metric: The authors propose calculating the Chi-square ($\chi^2$) distance between the distributions of velocity, acceleration, and angular velocity of synthetic versus real data. This quantifies how "human-like" the generator is in terms of motion dynamics.

Key Insights and Results

  • Superior Diversity: MATRIX achieved significantly higher ASD scores than existing baselines. Notably, on the HOTEL dataset, its diversity score was 100.7% higher than Trajectron++.
  • Physical Realism: In $\chi^2$ tests for motion primitives, MATRIX consistently outperformed other generative models like AgentFormer. The residual action scheme proved essential in producing smoother, more natural-looking trajectories.
  • Data Augmentation Power: A standout finding is that training an imitation learning planner on a mix of real data and MATRIX-generated data leads to better performance on unseen real-world datasets than training on real data alone. This confirms the framework's utility as a tool for robust robotics training.
  • Ablation Success: The study confirmed that the "mode collapse loss" is vital; without it, the model's diversity dropped significantly, proving that explicit regularization is necessary to maintain multi-modality.

Conclusion and Future Work

MATRIX represents a significant advancement in synthetic data generation for robotics. By combining explicit destination reasoning with a physics-informed residual decoder, it produces trajectories that are both varied and realistic.

While the current work focuses on open-space navigation, future directions include integrating static environmental constraints (like walls and furniture), expanding the model to handle heterogeneous agents (cyclists and vehicles), and testing the generator in closed-loop interactions where the synthetic agents respond in real-time to a robot's presence.

Summary updated

Abstract

Data-driven methods have great advantages in modeling complicated human behavioral dynamics and dealing with many human-robot interaction applications. However, collecting massive and annotated real-world human datasets has been a laborious task, especially for highly interactive scenarios. On the other hand, algorithmic data generation methods are usually limited by their model capacities, making them unable to offer realistic and diverse data needed by various application users. In this work, we study trajectory-level data generation for multi-human or human-robot interaction scenarios and propose a learning-based automatic trajectory generation model, which we call Multi-Agent TRajectory generation with dIverse conteXts (MATRIX). MATRIX is capable of generating interactive human behaviors in realistic diverse contexts. We achieve this goal by modeling the explicit and interpretable objectives so that MATRIX can generate human motions based on diverse destinations and heterogeneous behaviors. We carried out extensive comparison and ablation studies to illustrate the effectiveness of our approach across various metrics. We also presented experiments that demonstrate the capability of MATRIX to serve as data augmentation for imitation-based motion planning.
BibTeX
@inproceedings{xu2024matrix,
  author = {Zhuo Xu and Rui Zhou and Yida Yin and Huidong Gao and Masayoshi Tomizuka and Jiachen Li},
  title = {{MATRIX: Multi-Agent Trajectory Generation with Diverse Contexts}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2024},
  url = {https://openreview.net/forum?id=JcQ5wPQFAm},
}
Figure