Prompt-Based Spatio-Temporal Graph Transfer Learning

Junfeng Hu, Xu Liu, Zhencheng Fan, Yifang Yin, Shili Xiang +2 more
5/21/2024
cs.LGcs.AI

No official code found. Best implementation: hjf1997/STGP (3 stars, last commit 2024-11-07).

Abstract

Spatio-temporal graph neural networks have proven efficacy in capturing complex dependencies for urban computing tasks such as forecasting and kriging. Yet, their performance is constrained by the reliance on extensive data for training on a specific task, thereby limiting their adaptability to new urban domains with varied task demands. Although transfer learning has been proposed to remedy this problem by leveraging knowledge across domains, the cross-task generalization still remains under-explored in spatio-temporal graph transfer learning due to the lack of a unified framework. To bridge the gap, we propose Spatio-Temporal Graph Prompting (STGP), a prompt-based framework capable of adapting to multi-diverse tasks in a data-scarce domain. Specifically, we first unify different tasks into a single template and introduce a task-agnostic network architecture that aligns with this template. This approach enables capturing dependencies shared across tasks. Furthermore, we employ learnable prompts to achieve domain and task transfer in a two-stage prompting pipeline, facilitating the prompts to effectively capture domain knowledge and task-specific properties. Our extensive experiments demonstrate that STGP outperforms state-of-the-art baselines in three tasks-forecasting, kriging, and extrapolation-achieving an improvement of up to 10.7%.

View on arXivView PDF

Code Implementations(1)

hjf1997/STGPCommunity100%

Prompt-Based Spatio-Temporal Graph Transfer Learning

32Shell, PythonNov 7, 20241 years ago

Similar Papers

Cite this paper

@article{hu2024promptbased,
  title  = {Prompt-Based Spatio-Temporal Graph Transfer Learning},
  author = {Junfeng Hu and Xu Liu and Zhencheng Fan and Yifang Yin and Shili Xiang and Savitha Ramasamy and Roger Zimmermann},
  year   = {2024},
  eprint = {2405.12452},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.12452v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.12452.svg)](https://codeofpaper.com/paper/2405.12452)

Discussion