Motion Forecasting via Model-Based Risk Minimization

Aron Distelzweig, Eitan Kosman, Andreas Look, Faris Janjos, Denesh K. Manivannan, Abhinav Valada

Abstract

Forecasting the future trajectories of surrounding agents is crucial for autonomous vehicles to ensure safe, efficient, and comfortable route planning. While model ensembling has improved prediction accuracy in various fields, its application in trajectory prediction is limited due to the multi-modal nature of predictions. In this paper, we propose a novel sampling method applicable to trajectory prediction based on the predictions of multiple models. We first show that conventional sampling based on predicted probabilities can degrade performance due to missing alignment between models. To address this problem, we introduce a new method that generates optimal trajectories from a set of neural networks, framing it as a risk minimization problem with a variable loss function. By using state-of-the-art models as base learners, our approach constructs diverse and effective ensembles for optimal trajectory sampling. Extensive experiments on the nuScenes prediction dataset demonstrate that our method surpasses current state-of-the-art techniques, achieving top ranks on the leaderboard. We also provide a comprehensive empirical study on ensembling strategies, offering insights into their effectiveness. Our findings highlight the potential of advanced ensembling techniques in trajectory prediction, significantly improving predictive performance and paving the way for more reliable predicted trajectories.

Introduction

Predicting the future movement of agents like cars or pedestrians is fundamentally a multi-modal problem. A single agent might turn, go straight, or stop, resulting in a distribution of possible futures. While ensembling multiple models is a standard technique to boost performance in machine learning, it faces unique challenges in motion forecasting.

A significant observation in this work is the "more is worse" paradox: naively selecting the top-rated predictions from an ensemble can actually increase prediction error as more models (and thus more proposals) are added. This occurs because models are often poorly calibrated with one another; they may all converge on the most obvious path, causing the ensemble to "double down" on a single mode while neglecting other valid, lower-probability possibilities.

Comparison of error scaling between naive Top-k sampling and the proposed risk minimization method.

Proposed Method: Model-Based Risk Minimization

To overcome the limitations of discrete selection methods, we propose treating ensembling as a risk minimization problem. Instead of selecting from a fixed list of trajectories, we generate a set of optimal trajectories by optimizing them against the collective output of the ensemble.

The process involves:

  1. Distribution Construction: The weighted outputs of all models in the ensemble are combined into a single learner distribution $q(y)$.
  2. Risk Framing: We define the "optimal" set of trajectories as those that minimize the expected loss (risk) relative to $q(y)$.
  3. Differentiable Optimization: We utilize the minADEk (Minimum Average Displacement Error) as a differentiable loss function.
  4. Gradient-Based Refinement: Starting from a random initialization, we use the Adam optimizer to iteratively refine the trajectories until they minimize the error relative to the ensemble's distribution. This allows the final predictions to move toward the "consensus" areas of the multi-model distribution.

This model-agnostic approach can combine any set of trajectory predictors, whether they share the same architecture (homogeneous) or differ significantly (heterogeneous).

Experimental Results

We evaluated our method on the nuScenes prediction dataset, utilizing three high-performing base models: PGP, LAformer, and LaPred.

Performance Scaling and SOTA Comparison

Unlike naive Top-k sampling, our risk minimization approach shows a consistent decrease in error metrics (minADE and minFDE) as the number of models in the ensemble increases. Our method outperformed all individual base learners by a significant margin and achieved top rankings on the nuScenes public leaderboard.

Qualitative comparison of trajectory predictions.

Diversity and Heterogeneity

Our empirical study reveals that ensembling different families of models (e.g., combining Transformer-based and Graph Neural Network-based models) is more effective than using simple Deep Ensembles of the same architecture. Different architectures tend to exhibit distinct error patterns, which the risk minimization process effectively smooths out, leading to better coverage of the multi-modal future.

Conclusion and Future Work

While our method significantly improves forecasting accuracy, it introduces computational overhead due to the requirement of running multiple models and performing gradient-based optimization. Future work will focus on reducing this latency, perhaps through variational inference. Additionally, we aim to incorporate safety-critical metrics like "off-road rate" or "collision rate" directly into the optimization process to ensure that the generated trajectories are not only accurate but also physically safe and feasible.

Summary updated

BibTeX
@inproceedings{distelzweig2025motion,
  author = {Aron Distelzweig and Eitan Kosman and Andreas Look and Faris Janjos and Denesh K. Manivannan and Abhinav Valada},
  title = {{Motion Forecasting via Model-Based Risk Minimization}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2025},
  url = {https://openreview.net/forum?id=rVXV2d22kX},
}
Figure