Abstract
Graph Neural Networks (GNNs) are traditionally designed under the assumption of homophily—the tendency of connected nodes to share similar attributes or labels. However, many real-world networks exhibit heterophily, where edges often connect dissimilar nodes, causing standard GNNs to suffer from performance degradation. This paper presents Evolving Computation Graphs (ECG), a simple yet effective approach to mitigate this "homophily bias." ECG constructs a complementary, homophilic $k$-nearest neighbor graph from initial node embeddings and performs parallel message passing across both the original and the augmented structures. Empirical evaluations on diverse heterophilic benchmarks demonstrate that ECG consistently improves the performance of standard GNN architectures, achieving significant gains in classification accuracy.
Introduction
Graph Neural Networks (GNNs) have become the standard for modeling relational data, showing remarkable success in domains ranging from drug discovery to social network analysis. Most GNN architectures rely on a message-passing mechanism where nodes aggregate information from their immediate neighbors. This mechanism is highly effective when the graph exhibits homophily (e.g., a citation network where similar papers are linked).
However, many real-world graphs are heterophilic (or disassortative). In a fraud detection network, for instance, a fraudulent account may intentionally connect to legitimate ones to evade detection. In such cases, standard message passing can lead to a "smearing" effect, where dissimilar features are aggregated, resulting in poor node representations. While previous research has focused on developing complex, specialized GNN architectures to handle heterophily, this paper proposes a different strategy: if the original graph structure is not conducive to learning, we should evolve the computation graph itself to be more homophilic.
The Evolving Computation Graphs (ECG) Framework
The ECG approach is a two-phase process that "rewires" the network before the main GNN training begins. The framework follows three primary steps to bridge the gap between the original heterophilic structure and the desired homophilic representation.
1. Embedding Extraction
The first step involves generating initial node embeddings using a "weak" model. The authors explore two variants:
- MLP-based: A simple multi-layer perceptron that processes node features in isolation, ignoring the graph structure entirely.
- BGRL-based: A self-supervised method (Bootstrapped Graph Latents) that learns representations by observing local neighborhoods without requiring labels, capturing structural nuances that features alone might miss.
2. Graph Construction
Using the extracted embeddings, the system computes the cosine similarity between all pairs of nodes. For every node, the $k$ most similar nodes are identified to form new edges. This results in a complementary graph, $G^{ECG}$, which is designed to be significantly more homophilic than the original graph $G$.
3. Parallel Message Passing
Finally, the GNN (such as GCN or GAT) is executed using two parallel branches. One branch processes the original graph ($G$), while the second processes the evolved graph ($G^{ECG}$). The representations from both branches are combined at each layer. This design is computationally efficient because the $G^{ECG}$ is precomputed once, avoiding the overhead of dynamic graph updates during training.
Experimental Evaluation
The authors evaluated ECG using a modern benchmark suite (Platonov et al., 2023) designed to overcome the flaws of older heterophily datasets, such as node duplication and class imbalance. The datasets included roman-empire, amazon-ratings, minesweeper, tolokers, and questions.
Across 20 head-to-head comparisons involving four major baselines (GCN, GraphSAGE, GAT-sep, and GT-sep), ECG improved performance in 19 out of 20 cases. The most dramatic improvements were seen with the Graph Convolutional Network (GCN). For example, on the roman-empire dataset, ECG-GCN improved accuracy from 73.69% to 84.53%. This suggests that GCN is particularly sensitive to graph structure; when provided with a "cleaner," more homophilic graph, its performance increases substantially.
Key Insights and Discussion
The core "Aha!" moment of this research is the realization that the information required to identify similar nodes is often already present in the node features or can be extracted via self-supervision. By explicitly adding these homophilic edges, standard GNNs become much more robust.
Furthermore, the choice of the "weak classifier" is task-dependent. For datasets with sparse connectivity like roman-empire, self-supervised embeddings (BGRL) proved superior. For others, simple feature-based MLPs were sufficient to identify the correct neighbors. Visualizations using t-SNE confirmed that even a randomly initialized GNN produces clearer class clusters when operating on the ECG graph compared to the original heterophilic graph.
Conclusion and Future Work
Evolving Computation Graphs provide a scalable and elegant solution to the heterophily problem in GNNs. By shifting the focus from architectural complexity to graph engineering, ECG allows standard models to excel on challenging datasets.
Future work may involve exploring more diverse sources for initial embeddings and investigating the scalability of $k$-NN construction for massive graphs (millions of nodes) using approximate nearest neighbor search. Additionally, combining ECG with specialized heterophily-aware architectures could potentially yield even greater performance gains.
Summary updated