MATS: An Interpretable Trajectory Forecasting Representation for Planning and Control

Boris Ivanovic, Amine Elhafsi, Guy Rosman, Adrien Gaidon, Marco Pavone

Introduction

Autonomous vehicles (AVs) must navigate complex environments where the future actions of other agents—pedestrians, cyclists, and other drivers—are uncertain and often influenced by the AV's own behavior. Modern trajectory forecasting models typically address this by outputting "tracklets," which are ordered sets of $(x, y)$ waypoints. While these representations are intuitive, they create a significant "representation gap" for the planning and control algorithms that actually drive the robot.

Standard planners reason about system dynamics—matrices that describe how states evolve over time. To plan safely using tracklet-based predictions, a robot must often sample thousands of potential futures for every possible action to find an optimal path. This process is computationally expensive and difficult to scale for real-time systems. This paper introduces Mixtures of Affine Time-varying Systems (MATS), a forecasting representation designed to be "plannable" by directly outputting dynamical system matrices.

The MATS Representation

Instead of predicting raw coordinates, MATS predicts the parameters of a linear-affine dynamical system. The future state $s^{(t+1)}$ of the environment is modeled as:

$$s^{(t+1)} = A^{(t)}s^{(t)} + B^{(t)}u_R^{(t)} + c^{(t)} + Q^{(t)}w^{(t)}$$

The MATS matrix representation maps agent interactions to a structured dynamical system.

In this formulation:

  • $A^{(t)}$ represents the internal dynamics and interactions between agents.
  • $B^{(t)}$ is the critical "influence" matrix, explicitly modeling how the ego-robot’s controls ($u_R$) affect the future states of others.
  • $c^{(t)}$ and $Q^{(t)}w^{(t)}$ handle affine offsets and Gaussian noise, respectively.

The model uses an Encoder-Decoder architecture with LSTMs to process history and a Conditional Variational Autoencoder (CVAE) to capture multimodality, such as a vehicle choosing between turning or going straight. By incorporating known physics (like double-integrator dynamics) as an inductive bias, the neural network only needs to learn the residual interaction terms.

Interpretability and Interaction

A key advantage of MATS is its inherent interpretability. Because the model outputs linear algebra components, researchers can visualize exactly when and where the robot has the most influence on its surroundings. For example, by examining the Frobenius norm of the $B$ sub-matrices, one can identify high-interaction zones like intersections.

Visualization of the A matrix evolution before, during, and after an interaction between the ego-robot and another agent.

As shown in the figure above, the $A$ matrix values shift significantly during an interaction. Before the agents are close, the off-diagonal blocks (representing cross-agent influence) are near zero. As they interact, these values increase, reflecting the dynamic coupling between their states. This transparency allows developers to debug model behavior more effectively than with "black-box" coordinate predictors.

Evaluation and Results

The researchers evaluated MATS on the nuScenes dataset, a large-scale real-world autonomous driving benchmark, and a synthetic Two-Particle System governed by non-linear social forces.

Key findings include:

  • Computational Efficiency: Unlike tracklet-based planners (TBPP) that require massive GPU resources to sample trajectories, the MATS-based planner formulates the motion planning problem as a convex Quadratic Program (QP). This allows it to run on a standard laptop CPU in roughly 50ms.
  • Predictive Accuracy: On nuScenes, MATS achieved a Final Displacement Error (FDE) of 0.26m at a 1-second horizon, outperforming several Graph Neural Network baselines for short-term predictions.
  • The "Structure Tax": The authors noted a slight decrease in raw displacement accuracy for longer horizons (3s+) compared to unconstrained models like Trajectron++. However, they argue that the massive gains in planning utility and real-time feasibility outweigh this trade-off.

Conclusion and Future Work

MATS bridges the gap between prediction and control by providing a representation that is both interpretable and computationally efficient for downstream planners. While the current model does not yet incorporate semantic map data (like lane boundaries), its affine structure provides a robust foundation for adding formal safety guarantees and reachability analysis in future iterations. By moving from "what will happen" to "how will the system respond," MATS enables more responsive and interaction-aware autonomous behavior.

Summary updated

BibTeX
@inproceedings{ivanovic2020mats,
  author = {Boris Ivanovic and Amine Elhafsi and Guy Rosman and Adrien Gaidon and Marco Pavone},
  title = {{MATS: An Interpretable Trajectory Forecasting Representation for Planning and Control}},
  booktitle = {Conference on Robot Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=MwT1Zh1wk7p},
}
Figure