Feature Distribution on Graph Topology Mediates the Effect of Graph Convolution: Homophily Perspective
Soo Yong Lee, Sunwoo Kim, Fanchen Bu, Jaemin Yoo, Jiliang Tang, Kijung Shin
TL;DR
This work reveals that the dependence between graph topology and node features, quantified by Class-controlled Feature Homophily (CFH), mediates the impact of graph convolution on GNN performance. It introduces CSBM-X, a contextual stochastic block model with a tunable $A\text{-}X$ dependence strength parameter $\tau$, to precisely control CFH while holding feature distance and class-homophily fixed. Theoretical results show that the Bayes error after graph convolution is minimized when CFH is zero (i.e., $\tau=0$), and empirical studies on synthetic CSBM-X graphs corroborate this, with real-world data showing that reducing $A\text{-}X$ dependence via feature shuffles improves GNN accuracy, particularly in high-homophily graphs. The findings suggest that small CFH is beneficial for node classification, offering a new lens on GNN design and evaluation, and highlight potential directions for tailoring datasets and architectures to leverage or resist topology-feature coupling. Overall, CFH provides a principled predictor of when graph convolution will be advantageous and how to modulate its effects in practice.
Abstract
How would randomly shuffling feature vectors among nodes from the same class affect graph neural networks (GNNs)? The feature shuffle, intuitively, perturbs the dependence between graph topology and features (A-X dependence) for GNNs to learn from. Surprisingly, we observe a consistent and significant improvement in GNN performance following the feature shuffle. Having overlooked the impact of A-X dependence on GNNs, the prior literature does not provide a satisfactory understanding of the phenomenon. Thus, we raise two research questions. First, how should A-X dependence be measured, while controlling for potential confounds? Second, how does A-X dependence affect GNNs? In response, we (i) propose a principled measure for A-X dependence, (ii) design a random graph model that controls A-X dependence, (iii) establish a theory on how A-X dependence relates to graph convolution, and (iv) present empirical analysis on real-world graphs that align with the theory. We conclude that A-X dependence mediates the effect of graph convolution, such that smaller dependence improves GNN-based node classification.
