NESS: Learning Node Embeddings from Static SubGraphs

Talip UcararXiv 2023

Abstract

We present a framework for learning Node Embeddings from Static Subgraphs (NESS) using a graph autoencoder (GAE) in a transductive setting. NESS is based on two key ideas: i) Partitioning the training graph to multiple static, sparse subgraphs with non-overlapping edges using random edge split during data pre-processing, ii) Aggregating the node representations learned from each subgraph to obtain a joint representation of the graph at test time. Moreover, we propose an optional contrastive learning approach in transductive setting. We demonstrate that NESS gives a better node representation for link prediction tasks compared to current autoencoding methods that use either the whole graph or stochastic subgraphs. Our experiments also show that NESS improves the performance of a wide range of graph encoders and achieves state-of-the-art results for link prediction on multiple real-world datasets with edge homophily ratio ranging from strong heterophily to strong homophily.

Introduction

Graph Autoencoders (GAEs) are the workhorses of link prediction, but they face significant challenges when applied to large, dense graphs. Standard GAEs often suffer from scalability issues due to neighborhood expansion, over-smoothing in deep architectures, and limited expressiveness on heterophilous graphs where connected nodes are likely to have different labels. While existing solutions often use stochastic sampling, NESS (Node Embeddings from Static SubGraphs) introduces a more stable approach by shifting from dynamic sampling to static partitioning.

Methodology

The NESS framework operates by dividing the training graph into multiple sparse, non-overlapping subgraphs once during preprocessing. This "static partitioning" forces the model to learn from different structural perspectives of the same nodes.

The NESS architecture: partitioning the graph into sparse subgraphs, encoding them, and aggregating latent embeddings to form a final representation.

Key components of the methodology include:

  • Parameter Sharing: A single encoder (such as a GCN or GAT) is trained across all subgraphs, ensuring a unified learning process.
  • Latent Aggregation: At test time, NESS aggregates the embeddings generated from all subgraphs (typically via averaging) to form a final joint representation. This is significantly more effective than averaging final link predictions, as it captures complex inter-subgraph relationships.
  • Optional Contrastive Learning: A contrastive loss can be applied to encourage the model to recognize the same node across different subgraph "views," further sharpening the resulting embeddings.

Experimental Evaluation

NESS was evaluated on seven diverse real-world datasets, ranging from homophilous citation networks (Cora, Citeseer, Pubmed) to heterophilous web datasets (Cornell, Texas, Wisconsin).

Performance comparison (Test AUC) showing NESS variants (right of dashed line) consistently outperforming standard baselines across multiple datasets and backbones.

Experimental results demonstrate that NESS consistently improves performance over standard GAEs and other subgraph-based methods:

  • State-of-the-Art Results: Using a Graph Normalizing Autoencoder (GNAE) backbone, NESS achieved new state-of-the-art results for link prediction on five out of seven datasets.
  • Heterophily Robustness: On the Texas dataset, which exhibits strong heterophily, NESS improved Average Precision from approximately 81% to over 95%.
  • Generalizability: The framework showed performance gains across various encoder types (GCN, GAT, ARGA), proving it is a general-purpose enhancement for graph learning architectures.

Conclusion

NESS provides a robust solution to common GAE pitfalls by leveraging static subgraph partitioning and latent aggregation. By treating link prediction as a multi-view learning problem, it achieves superior stability and accuracy across both homophilous and heterophilous graphs. Future research directions include scaling the framework to massive-scale graphs and adapting the principles for inductive learning settings.

Summary updated

BibTeX
@misc{ucar2023ness,
  author = {Talip Ucar},
  title = {{NESS: Learning Node Embeddings from Static SubGraphs}},
  year = {2023},
  eprint = {2303.08958},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.08958},
}
Figure