cs.AIMar 3, 2026

ShipTraj-R1: Reinforcing Ship Trajectory Prediction in Large Language Models via Group Relative Policy Optimization

Authors: Yang Zhan, Yunhao Li, Zhang Chao, Yuxu Lu, Yan Li

Organizations: School of Artificial Intelligence, Optics, and Electronics (iOPEN), Northwestern Polytechnical University, Xi’an 710072, China · Department of Logistics and Maritime Studies, The Hong Kong Polytechnic University, Hong Kong 999077, China · State Key Laboratory of Information Engineering in Surveying, Mapping and Remote Sensing, Wuhan University, Wuhan 430079, China

Abstract

Recent advancements in reinforcement fine-tuning have significantly improved the reasoning ability of large language models (LLMs). In particular, methods such as group relative policy optimization (GRPO) have demonstrated strong capabilities across various fields. However, applying LLMs to ship trajectory prediction remains largely unexplored. In this paper, we propose ShipTraj-R1, a novel LLM-based framework that reformulates ship trajectory prediction as a text-to-text generation problem. (1) We design a dynamic prompt containing trajectory information about conflicting ships to guide the model to achieve adaptive chain-of-thought (CoT) reasoning. (2) We introduce a comprehensive rule-based reward mechanism to incentivize the reasoning format and prediction accuracy of the model. (3) Our ShipTraj-R1 is reinforced through the GRPO mechanism guided by domain-specific prompts and rewards, and utilizes the Qwen3 as the model backbone. Extensive experimental results on two complex and real-world maritime datasets show that the proposed ShipTraj-R1 achieves the least error compared with state-of-the-art deep learning and LLM-based baselines.

Figures & tables

Explore similar work

CardsList
  1. Towards Long-Horizon Vessel Trajectory and Destination Forecasting with Reasoning Large Language Models

    Jun 7, 2026Hongwei Wang, Miao Zhou, Fengde Wang +10RL for Language ModelsVessel Trajectory Prediction

  2. M3-Former: Multimodal Transformer with Mixture-of-Experts for Long-Term Vessel Trajectory Prediction

    Sep 11, 2026Wenzhe Jin, Haina TangMixture of ExpertsVessel Trajectory Prediction

  3. EnvShip-Bench: An Environment-Enhanced Benchmark for Short-Term Vessel Trajectory Prediction

    Jun 13, 2026Kun Ma, Qilong Han, Chengjing Song +3Forecasting BenchmarksVessel Trajectory Prediction