PlanAgent: A Multi-modal Large Language Agent for Closed-loop Vehicle Motion Planning

Yupeng Zheng, Zebin Xing, Qichao Zhang, Bu Jin, Pengfei Li, Yuhang Zheng, Zhongpu Xia, Kun Zhan, Xianpeng Lang, Yaran Chen, Dongbin Zhao

TL;DR

PlanAgent is the first closed-loop, mid-to-mid autonomous driving planning agent driven by a Multi-modal Large Language Model (MLLM). By combining efficient environment tokenization, hierarchical reasoning, and a simulation-based reflection loop, it achieves state-of-the-art performance on both standard and challenging long-tailed driving benchmarks while maintaining high interpretability.

What Problem Does This Paper Address?

Autonomous vehicle motion planning typically relies on either rule-based or learning-based methods. Rule-based systems perform reliably in everyday traffic but struggle to generalize to complex, rare "long-tailed" scenarios (e.g., navigating a chaotic roundabout or sudden lane merges). Conversely, learning-based methods (like imitation learning) often suffer from overfitting and struggle in closed-loop environments where the vehicle's actions actively change the future state of the world.

Recently, researchers have attempted to leverage Large Language Models (LLMs) for driving due to their human-like common-sense reasoning. However, existing approaches face major bottlenecks: they are often tested only in simple open-loop simulations, they use an excessive number of raw coordinate tokens to describe maps (which is highly inefficient), or they let the LLM directly output trajectory waypoints, introducing severe safety risks due to LLM hallucinations and uncertainty. PlanAgent addresses these limitations by bridging semantic reasoning with classical control safety.

Methods

PlanAgent introduces a mid-to-mid architecture consisting of three core modules:

  1. Environment Transformation: Instead of feeding raw coordinates into the model, this module splits data into global and local context. It creates a Bird's Eye View (BEV) map for global semantic priors and a highly efficient lane-graph-based textual description for local agent interactions. This reduces token usage to just one-third of previous methods.
  2. Reasoning Engine: Guides the MLLM (GPT-4V) using a hierarchical Chain-of-Thought (CoT) prompt. The model answers questions across three levels: high-level scene understanding, intermediate motion instructions (e.g., whether to change lanes or decelerate), and low-level planner code generation (Python code that instantiates an Intelligent Driver Model with custom parameters).
  3. Reflection Module: Acts as a safety net. Before executing the MLLM-generated code, a short-term closed-loop simulation evaluates the plan. If the safety or comfort score falls below a threshold ($\lambda = 0.75$), the system triggers a "rethink" loop, prompting the MLLM to correct its mistake.
PlanAgent Overall Architecture

Datasets

The authors evaluated PlanAgent on the large-scale nuPlan benchmark, which contains 1,500 hours of real-world human driving data across four cities. Specifically, they tested on:

  • nuPlan Val14: The standard validation set representing common driving scenarios.
  • nuPlan Test14-hard: A benchmark specifically designed to test model generalization in complex, long-tailed scenarios.

Key Insights and Ideas

  • Code over Waypoints: Instead of forcing the MLLM to predict raw trajectory coordinates (which leads to jittery or unsafe paths), PlanAgent tasks the MLLM with generating code parameters for a classical rule-based planner (IDM). This beautifully bridges the common-sense reasoning of LLMs with the mathematical safety guarantees of traditional robotics.
  • Token Efficiency via Graphs: Representing map lanes as topological graphs rather than coordinate lists makes the scene description highly aligned with the semantic space of language models, cutting token overhead drastically.
  • Short-term Simulation vs. Long-term: While traditional rule-based meta-planners use long-term simulation to pick parameters, PlanAgent uses short-term simulation in its reflection loop. This minimizes cumulative prediction errors from assuming other vehicles move at constant speeds.

Key Results

  • State-of-the-Art Performance: On the nuPlan Val14 benchmark, PlanAgent achieved a non-reactive closed-loop score (NR-CLS) of 93.26, outperforming both the leading rule-based method PDM-Closed (92.51) and learning-based methods like PlanTF (76.78).
  • Robust Generalization: On the challenging Test14-hard benchmark, PlanAgent maintained a high score of 72.51 NR-CLS and achieved the highest reactive score (R-CLS) of 76.82, proving its capability in long-tailed scenarios where rule-based methods drop significantly (to 65.07).
  • Token Reduction: PlanAgent requires only 141.32 tokens on average to describe a scene, compared to 448.66 for GPT-Driver and 425.81 for LLM-ASSIST.
Fig. 1. Quantitative results of non-reactive closed-loop motion planning on nuPlan [1] Val14 and Test14-hard benchmarks compared with the state-of-the- art rule-based method PDM-Closed [2] and learning-based method PlanTF [3] and DTPP [4]. Our proposed PlanAgent achieves state-of-the-art performance in common scenarios (Val14 benchmark) and demonstrated generalization in more challenging long-tailed scenarios (Test14-hard benchmark). Other methods either perform poorly in common scenarios or find it difficult to generalize to long-tailed scenarios. Please note that PDM-Closed, PlanTF, DTPP, and PlanAgent are denoted by purple, green, yellow, and orange, respectively. The best performances are represented in italics and underlined.

Limitations and Future Work

  • Inference Latency: Calling a powerful MLLM like GPT-4V takes approximately 5 seconds per inference step. This is far too slow for real-time, real-world deployment where planning loops must run at 10Hz or higher.
  • Prompt Sensitivity: The system remains highly sensitive to prompt quality and occasional scene-understanding errors from the underlying MLLM.
  • Future Directions: The authors plan to fine-tune smaller, open-source MLLMs specifically on autonomous driving datasets to improve accuracy and reduce latency. They also aim to develop an adaptive triggering mechanism so the MLLM is only called during complex scenarios, leaving straightforward driving to lightweight rule-based models.

Summary updated

BibTeX
@article{zheng2026planagent,
  author = {Yupeng Zheng and Zebin Xing and Qichao Zhang and Bu Jin and Pengfei Li and Yuhang Zheng and Zhongpu Xia and Kun Zhan and Xianpeng Lang and Yaran Chen and Dongbin Zhao},
  title = {{PlanAgent: A Multi-modal Large Language Agent for Closed-loop Vehicle Motion Planning}},
  journal = {IEEE Trans. Cogn. Dev. Syst.},
  year = {2026},
  doi = {10.1109/tcds.2026.3664120},
}
Figure