RankFormer: A Propose-then-Select Transformer for Multi-Agent Multimodal Trajectory Prediction
summary
The gist
Predicting traffic agent trajectories plays an important role in autonomous driving, traffic operations, transportation safety analysis, etc.
In short
RankFormer is a Transformer-based model designed for multi-modal trajectory prediction by considering temporal dependencies and agent-agent spatial interactions. It uses two parallel decoders: one to propose K trajectories and another to generate probabilities for each mode based on spatiotemporal interactions, offering a robust framework.
Key concepts
- RankFormer Architecture
- This is a pure Transformer model that predicts multiple possible paths (trajectories) for agents. It uses two parallel decoders: one proposes the actual trajectories, and the other generates probabilities for each mode by considering how agents interact in space and time.
- Training Signal Construction
- The model optimizes a weighted sum of trajectory loss (Ltraj) and probability loss (Lprob). The trajectory loss involves minimizing per-mode Mean Squared Errors, while the Path Ranker is trained using soft cross-entropy to favor the geometrically preferred mode.
- Spatial Attention Enhancement
- The model enhances spatial encoding to incorporate ego-centric velocity and acceleration of neighboring vehicles in a vectorized manner. This allows the system to understand surrounding vehicle dynamics more effectively than traditional graph-based methods.
- Propose-then-Select Strategy
- This strategy involves two steps: first, one decoder proposes K trajectories independently. Second, a Path Ranker assigns probabilities to these proposed paths based on agent-agent relationships and inter-modal attentions, improving top-1 performance.
Terminology used across episodes
This episode discusses
- RankFormer: A Propose-then-Select Transformer for Multi-Agent Multimodal Trajectory Prediction · Paper Radio
- You Mostly Walk Alone: Analyzing Feature Attribution in Trajectory Prediction
The paper
RankFormer: A Propose-then-Select Transformer for Multi-Agent Multimodal Trajectory Prediction · Read on arXiv
Diyi Liu, Zihan Niu, Tu Xu, Xingchen Zhang, Lishan Sun
College of Metropolitan Transportation Beijing University of Technology Department of College of Metropolitan Transportation Beijing University of Technology Zhejiang Police College
Predicting traffic agent trajectories plays an important role in autonomous driving, traffic operations, transportation safety analysis, etc. Although many deep learning algorithms are devised to predict future agent trajectories, the trajectory prediction problem is still challenging due to the complexity of decision-making process, interactions with surrounding vehicles, and the existence of multiple possible intentions for the traveling agents even under similar scenarios. Most existing methods are limited by the requirement of graph structures (e.g., Graph Neural Network) or the requirement of manually labeled intentions. In this study, we propose a pure Transformer-based deep learning model for multi-modal trajectory prediction considering temporal dependencies and agent-agent spatial interactions. After encoding the historical trajectories, two parallel decoders are employed to generate trajectories and probabilities on separate decoder tracks. The model is evaluated on two real-world datasets, one highway dataset and the other pedestrian dataset with solid performance. One important insight is that following a ``propose-then-select'' strategy, the agent-agent spatial interactions are only considered for probability estimation instead of trajectory generation. In summary, the proposed model provides a potential direction to design more robust and effective multi-modal trajectory prediction models.
Transcript
Introduction to the show: ident: Robotics Radio. Generated commentary on the latest robotics and control papers.
Rosa: We're looking at the paper: "RankFormer: A Propose-then-Select Transformer for Multi-Agent Multimodal Trajectory Prediction".
Paper summary: Rosa: So, we're looking at this paper called RankFormer: A Propose-then-Select Transformer for Multi-Agent Multimodal Trajectory Prediction. Basically, they've come up with a pure Transformer model to predict how different agents will move along their paths and also give you the probabilities for those different paths.
Dev: It tackles the problem that predicting agent trajectories is really hard because of all the decision-making processes and how they interact with other vehicles, plus there are just multiple possible intentions for traveling agents even when things look similar.
Taro: And what's interesting about this paper is that most existing methods rely on graph structures or having those intentions manually labeled, but RankFormer proposes something different using a pure Transformer model to handle both temporal dependencies and the spatial interactions between agents.
Rosa: They propose a "propose-then-select" strategy where one decoder generates multiple trajectories, and then a separate module generates the probabilities for each trajectory based on how those surrounding agents are influencing the situation.
Dev: That probability generation is handled by two parallel decoders, one for generating the actual paths and another to estimate the probabilities considering spatiotemporal interactions among vehicles and also inter-modal attentions between different modes.
Taro: They also introduced a new spatial attention module that considers the motions and dynamics of neighboring agents, which they apply in the Path Ranker to let different trajectory modes communicate for better probability estimations.
Rosa: The authors found that this design allows the model to propose trajectories for each vehicle independently without interference from neighboring vehicles, which is pretty neat because it avoids that kind of direct crosstalk during proposal.
Dev: And they showed that by enhancing the spatial encoding module, they can consider ego-centric velocity and acceleration of neighboring vehicles in a vectorized way, which is something learned from traditional graph-based methods.
Taro: It sounds like the model learns how those surrounding agents shift mode probabilities based on their movements, which is crucial for understanding complex traffic scenarios where intentions change quickly.
Rosa: They did some qualitative analysis by visualizing the trajectories and agent-agent interactions, which shows that cross lane intentions are likely to have higher attention weights focused on surrounding vehicles.
Dev: That visualization helps you see exactly how the model is weighting information, but we need to keep an eye on the latency of this process since it's running in real-time loops.
Paper summary: Taro: If you look at the math they used, they define a normalized impact as I sub i t equals P sub j equal one I i j t, which represents how much information vehicle i receives from all surrounding vehicles, and that helps us see the influence of neighbors.
Rosa: The training objective function is a weighted sum of trajectory loss and probability loss, where the total objective is L equals L traj plus alpha times L prob. The trajectory regression loss involves a q-weighted sum of per-mode mean squared errors.
Dev: And they train the Path Ranker to assign high probability to the same geometrically favored mode using a soft cross entropy against q, which ties back into how the model selects the final prediction later on.
Taro: Now, looking at where this works in practice, one limitation they point out is that compared with CVAE methods, memory consumption can be higher when you have more modes because of the straightforward way they align different modes as model sizes grow with the number of modes.
Rosa: And there's another practical issue: if you have more than five modes of intentions, many of those modes might collapse to useless values with near zero probabilities, which could then generate drifted trajectories.
Dev: That sounds like a real risk for safety; if the model starts predicting paths that don't make sense because it has too many collapsed options, the system needs a very solid safety case for that failure mode.
Taro: Another limitation they mention is that the current version of the model doesn't encode contextual information like lanes, borders, and obstacles in its training data.
Rosa: That means if you run this on a real road without those explicit context cues, its performance might drop because it lacks that environmental understanding.
Dev: And they also noted that there isn't heterogeneity in agent types within one scene to train more generous models, so the model isn't trained well when different kinds of agents are present together.
Taro: So for future work, they suggest applying a more efficient method to learn the latent space if you want to generate more modes of intentions without running into those memory issues.
Rosa: And they also suggested that given raw video inputs, it might be better to design an end-to-end model that directly generates predictions given the running inputs instead of just using historical trajectories.
Paper summary: Dev: That would drastically change the deployment situation because it would mean direct prediction from what you're seeing right now, not just relying on a fixed history of past states.
Taro: We also have to remember their evaluation metrics: performance is reported using Average Displacement Error or ADE and Final Displacement Error or FDE in meters. Top-one ADE/FDE uses the highest probability mode, which matches how we select the final prediction during inference time <ref:2604.07126#pg1>.
Rosa: They also report oracle metrics, minADEK and minFDEK, by selecting the proposal closest to ground truth for each agent, which gives a more rigorous look at accuracy.
Dev: And they found that spatial interactions improve both top-one and oracle performance when compared to models without spatial attention; specifically, top-one ADE/FDE goes down from two point five zero meters and four point eight eight meters to two point two eight meters and four point five eight meters when interactions are enabled for the highway dataset.
Taro: The results show that the model predictions are generally close to the ground truth trajectories when you visualize them, which is a good sign for overall prediction quality across different configurations and datasets like the ETH dataset and Ubiquitous Traffic Eyes dataset.
Rosa: So, to wrap up this discussion on RankFormer: it successfully introduced a Transformer-based architecture that predicts agent multi-modal trajectories along with their associated probabilities. The key finding is the "propose-then-select" strategy where one decoder proposes trajectories and a separate Path Ranker assigns probabilities based on agent interactions.
Dev: This approach is effective in enhancing top-one performance by letting the model propose trajectories independently before ranking them based on interaction context, providing a robust framework for multi-modal trajectory prediction that incorporates both temporal and spatial dependencies effectively <ref:2604.07126#pg1,for multi-modal trajectory prediction>.
Taro: The success validates using parallel decoders and specialized attention modules for modeling complex agent interactions in traffic scenarios, which is what we need when things get complicated on the road.
Rosa: Overall, this paper shows a way to structure a model that handles the complexity of multiple potential paths while making those paths meaningful by factoring in how agents around you are moving.
Dev: It's an efficient architecture for predicting multi-modal agent trajectories with probabilities, and that's something we need to keep in mind as we build systems that need to operate safely in complex traffic environments.
Conclusion: Rosa: So, we’ve been looking at RankFormer, which is this pure Transformer model that predicts multiple possible paths for agents along with their probabilities.
Dev: Yeah, and what they're doing is using a "propose-then-select" strategy where one part of the model suggests trajectories and another part ranks them based on how those surrounding agents are interacting.
Taro: It’s about making sure you get the paths right first before you figure out which one is actually going to happen by looking at the context of other vehicles.
Rosa: The authors, they’re showing that this combination of proposing and ranking based on spatial relationships really helps improve how accurate those predictions are.
Dev: They found that this setup makes a big difference in the error rates when compared to older methods, showing better performance for both top-one predictions and those more rigorous oracle metrics.
Taro: It means we’re getting a framework that handles both the timing of things and where everything is happening on the road at once.
Rosa: The implication here is that we can build smarter prediction systems by using these parallel decoders to handle different ways agents might move simultaneously.
Dev: It really validates using those specific attention modules because they are crucial for modeling how vehicles influence each other in a dense traffic situation.
Taro: So, while this model is strong, we still have some questions about when it’s going to work reliably outside of the controlled lab settings we test on right now.
Rosa: Exactly. We need to see if these predictions hold up when the world misbehaves or when the environment gets messy in real-time trials.
More episodes
- Daily Summary for 2026-12-05
- 2606.23371-TSD: A Physics-Inspired Trajectory Saliency Detector for Efficient Imitation Learning
- 2607.03828-ObjRetarget: An Object-Aware Motion Retargeting Framework with Anthropomorphic Arm Constraints and Polyhedral Hand Modeling
- The day in conversation for 2026-12-05
- 2607.05883-DexTele: A Dual-Arm Dexterous Teleoperation System Based on Motion Retargeting and Adaptive Force Control
- Daily Summary for 2026-12-05
- 2607.26056-INTACT: Isomorphic Intent-to-Action Learning for Search-Free World Models
- 2608.00931-Stipple: Real-Time Photometric 3DGS with Visual-Inertial SLAM
- 2608.24525-RoG-DAgger: Rollout-Guided Post-Training for End-to-End Driving
- 2608.25405-LAC: Linear and Angular Compliance for Humanoid Whole-body Control