HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

AgentFormer: Agent-Aware Transformers for Socio-Temporal Multi-Agent Forecasting

Ye Yuan Xinshuo Weng Yanglan Ou Kris Kitani

AgentFormer: Agent-Aware Transformers for Socio-Temporal Multi-Agent Forecasting

Abstract

Predicting accurate future trajectories of multiple agents is essential for autonomous systems, but is challenging due to the complex agent interaction and the uncertainty in each agent's future behavior. Forecasting multi-agent trajectories requires modeling two key dimensions: (1) time dimension, where we model the influence of past agent states over future states; (2) social dimension, where we model how the state of each agent affects others. Most prior methods model these two dimensions separately, e.g., first using a temporal model to summarize features over time for each agent independently and then modeling the interaction of the summarized features with a social model. This approach is suboptimal since independent feature encoding over either the time or social dimension can result in a loss of information. Instead, we would prefer a method that allows an agent's state at one time to directly affect another agent's state at a future time. To this end, we propose a new Transformer, AgentFormer, that jointly models the time and social dimensions. The model leverages a sequence representation of multi-agent trajectories by flattening trajectory features across time and agents. Since standard attention operations disregard the agent identity of each element in the sequence, AgentFormer uses a novel agent-aware attention mechanism that preserves agent identities by attending to elements of the same agent differently than elements of other agents. Based on AgentFormer, we propose a stochastic multi-agent trajectory prediction model that can attend to features of any agent at any previous timestep when inferring an agent's future position. The latent intent of all agents is also jointly modeled, allowing the stochasticity in one agent's behavior to affect other agents. Our method substantially improves the state of the art on well-established pedestrian and autonomous driving datasets.

Code Repositories

Khrylx/AgentFormer
Official
pytorch
Mentioned in GitHub
zhanwei-z/g2ltraj
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
trajectory-prediction-on-ethucyAgentFomer
ADE-8/12: 0.23
FDE-8/12: 0.39
trajectory-prediction-on-nuscenesAgentFormer
MinADE_10: 1.45
MinADE_5: 1.86

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
AgentFormer: Agent-Aware Transformers for Socio-Temporal Multi-Agent Forecasting | Papers | HyperAI