Heterogeneous-Agent Trajectory Forecasting Incorporating Class Uncertainty

Boris Ivanovic, Kuan-Hui Lee, Pavel Tokmakov, Blake Wulfe, Rowan McAllister, Adrien Gaidon, Marco Pavone

TL;DR

Autonomous driving stacks typically throw away valuable perceptual uncertainty, forcing trajectory forecasting models to rely solely on an object's most likely semantic class. This paper introduces HAICU, a forecasting framework that explicitly ingests full class probability distributions to generate safer, uncertainty-aware trajectory distributions, alongside PUP, a new real-world dataset captured in Tokyo specifically tailored for benchmarking prediction under perceptual uncertainty.

What Problem Does This Paper Address?

In traditional modular autonomous vehicle (AV) stacks, the perception system detects an object and passes its most likely semantic class (e.g., "car" or "pedestrian") to the prediction module. However, perception systems are rarely 100% certain; they output a probability distribution across multiple classes.

By discarding this distribution and taking the argmax, downstream trajectory forecasting models become highly sensitive to classification errors. If a car is misclassified as a pedestrian, the forecasting model might assume it will move at walking speed, leading to potentially disastrous motion planning decisions.

The danger of ignoring class uncertainty: Trajectron++ produces tight predictions for a car (left), but its uncertainty explodes when misclassified as a pedestrian (right), disrupting the ego-vehicle's motion plan.

The authors address this gap by designing a forecasting model that natively handles class probabilities and introducing a realistic dataset to evaluate it.

Methods

The authors present HAICU (Heterogeneous-Agent trajectory forecasting Incorporating Class Uncertainty), built upon the open-source Trajectron++ architecture.

[State History s_i] + [Class Probabilities c_i] ---> [LSTM Encoder] ---> [CVAE Latent Space z] ---> [GRU Decoder] ---> [Trajectory Distribution y]

Key methodological innovations include:

  • Class-Agnostic Input Representation: Instead of using directed graphs where edge types depend on hard-coded agent classes, HAICU abstracts scenes using an undirected spatiotemporal graph based purely on $\ell_2$ distance.
  • Feature Concatenation: At each timestep, the full class probability vector $\hat{c}_i^{(t)}$ is concatenated directly with the agent's kinematic state vector $s_i^{(t)}$ before being fed into the history and interaction LSTM encoders.
  • Single Integrator Dynamics: Standard forecasting models apply class-specific kinematic constraints (e.g., a unicycle model for cars, which enforces non-holonomic constraints). Because HAICU treats class as uncertain, it models all agents as single integrators. This prevents the model from incorrectly over-constraining an agent's potential movement.
  • Multimodal Generation: A Conditional Variational Autoencoder (CVAE) with a discrete Categorical latent variable captures high-level behavioral intent, outputting a bivariate Gaussian distribution over control actions.
HAICU's probabilistic graphical model and network architecture, showing how class probabilities are concatenated with agent states and propagated through the encoders and decoders.

Datasets

The paper evaluates forecasting performance on two datasets:

  1. Lyft Level 5 Dataset: A massive public dataset containing class probabilities. However, the authors discover a major limitation: its perception outputs are heavily overconfident, acting essentially as one-hot vectors with an average entropy near zero.
  2. Perceptual Uncertainty in Prediction (PUP) Dataset: Introduced by the authors, this new dataset consists of 1,637 distinct 10-second scenes captured by a production-grade AV fleet in Tokyo, Japan. Crucially, it retains the raw, unfiltered, frame-by-frame class probabilities from the perception stack, capturing the messy, long-tail uncertainty of real-world driving.
Example crowded urban scenes from the newly introduced PUP dataset.

Key Insights and Ideas

  • The Argmax Bottleneck is Dangerous: Quantizing a probability distribution into a single hard class label discards critical nuance. Retaining the full distribution allows the model to hedge its bets gracefully.
  • Kinematic Over-Constraining: Forcing a misclassified agent into an incorrect physics model (like a unicycle model for a pedestrian misclassified as a car) severely harms prediction accuracy. Class-agnostic dynamics models are essential when classification is uncertain.
  • Counterfactual "What-If" Capabilities: Because HAICU directly conditions on the input probability vector, researchers can manually manipulate class probabilities at inference time. This allows the model to simulate counterfactual scenarios smoothly (e.g., "How does the predicted trajectory change if this object's probability of being a pedestrian shifts from 10% to 90%?").

Key Results

HAICU significantly outperforms state-of-the-art baselines on the challenging PUP dataset across both deterministic metrics (Average/Final Displacement Error - ADE/FDE) and probabilistic metrics (Average/Final Negative Log-Likelihood - ANLL/FNLL).

  • PUP Dataset (3s Horizon): HAICU achieves an ADE of 0.65m and an FDE of 1.35m, outperforming the standard Trajectron++ (0.75m ADE / 1.52m FDE) and a "One-Hot" ablation baseline (0.69m ADE / 1.41m FDE).
  • Probabilistic Performance: HAICU achieves an ANLL of -0.35 nats, vastly superior to Trajectron++ (0.04 nats), proving that incorporating class probabilities yields much more reliable and well-calibrated output distributions.
Qualitative comparison on the PUP dataset: Trajectron++ and the One-Hot baseline make overconfident, inaccurate predictions, whereas HAICU accurately captures the ground truth trajectory and distributes uncertainty evenly.

Limitations and Future Work

  • Lack of Temporal Smoothing: To preserve raw perceptual uncertainty, the authors intentionally avoided any post-hoc temporal smoothing on the perception outputs. In a production system, combining HAICU with low-latency temporal smoothing filters could yield even cleaner results.
  • Downstream Integration: While HAICU provides uncertainty-aware trajectory distributions, the paper does not deploy these predictions inside a closed-loop motion planner to quantify exactly how much safety or comfort improves for the ego-vehicle. This remains an open area for future research.

Summary updated

BibTeX
@inproceedings{ivanovic2021heterogeneous,
  author = {Boris Ivanovic and Kuan-Hui Lee and Pavel Tokmakov and Blake Wulfe and Rowan McAllister and Adrien Gaidon and Marco Pavone},
  title = {{Heterogeneous-Agent Trajectory Forecasting Incorporating Class Uncertainty}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2021},
  doi = {10.1109/iros47612.2022.9982283},
}
Figure