Skip to main content
QUICK REVIEW

[Paper Review] Understanding Non-linearity in Graph Neural Networks from the Bayesian-Inference Perspective

Rongzhe Wei, Haoteng Yin|arXiv (Cornell University)|Jul 22, 2022
Advanced Graph Neural NetworksComputer Science4 citations
TL;DR

This paper frames graph neural networks (GNNs) through Bayesian inference, showing that the optimal max-a-posteriori (MAP) estimator for node classification under a contextual stochastic block model (CSBM) naturally yields a GNN-like architecture with ReLU-activated neighbor feature aggregation and nonlinear attribute transformation. The key finding is that non-linearity provides significant performance gains only when node attributes are highly informative relative to graph structure, explaining why GNNs often underperform linear baselines in practice.

ABSTRACT

Graph neural networks (GNNs) have shown superiority in many prediction tasks over graphs due to their impressive capability of capturing nonlinear relations in graph-structured data. However, for node classification tasks, often, only marginal improvement of GNNs over their linear counterparts has been observed. Previous works provide very few understandings of this phenomenon. In this work, we resort to Bayesian learning to deeply investigate the functions of non-linearity in GNNs for node classification tasks. Given a graph generated from the statistical model CSBM, we observe that the max-a-posterior estimation of a node label given its own and neighbors' attributes consists of two types of non-linearity, a possibly non-linear transformation of node attributes and a ReLU-activated feature aggregation from neighbors. The latter surprisingly matches the type of non-linearity used in many GNN models. By further imposing Gaussian assumption on node attributes, we prove that the superiority of those ReLU activations is only significant when the node attributes are far more informative than the graph structure, which nicely matches many previous empirical observations. A similar argument can be achieved when there is a distribution shift of node attributes between the training and testing datasets. Finally, we verify our theory on both synthetic and real-world networks.

Motivation & Objective

  • To understand why non-linear GNNs often show only marginal improvement over linear models in node classification tasks.
  • To investigate the statistical conditions under which non-linearity in GNNs provides a meaningful advantage over linear propagation.
  • To formalize the role of non-linearity in GNNs from a Bayesian inference perspective, particularly in relation to feature representation and model generalization.
  • To analyze the impact of distribution shifts in node attributes on model transferability, especially comparing linear and non-linear GNNs.
  • To validate theoretical findings empirically on both synthetic and real-world graphs.

Proposed method

  • The authors model node classification using a contextual stochastic block model (CSBM) with label-dependent Gaussian node attributes.
  • They derive the max-a-posteriori (MAP) estimator for node labels, which naturally results in a GNN-like architecture with ReLU-activated neighbor aggregation and nonlinear attribute transformation.
  • Under a Gaussian assumption on node attributes, they analytically compare the misclassification error of linear and nonlinear models.
  • They formalize conditions under which non-linearity improves performance, distinguishing between regimes of limited and sufficient attribute informativeness.
  • They analyze transferability under distribution shifts by rotating the mean vectors of node attributes and comparing error increases between linear and nonlinear models.
  • They validate theoretical predictions via experiments on synthetic CSBM-generated graphs and real-world datasets, fixing model hyperparameters to isolate the effect of non-linearity.

Experimental results

Research questions

  • RQ1Under what conditions does non-linearity in GNNs provide a significant advantage over linear propagation in node classification?
  • RQ2Why do many empirical studies observe only marginal performance gains of non-linear GNNs over linear baselines despite their expressive power?
  • RQ3How does the informativeness of node attributes relative to graph structure affect the benefit of non-linearity in GNNs?
  • RQ4Does non-linearity improve model transferability when there is a distribution shift in node attributes between training and testing data?
  • RQ5Can Bayesian inference provide a principled explanation for the functional form of message passing in GNNs?

Key findings

  • When node attributes are less informative than graph structure, the misclassification error of non-linear and linear models becomes asymptotically equivalent, with a ratio approaching 1.
  • When node attributes are sufficiently informative, the misclassification error of the non-linear model can be significantly smaller than that of the linear model, with the error ratio approaching 0 as the sample size increases.
  • In the presence of a distribution shift in node attributes, non-linear models show better transferability than linear models when attributes are informative, as evidenced by a smaller increase in misclassification error.
  • The theoretical analysis confirms that ReLU-based message passing in GNNs emerges naturally from Bayesian MAP estimation under a CSBM, providing a principled justification for its use.
  • Empirical results on synthetic and real-world graphs validate the theoretical predictions, showing that non-linear GNNs outperform linear models only when attributes are highly informative.
  • The performance gap between non-linear and linear models is negligible in the regime of limited attribute informativeness, which aligns with common empirical observations in real-world node classification tasks.

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.