Remember Intentions: Retrospective-Memory-based Trajectory Prediction

Chenxin Xu, Weibo Mao, Wenjun Zhang, Siheng ChenCVPR 2022

Abstract

To realize trajectory prediction, most previous methods adopt the parameter-based approach, which encodes all the seen past-future instance pairs into model parameters. However, in this way, the model parameters come from all seen instances, which means a huge amount of irrelevant seen instances might also involve in predicting the current situation, disturbing the performance. To provide a more explicit link between the current situation and the seen instances, we imitate the mechanism of retrospective memory in neuropsychology and propose MemoNet, an instance-based approach that predicts the movement intentions of agents by looking for similar scenarios in the training data. In MemoNet, we design a pair of memory banks to explicitly store representative instances in the training set, acting as prefrontal cortex in the neural system, and a trainable memory addresser to adaptively search a current situation with similar instances in the memory bank, acting like basal ganglia. During prediction, MemoNet recalls previous memory by using the memory addresser to index related instances in the memory bank. We further propose a two-step trajectory prediction system, where the first step is to leverage MemoNet to predict the destination and the second step is to fulfill the whole trajectory according to the predicted destinations. Experiments show that the proposed MemoNet improves the FDE by 20.3%/10.2%/28.3% from the previous best method on SDD/ETH-UCY/NBA datasets. Experiments also show that our MemoNet has the ability to trace back to specific instances during prediction, promoting more interpretability.

Introduction

Predicting the future trajectories of agents—whether pedestrians, cyclists, or vehicles—is a fundamental challenge for autonomous systems. Traditional "parameter-based" deep learning models distill knowledge from thousands of training examples into a fixed set of weights. While effective, this approach suffers from two significant drawbacks: interference from irrelevant training data and a lack of interpretability. When a model makes a prediction, it is often impossible to trace which specific historical examples influenced that decision.

To address these issues, we introduce MemoNet, an instance-based framework inspired by the human retrospective memory process. Instead of relying solely on abstract parameters, MemoNet explicitly stores and retrieves specific past experiences to inform future predictions.

Comparison between human retrospective memory and the MemoNet process.

Methodology

MemoNet mimics the neural architecture of the human brain, specifically the prefrontal cortex for storage and the basal ganglia for retrieval. The system consists of several key components:

Dual Memory Banks

The framework maintains two synchronized memory banks: one for "Past Trajectories" and one for "Future Intentions" (destinations). These banks store representative instances from the training set, pruned to ensure uniqueness and efficiency.

Trainable Memory Addresser

Unlike standard retrieval methods that use simple similarity metrics, MemoNet employs an attention-based Addresser. This component learns to map a current "Past Feature" to the most relevant entries in the memory bank. It is trained using a "pseudo-label" based on physical distance, ensuring that retrieved memories are functionally relevant to the agent's future destination.

Two-Step Prediction Pipeline

The prediction process is divided into two stages:

  1. Intention Prediction: The Addresser retrieves "coarse intention anchors" from the memory bank, which are then clustered to produce a set of predicted future intentions (destinations).
  2. Trajectory Completion: A decoder uses the current past features and the predicted intentions to generate the full future trajectory.
The MemoNet architecture, featuring the memory addresser and intention clustering.

Experiments and Results

We evaluated MemoNet on three diverse datasets: the Stanford Drone Dataset (SDD), ETH-UCY, and the NBA Dataset. The latter is particularly challenging due to the high-speed, strategic nature of basketball player movements.

MemoNet achieved state-of-the-art performance across all benchmarks, significantly reducing the Final Displacement Error (FDE):

  • SDD: 20.3% improvement over PECNet.
  • ETH-UCY: 10.2% improvement over AgentFormer.
  • NBA: 28.3% improvement over NMMP.

Beyond accuracy, MemoNet offers superior interpretability. By examining the memory indices retrieved by the Addresser, researchers can "trace back" to the specific training instances that informed a prediction, providing a clear link between data and decision.

Conclusion

MemoNet represents a shift from "black box" parameter-based prediction to a more transparent, instance-based "recall" mechanism. By explicitly remembering and retrieving relevant past scenarios, the model avoids noise from irrelevant data and provides a more interpretable framework for trajectory prediction. Future work will focus on integrating environmental map data into the memory banks to further refine predictions in complex urban settings.

Summary updated

BibTeX
@inproceedings{xu2022remember,
  author = {Chenxin Xu and Weibo Mao and Wenjun Zhang and Siheng Chen},
  title = {{Remember Intentions: Retrospective-Memory-based Trajectory Prediction}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=6ZJWJXZhL_K},
}
Figure