HalentNet: Multimodal Trajectory Forecasting with Hallucinative Intents

Deyao Zhu, Mohamed Zahran, Li Erran Li, Mohamed ElhoseinyICLR 2021

Predicting where a car or a pedestrian will go next is one of the hardest problems in autonomous driving. It’s not just about physics; it’s about human intent. A driver might turn left, speed up, or suddenly change their mind. Most AI models learn these behaviors strictly from recorded data, but what happens when the model encounters a situation it hasn't seen before?

In their ICLR 2021 paper, HalentNet, researchers from KAUST, Udacity, and Amazon propose a way to help models "hallucinate" plausible future behaviors that aren't explicitly in the training set, leading to safer and more robust trajectory forecasting.

TL;DR

HalentNet is a trajectory forecasting framework that uses "hallucinative intents" to explore the space of possible agent behaviors. By mixing discrete latent variables during training, the model learns to predict a wider, more semantically meaningful range of future paths, reducing road boundary violations by up to 50% compared to previous state-of-the-art methods.

What Problem Does This Paper Address?

The core challenge in motion forecasting is multimodality: for any given history, there are multiple valid futures. An agent might go straight or turn right.

Current models typically learn a distribution of these "modes" from training data. However, real-world data is often "skinny"—it doesn't cover every possible combination of interactions or rare maneuvers. If a model only learns from the training distribution, it might fail to predict a plausible (but rare) maneuver, or it might produce "spurious" modes that don't make physical sense.

The authors identify a gap: while data augmentation (like flipping or rotating images) is common in computer vision, it is much harder to perform "semantic" augmentation for trajectories. How do you "augment" a driver's intent?

Methods

HalentNet builds on Trajectron++, a popular forecasting model, but adds a novel "hallucinative" training loop.

HalentNet Architecture showing standard classified intent versus hallucinative mixed intent
  1. Discrete Latent Intents ($z$): The model represents different behaviors (e.g., "turn left," "stop") as discrete latent variables.
  2. The Discriminator ($Dis$): A GAN-style discriminator looks at a predicted trajectory and the local map. It has two jobs: judge if the path is "real" (physically plausible and on the road) and classify which latent intent it represents.
  3. Classified Intent Loss ($L_c$): This forces the model to make its standard predictions very distinct and easy for the discriminator to recognize.
  4. Hallucinative Learning ($L_h$): This is the "secret sauce." During training, the model samples two different intents (say, "go straight" and "turn right") and switches between them at a random time step. This creates a "mixed intent" trajectory.
  5. The model is then challenged to make these "hallucinated" paths look realistic to the discriminator, even though they represent transitions not explicitly found in the data.
  6. Crucially, the loss encourages these hallucinated paths to be hard to classify into a single category, forcing the model to explore the "in-between" spaces of the intent distribution.

Datasets

The authors evaluated HalentNet on three major benchmarks:

  • nuScenes: A massive dataset containing 1,000 driving scenes in Boston and Singapore, featuring complex urban interactions and detailed semantic maps.
  • ETH & UCY: Standard pedestrian-heavy datasets used to test how well the model generalizes to human movement in open spaces.

Key Insights and Ideas

  • Semantic Augmentation: Instead of just warping the raw coordinates of a path, HalentNet augments the latent space. It essentially asks the model, "What if the driver started to go straight but then decided to turn?"
  • The Map as a Regularizer: By feeding the map into the discriminator, the model learns a "soft" understanding of road boundaries. If a hallucinated path goes onto a sidewalk, the discriminator flags it as "fake," forcing the generator to stay within the lines.
  • Diversity vs. Precision: The "hallucination" process acts as a bridge. It increases the diversity of predicted paths (better coverage) without sacrificing the precision of the most likely paths.

Key Results

HalentNet showed significant improvements over the previous state-of-the-art (Trajectron++):

Quantitative results on nuScenes comparing HalentNet to Trajectron++ across various metrics
  • Accuracy: On the nuScenes vehicle benchmark, it improved the Final Displacement Error (FDE) by approximately 20-26% when predicting 6 seconds into the future.
  • Safety: It reduced the road boundary violation rate by roughly 50% (e.g., dropping from 19.09% to 9.22% at 6s). This is a massive win for autonomous safety, as it means the model is much less likely to "imagine" a car driving through a building or onto a sidewalk.
  • Human Preference: In a "Turing test" for trajectories, human evaluators preferred HalentNet’s predictions 39.6% more often than the runner-up, citing that the paths looked more natural and safer.

Limitations and Future Work

While powerful, HalentNet has some hurdles:

  • GAN Instability: Like many GAN-based models, training can be unstable. The authors noted they had to remove "diverging" training runs to get stable averages.
  • Map Dependency: The most significant gains (especially in safety) rely on having high-quality semantic maps. In "mapless" scenarios (like the UCY dataset), the improvements were more modest (around 7%).
  • Fixed Latent Modes: The model uses a fixed number of latent codes (25 in this paper). Future work could explore dynamic or continuous intent spaces to capture even more nuance in human behavior.

By teaching AI to "hallucinate" responsibly, HalentNet moves us one step closer to autonomous systems that can navigate the unpredictable "what ifs" of the real world.

Summary updated

BibTeX
@inproceedings{zhu2021halentnet,
  author = {Deyao Zhu and Mohamed Zahran and Li Erran Li and Mohamed Elhoseiny},
  title = {{HalentNet: Multimodal Trajectory Forecasting with Hallucinative Intents}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=9GBZBPn0Jx},
}
Figure