arXiv:2611.12635cs.AINov 2026

Manuscript Offprint

arXiv:2611.12635

Beyond Sunny Skies: Using Large Language Models to Predict Urban Traffic in Adverse Weather

Zhu Xiao, Kuan Feng, Tong Li, Chenxi Liu, Gang Wang, Zhuo Tang, Kenli Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Zhu Xiao, Senior Member, IEEE, Kuan Feng, Tong Li, Member, IEEE,

Chenxi Liu, Gang Wang, Zhuo Tang, and Kenli Li

Abstract—Urban traffic flow prediction is a cornerstone of intelligent transportation systems, yet accurate forecasting under adverse weather conditions remains a significant challenge. Existing data-driven models, while effective for routine patterns, often struggle with the sparse data and complex non-linear shifts associated with rare meteorological events. These methods typically treat environmental contexts as shallow numerical features, failing to capture the underlying semantic reasoning—why and how specific adverse conditions alter mobility behaviors across regions with different functional compositions. To address this limitation, we propose Multi-STG, a unified framework that integrates Large Language Model (LLM)-derived semantic priors with graph-based spatiotemporal learning. Multi-STG introduces an LLM-empowered semantic enhancement module that transforms comprehensive context descriptions such as weather, POIs, and holidays into high-level semantic embeddings, effectively providing a knowledge-driven complement to data scarcity. Furthermore, we design a multimodal attentional fusion mechanism to dynamically weigh heterogeneous inputs and a semantic-enhanced prediction head with gated residual calibration to robustly adjust forecasts based on semantic guidance. Extensive experiments on real-world multi-city private car datasets demonstrate that Multi-STG outperforms state-of-the-art baselines, reducing MAE by 11.82% on average relative to the strongest baseline across three cities, while maintaining stable performance under sparse and non-stationary conditions.

Index Terms—Prediction, Large Language Models, Adverse Weather, Private Car, Urban Traffic.

I. INTRODUCTION

Urban traffic flow prediction estimates future traffic conditions, such as volume, speed, and density, across a citywide road network by modeling historical mobility patterns and spatial dependencies [1]–[4]. As a core component of intelligent transportation systems, traffic flow prediction supports congestion management, dynamic route planning, and sustainable infrastructure development [5], [6]. Accurate forecasts enable urban planners and traffic authorities to optimize signal control, allocate road resources more efficiently, and provide travelers with reliable guidance [7]. However, urban traffic dynamics are strongly influenced by external factors, including adverse weather conditions (e.g., heavy precipitation and fog) and special events (e.g., holidays), which can cause abrupt, nonlinear departures from regular traffic patterns. Accurate, robust forecasting therefore requires capturing intrinsic spatiotemporal dependencies and integrating heterogeneous contextual information to account for traffic variations induced by these external factors [8], [9].

Extensive research has examined spatiotemporal urban traffic forecasting from various perspectives. Models such as LSTM [10] and Transformer [11] capture temporal dependencies, while graph neural networks [12], [13] model spatial relationships among road segments or regions. To account for external influences, multimodal approaches incorporate auxiliary information into forecasting. For example, T-GCN and MegaCRN capture non-periodic traffic shifts through temporal graph convolution and meta-graph learning, respectively [14], [15]. Other methods incorporate meteorological observations, such as rainfall and visibility [16], [17], or use points of interest to characterize regional functions [18]–[20]. Despite these advances, integrating external information does not necessarily capture the mechanisms through which environmental conditions reshape traffic patterns. Existing approaches often incorporate auxiliary signals through direct encoding or attention mechanisms, but the resulting numerical representations may not adequately capture interactions between environmental conditions and regional functions. Such limitations become particularly pronounced under rare conditions, when traffic responses may differ substantially across regions with distinct functional attributes. Moreover, these approaches offer limited support for explicit semantic reasoning about how external conditions influence regional traffic dynamics, leaving contextual relationships insufficiently explored. Under the imbalanced distribution of observed traffic data, adverse scenarios are underrepresented, encouraging models to prioritize routine patterns during training. These models struggle to generalize to nonlinear traffic changes arising from complex external conditions.

