Node Feature Extraction by Self-Supervised Multi-scale Neighborhood Prediction

Eli Chien, Wei-Cheng Chang, Cho-Jui Hsieh, Hsiang-Fu Yu, Jiong Zhang, Olgica Milenkovic, Inderjit S Dhillon

Introduction: The Feature Extraction Bottleneck

In standard Graph Neural Network (GNN) pipelines, researchers typically take raw node data—such as the title and abstract of a paper—and convert it into numerical vectors using a "graph-agnostic" method like a pre-trained BERT model or Bag-of-Words. These vectors are then fed into a GNN.

The authors argue this two-step process is sub-optimal. Because the initial feature extraction step doesn't "see" the graph, it ignores the rich correlations between a node's attributes and its position in the network. While self-supervised learning has been used on top of GNNs, the underlying node features themselves remain disconnected from the graph structure.

GIANT (Graph Information Aided Node feature exTraction) is a self-supervised framework designed to bridge this gap. By using the graph's topology to guide the fine-tuning of the feature encoder itself, GIANT makes node feature extraction inherently "graph-aware."

Comparison of the standard GNN pipeline versus the GIANT framework.

Methodology: Neighborhood Prediction as XMC

The core of GIANT is a novel self-supervised task called neighborhood prediction. Instead of simple link prediction, which often assumes that similar nodes connect (homophily), GIANT tries to predict the entire neighborhood of a node based solely on its raw text.

Formulating neighborhood prediction as an eXtreme Multi-label Classification (XMC) problem.

In a graph with millions of nodes, predicting neighbors becomes an eXtreme Multi-label Classification (XMC) problem, where each node ID acts as a potential label. To solve this at scale, the framework employs several key techniques:

  1. XR-Transformers: To handle the massive scale of millions of labels, the authors utilize XR-Transformers. This architecture uses a hierarchical label tree to break the massive classification task into manageable sub-problems.
  2. Positive Instance Feature Aggregation (PIFA): To build this hierarchical tree effectively, GIANT uses PIFA embeddings. This is essentially a single step of graph convolution that aggregates text features from neighbors, helping to cluster nodes that share similar structural roles.
  3. Language Model Fine-Tuning: A language model (like BERT) is fine-tuned on this XMC neighborhood prediction task. Once trained, the BERT encoder generates the final numerical node features ($X_{GIANT}$) which can be fed into any downstream GNN.

Key Insights

  • Beyond Homophily: Standard link prediction often relies on the "homophily assumption" (nodes with similar features are more likely to link). GIANT’s neighborhood prediction is more robust; it works for "heterophilous" graphs where neighbors might be very different from each other but still share a predictable structural relationship.
  • The Power of XMC: By treating node IDs as labels in an XMC framework, the authors can leverage highly optimized solvers designed to handle millions of classes—a scale where traditional softmax layers would fail.
  • Feature Quality over Model Complexity: High-quality, graph-aware features can make simple models perform like complex ones. Using GIANT features allowed a basic Multi-Layer Perceptron (MLP) to outperform some standard GNNs that relied on traditional features.

Datasets and Results

The authors evaluated GIANT on three large-scale datasets from the Open Graph Benchmark (OGB): ogbn-arxiv (~169k nodes), ogbn-products (~2.4M nodes), and ogbn-papers100M (~111M nodes).

GIANT demonstrated significant improvements across all tested benchmarks:

  • ogbn-papers100M: It improved the top-ranked GAMLP from 68.25% to 69.67%. Most strikingly, it boosted a simple MLP from 47.24% to 61.10%—a massive 14% absolute gain. It also improved SGC from 63.29% to 66.10%.
  • ogbn-arxiv & ogbn-products: GIANT features consistently outperformed both default OGB features and features from other self-supervised methods (like DGI or GraphZoom) by significant margins.
  • Scalability: The framework successfully handled the 111-million-node ogbn-papers100M dataset, proving its viability for industrial-scale applications.

Limitations and Future Work

While highly effective, the framework currently focuses exclusively on text-based node attributes, though it is theoretically applicable to other modalities like images or audio. Additionally, training XR-Transformers on 100M+ nodes is computationally intensive, requiring high-memory GPUs and significant preprocessing for hierarchical clustering. Finally, GIANT currently operates as a two-stage approach (extract features, then train GNN). While joint end-to-end training of BERT and GNNs is conceptually possible, it is currently prohibited by GPU memory limitations at this scale, leaving room for future memory-efficient optimizations.

Summary updated

BibTeX
@inproceedings{chien2022node,
  author = {Eli Chien and Wei-Cheng Chang and Cho-Jui Hsieh and Hsiang-Fu Yu and Jiong Zhang and Olgica Milenkovic and Inderjit S Dhillon},
  title = {{Node Feature Extraction by Self-Supervised Multi-scale Neighborhood Prediction}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=KJggliHbs8},
}
Figure