Memory-Enhanced Invariant Prompt Learning for Urban Flow Prediction Under Distribution Shifts
Abstract
While Spatial-Temporal Graph Neural Networks (STGNNs) excel at urban flow prediction, they struggle with distribution shifts caused by dynamic spatial-temporal environments. To improve generalizability to out-of-distribution (OOD) data, a typical solution is to disentangle invariant patterns that carry stable causal effects from variant ones that are environment-dependent. Existing OOD-robust methods attempt to model these environments but face challenges in quantifying dynamic changes and suffer from high computational costs. As a solution, we propose Memory-enhanced Invariant Prompt Learning (MIP), which enables environmental interventions directly within the latent space by learning a memory bank from the spatial-temporal urban flow graphs. Then, by performing spatial-temporal interventions on the variant prompts, diverse environments are constructed in the latent space to facilitate invariant learning. The invariant prompts, together with a memory-enhanced causal graph, are fed into an STGNN backbone to produce accurate predictions. Extensive experiments on two public urban flow datasets confirm MIP’s effectiveness in improving robustness against OOD data.
Cite
Text
Jiang et al. "Memory-Enhanced Invariant Prompt Learning for Urban Flow Prediction Under Distribution Shifts." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2025. doi:10.1007/978-3-032-06066-2_9Markdown
[Jiang et al. "Memory-Enhanced Invariant Prompt Learning for Urban Flow Prediction Under Distribution Shifts." European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases, 2025.](https://mlanthology.org/ecmlpkdd/2025/jiang2025ecmlpkdd-memoryenhanced/) doi:10.1007/978-3-032-06066-2_9BibTeX
@inproceedings{jiang2025ecmlpkdd-memoryenhanced,
title = {{Memory-Enhanced Invariant Prompt Learning for Urban Flow Prediction Under Distribution Shifts}},
author = {Jiang, Haiyang and Chen, Tong and Zhang, Wentao and Nguyen, Quoc Viet Hung and Yuan, Yuan and Li, Yong and Yin, Hongzhi},
booktitle = {European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases},
year = {2025},
pages = {141-159},
doi = {10.1007/978-3-032-06066-2_9},
url = {https://mlanthology.org/ecmlpkdd/2025/jiang2025ecmlpkdd-memoryenhanced/}
}