PRANK: motion Prediction based on RANKing

Yuriy Biktairov, Maxim Stebelev, Irina Rudenko, Oleh Shliazhko, Boris Yangel

Predicting where a car or pedestrian will go in the next five seconds is one of the hardest problems in autonomous driving. It’s not just about physics; it’s about human intent. Will that car turn right, or is it just swerving to avoid a pothole? In a paper from the Yandex Self-Driving Group, researchers introduce PRANK (motion Prediction based on RANKing), a method that flips the script on traditional trajectory prediction.

TL;DR

PRANK re-frames motion prediction as a ranking problem rather than a generation problem. By scoring a massive "bank" of real-world trajectories using efficient nearest-neighbor search in a latent space, it produces physically plausible, multimodal predictions with extremely low latency.

What Problem Does This Paper Address?

Most motion prediction systems try to generate a trajectory from scratch or predict a continuous probability distribution over all possible paths. This is difficult for two main reasons:

  1. Multimodality: A driver might turn left or go straight (uncertainty of intent), and even if they go straight, they might stay centered or hug the lane line (uncertainty of realization).
  2. Physical Constraints: Generative models often "hallucinate" trajectories that are physically impossible, like driving through a building or making a 90-degree turn at highway speeds.

The authors argue that it is computationally simpler and more robust to score a set of known-good trajectories than to invent new ones from a blank canvas.

Methods

PRANK treats the problem much like a search engine treats a query, matching the current driving scene to the most appropriate historical trajectories.

PRANK Architecture
  1. The Scene Encoder: The model takes a rasterized bird’s-eye view (BEV) image of the environment (roads, traffic lights, other agents) and passes it through a Convolutional Neural Network (a modified Inception-ResNet) to create a "scene embedding."
  2. The Trajectory Bank: Instead of generating paths, the researchers compiled a "bank" of up to 2 million real-world trajectories observed by their fleet. Each trajectory is encoded into the same latent space as the scene.
  3. The Latent Space: Both the scene and the trajectories are mapped to a unit sphere in a high-dimensional space. The "score" for a trajectory is simply the dot product between the scene embedding and the trajectory embedding.
  4. Efficient Inference: Because the trajectory embeddings can be pre-computed offline, the real-time system only needs to encode the current scene and then perform a Maximum Inner Product Search (MIPS) using the Faiss library. This allows the system to find the most likely paths out of millions in just a few milliseconds.
  5. Trajectory Noise Model: To account for the fact that the exact "perfect" path might not be in the bank, they add a noise model that allows for slight, continuous deviations from the stored examples.

Key Insights and Ideas

  • Scoring > Generation: The core insight is that discriminative models (scoring) are often easier to train and more accurate than generative models for complex, high-dimensional outputs like trajectories.
  • Guaranteed Plausibility: Because every trajectory in the bank was once driven by a real human, the model is physically incapable of predicting "impossible" maneuvers.
  • The Importance of Rebalancing: If you just sample trajectories randomly, you get too many "going straight" examples. The authors used K-means clustering to ensure the trajectory bank is diverse and uniform, which they found was critical for handling complex maneuvers like sharp turns.
  • Factorization for Speed: By separating the scene encoding from the trajectory scoring, they moved the heaviest computational lifting (searching millions of paths) into a highly optimized vector search problem.

Key Results

Ablation and Inference Results

The authors evaluated PRANK on an in-house Yandex dataset (1.6 million scenes) and the public Argoverse benchmark.

  • Accuracy: On the Argoverse benchmark, PRANK achieved an ADE (Average Displacement Error) of 1.73m and an FDE (Final Displacement Error) of 3.82m, outperforming more complex models like VectorNet at the time of submission. Ablation studies (shown above) highlight that features like trajectory rebalancing and the noise model significantly improve these displacement errors.
  • Speed: The actual search and inference post-processing takes less than 3ms for 150 results. The entire pipeline (including the CNN) takes about 200ms for 5 agents, and can be scaled to 50 agents with minimal extra cost by sharing feature maps.
  • Multimodality: The model naturally handles multiple "modes" (e.g., a car that could either turn or go straight) by returning the top-scoring clusters from the trajectory bank.

Limitations and Future Work

  • Distribution Mismatch: Interestingly, using the Yandex trajectory bank on the Argoverse dataset didn't improve results. This suggests that "driving styles" and road layouts are localized; a bank of trajectories from Moscow might not perfectly represent driving in Pittsburgh.
  • Scene-Agnostic Bank: Currently, the bank is global. The authors suggest that future versions could filter the bank based on the specific map (e.g., if there is no right-turn lane, don't even score right-turn trajectories).
  • Static History: The current model relies on a fixed history window. Exploring more sophisticated temporal architectures (like Transformers or better Graph Neural Networks) for the scene encoder could further boost performance.

Summary updated

BibTeX
@inproceedings{biktairov2020prank,
  author = {Yuriy Biktairov and Maxim Stebelev and Irina Rudenko and Oleh Shliazhko and Boris Yangel},
  title = {{PRANK: motion Prediction based on RANKing}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=xP02Qyf1Ll},
}
Figure