Task-driven Heterophilic Graph Structure Learning

Ayushman Raghuvanshi, Gonzalo Mateos, Sundeep Prabhakar ChepuriarXiv 2025 · DOI

Introduction

Most Graph Neural Networks (GNNs) are built on the homophily assumption, which posits that connected nodes likely share the same labels or features. To exploit this, standard GNNs typically employ "low-pass" filters that smooth features across neighborhoods. However, many real-world networks—such as protein-protein interactions or transaction graphs—are heterophilic, meaning connected entities are often intentionally dissimilar.

In these scenarios, standard GNNs perform poorly due to two primary challenges:

  1. Feature Inadequacy: Node feature similarity is often a poor proxy for label similarity in heterophilic datasets. As shown in Figure 1, the distributions of cosine similarities for homophilic and heterophilic pairs overlap significantly, making it difficult to distinguish them based on features alone.
  2. Structural Noise: Traditional graph rewiring methods often rely on these misleading features, leading to the creation of semantically meaningless edges.
Figure 1: Overlapping feature similarity distributions for homophilic and heterophilic node pairs.

The FgGSL Framework

To address these limitations, the authors propose FgGSL (Frequency-guided Graph Structure Learning). This framework moves beyond fixed topologies by jointly learning two distinct graph structures and processing them with specialized spectral filters.

1. Dual-Graph Masking

Instead of relying on a single adjacency matrix, FgGSL learns two separate graphs from the data. Starting from a fully connected graph, the model uses learnable masking functions ($S_{\theta1}$ and $S_{\theta2}$) to infer a homophilic graph ($G_{Ho}$) and a heterophilic graph ($G_{Ht}$).

2. Complementary Filter Banks

The core innovation lies in how these graphs are processed. The model applies a "frequency-guided" approach:

  • Low-pass filters are applied to the homophilic graph to capture shared, smooth information among similar nodes.
  • High-pass filters are applied to the heterophilic graph to highlight the differences between contrasting neighbors, capturing high-frequency information that standard GNNs typically discard as noise.

3. Task-Driven Structural Loss

Because raw features are non-discriminative, FgGSL uses the downstream node classification task to guide the structure learning. By using predicted labels as a surrogate for ground truth, the model iteratively refines the learned graphs to ensure the edges actually contribute to classification accuracy.

Figure 6: The FgGSL architecture, illustrating the dual-graph masking and complementary filter bank pipeline.

Key Results and Insights

FgGSL was evaluated on six heterophilic benchmarks, including the WebKB (Texas, Wisconsin, Cornell) and Wikipedia (Squirrel, Chameleon) datasets. The model consistently achieved top-tier performance:

  • WebKB Performance: On the Texas dataset, FgGSL reached 94% accuracy, a significant jump from H2GCN (80%) and GraphSAGE (74%).
  • Ablation Studies: Removing either the masking mechanism or the dual-filter approach led to sharp drops in accuracy, confirming that the combination of structural learning and spectral filtering is essential.

Beyond accuracy, the authors established theoretical stability bounds, proving the model remains robust even under small graph perturbations. Post-training analysis also revealed that FgGSL successfully transforms overlapping raw feature distributions into clearly separable embedding distributions, effectively solving the initial separability problem.

Limitations and Future Work

While effective, FgGSL faces challenges in scalability. The computational cost of $O(JN^3 + N^2f)$ due to repeated Laplacian multiplications may limit its use on massive graphs with millions of nodes. Future research will likely focus on more efficient candidate edge selection and optimization strategies to bring this frequency-guided approach to larger-scale networks.

Summary updated

BibTeX
@misc{raghuvanshi2025task,
  author = {Ayushman Raghuvanshi and Gonzalo Mateos and Sundeep Prabhakar Chepuri},
  title = {{Task-driven Heterophilic Graph Structure Learning}},
  year = {2025},
  eprint = {2512.23406},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.23406},
}
Figure