Node Level Graph Autoencoder: Unified Pretraining for Textual Graph Learning

Wenbin Hu, Huihao Jing, Qi Hu, Haoran Li, Yangqiu SongarXiv 2024

Abstract

Textual graphs are ubiquitous in real-world applications, featuring rich text information with complex relationships, which enables advanced research across various fields. Textual graph representation learning aims to generate low-dimensional feature embeddings from textual graphs that can improve the performance of downstream tasks. A high-quality feature embedding should effectively capture both the structural and the textual information in a textual graph. However, most textual graph dataset benchmarks rely on word2vec techniques to generate feature embeddings, which inherently limits their capabilities. Recent works on textual graph representation learning can be categorized into two folds: supervised and unsupervised methods. Supervised methods finetune a language model on labeled nodes, which have limited capabilities when labeled data is scarce. Unsupervised methods, on the other hand, extract feature embeddings by developing complex training pipelines. To address these limitations, we propose a novel unified unsupervised learning autoencoder framework, named Node Level Graph AutoEncoder (NodeGAE). We employ language models as the backbone of the autoencoder, with pretraining on text reconstruction. Additionally, we add an auxiliary loss term to make the feature embeddings aware of the local graph structure. Our method maintains simplicity in the training process and demonstrates generalizability across diverse textual graphs and downstream tasks. We evaluate our method on two core graph representation learning downstream tasks: node classification and link prediction. Comprehensive experiments demonstrate that our approach substantially enhances the performance of diverse graph neural networks (GNNs) across multiple textual graph datasets.

Introduction

Textual graphs—where nodes contain rich text (such as titles and abstracts in a citation network) and edges represent relationships—are prevalent across numerous domains. Effectively learning representations for these graphs is a significant challenge, as it requires capturing both the nuanced semantics of the text and the local topology of the graph simultaneously.

Current approaches generally fall into two categories. Supervised methods fine-tune language models on labeled data, which often leads to poor performance when labels are scarce and limited generalizability across different tasks. Unsupervised methods, while not requiring labels, often rely on complex, memory-intensive training pipelines or outdated embedding techniques. To address these gaps, we introduce NodeGAE (Node Level Graph Autoencoder), a unified, simple, and memory-friendly unsupervised framework that bridges the gap between text and structure.

Methodology

NodeGAE operates through a streamlined two-stage pipeline designed for efficiency and high-quality feature extraction.

Stage 1: Autoencoder Pretraining

The core of NodeGAE is a text-based autoencoder. The Encoder (utilizing sentence-T5-base) compresses node text into a latent representation ($h$). The Decoder (T5-base) then attempts to reconstruct the original text from this representation, ensuring the embedding preserves holistic semantic information.

To integrate structural awareness, we incorporate an InfoNCE loss term. This contrastive loss encourages the embeddings of neighboring nodes to be similar while pushing non-neighboring nodes apart in the embedding space. This dual-objective ensures that the resulting features are both semantically rich and topologically informed.

Stage 2: Downstream GNN Training

Following pretraining, the encoder is frozen and used as a static feature extractor. These high-quality features are then fed into standard Graph Neural Networks (GNNs), such as GCN or RevGAT, to solve specific downstream tasks like node classification or link prediction.

The two-stage training pipeline of NodeGAE, illustrating the transition from unsupervised autoencoder pretraining to supervised GNN training.

Experimental Results

We evaluated NodeGAE on major benchmarks from the Open Graph Benchmark (OGB), including ogbn-arxiv and ogbn-products.

Performance and Convergence

NodeGAE achieves state-of-the-art (SOTA) or near-SOTA results across the board. On ogbn-arxiv, it achieved 77.10% accuracy for node classification and a staggering 99.39% ROC-AUC for link prediction. A key finding is the framework's impact on convergence speed: GNNs trained on NodeGAE features reach peak performance significantly faster—often within 25 iterations—compared to those using vanilla or shallow embeddings.

Performance metrics and convergence curves on the ogbn-arxiv dataset, demonstrating NodeGAE's superiority in accuracy and training efficiency.

Robustness in Data-Scarce Scenarios

On the ogbn-products dataset, which features a very small training set (8%), NodeGAE outperformed supervised methods. This demonstrates its robustness and ability to extract meaningful patterns from the graph structure and text even when labeled data is limited.

Conclusion

NodeGAE provides a powerful, unified framework for textual graph representation learning. By combining full text reconstruction with structural contrastive learning, it produces embeddings that significantly boost GNN performance and training efficiency. Future work will explore scaling this approach to web-scale graphs and its effectiveness on graph-level prediction tasks.

Summary updated

BibTeX
@misc{hu2024node,
  author = {Wenbin Hu and Huihao Jing and Qi Hu and Haoran Li and Yangqiu Song},
  title = {{Node Level Graph Autoencoder: Unified Pretraining for Textual Graph Learning}},
  year = {2024},
  eprint = {2408.07091},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.07091},
}
Figure