Improving Trajectory Forecasting by Aligning Training and Inference

Qiyuan Wu, Katie Z Luo, Bharath Hariharan, Wei-Lun Chao, Mark Campbell· June 26, 2026 View original

▶ The 2-minute explainer

Summary

This paper identifies a mismatch in trajectory forecasting models for autonomous driving, where Gaussian Mixture Models (GMMs) are trained with a winner-take-all (WTA) loss, leading to uninformative posterior probabilities. It proposes two post-hoc treatments—posterior-weighted merging and a one-step EM update—to produce more informative and accurately ranked mode posteriors without retraining.

Trajectory forecasting, particularly for autonomous driving, has seen rapid advancements. However, a common issue is that many models produce posterior probabilities over forecast modes that are not very informative, complicating the process of selecting the most likely trajectory. This research attributes this problem to a fundamental mismatch between how these forecasters are modeled and how they are trained. Typically, forecasters are conceptualized as conditional Gaussian Mixture Models (GMMs), but they are often trained using a winner-take-all (WTA) loss function. This WTA approach assigns each training sample exclusively to its closest mode, akin to K-means clustering. While this hard assignment helps prevent mode collapse, the authors argue it leads to uninformative mode probabilities because it over-segments the trajectory space, disregards the relationships between nearby modes, and introduces instability in assignments with minor input perturbations. To rectify this, the paper introduces two lightweight, post-hoc solutions that do not require retraining the model. The first is a test-time posterior-weighted merging technique that aggregates nearby candidate trajectories. The second is a one-step Expectation-Maximization (EM) update, which replaces the hard assignments with soft responsibilities, allowing probability mass to be shared across neighboring modes. These methods consistently yield more informative and accurately ranked mode posteriors, improving final forecasts on standard displacement metrics across various WTA-trained architectures. This work unifies previous design choices through a GMM-vs-K-means lens, offering practical and principled corrections.

Why it matters

For professionals developing autonomous driving systems or other applications requiring accurate multi-modal forecasting, this research provides practical, no-retraining solutions to improve the reliability and interpretability of trajectory predictions. Better mode probabilities lead to safer and more efficient decision-making.

How to implement this in your domain

  1. 1Analyze existing trajectory forecasting models to identify if they use winner-take-all (WTA) loss for GMM-based predictions.
  2. 2Implement the proposed test-time posterior-weighted merging technique to aggregate similar forecast trajectories.
  3. 3Apply the one-step Expectation-Maximization (EM) update to replace hard labels with soft responsibilities for mode probabilities.
  4. 4Evaluate the impact of these post-hoc treatments on the informativeness of mode posteriors and overall forecast accuracy.

Who benefits

Autonomous VehiclesRoboticsLogisticsSmart CitiesAviation

Key takeaways

  • A mismatch between GMM modeling and WTA training causes uninformative forecast mode posteriors.
  • Winner-take-all loss over-segments trajectory space and ignores mode relatedness.
  • Post-hoc posterior-weighted merging improves forecast accuracy and interpretability.
  • A one-step EM update can replace hard assignments with soft responsibilities for better probabilities.

Original post by Qiyuan Wu, Katie Z Luo, Bharath Hariharan, Wei-Lun Chao, Mark Campbell

"arXiv:2606.26424v1 Announce Type: new Abstract: Trajectory forecasting for autonomous driving has advanced rapidly, yet representative models often produce uninformative posteriors over forecast modes, causing problems for mode pruning. We trace this to a modeling-training mismat…"

View on X

Originally posted by Qiyuan Wu, Katie Z Luo, Bharath Hariharan, Wei-Lun Chao, Mark Campbell on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses