Towards Graph Foundation Models: Learning Generalities Across Graphs via Task-Trees

Zehong Wang, Zheyuan Zhang, Tianyi Ma, Nitesh V Chawla, Chuxu Zhang +1 more
12/21/2024
cs.LGcs.AIcs.SI

Official code: Zehong-Wang/GIT (9 stars, MIT, last commit 2026-01-08).

Abstract

Foundation models are pretrained on large-scale corpora to learn generalizable patterns across domains and tasks -- such as contours, textures, and edges in images, or tokens and sentences in text. In contrast, discovering such generalities in graph-structured data, especially across heterogeneous graph tasks, remains an open challenge. To address this, we propose a novel approach to cross-task generalization in graphs via task-trees, which serve as unified learning instances aligning node-, edge-, and graph-level tasks. We theoretically analyze the stability, transferability, and generalization properties of task-trees, showing that pretraining a graph neural network (GNN) on diverse task-trees with a reconstruction objective induces transferable knowledge. This enables efficient adaptation to downstream tasks with minimal fine-tuning. To validate our framework, we introduce Graph Generality Identifier on Task-Trees (GIT), a graph foundation model that demonstrates strong performance on over 30 graphs across five domains via fine-tuning, in-context learning, and zero-shot generalization. Code and data are available at https://github.com/Zehong-Wang/GIT.

View on arXivView PDF

Code Implementations(1)

Zehong-Wang/GITOfficial100%
MIT

Towards Graph Foundation Models: Learning Generalities Across Graphs via Task-trees, ICML 2025.

91PythonDec 21, 20249 months agoMIT

Similar Papers

Cite this paper

@article{wang2024towards,
  title  = {Towards Graph Foundation Models: Learning Generalities Across Graphs via Task-Trees},
  author = {Zehong Wang and Zheyuan Zhang and Tianyi Ma and Nitesh V Chawla and Chuxu Zhang and Yanfang Ye},
  year   = {2024},
  eprint = {2412.16441},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.16441v3},
  journal = {ICML 2024 2024}
}

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/2412.16441.svg)](https://codeofpaper.com/paper/2412.16441)

Discussion