PathGen-LLM: A Large Language Model for Dynamic Path Generation in Complex Transportation Networks
Dynamic path generation in complex transportation networks is essential for intelligent transportation systems. Traditional methods, such as shortest path algorithms or heuristic-based models, often fail to capture real-world travel behaviors due to their reliance on simplified assumptions and limited ability to handle long-range dependencies or non-linear patterns. To address these limitations, we propose PathGen-LLM, a large language model (LLM) designed to learn spatial–temporal patterns from historical paths without requiring handcrafted features or graph-specific architectures. Exploiting the structural similarity between path sequences and natural language, PathGen-LLM converts spatiotemporal trajectories into text-formatted token sequences by encoding node IDs and timestamps. This enables the model to learn global dependencies and semantic relationships through self-supervised pretraining. The model integrates a hierarchical Transformer architecture with dynamic constraint decoding, which synchronizes spatial node transitions with temporal timestamps to ensure physically valid paths in large-scale road networks. Experimental results on real-world urban datasets demonstrate that PathGen-LLM outperforms baseline methods, particularly in long-distance path generation. By bridging sequence modeling and complex network analysis, PathGen-LLM offers a novel framework for intelligent transportation systems, highlighting the potential of LLMs to address challenges in large-scale, real-time network tasks.
Authors
- X. Rong Li
- Kai Xian (ORCID: https://orcid.org/0000-0001-9444-4785)
- Han Xu
- Shengguang Bai (ORCID: https://orcid.org/0009-0008-4843-3215)
- Yun Yu (ORCID: https://orcid.org/0000-0002-9540-6040)
- Huimin Wen
Institutions
- Cornell University (US)
- Beijing Jiaotong University (CN)
- New York State College of Agriculture & Life Sciences (US)
- China Railway Economic and Planning Research Institute (CN)
- Lear (Spain) (ES)
- Lear (United States) (US)
Publication Details
- Journal
- Mathematics
- Published
- 2025-09-24
- DOI
- https://doi.org/10.3390/math13193073
- Citations
- 2
- Primary Topic
- Traffic Prediction and Management Techniques
- Type
- article
- Field-Weighted Citation Impact
- 2.01
Funders
- National Natural Science Foundation of China