Lune

KDD2025Top-tier venue

CityGPT: Empowering Urban Spatial Cognition of Large Language Models

Jie Feng, Tianhui Liu, Yuwei Du, Siqi Guo, Yuming Lin, Yong Li

Abstract

Large language models(LLMs), with their powerful language generation and reasoning capabilities, have already achieved notable success in many domains, e.g., math and code generation. However, they often fall short when tackling real-life geospatial tasks within urban environments. This limitation stems from a lack of physical world knowledge and relevant data during training. To address this gap, we propose CityGPT, a systematic framework designed to enhance LLMs' understanding of urban space and improve their ability to solve the related urban tasks by integrating a city-scale 'world model' into the model. Firstly, we construct a diverse instruction tuning dataset, CityInstruction, for injecting urban knowledge into LLMs and effectively boosting their spatial reasoning capabilities. Using a combination of CityInstruction and open source general instruction data, we introduce a novel and easy-to-use self-weighted fine-tuning method (SWFT) to train various LLMs (including ChatGLM3-6B, Llama3-8B, and Qwen2.5-7B) to enhance their urban spatial capabilities without compromising, or even improving, their general abilities. Finally, to validate the effectiveness of our proposed framework, we develop a comprehensive text-based spatial benchmark CityEval for evaluating the performance of LLMs across a wide range of urban scenarios and geospatial tasks. Extensive evaluation results demonstrate that smaller LLMs trained with CityInstruction by SWFT method can achieve performance that is competitive with, and in some cases superior to, proprietary LLMs when assessed using CityEval. Our work highlights the potential for integrating spatial knowledge into LLMs, thereby expanding their spatial cognition abilities and applicability to the real-world physical environments. The dataset, benchmark, and source code are open-sourced and can be accessed through https://github.com/tsinghua-fib-lab/CityGPT.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

13 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Llemma: An Open Language Model for Mathematics cites Measuring Massive Multitask Language Understanding
  • Llemma: An Open Language Model for Mathematics cites Language Models are Few-Shot Learners
  • Measuring Massive Multitask Language Understanding cites Language Models are Few-Shot Learners
  • Pre-Trained Language Models for Interactive Decision-Making cites Language Models are Few-Shot Learners
  • Exploiting Language Power for Time Series Forecasting with Exogenous Variables cites UniST: A Prompt-Empowered Universal Model for Urban Spatio-Temporal Prediction
  • UniST: A Prompt-Empowered Universal Model for Urban Spatio-Temporal Prediction cites Language Models are Few-Shot Learners
  • Efficient Memory Management for Large Language Model Serving with PagedAttention cites Language Models are Few-Shot Learners
  • Diffusion Transformers as Open-World Spatiotemporal Foundation Models cites UniST: A Prompt-Empowered Universal Model for Urban Spatio-Temporal Prediction
  • Diffusion Transformers as Open-World Spatiotemporal Foundation Models cites Language Models are Few-Shot Learners
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers13

  1. UniST: A Prompt-Empowered Universal Model for Urban Spatio-Temporal PredictionYuan Yuan, Jingtao Ding, Jie Feng, Depeng Jin et al.KDD 2024 · 75 citations
  2. Exploiting Language Power for Time Series Forecasting with Exogenous VariablesQihe Huang, Zhengyang Zhou, Kuo Yang, Yang WangWWW 2025 · 17 citations
  3. Diffusion Transformers as Open-World Spatiotemporal Foundation ModelsYuan Yuan, Chonghua Han, Jingtao Ding, Guozhen Zhang et al.NeurIPS 2025 · 16 citations
  4. CityLens: Evaluating Large Vision-Language Models for Urban Socioeconomic SensingTianhui Liu, Hetian Pang, Xin Zhang, Tianjian Ouyang et al.ICLR 2026 · 10 citations
  5. CitySeeker: How Do VLMs Explore Embodied Urban Navigation with Implicit Human Needs?Siqi Wang, Chao Liang, Yunfan Gao, Erxin Yu et al.ICLR 2026 · 8 citations

Builds on19

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou et al.ICLR 2021 · 7,905 citations
  3. Efficient Memory Management for Large Language Model Serving with PagedAttentionWoosuk Kwon, Zhuohan Li, Siyuan Zhuang, Ying Sheng et al.SOSP 2023 · 1,016 citations
  4. Llemma: An Open Language Model for MathematicsZhangir Azerbayev, Hailey Schoelkopf, Keiran Paster, Marco Dos Santos et al.ICLR 2024 · 433 citations
  5. Pre-Trained Language Models for Interactive Decision-MakingShuang Li, Xavier Puig, Chris Paxton, Yilun Du et al.NeurIPS 2022 · 341 citations

Related papers

  1. Struct2D: A Perception-Guided Framework for Spatial Reasoning in MLLMsFangrui Zhu, Hanhui Wang, Yiming Xie, Jing Gu et al.NeurIPS 2025 · 7 citations
  2. UrbanKGent: A Unified Large Language Model Agent Framework for Urban Knowledge Graph ConstructionYansong Ning, Hao LiuNeurIPS 2024 · 35 citations
  3. UrbanGeoEval: A City-Scale Benchmark for Evaluating Large Language Models in Geospatial ReasoningMutian Bao, Qiuyi Qi, Tian Liang, Jinjian Zhang et al.ACL 2026
  4. GeoProg3D: Compositional Visual Reasoning for City-Scale 3D Language FieldsShunsuke Yasuki, Taiki Miyanishi, Nakamasa Inoue, Shuhei Kurita et al.ICCV 2025 · 1 citation
  5. UrbanLLaVA: A Multi-Modal Large Language Model for Urban IntelligenceJie Feng, Shengyuan Wang, Tianhui Liu, Yanxin Xi et al.ICCV 2025 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines