# Harnessing LLMs for Cross-City OD Flow Prediction

arXiv: https://arxiv.org/abs/2409.03937 · HTML: https://mlsanity.com/paper/2409.03937/

## Key facts

- Cited by 7 papers in the map (data through 14 Oct 2026).
- Builds on 14 of its 42 references that are in the map.
- First posted on arXiv 5 Sep 2024.

## Builds on (most cited first, 14 of 14)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding](https://mlsanity.com/paper/1810.04805/) (2018)
- [Language Models are Few-Shot Learners](https://mlsanity.com/paper/2005.14165/) (2020)
- [LoRA: Low-Rank Adaptation of Large Language Models](https://mlsanity.com/paper/2106.09685/) (2021)
- [Graph Attention Networks](https://mlsanity.com/paper/1710.10903/) (2017)
- [Learning Geo-Contextual Embeddings for Commuting Flow Prediction](https://mlsanity.com/paper/2005.01690/) (2020)
- [Chain-of-Interaction: Enhancing Large Language Models for Psychiatric Behavior Understanding by Dyadic Contexts](https://mlsanity.com/paper/2403.13786/) (2024)
- [A Survey on Deep Learning Based Point-Of-Interest (POI) Recommendations](https://mlsanity.com/paper/2011.10187/) (2020)
- [A Machine Learning Approach to Modeling Human Migration](https://mlsanity.com/paper/1711.05462/) (2017)
- [The New Agronomists: Language Models are Experts in Crop Management](https://mlsanity.com/paper/2403.19839/) (2024)
- [From Values to Opinions: Predicting Human Behaviors and Stances Using Value-Injected Large Language Models](https://mlsanity.com/paper/2310.17857/) (2023)
- [Predicting commuter flows in spatial networks using a radiation model based on temporal ranges](https://mlsanity.com/paper/1410.4849/) (2014)
- [Complexity-aware Large Scale Origin-Destination Network Generation via Diffusion Model](https://mlsanity.com/paper/2306.04873/) (2023)
- [Exploring universal patterns in human home-work commuting from mobile phone data](https://mlsanity.com/paper/1311.2911/) (2013)

## Built on by (most cited first, 7 of 7)

- [Multi-Agent Geospatial Copilots for Remote Sensing Workflows](https://mlsanity.com/paper/2501.16254/) (2025)
- [Geo-OLM: Enabling Sustainable Earth Observation Studies with Cost-Efficient Open Language Models & State-Driven Workflows](https://mlsanity.com/paper/2504.04319/) (2025)
- [Urban Computing in the Era of Large Language Models](https://mlsanity.com/paper/2504.02009/) (2025)
- [Popular LLMs Amplify Race and Gender Disparities in Human Mobility](https://mlsanity.com/paper/2411.14469/) (2024)
- [CROPS: A Deployable Crop Management System Over All Possible State Availabilities](https://mlsanity.com/paper/2411.06034/) (2024)
- [Quantifying geographic domain shift to decouple the geospatial transferability of human mobility flow generation models](https://mlsanity.com/paper/2608.21567/) (2026)
- [On the security and privacy of LLMs in Mobility](https://mlsanity.com/paper/2609.26295/) (2026)

## Abstract (arXiv)

Understanding and predicting Origin-Destination (OD) flows is crucial for urban planning and transportation management. Traditional OD prediction models, while effective within single cities, often face limitations when applied across different cities due to varied traffic conditions, urban layouts, and socio-economic factors. In this paper, by employing Large Language Models (LLMs), we introduce a new method for cross-city OD flow prediction. Our approach leverages the advanced semantic understanding and contextual learning capabilities of LLMs to bridge the gap between cities with different characteristics, providing a robust and adaptable solution for accurate OD flow prediction that can be transferred from one city to another. Our novel framework involves four major components: collecting OD training datasets from a source city, instruction-tuning the LLMs, predicting destination POIs in a target city, and identifying the locations that best match the predicted destination POIs. We introduce a new loss function that integrates POI semantics and trip distance during training. By extracting high-quality semantic features from human mobility and POI data, the model understands spatial and functional relationships within urban spaces and captures interactions between individuals and various POIs. Extensive experimental results demonstrate the superiority of our approach over the state-of-the-art learning-based methods in cross-city OD flow prediction.
