Skip to main content
QUICK REVIEW

[Paper Review] Exploring the Potential of Large Language Models (LLMs) in Learning on Graphs

Zhikai Chen, Haitao Mao|arXiv (Cornell University)|Jul 7, 2023
Advanced Graph Neural NetworksComputer Science20 citations
TL;DR

The paper investigates two pipelines—LLMs-as-Enhancers and LLMs-as-Predictors—to integrate LLMs with text-attributed graphs for node classification, comparing feature-level and text-level enhancements, and evaluating LLMs directly as predictors under various settings.

ABSTRACT

Learning on Graphs has attracted immense attention due to its wide real-world applications. The most popular pipeline for learning on graphs with textual node attributes primarily relies on Graph Neural Networks (GNNs), and utilizes shallow text embedding as initial node representations, which has limitations in general knowledge and profound semantic understanding. In recent years, Large Language Models (LLMs) have been proven to possess extensive common knowledge and powerful semantic comprehension abilities that have revolutionized existing workflows to handle text data. In this paper, we aim to explore the potential of LLMs in graph machine learning, especially the node classification task, and investigate two possible pipelines: LLMs-as-Enhancers and LLMs-as-Predictors. The former leverages LLMs to enhance nodes' text attributes with their massive knowledge and then generate predictions through GNNs. The latter attempts to directly employ LLMs as standalone predictors. We conduct comprehensive and systematical studies on these two pipelines under various settings. From comprehensive empirical results, we make original observations and find new insights that open new possibilities and suggest promising directions to leverage LLMs for learning on graphs. Our codes and datasets are available at https://github.com/CurryTang/Graph-LLM.

Motivation & Objective

  • Assess whether LLMs can compensate for limited contextual knowledge in GNN pipelines on text-attributed graphs.
  • Explore two integration paradigms: LLMs-as-Enhancers (enhance node text or features) and LLMs-as-Predictors (LLMs predict directly).
  • Evaluate different LLM types and integration structures under varying data regimes and datasets.
  • Provide practical insights and guidelines for leveraging LLMs in graph learning tasks.

Proposed method

  • Define text-attributed graphs and node classification tasks on benchmarks like Cora, PubMed, Ogbn-arxiv, and Ogbn-products.
  • Compare embedding-visible LLMs and embedding-invisible LLMs across feature-level and text-level enhancement strategies.
  • Investigate cascading and iterative integration structures for combining LLM embeddings with GNNs.
  • Experiment with non-contextual baselines (TF-IDF, Word2Vec) and deep sentence embeddings (SBERT, e5-large) as text encoders.
  • Analyze efficiency and scalability in training and memory usage across models like GCN, GAT, RevGAT, SAGN, and GIANT.
  • Explore LLMs-as-Predictors by designing prompts that encode graph structure and attributes for direct LLM predictions.

Experimental results

Research questions

  • RQ1Can LLMs compensate for limited contextual and semantic knowledge in traditional GNN-based pipelines for TAGs?
  • RQ2What are the relative merits of using LLMs-as-Enhancers versus LLMs-as-Predictors for node classification on text-attributed graphs?
  • RQ3How do different types of LLMs (embedding-visible vs embedding-invisible) and integration structures impact performance and efficiency?
  • RQ4Under what data regimes (low vs high labeling rate) do fine-tuned LLMs perform vs deep sentence embeddings?
  • RQ5What practical guidelines emerge for scaling and deploying LLM-based graph learning approaches?

Key findings

  • Deep sentence embedding models combined with GNNs form a strong simple baseline across datasets and settings.
  • Text-level augmentation with LLMs can also improve downstream performance when embeddings are accessible.
  • Direct LLM predictors show potential but risk inaccurate predictions and test data leakage concerns.
  • Fine-tuning-based LLM embeddings under low-label regimes underperform compared with deep sentence embeddings and TF-IDF baselines.
  • LLMs can serve as annotators with a non-negligible portion of accurate node labels.
  • Iterative training structures (GLEM) can yield strong results on larger datasets but incur high computational costs.

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.