TrajEvo: Trajectory Prediction Heuristics Design via LLM-driven Evolution

Zhikai Zhao, Chuanbo Hua, Federico Berto, Kanghoon Lee, Zihan Ma +2 more
8/7/2025
cs.LGcs.AIcs.NE

Official code: ai4co/trajevo (21 stars, MIT, last commit 2025-08-01).

Abstract

Trajectory prediction is a critical task in modeling human behavior, especially in safety-critical domains such as social robotics and autonomous vehicle navigation. Traditional heuristics based on handcrafted rules often lack accuracy and generalizability. Although deep learning approaches offer improved performance, they typically suffer from high computational cost, limited explainability, and, importantly, poor generalization to out-of-distribution (OOD) scenarios. In this paper, we introduce TrajEvo, a framework that leverages Large Language Models (LLMs) to automatically design trajectory prediction heuristics. TrajEvo employs an evolutionary algorithm to generate and refine prediction heuristics from past trajectory data. We propose two key innovations: Cross-Generation Elite Sampling to encourage population diversity, and a Statistics Feedback Loop that enables the LLM to analyze and improve alternative predictions. Our evaluations demonstrate that TrajEvo outperforms existing heuristic methods across multiple real-world datasets, and notably surpasses both heuristic and deep learning methods in generalizing to an unseen OOD real-world dataset. TrajEvo marks a promising step toward the automated design of fast, explainable, and generalizable trajectory prediction heuristics. We release our source code to facilitate future research at https://github.com/ai4co/trajevo.

View on arXivView PDF

Code Implementations(1)

ai4co/trajevoOfficial100%
MIT

[AAAI 2026] TrajEvo: Designing Trajectory Prediction Heuristics via LLM-driven Evolution

211Python, Jupyter NotebookMay 7, 20251 years agoMIT

Similar Papers

Cite this paper

@article{zhao2025trajevo,
  title  = {TrajEvo: Trajectory Prediction Heuristics Design via LLM-driven Evolution},
  author = {Zhikai Zhao and Chuanbo Hua and Federico Berto and Kanghoon Lee and Zihan Ma and Jiachen Li and Jinkyoo Park},
  year   = {2025},
  eprint = {2508.05616},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.05616v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2508.05616.svg)](https://codeofpaper.com/paper/2508.05616)

Discussion