Learning on Random Balls is Sufficient for Estimating (Some) Graph Parameters

Takanori Maehara, Hoang Nt

Introduction

Theoretical analyses of Graph Neural Networks (GNNs) often assume "complete observation," where the model has access to the entire graph. However, real-world graphs like social networks or web crawls are frequently too massive to fit into memory. Practitioners circumvent this by using neighborhood sampling or random walks, yet this creates a theoretical gap: if we only observe a tiny fraction of a graph, what can we actually hope to learn?

This paper bridges this gap by identifying "estimable" graph parameters—those calculable from local samples. The authors prove that these parameters are exactly those continuous under a newly defined "Randomized Benjamini–Schramm" topology, providing a rigorous foundation for why GNNs can generalize across different graph sizes.

Methodology: The RBS-GNN

The authors introduce the Random Ball Sampling GNN (RBS-GNN), a theoretical architecture designed to operate under partial observation. The process involves three main steps:

  1. Sampling: Instead of the whole graph, the model samples $k$ random "balls" (neighborhoods of radius $r$).
  2. Processing: A GNN $f$ processes each ball independently to extract local features.
  3. Aggregation: A multi-layer perceptron (MLP) $g$ aggregates these local features to produce a final classification or parameter estimate.
The process of sampling local neighborhoods (balls) from a large graph to form a representation.

Theoretical Framework: Randomized Benjamini–Schramm Topology

The core innovation is the Randomized Benjamini–Schramm topology, which measures the "distance" between two graphs based on the similarity of their local neighborhood distributions, regardless of total size.

Formalizing graph parameters as expectations over local isomorphism classes.

A graph function is "estimable" (approximable via sampling) if and only if it is uniformly continuous within this topology. This distinguishes properties like "triangle density" (estimable) from global properties like "connectivity" or "max degree" (non-estimable), where a single unobserved edge or node can fundamentally change the result.

Experimental Results

The framework was evaluated using standard benchmarks from the TUDataset repository, including COLLAB and REDDIT datasets. To simulate real-world constraints, the authors used a "partial observation" environment.

  • Efficiency vs. Accuracy: The RBS-GNN achieved 80.3% test accuracy on COLLAB while observing only 55.7% of the data. On Reddit datasets, performance remained competitive even when observing only 14% of the original edges.
  • Size-Generalization: The authors experimentally confirmed that estimable targets (e.g., clustering coefficients) generalize across graph sizes significantly better than non-estimable ones (e.g., max degree), validating the "domain adaptation" view of size-generalization.

Conclusion and Limitations

While this work provides the first Rademacher complexity bounds for general graph spaces without restrictive assumptions on vertex count or degree, the bounds currently suffer from slow convergence ($o(1/\log \log \log n)$). Furthermore, the theory is limited to continuous functions, meaning tasks dependent on global connectivity remain out of reach for sampling-based approaches. Future work may improve these bounds by incorporating specific graph distribution assumptions, such as power-law structures.

Summary updated

BibTeX
@inproceedings{maehara2021learning,
  author = {Takanori Maehara and Hoang NT},
  title = {{Learning on Random Balls is Sufficient for Estimating (Some) Graph Parameters}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=hFcAV0kZ-g},
}
Figure