Graph-adaptive Rectified Linear Unit for Graph Neural Networks

Yifei Zhang, Hao Zhu, Ziqiao Meng, Piotr Koniusz, Irwin King · DOI

TL;DR

This paper introduces GReLU, a novel activation function for Graph Neural Networks (GNNs) that makes the update step topology-aware. By dynamically adapting its parameters based on node features and graph structure, GReLU significantly improves GNN performance on various tasks without a substantial increase in computational cost.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) have proven highly effective for learning on graph-structured data. Their core mechanism, message passing, typically involves an aggregation step (where nodes gather information from neighbors) and an update step (where nodes refine their own representations). While the aggregation step often leverages graph topology, the update step traditionally uses a uniform, non-adaptive activation function (like ReLU) for all nodes. This uniformity ignores the unique relationships and characteristics of individual nodes and their neighborhoods, limiting the GNN's capacity and potentially hindering performance, especially when the homophily assumption (nodes with similar features are connected) doesn't strictly hold.

Methods

The paper proposes Graph-adaptive Rectified Linear Unit (GReLU), a plug-and-play activation function designed to inject topology awareness into the GNN update stage. GReLU is a parametric activation function that dynamically generates its parameters based on the input node features and the graph's adjacency matrix.

Key aspects of GReLU include:

  • Topology-Aware Hyperfunction: A "hyperfunction" takes the node features (X) and adjacency matrix (A) as input to compute the parameters for GReLU. This allows the activation function to adapt to the specific graph context.
  • Decomposition for Efficiency: To mitigate overfitting and computational overhead, the hyperfunction's parameters are decomposed into two parts: channel-wise parameters (learned from aggregated node features) and node-wise parameters (learned from individual node features). These are combined to produce the final parameters.
  • Parametric Activation: GReLU itself is a piecewise linear function, similar to ReLU, but with learnable parameters (slope and bias) for each segment and channel. This allows for more flexible non-linear transformations.
  • Plug-and-Play: GReLU can be seamlessly integrated into existing GNN architectures, replacing standard activation functions.

Datasets

The paper evaluates GReLU on several standard graph datasets for node classification and graph classification tasks:

  • Node Classification: Cora, PubMed, CiteSeer (citation networks), Flickr (social network), BlogCatalog (social network).
  • Graph Classification: MUTAG, PROTEINS (biological datasets).

Key Insights and Ideas

  • Topology Matters in Updates Too: The most significant insight is that making the update step topology-aware, not just aggregation, can unlock substantial performance gains. This challenges the common practice of using static activation functions.
  • Adaptive Activation is Powerful: GReLU's ability to dynamically adjust its parameters based on graph structure and node features allows it to better capture complex relationships and nuances within the graph data.
  • Efficiency is Achievable: By carefully decomposing the hyperfunction, the authors demonstrate that topology-aware adaptation doesn't necessarily lead to prohibitive computational costs.
  • Beyond Homophily: GReLU's adaptive nature is particularly beneficial in scenarios where the strict homophily assumption might not hold, allowing GNNs to better handle diverse graph structures.

Key Results

  • Improved Node Classification: GReLU consistently outperformed standard ReLU and other variants across various GNN backbones (GCN, SAGE, GAT, etc.) on node classification tasks, achieving improvements of up to 13.2% on BlogCatalog and 8.1% on Flickr.
  • Competitive Graph Classification: GReLU also showed improvements in graph classification tasks, demonstrating its versatility.
  • Efficiency: GReLU incurs a negligible computational cost, with its runtime being comparable to or even faster than some baseline activation functions like Maxout, despite the added hyperfunction.
  • Ablation Studies: Experiments confirmed that both the topological information and the adaptive nature of GReLU contribute significantly to its performance gains. Removing either component led to performance degradation.
  • Parameter Sensitivity: The choice of the number of segments (K) in GReLU was found to have a minor impact on performance, suggesting flexibility in its configuration.

Limitations and Future Work

  • Parameter K: While not a major issue, the parameter K (number of segments) needs to be predefined. The paper suggests K=2 is a good default.
  • Future Work: The authors suggest that GReLU can be applied to spectral GNNs as well and that combining it with high-order pooling methods might yield further improvements. The adaptive nature of GReLU could also be explored in other graph-based learning scenarios.

Summary updated

BibTeX
@inproceedings{zhang2022graph,
  author = {Yifei Zhang and Hao Zhu and Ziqiao Meng and Piotr Koniusz and Irwin King},
  title = {{Graph-adaptive Rectified Linear Unit for Graph Neural Networks}},
  booktitle = {The Web Conference},
  year = {2022},
  doi = {10.1145/3485447.3512159},
}
Figure