A Comprehensive Study on Text-attributed Graphs: Benchmarking and Rethinking

Hao Yan, Chaozhuo Li, Ruosong Long, Chao Yan, Jianan Zhao, Wenwen Zhuang, Jun Yin, Peiyan Zhang, Weihao Han, Hao Sun, Weiwei Deng, Qi Zhang, Lichao Sun, Xing Xie, Senzhang WangNeurIPS 2023

Overview

This paper introduces CS-TAG, a large-scale, diverse benchmark for Text-attributed Graphs (TAGs) that provides raw text instead of just pre-computed embeddings. To address the computational bottlenecks of existing methods, the authors also propose a novel Topological Pre-training paradigm. This approach teaches Pre-trained Language Models (PLMs) to "understand" graph structures inherently, offering a scalable and high-performance alternative to traditional GNN-LM co-training.

The Problem: Stale Benchmarks and the Modeling Gap

In the real world, data often exists as Text-attributed Graphs (TAGs). Consider citation networks where nodes are papers (text) and edges are citations (structure), or e-commerce platforms where nodes are products and edges represent "frequently bought together" relationships.

Currently, researchers face two major hurdles when working with TAGs:

  1. Stale Benchmarks: Classic datasets like Cora or WikiCS often only provide "bag-of-words" representations or fixed, outdated embeddings. This prevents researchers from leveraging modern PLMs to their full potential.
  2. The Modeling Gap: Historically, practitioners have had to choose between using a PLM (ignoring the graph structure) or using a Graph Neural Network (GNN) on top of fixed text features (ignoring deep semantic updates). While "co-training" both models together yields the best results, it is highly memory-intensive and fails to scale to large graphs.

Methods: Four Paradigms of TAG Learning

The authors categorize and evaluate four distinct learning paradigms to bridge this gap:

Four learning paradigms for Text-attributed Graphs
  • PLM-based: Fine-tuning a language model on node text alone, which discards the topological structure.
  • GNN-based: Using GNNs on top of fixed text features, which lacks an end-to-end pipeline for deep semantic learning.
  • Co-training: Jointly training the PLM and GNN. This is highly effective but suffers from massive scalability and efficiency issues because encoding every neighbor's text is computationally expensive.
  • Topological Pre-training (The Novel Approach): Instead of relying on a GNN during inference, the authors propose teaching the PLM about the graph during a pre-training phase. This is achieved through three tasks:
  • TMLM (Topological Masked Language Model): Predicting masked tokens in a node's text using its neighbors' text as context.
  • TCL (Topological Contrastive Learning): Pulling the embeddings of neighboring nodes closer together in vector space.
  • TDK (Topological DeepWalk Learning): Aligning the PLM's output with structural embeddings generated by the DeepWalk algorithm.

The combined multi-task version of this pre-training is referred to as TMDC.

The CS-TAG Benchmark Dataset

To provide a proper testing ground for these models, the authors introduce CS-TAG, a collection of 8 large-scale datasets across diverse domains:

  • Academic: ogbn-arxiv-TA and CitationV8 (citation networks).
  • E-commerce: Books-Children, Books-History, Ele-Computers, Ele-Photo, and Sports-Fitness (Amazon product graphs).
  • Social/Reviews: GoodReads.
Comparison of dataset sizes between previous benchmarks and the new CS-TAG collection

Unlike previous benchmarks, CS-TAG provides the raw textual sentences, allowing for deep attribute modeling. As shown above, these datasets are significantly larger than their predecessors; for instance, CitationV8 contains over 1.1 million nodes and 6 million edges.

Key Insights and Results

Extensive benchmarking on CS-TAG revealed several critical insights into how we should model text-attributed graphs moving forward:

  • Superiority of TMDC: The proposed TMDC pre-training consistently outperformed standard PLM fine-tuning and often beat traditional GNNs. On the ogbn-arxiv-TA dataset, TMDC achieved 76.20% accuracy, compared to 74.57% for a standard PLM.
  • The Scalability Wall: Co-training is often the state-of-the-art in terms of accuracy, but it frequently hits "Out of Memory" (OOM) errors on standard hardware. Topological Pre-training (TPT) provides a "middle way" that is nearly as accurate but much more efficient—running roughly 6x faster and using significantly less GPU memory than co-training methods.
  • Text Quality Matters: The type of text attribute used (e.g., a professional product description vs. a noisy user review) drastically changes which model performs best. PLMs struggle with noisy reviews but excel with clean descriptions.
  • GNN Sensitivity: GNNs are highly sensitive to the quality of their initial text features. Using a better PLM to generate these starting features can improve GNN performance by over 30% in some cases (e.g., on the Sports dataset).

Limitations and Future Work

While CS-TAG and Topological Pre-training represent a significant leap forward, the authors note a few areas for future exploration. The current benchmark focuses heavily on supervised tasks like node classification and link prediction, leaving self-supervised and unsupervised learning on TAGs as an open frontier. Additionally, while the paper touches on Large Language Models (LLMs), the primary focus remains on smaller encoder-based models (like BERT and RoBERTa). Future work will likely involve more extensive benchmarking of generative LLMs on these massive graph structures.

Summary updated

BibTeX
@inproceedings{yan2023comprehensive,
  author = {Hao Yan and Chaozhuo Li and Ruosong Long and Chao Yan and Jianan Zhao and Wenwen Zhuang and Jun Yin and Peiyan Zhang and Weihao Han and Hao Sun and Weiwei Deng and Qi Zhang and Lichao Sun and Xing Xie and Senzhang Wang},
  title = {{A Comprehensive Study on Text-attributed Graphs: Benchmarking and Rethinking}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=m2mbfoSuJ1},
}
Figure