Abstract
Graph Neural Networks (GNNs) and graph mining tasks rely heavily on node proximity measures such as Personalized PageRank (PPR), Heat Kernel PageRank, and the Katz index. However, as graphs scale to billions of edges, computing these measures becomes a significant computational bottleneck. This paper discusses AGP, a unified randomized algorithm introduced by Wang et al. (KDD '21) that computes diverse proximity measures with theoretical precision and near-optimal speed. By employing a randomized sampling strategy, AGP achieves a 10x speedup over exact methods, enabling GNNs to scale to the massive Papers100M dataset without sacrificing accuracy.
Introduction
In modern network analysis, understanding "node proximity"—how nodes relate across complex webs—is fundamental to recommendation systems and social network analysis. Measures like Personalized PageRank (PPR) and the Katz index serve as the engine for these applications. However, the graph mining community has traditionally treated these measures as distinct problems, requiring specialized algorithms for each.
Furthermore, modern GNN architectures like SGC and APPNP utilize these measures to propagate features. On massive datasets, exact computation of this propagation is often computationally prohibitive or exceeds GPU memory limits. Existing pruning techniques, which ignore small values to save time, frequently fail on specific structures like "star graphs," leading to significant errors. AGP addresses these challenges by providing a unified, scalable, and theoretically grounded framework for approximate graph propagation.
The Unified Propagation Framework
The researchers first established a unified graph propagation equation. This equation generalizes nearly all popular proximity measures by adjusting four primary parameters:
- Laplacian parameters ($a, b$): Defining the graph structure's influence.
- Weight sequence ($w_i$): Determining the importance of different steps in the propagation.
- Graph signal vector ($x$): The initial state or feature set being propagated.
By proving that PPR, Heat Kernel, Katz, and GNN feature propagations share this mathematical backbone, the authors created a "one-size-fits-all" tool for graph scientists, eliminating the need for case-by-case algorithmic development.
The AGP Algorithm
The core of the framework is the Randomized Propagation Algorithm (AGP). Standard matrix-vector multiplication carries an $O(m)$ cost (where $m$ is the number of edges), which is unsustainable for billion-edge graphs. AGP bypasses this through two primary innovations:
1. Pre-sorting Adjacency Lists
Adjacency lists are pre-sorted by node degree. This optimization allows the algorithm to rapidly identify and process "small-degree" neighbors, which are often the most numerous and computationally expensive to iterate through individually in a naive approach.
2. Subset Sampling
To manage high-degree nodes, AGP avoids pushing "residue" (the value to be propagated) to every single neighbor. Instead, it employs a hybrid strategy: it pushes values to small-degree neighbors deterministically while using randomized sampling for large-degree neighbors. This ensures the estimator remains unbiased—accurate on average—while keeping computation time proportional to the size of the output rather than the size of the entire graph.
This randomized approach specifically solves the "Star Graph" problem. In such graphs, a central hub may have many neighbors with tiny residues. Traditional pruning often ignores these, leading to cumulative errors. AGP’s sampling ensures these "long-tail" connections are accounted for statistically.
Experimental Evaluation
The authors evaluated AGP across local clustering and node classification tasks using several large-scale datasets, including YouTube, Orkut, Twitter, and the Papers100M dataset (111 million nodes, 1.6 billion edges).
Key Performance Metrics:
- 10x Speedup: On the Papers100M dataset, AGP-based models (such as SGC-AGP) achieved a 10x speedup in preprocessing time compared to exact methods.
- Efficiency: SGC-AGP reached 62% accuracy on Papers100M in under 2,000 seconds, whereas exact versions required over 20,000 seconds.
- Clustering Quality: In local clustering tasks using Heat Kernel PageRank, AGP consistently provided lower "conductance" (indicating better cluster quality) for the same computational budget compared to specialized algorithms like TEA or ClusterHKPR.
- Scalability via Decoupling: AGP allows GNNs to decouple expensive graph propagation from neural network training. Propagation can be computed once on a CPU, followed by training a simple MLP on a GPU, effectively bypassing GPU memory bottlenecks.
Conclusion
AGP represents a significant step forward in making complex graph analytics accessible for massive datasets. By unifying disparate proximity measures into a single randomized framework, it provides both theoretical optimality and practical efficiency. While currently optimized for linear propagation architectures, the AGP framework lowers the computational barrier for graph learning, potentially inspiring new proximity measures tailored for specific industrial and research tasks.
Summary updated