Graph Neural Networks (GNNs) have proven to be useful for many different practical applications. However, many existing GNN models have implicitly assumed homophily among the nodes connected in the graph, and therefore have largely overlooked the important setting of heterophily, where most connected nodes are from different classes. In this work, we propose a novel framework called CPGNN that generalizes GNNs for graphs with either homophily or heterophily. The proposed framework incorporates an interpretable compatibility matrix for modeling the heterophily or homophily level in the graph, which can be learned in an end-to-end fashion, enabling it to go beyond the assumption of strong homophily. Theoretically, we show that replacing the compatibility matrix in our framework with the identity (which represents pure homophily) reduces to GCN. Our extensive experiments demonstrate the effectiveness of our approach in more realistic and challenging experimental settings with significantly less training data compared to previous works: CPGNN variants achieve state-of-the-art results in heterophily settings with or without contextual node features, while maintaining comparable performance in homophily settings.
翻译:事实显示,许多现有的GNN模型暗含地假定在图形中连接的节点中是同质的,因此基本上忽略了不同类型中大多数连接的节点的重要设置。在这项工作中,我们提议了一个名为CPGNN的新颖框架,将GNN用于同质或异质的图表。拟议框架包含一个可解释的兼容性矩阵,用于模拟图形中的异质或同质水平,可以以端到端的方式学习,使其能够超越强烈的同质假设。理论上,我们表明用身份取代我们框架中的兼容性矩阵(纯同质)会降低到GCN。我们的广泛实验表明我们的方法在更现实和富有挑战性的实验环境中的有效性,而培训数据比以前的工作要少得多:CPGNNV变量在具有或没有背景节点特征的复杂环境中取得最新结果,同时在同质环境中保持可比的性表现。