Skip to main content
QUICK REVIEW

[Paper Review] One for All: Towards Training One Graph Model for All Classification Tasks

Hao Liu, Jiarui Feng|arXiv (Cornell University)|Sep 29, 2023
Topic ModelingComputer Science6 citations
TL;DR

This paper proposes One for All (OFA), the first unified graph foundation model capable of performing zero-shot, few-shot, and supervised classification across diverse graph tasks—node, link, and graph-level—without fine-tuning. OFA unifies cross-domain graph data via text-attributed graphs and a shared language model for joint representation learning, uses nodes-of-interest and a novel graph prompting paradigm for task generalization, and achieves strong zero-shot performance across citation networks, molecular graphs, knowledge graphs, and e-commerce networks.

ABSTRACT

Designing a single model to address multiple tasks has been a long-standing objective in artificial intelligence. Recently, large language models have demonstrated exceptional capability in solving different tasks within the language domain. However, a unified model for various graph tasks remains underexplored, primarily due to the challenges unique to the graph learning domain. First, graph data from different areas carry distinct attributes and follow different distributions. Such discrepancy makes it hard to represent graphs in a single representation space. Second, tasks on graphs diversify into node, link, and graph tasks, requiring distinct embedding strategies. Finally, an appropriate graph prompting paradigm for in-context learning is unclear. We propose extbf{One for All (OFA)}, the first general framework that can use a single graph model to address the above challenges. Specifically, OFA proposes text-attributed graphs to unify different graph data by describing nodes and edges with natural language and uses language models to encode the diverse and possibly cross-domain text attributes to feature vectors in the same embedding space. Furthermore, OFA introduces the concept of nodes-of-interest to standardize different tasks with a single task representation. For in-context learning on graphs, OFA introduces a novel graph prompting paradigm that appends prompting substructures to the input graph, which enables it to address varied tasks without fine-tuning. We train the OFA model using graph data from multiple domains (including citation networks, molecular graphs, knowledge graphs, etc.) simultaneously and evaluate its ability in supervised, few-shot, and zero-shot learning scenarios. OFA performs well across different tasks, making it the first general-purpose across-domains classification model on graphs.

Motivation & Objective

  • To develop a single graph model that generalizes across diverse graph tasks (node, link, graph-level) and domains (e.g., citation, molecular, knowledge graphs).
  • To overcome the challenge of heterogeneous graph feature distributions across domains by unifying them into a shared embedding space using natural language descriptions.
  • To enable in-context learning on graphs without fine-tuning by designing a generic graph prompting paradigm with task-specific substructures.
  • To unify different graph tasks under a single framework using nodes-of-interest and a shared task representation.

Proposed method

  • Proposes text-attributed graphs (TAGs) that describe nodes and edges in natural language, enabling cross-domain feature embedding via a single large language model.
  • Introduces nodes-of-interest (NOI) to standardize task representation across different graph learning tasks by identifying and focusing on relevant substructures.
  • Designs a graph prompting paradigm (GPP) that appends task-specific subgraphs (prompt nodes) to input graphs, encoding task descriptions directly into the graph structure.
  • Trains a single OFA model jointly on multiple graph datasets from different domains (e.g., Cora, PubMed, HIV, FB15K237) using a unified objective.
  • Uses a large language model to encode textual descriptions of nodes, edges, and tasks into a shared embedding space, enabling cross-domain generalization.
  • Employs average pooling on NOI embeddings for classification, with task descriptions concatenated to the final representation for prediction.

Experimental results

Research questions

  • RQ1Can a single graph model be trained to perform zero-shot and few-shot classification across diverse graph tasks and domains without task-specific fine-tuning?
  • RQ2How can heterogeneous graph data from different domains (e.g., citation, molecular, knowledge graphs) be unified into a single representation space?
  • RQ3What is an effective and general graph prompting mechanism that enables in-context learning on graphs for multiple task types?
  • RQ4Does joint training on multiple task types and domains improve generalization compared to task-specific fine-tuning?
  • RQ5How do the proposed components—text-attributed graphs, nodes-of-interest, and graph prompting—contribute to zero-shot and few-shot performance?

Key findings

  • OFA achieves strong zero-shot performance across diverse graph tasks, including node-level (Cora: 48.72% accuracy), link-level (FB15K237: 63.99% AUC), and graph-level (HIV: 35.67% AUC) tasks.
  • Joint training across all tasks and domains (OFA-joint-lr) outperforms task-specific training (OFA-ind-lr) on Cora and HIV, indicating knowledge transfer benefits.
  • The graph prompting paradigm with NOI subgraphs maintains performance under joint training, while alternative methods like '-Class node' suffer significant performance drops due to task confusion.
  • On the PCBA dataset, joint training improves zero-shot performance (60.62% AUC) but degrades few-shot performance, suggesting task imbalance in joint learning.
  • Ablation studies confirm that the graph prompting mechanism is critical for maintaining performance during multi-domain joint training, as it disambiguates task-specific signals.
  • The use of text-attributed graphs enables effective cross-domain representation learning, as LLM-embedded text features from disparate domains (e.g., molecular atoms and e-commerce items) are successfully aligned in a shared space.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.