Large language models (LLMs) offer a promising complement to conventional historical-data forecasting methods [21]–[23]. Trained on extensive textual corpora, LLMs possess broad world knowledge and can reason about contextual relationships. Given structured descriptions combining a region's POI composition, weather conditions, and holiday status, LLMs can suggest plausible effects on human mobility, including responses that are sparsely represented in historical observations. These semantic priors may supplement limited empirical evidence and support generalization under rare or extreme conditions [24], [25]. The central methodological

Manuscript received XX XX 2026.

Z. Xiao, K. Feng, T. Li, Z. Tang, and K. Li are with the College of Computer Science and Electronic Engineering, the Ministry of Education Key Laboratory of "Fusion Computing of Supercomputing and Artificial Intelligence", Hunan University, Changsha 410082, China. E-mail: {zhxiao; thekuan; tliay; ztang; lkl}@hnu.edu.cn.

C. Liu is with Hong Kong Institute of Science & Innovation, Chinese Academy of Sciences, Hong Kong. Email: chenxi.liu@cair-cas.org.hk.

G. Wang is with CETC Key Laboratory of Aerospace Information Applications, Shijiazhuang, China. Email: wanggg@tju.edu.cn.

challenge lies in integrating semantic guidance from LLMs into quantitative spatiotemporal forecasting while preserving the numerical relationships learned from traffic observations.

In this paper, we aim to improve urban traffic flow prediction under adverse weather by combining semantic reasoning from LLMs with spatiotemporal graph learning. Achieving this objective presents three closely related technical challenges. First, structured semantic representations must capture interactions between external conditions and traffic dynamics. This requires transforming unstructured, heterogeneous contextual descriptions into features that characterize how adverse weather may affect regions with distinct functional compositions. Second, information from POI distributions, weather vectors, holiday labels, and traffic histories must be dynamically integrated, as the relevance and influence of these inputs vary across locations and over time. For example, heavy rainfall may affect travel demand differently in business and residential districts. Third, the contribution of semantic information must be carefully regulated, particularly when supervision for rare events is limited. Addressing this challenge requires a robust, interpretable correction mechanism that uses contextual semantic priors to calibrate backbone forecasts while preserving reliable numerical patterns, balancing predictive stability with adaptability to unusual conditions.

To address these challenges, we propose Multi-STG, a unified framework that integrates LLM semantic priors with a scalable graph Transformer backbone. First, we design an LLM-empowered semantic enhancement module to extract contextual semantic features. This module constructs structured prompts from regional information, including POI types and weather conditions, and queries a pretrained LLM to obtain semantic embeddings. Lightweight adapter networks then align these embeddings with the numerical feature space. Second, we introduce a multimodal attentional fusion module to dynamically integrate heterogeneous information. Conditioned on the current spatiotemporal state, this module adaptively weights traffic, semantic, and POI embeddings to prioritize the most relevant signals. Finally, we develop a semantic-enhanced prediction head with a gated residual correction mechanism to regulate the contribution of semantic information. The gate explicitly controls the extent of semantic correction, allowing contextual priors to refine backbone forecasts while preserving the numerical patterns learned from traffic observations.

Our contributions are summarized as follows:

  • We identify key limitations of existing traffic forecasting models under adverse weather, particularly sparse observations and limited semantic reasoning capabilities. We highlight the importance of integrating contextual information, including weather conditions and POI distributions, to capture complex nonlinear traffic variations in rare scenarios.

  • We propose Multi-STG, a unified framework that integrates LLM-derived semantic priors with a graph backbone. The framework comprises an LLM-empowered semantic enhancement module to extract contextual semantic features, a multimodal attentional fusion module to adaptively weight heterogeneous inputs, and a semantic-enhanced prediction head for gated residual calibration.

  • We conduct extensive experiments on datasets of private vehicle traffic from three cities. The results demonstrate that Multi-STG outperforms leading baselines, achieving an average MAE reduction of 11.82% relative to the strongest baseline while maintaining stable performance across all three cities.

References (56)