Improving Out-of-Distribution Generalization of Trajectory Prediction for Autonomous Driving via Polynomial Representations

Yue Yao, Shengchao Yan, Daniel Goehring, Wolfram Burgard, Joerg Reichardt

TL;DR

This paper introduces a novel trajectory prediction model called "Everything Polynomial" (EP) that uses constrained polynomial representations for both inputs (agent history and maps) and outputs. By shifting focus from maximizing In-Distribution (ID) competition scores to Out-of-Distribution (OoD) robustness, the authors demonstrate that a model with 95% fewer parameters can significantly outperform massive state-of-the-art (SotA) models when tested on unfamiliar datasets.

What Problem Does This Paper Address?

Trajectory prediction is a cornerstone of autonomous driving, but the field has fallen into a "competition trap." Current SotA models are increasingly parameter-heavy and expressive, optimized to squeeze every millimeter of accuracy out of specific datasets like Argoverse 2 or Waymo.

However, high performance on a specific test set (In-Distribution) doesn't guarantee safety in the real world. These models often overfit to dataset-specific biases—such as sensor configurations, map generation quirks, or geographic selection biases. As shown in Figure 1, there is a significant distribution shift in map geometry (curvature and length) between major datasets. The authors argue that we need a standardized way to measure Out-of-Distribution (OoD) generalization—how well a model trained on one dataset performs on a completely different one.

Fig. 1: Kernel density plot of the maximum absolute curva- ture and length for 5000 random lane segments in A2 and WO. Contours indicate the 20-th, 40-th, 60-th, and 80-th percentiles, respectively.

Methods

The authors propose the Everything Polynomial (EP) architecture. The core innovation is replacing raw sequence-based data (which can carry high-frequency noise and lead to overfitting) with constrained parametric representations:

  1. Inputs as Polynomials: Agent histories are represented by 5th-degree Bernstein polynomials, and map elements (like lane centers) are represented by 3rd-degree polynomials. This significantly reduces data redundancy—requiring as little as 8.7% of the original data space.
  2. Outputs as Polynomials: The model predicts future kinematic states, which are then fused with current tracked states to reconstruct a 6th-degree polynomial trajectory. This ensures temporal continuity and physical feasibility.
  3. Homogenization Protocol: To enable cross-dataset testing, the authors standardized the data formats of Argoverse 2 (A2) and Waymo Open Dataset (WO), aligning history lengths, prediction horizons, and available map features.
  4. Augmentation Study: They compared two common training strategies:
  5. Heterogeneous: Prioritizing the "focal agent" (the main vehicle being scored) in a specific coordinate frame.
  6. Homogeneous: Treating all agents equally and encoding them in their own individual coordinate frames.
Fig. 2: Our proposed model architecture. Inputs: Agent histories and road geometry are both represented via polynomials. Outputs: The tracked initial states and predicted states are fused into one polynomial trajectory prediction, ensuring continuity of past observation and future prediction.

Datasets

The study utilizes two of the largest motion datasets in the industry:

  • Argoverse 2 (A2): Used primarily for training and ID validation.
  • Waymo Open Dataset (WO): Used for OoD testing to evaluate how models trained on A2 generalize to Waymo's unique environment and data format.

Key Insights and Ideas

  • Constraints as Regularizers: By limiting the model's expressiveness through polynomials, the authors effectively prevent it from "memorizing" high-frequency noise or dataset-specific artifacts. This is a "less is more" approach to architecture design.
  • Coordinate Frames Matter: The study reveals that homogeneous augmentation (predicting for all agents in their own frames) is vastly superior for generalization. As shown in Figure 3, this strategy ensures the prediction task remains consistent regardless of which agent is designated as "focal."
  • The ID/OoD Reversal: A major finding is that models which dominate ID leaderboards often crumble in OoD scenarios. Conversely, the EP model, while slightly behind SotA in ID testing, becomes the top performer when moved to a new dataset.
  • Efficiency Gains: Polynomial representations allow for a massive reduction in model size (345k parameters vs. 7.6M for QCNet) and inference time (under 5ms vs. 120ms).
Fig. 3: The two augmentation strategies for non-focal agent data employed in benchmark models. Left: FMAE employs heterogeneous augmentation, representing information in the focal agent’s coordinate frame and only making uni-modal predictions for non-focal agents. Right: QCNet employs homogeneous augmentation, encoding information in each agent’s individual coordinate frame and making multi-modal predictions for both focal and non-focal agents alike.

Key Results

  • Robustness: In OoD testing on the Waymo dataset, the EP-Q variant achieved a minADE1 of 1.139m, significantly lower than the SotA QCNet (1.315m) and FMAE (1.744m) when all were trained on A2.
  • Generalization Gap: The increase in error when moving from ID to OoD was much smaller for the EP model. For example, EP-Q's minADE1 only increased by 1.9% in one test case, whereas other models saw increases of over 60-70% (see Figure 6).
  • Efficiency: The EP model is roughly 4.5% the size of QCNet and runs 30 times faster, making it far more suitable for real-time deployment on vehicle hardware.
Fig. 6: OoD testing results showing the superior robustness of EP variants (green) compared to baselines.

Limitations and Future Work

The authors acknowledge that while their model excels in robustness, it still trails the most massive SotA models in pure In-Distribution performance. They did not prioritize scaling up the model capacity in this work.

Future research will focus on developing more sophisticated architectures that maintain the polynomial constraint benefits while scaling up to close the ID performance gap. The authors also strongly advocate for the community to adopt OoD testing as a standard metric for evaluating trajectory prediction models moving forward.

Summary updated

BibTeX
@inproceedings{yao2024improving,
  author = {Yue Yao and Shengchao Yan and Daniel Goehring and Wolfram Burgard and Joerg Reichardt},
  title = {{Improving Out-of-Distribution Generalization of Trajectory Prediction for Autonomous Driving via Polynomial Representations}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2024},
  doi = {10.1109/iros58592.2024.10801535},
}
Figure