Text-Free Multi-domain Graph Pre-training: Toward Graph Foundation Models

Xingtong Yu, Chang Zhou, Yuan Fang, Xinming Zhang · DOI

Introduction

In the domains of Natural Language Processing and Computer Vision, "Foundation Models" such as GPT or CLIP have revolutionized the field by training on massive, diverse datasets to achieve broad task generalization. However, graph machine learning has faced significant hurdles in reaching this milestone, primarily due to domain divergence.

Graphs from different domains—such as citation networks and e-commerce co-purchase graphs—possess distinct feature dimensions and semantic meanings. Simply combining these datasets during pre-training often results in "negative transfer," where the inclusion of more data degrades model performance. While some recent approaches leverage Large Language Models (LLMs) to bridge these gaps via textual descriptions, many real-world graphs are "text-free," containing only raw feature vectors. This makes LLM-based alignment impossible and necessitates a new approach to multi-domain graph pre-training.

The MDGPT Framework

The authors propose MDGPT (Multi-Domain Graph Pre-Training), a novel framework designed to turn domain conflict into synergy without relying on textual metadata. The framework operates through three critical stages:

  1. Dimension Alignment: To handle varying feature lengths across graphs, MDGPT employs Singular Value Decomposition (SVD) to project all features into a unified, consistent dimension.
  2. Semantic Unification (Pre-training): MDGPT introduces learnable domain tokens—vectors associated with each source domain that are element-wise multiplied with node features. This process "translates" domain-specific features into a shared semantic space, enabling a single Graph Neural Network (GNN) to learn universal patterns across diverse domains simultaneously.
  3. Dual-Prompt Adaptation (Downstream): For new target tasks, the pre-trained model remains frozen. Instead of full fine-tuning, MDGPT utilizes two lightweight prompts: a Unifying Prompt to align the target domain with global knowledge, and a Mixing Prompt that adaptively combines source domain tokens based on similarity to the target domain.
The MDGPT architecture illustrating cross-domain pre-training with domain tokens and downstream adaptation using dual prompts.

Experimental Evaluation

The study evaluates MDGPT across six benchmark datasets spanning citation networks (Cora, Citeseer, Pubmed), e-commerce (Amazon Photo, Amazon Computers), and social networks (Reddit). The experiments focus on cross-domain transfer, where the model is pre-trained on a subset of domains and tested on an entirely unseen target domain.

Key Results

MDGPT demonstrates remarkable performance, particularly in few-shot learning scenarios. In one-shot node classification, it outperforms state-of-the-art competitors by margins ranging from 3.5% to 37.9%. It also shows significant gains in graph-level classification, exceeding existing methods by 4.3% to 13.9%.

Performance comparison of MDGPT against baselines for node and graph classification across different shot counts (m) and target domains.

Beyond accuracy, MDGPT is exceptionally parameter-efficient. During the adaptation phase, it only tunes a handful of prompt parameters. For instance, on the Reddit dataset, MDGPT requires tuning only 57 parameters, a stark contrast to the 23,000+ parameters required for a standard Graph Convolutional Network (GCN).

Conclusion and Future Work

MDGPT effectively addresses the "more is worse" paradox in graph pre-training, showing that performance can consistently improve as more diverse source domains are added. By avoiding reliance on LLMs, it offers a versatile solution for industrial and scientific graphs where text is unavailable. Future research may explore the integration of text-free and text-attributed pre-training to move closer to a truly universal graph foundation model.

Summary updated

BibTeX
@misc{yu2024text,
  author = {Xingtong Yu and Chang Zhou and Yuan Fang and Xinming Zhang},
  title = {{Text-Free Multi-domain Graph Pre-training: Toward Graph Foundation Models}},
  year = {2024},
  eprint = {2405.13934},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.13934},
}
Figure