Plan-R1: Safe and Feasible Trajectory Planning as Language Modeling

Xiaolong Tang, Meina Kan, Shiguang Shan, Xilin Chen
5/23/2025
28 citations
cs.ROcs.CV
rlhf-rlvr-dpo

Official code: XiaolongTang23/Plan-R1 (136 stars, Python, Apache-2.0, last commit 2026-07-26).

Abstract

Safe and feasible trajectory planning is critical for real-world autonomous driving systems. However, existing learning-based planners rely heavily on expert demonstrations, which not only lack explicit safety awareness but also risk inheriting undesirable behaviors such as speeding from suboptimal human driving data.

Show full abstract

Inspired by the success of large language models, we propose Plan-R1, a two-stage trajectory planning framework that decouples principle alignment from behavior learning. In the first stage, a general trajectory predictor is pre-trained on expert data to capture diverse, human-like driving behaviors. In the second stage, the model is fine-tuned with rule-based rewards using Group Relative Policy Optimization (GRPO), explicitly aligning ego planning with principles such as safety, comfort, and traffic rule compliance. This two-stage paradigm retains human-like behaviors while enhancing safety awareness and discarding undesirable patterns from demonstrations. Furthermore, we identify a key limitation of directly applying GRPO to planning: group-wise normalization erases cross-group scale differences, causing rare, high-variance safety-violation groups to have similar advantages as abundant low-variance safe groups, thereby suppressing optimization for safety-critical objectives. To address this, we propose Variance-Decoupled GRPO (VD-GRPO), which replaces normalization with centering and fixed scaling to preserve absolute reward magnitudes, ensuring that safety-critical objectives remain dominant throughout training. Experiments on the nuPlan benchmark demonstrate that Plan-R1 significantly improves planning safety and feasibility, achieving state-of-the-art performance, particularly in realistic reactive settings. Our code is available at https://github.com/XiaolongTang23/Plan-R1.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

[ICLR 2026] Plan-R1: Safe and Feasible Trajectory Planning as Language Modeling

13635Python, ShellAug 10, 20254 months agoApache-2.0

Similar Papers

Cite this paper

@article{tang2025planr,
  title  = {Plan-R1: Safe and Feasible Trajectory Planning as Language Modeling},
  author = {Xiaolong Tang and Meina Kan and Shiguang Shan and Xilin Chen},
  year   = {2025},
  eprint = {2505.17659},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.17659v5}
}

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/2505.17659.svg)](https://codeofpaper.com/paper/2505.17659)

Discussion