Policy-GNN: Aggregation Optimization for Graph Neural Networks

Kwei-Herng Lai, Daochen Zha, Kaixiong Zhou, Xia Hu

TL;DR

Policy-GNN is a meta-policy framework that uses deep reinforcement learning to adaptively determine the optimal number of aggregation iterations for each individual node in a graph. By moving beyond "one-size-fits-all" fixed-depth architectures, it significantly boosts performance on node classification tasks and effectively mitigates the common problem of over-smoothing in deep Graph Neural Networks (GNNs).

What Problem Does This Paper Address?

Standard GNNs operate by aggregating information from a node's neighbors over a fixed number of "hops" (layers). For example, a 2-layer GCN always aggregates information from a 2-hop neighborhood for every single node in the graph.

The authors identify a major flaw in this approach: graph heterogeneity. In a real-world graph, different nodes require different amounts of context to be correctly classified. Some nodes might be easily identified by their immediate neighbors, while others—perhaps those in sparse regions or with noisy connections—need information from much further away.

Furthermore, simply making GNNs deeper for everyone leads to "over-smoothing," where node representations become indistinguishable from one another, causing performance to plummet. While skip-connections help, they are usually manually designed and applied uniformly. The challenge is: how do we automatically and efficiently decide the "right" depth for every individual node?

Figure 1: Motivation showing that different nodes in the Cora dataset achieve peak accuracy at different aggregation depths.

Methods

The authors propose Policy-GNN, which treats the aggregation process as a sequential decision-making problem.

  1. MDP Formulation: They model the task as a Markov Decision Process (MDP). The state is the current node's attributes, the action is the number of aggregation hops ($k$) to perform, and the reward is the improvement in classification accuracy on a validation set.
  2. Meta-Policy: They use a Deep Q-Network (DQN) to learn a "meta-policy." This policy looks at a node and predicts how many layers of aggregation it needs.
  3. GNN Module: Once the policy chooses a depth $k$, a GNN (like a standard GCN) performs the actual message passing for that node using $k$ layers.
  4. Efficiency Gains: Training a separate GNN for every possible depth would be incredibly slow. To solve this, the authors introduced two clever tricks:
  5. Parameter Sharing: They initialize a maximum number of GNN layers ($K$) and "stack" them as needed. A 3-hop node simply uses the first three layers of this stack.
  6. Buffer Mechanism: They use an action buffer to batch nodes that require the same number of hops, allowing for efficient GPU-accelerated training instead of processing nodes one by one.
Figure 3: An illustration of Policy-GNN with meta-policy sampling 1, 2 and 3 iterations of aggregation for different nodes. The learning procedure follows a Markov Decision Process. In each timestep, the mata-policy samples the number of layers (action) based on the attributes of the nodes (state). The next nodes (next state) are obtained by randomly sampling a node from the k-hop neighbors of the current nodes, where k is the output of the mata-policy (action). The meta-policy is updated based on the feedback from the GNN.

Datasets

The model was evaluated on three classic citation network benchmarks:

  • Cora: 2,708 nodes, 1,433 features, 7 classes.
  • CiteSeer: 3,327 nodes, 3,703 features, 6 classes.
  • PubMed: 19,717 nodes, 500 features, 3 classes.

These datasets are standard in the field for testing node classification, where the goal is to predict the category of a paper based on its content and citation links.

Key Insights and Ideas

  • The "Aha" Moment: The researchers proved that "deeper is not always better" for every node. Figure 1 shows that while most nodes do well with 2 hops, some specific nodes (like node 17 and 20 in their sample) only perform well at 4 hops.
  • Depth vs. Architecture: Much of the recent work in GNNs (like Neural Architecture Search or NAS) focuses on finding the best aggregation function. Policy-GNN suggests that optimizing the depth per node is actually a more powerful lever for increasing accuracy.
  • Adaptive Smoothing: By allowing nodes to stop aggregating before they over-smooth, Policy-GNN naturally preserves local information for nodes that don't need global context.
  • Learned Diversity: The meta-policy doesn't just pick one depth; it learns a complex distribution. As shown in Figure 4, the CiteSeer dataset required significantly more 3-hop and 4-hop aggregations than PubMed, reflecting the different structural complexities of these graphs.

Key Results

Policy-GNN achieved state-of-the-art (SOTA) results across all three benchmarks, significantly outperforming vanilla GCNs and even complex NAS-based GNNs:

  • Cora: 91.9% accuracy (+5.1% over the next best baseline).
  • CiteSeer: 89.7% accuracy (+12.7% improvement).
  • PubMed: 92.1% accuracy (+1.7% improvement).

The buffer mechanism was also a huge success, improving training efficiency by 96 times compared to a naive implementation without batching.

Figure 4: The percentage of the nodes that are assigned to different layers of GCN by Policy-GNN.

Limitations and Future Work

The primary limitation acknowledged by the authors is training efficiency. While the buffer mechanism helps, training a reinforcement learning agent still requires hundreds of iterations, which may not scale easily to massive graphs with millions of nodes.

For future work, the authors suggest:

  • Developing more scalable meta-policy algorithms.
  • Exploring more advanced aggregation functions within the Policy-GNN framework.
  • Combining Policy-GNN with Neural Architecture Search to jointly optimize both the type of aggregation and the depth for every node.

Summary updated

BibTeX
@inproceedings{lai2020policy,
  author = {Kwei-Herng Lai and Daochen Zha and Kaixiong Zhou and Xia Hu},
  title = {{Policy-GNN: Aggregation Optimization for Graph Neural Networks}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2020},
  url = {https://openreview.net/forum?id=ZEQ_uh3Yk5s},
}
Figure