FloMo: Tractable Motion Prediction with Normalizing Flows

Christoph Schöller, Alois C. KnollIROS 2021 · DOI

Introduction

Predicting the future trajectories of pedestrians and vehicles is a fundamental challenge for autonomous systems. The primary difficulty lies in the inherent uncertainty of human behavior—a pedestrian might continue walking straight, turn a corner, or stop abruptly. This "multi-modality" requires models that can represent a wide variety of possible futures.

While Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs) are commonly used for this task, they possess significant limitations. GANs often suffer from mode collapse, failing to capture the full breadth of possible movements. VAEs provide only an approximation of the likelihood of a trajectory. Crucially, without an exact, tractable likelihood value, it is difficult for an autonomous system to mathematically prioritize which predicted path is the most probable or critical to avoid. FloMo addresses these issues by framing motion prediction as a density estimation problem using Normalizing Flows.

Methods

The core of FloMo is a Normalizing Flow architecture that transforms a simple probability distribution into a complex distribution matching real-world trajectory data through a series of invertible transformations.

FloMo Architecture: The model uses Flow Modules containing Coupling Layers and Monotonic Rational-Quadratic Splines (RQS) to transform noise into predicted trajectories, conditioned on observed history.

Technical Components

  • Neural Spline Flows: FloMo utilizes Monotonic Rational-Quadratic Splines (RQS). These are more expressive than standard linear transformations, allowing the model to capture complex, non-linear movement patterns.
  • Conditioning: The flow is conditioned on the agent’s past movement, which is encoded via a Gated Recurrent Unit (GRU).
  • Noise Injection: Trajectory data often contains "manifolds" (e.g., agents standing perfectly still). In density estimation, these spikes of identical data can cause likelihoods to head toward infinity, destabilizing training. FloMo introduces a novel noise injection method during training to "lift" the data off these manifolds, ensuring stable Maximum Likelihood Estimation (MLE).
  • Rotation Invariance: To simplify the learning process, all trajectories are rotated so the agent's last observed movement points in a uniform direction before processing.

Key Results and Insights

FloMo was evaluated on the ETH/UCY and Stanford Drone Dataset (SDD) benchmarks. On the complex SDD, FloMo achieved state-of-the-art performance, outperforming previous models like PECNet by 74% in Average Displacement Error (ADE) and 72% in Final Displacement Error (FDE).

The Power of Tractable Likelihoods

Because FloMo calculates exact probabilities, it can perform "Top-K" sampling, presenting the most likely paths rather than random samples. This leads to more realistic, concentrated predictions. Furthermore, the authors demonstrated a strong correlation between the model's assigned likelihood and the actual accuracy of the prediction.

Likelihood vs. Error: Trajectories assigned a higher likelihood rank by FloMo consistently exhibit lower expected error (ADE and FDE).

As shown in the figure above, the model's "confidence" (likelihood) is a meaningful metric for decision-making. Predictions that the model deems highly probable are statistically more likely to be accurate, providing a reliable signal for autonomous planning modules.

Conclusion

FloMo demonstrates that framing motion prediction as a density estimation problem via Normalizing Flows offers significant advantages over traditional generative models. By providing exact likelihoods and utilizing expressive splines, FloMo achieves superior accuracy and provides a mathematically grounded way to rank potential futures. Future work includes explicitly modeling social interactions between agents and further refining the hyperparameters of the noise injection stability mechanism.

Summary updated

BibTeX
@inproceedings{scholler2021flomo,
  author = {Christoph Schöller and Alois C. Knoll},
  title = {{FloMo: Tractable Motion Prediction with Normalizing Flows}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2021},
  doi = {10.1109/iros51168.2021.9636445},
}
Figure