Skip to main content
QUICK REVIEW

[Paper Review] Real-Time Motion Prediction via Heterogeneous Polyline Transformer with Relative Pose Encoding

Zhejun Zhang, Alexander Liniger|arXiv (Cornell University)|Oct 19, 2023
Human Pose and Action RecognitionComputer Science8 citations
TL;DR

HPTR introduces Knarpe attention and a heterogeneous polyline representation to enable real-time, scalable motion prediction with shared/static contexts, achieving competitive accuracy while greatly reducing latency and memory use.

ABSTRACT

The real-world deployment of an autonomous driving system requires its components to run on-board and in real-time, including the motion prediction module that predicts the future trajectories of surrounding traffic participants. Existing agent-centric methods have demonstrated outstanding performance on public benchmarks. However, they suffer from high computational overhead and poor scalability as the number of agents to be predicted increases. To address this problem, we introduce the K-nearest neighbor attention with relative pose encoding (KNARPE), a novel attention mechanism allowing the pairwise-relative representation to be used by Transformers. Then, based on KNARPE we present the Heterogeneous Polyline Transformer with Relative pose encoding (HPTR), a hierarchical framework enabling asynchronous token update during the online inference. By sharing contexts among agents and reusing the unchanged contexts, our approach is as efficient as scene-centric methods, while performing on par with state-of-the-art agent-centric methods. Experiments on Waymo and Argoverse-2 datasets show that HPTR achieves superior performance among end-to-end methods that do not apply expensive post-processing or model ensembling. The code is available at https://github.com/zhejz/HPTR.

Motivation & Objective

  • Motivate real-time motion prediction for on-board autonomous driving systems.
  • Propose a scalable, agent-agnostic representation that shares context across agents.
  • Develop a Transformer-based architecture (HPTR) with asynchronous, hierarchical updates to minimize online computation.

Proposed method

  • Represent all inputs as heterogeneous polylines with global pose and local attributes.
  • Introduce Knarpe: K-nearest neighbors attention with relative pose encoding to enable pairwise-relative representations in Transformers.
  • Build HPTR: a hierarchical Transformer framework with intra-class and inter-class attention and asynchronous token updates to reuse static contexts.
  • Decode outputs as a mixture of Gaussians for multi-modal trajectories and train with a combination of loss terms (confidence, position, yaw, speed).
  • Represent map, traffic lights, and agents as polylines and reuse static map features during online inference to boost efficiency.

Experimental results

Research questions

  • RQ1Can Knarpe enable effective Transformer-based processing of pairwise-relative polylines for motion prediction?
  • RQ2Does HPTR achieve end-to-end competitive accuracy while matching or beating the efficiency of scene-centric methods?
  • RQ3What gains in memory and latency can be achieved by context sharing and asynchronous token updates in online inference?
  • RQ4How does HPTR perform on large-scale datasets (Waymo Open Motion, Argoverse-2) compared with state-of-the-art methods without post-processing or ensembling?

Key findings

  • HPTR achieves competitive performance with state-of-the-art agent-centric methods while significantly reducing memory and latency (up to ~80% reduction) compared to baselines.
  • Caching static map features during online inference enables real-time predictions for 64 agents at 40 frames per second on a single GPU.
  • HPTR outperforms scene-centric baselines and closely matches agent-centric approaches, particularly when using the lower triangular attention arrangement.
  • On Waymo and Argoverse-2 benchmarks, HPTR ranks among the top end-to-end methods without expensive post-processing or model ensembling.
  • The proposed Knarpe attention enables efficient context sharing across heterogeneous polylines, improving scalability in dense traffic scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.