Papers › UrbanGPT: Spatio-Temporal Large Language Models

UrbanGPT: Spatio-Temporal Large Language Models

25 Feb 2024arXiv:2403.00813archive 2025-07-28

Zhonghang Li, Lianghao Xia, Jiabin Tang, Yong Xu, Lei Shi, Long Xia, Dawei Yin, Chao Huang

Spatio-temporal prediction aims to forecast and gain insights into the ever-changing dynamics of urban environments across both time and space. Its purpose is to anticipate future patterns, trends, and events in diverse facets of urban life, including transportation, population movement, and crime rates. Although numerous efforts have been dedicated to developing neural network techniques for accurate predictions on spatio-temporal data, it is important to note that many of these methods heavily depend on having sufficient labeled data to generate precise spatio-temporal representations. Unfortunately, the issue of data scarcity is pervasive in practical urban sensing scenarios. Consequently, it becomes necessary to build a spatio-temporal model with strong generalization capabilities across diverse spatio-temporal learning scenarios. Taking inspiration from the remarkable achievements of large language models (LLMs), our objective is to create a spatio-temporal LLM that can exhibit exceptional generalization capabilities across a wide range of downstream urban tasks. To achieve this objective, we present the UrbanGPT, which seamlessly integrates a spatio-temporal dependency encoder with the instruction-tuning paradigm. This integration enables LLMs to comprehend the complex inter-dependencies across time and space, facilitating more comprehensive and accurate predictions under data scarcity. To validate the effectiveness of our approach, we conduct extensive experiments on various public datasets, covering different spatio-temporal prediction tasks. The results consistently demonstrate that our UrbanGPT, with its carefully designed architecture, consistently outperforms state-of-the-art baselines. These findings highlight the potential of building large language models for spatio-temporal learning, particularly in zero-shot scenarios where labeled data is scarce.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.00813")

Code

Syntology Ran 7 of 12 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · violated contract; 6 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

hkuds/urbangpt officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 7 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
6ran
5unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from hkuds/urbangpt. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

MAE_torch hkuds/urbangpt/urbangpt/model/ST_Llama.py official repository ran fingerprinted Apache-2.0 (permissive) · 2100188132670662 · report
apply_rotary_pos_emb hkuds/urbangpt/urbangpt/model/monkey_patch_non_inplace.py official repository ran Apache-2.0 (permissive) · bdd3c4ef3723890a · report
load_compress_model hkuds/urbangpt/urbangpt/model/compression.py official repository ran Apache-2.0 (permissive) · a730a935c1f257ae · report
load_model_pretrained hkuds/urbangpt/urbangpt/model/ST_Llama.py official repository ran Apache-2.0 (permissive) · 1c58db3bf7592ab2 · report
raise_warning_for_incompatible_cpu_offloading_configuration hkuds/urbangpt/urbangpt/model/model_adapter.py official repository ran · violated contract Apache-2.0 (permissive) · 0bf414a2b44babe6 · report
rotate_half hkuds/urbangpt/urbangpt/model/monkey_patch_non_inplace.py official repository ran fingerprinted Apache-2.0 (permissive) · 62a553b3b2dcaca7 · report
scaler_mae_loss hkuds/urbangpt/urbangpt/model/ST_Llama.py official repository ran Apache-2.0 (permissive) · 6aced6f709ffe24b · report
compress hkuds/urbangpt/urbangpt/model/compression.py official repository unverified Apache-2.0 (permissive) · 80dde39da1ba3708 · report
forward hkuds/urbangpt/urbangpt/model/monkey_patch_non_inplace.py official repository unverified Apache-2.0 (permissive) · 2cbe6ed055d5fd44 · report
get_compressed_list hkuds/urbangpt/urbangpt/model/compression.py official repository unverified Apache-2.0 (permissive) · c5824da57107fe8c · report
get_model_info hkuds/urbangpt/urbangpt/model/model_registry.py official repository unverified Apache-2.0 (permissive) · 52162c648b35e17b · report
load_pretrained_model hkuds/urbangpt/urbangpt/model/builder.py official repository unverified Apache-2.0 (permissive) · bad3bd3ae89b22d3 · report

Tasks

10-shot image generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections