Skip to main content
QUICK REVIEW

[Paper Review] Advancing GraphSAGE with A Data-Driven Node Sampling

Jihun Oh, Kyunghyun Cho|arXiv (Cornell University)|Apr 29, 2019
Advanced Graph Neural NetworksComputer Science7 references17 citations
TL;DR

This paper proposes a data-driven node sampling method for GraphSAGE that replaces uniform sampling with a reinforcement learning–based approach to select more informative neighborhoods. By learning a value function from negative classification loss to estimate neighborhood importance, the method achieves higher inductive node classification accuracy across PPI, Reddit, and PubMed datasets, outperforming uniform sampling and recent GNN variants.

ABSTRACT

As an efficient and scalable graph neural network, GraphSAGE has enabled an inductive capability for inferring unseen nodes or graphs by aggregating subsampled local neighborhoods and by learning in a mini-batch gradient descent fashion. The neighborhood sampling used in GraphSAGE is effective in order to improve computing and memory efficiency when inferring a batch of target nodes with diverse degrees in parallel. Despite this advantage, the default uniform sampling suffers from high variance in training and inference, leading to sub-optimum accuracy. We propose a new data-driven sampling approach to reason about the real-valued importance of a neighborhood by a non-linear regressor, and to use the value as a criterion for subsampling neighborhoods. The regressor is learned using a value-based reinforcement learning. The implied importance for each combination of vertex and neighborhood is inductively extracted from the negative classification loss output of GraphSAGE. As a result, in an inductive node classification benchmark using three datasets, our method enhanced the baseline using the uniform sampling, outperforming recent variants of a graph neural network in accuracy.

Motivation & Objective

  • To address the high variance and suboptimal accuracy caused by uniform neighborhood sampling in GraphSAGE.
  • To improve inductive node classification performance on large-scale graphs with limited computational and memory resources.
  • To learn a data-driven sampling strategy that prioritizes neighborhoods based on their contribution to model performance.
  • To demonstrate that value-based reinforcement learning can effectively guide neighborhood sampling in GraphSAGE.
  • To validate the method's superiority over uniform sampling and state-of-the-art GNNs in accuracy and efficiency.

Proposed method

  • Replaces GraphSAGE’s default uniform neighborhood sampling with a reinforcement learning (RL)-based sampling policy.
  • Uses a non-linear regressor to estimate the real-valued importance of each (node, neighborhood) pair based on negative classification loss.
  • Trains the regressor using value-based RL, where the per-step reward is the negative cross-entropy loss at each layer.
  • The reward signal is computed for each target node and its sampled neighborhood at each hop, enabling credit assignment across multiple layers.
  • The value function is used as a criterion to subsample neighborhoods, favoring those that lead to lower loss.
  • The method is trained end-to-end with GraphSAGE, enabling inductive representation learning with improved sample efficiency.

Experimental results

Research questions

  • RQ1Can a data-driven sampling strategy based on reinforcement learning improve the accuracy of GraphSAGE compared to uniform sampling?
  • RQ2How does the choice of reward signal—first-hop, last-hop, or all-hop—impact the performance of the sampling policy?
  • RQ3Does the proposed method generalize across diverse graph datasets with varying structural properties?
  • RQ4Can the RL-based sampling achieve higher accuracy while maintaining computational and memory efficiency?
  • RQ5How does the method compare to recent state-of-the-art GNNs in terms of accuracy and inference efficiency?

Key findings

  • The RL-based sampling method achieved a Micro F1 score of 0.881 on PubMed, outperforming the baseline GraphSAGE with uniform sampling (0.879) and the best-performing variant in the study.
  • On the Reddit dataset, the method reached a Micro F1 score of 0.954, surpassing the baseline GraphSAGE (0.950) and FastGCN (0.945).
  • On the PPI dataset, the method achieved a Micro F1 score of 0.755 with a two-layer model, significantly improving upon the uniform sampling baseline of 0.674.
  • Training for 100 epochs improved accuracy over 10 epochs, with the best result on PubMed reaching 0.890, a 1.2% relative improvement.
  • The method maintained high performance even with a smaller, compute-optimized architecture (mean_add aggregator, [25,10] sample size), achieving 0.898 F1 on PubMed with only 4.0 MB parameter size.
  • The value function distribution varied across datasets: Gaussian-like on PPI and Rayleigh-like on Reddit/PubMed, indicating different structural regularities in the graphs.

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.