Abstract
Unsupervised graph representation learning (UGRL) has traditionally been built upon the homophily assumption—the premise that connected nodes are inherently similar. While effective for certain datasets, this assumption leads to "over-smoothing" in heterophilic graphs where dissimilar nodes are frequently connected. We introduce GREET (Graph Representation learning with Edge hEterophily discriminaTing), a novel framework designed to break the homophily trap. GREET explicitly distinguishes between homophilic and heterophilic edges, applying targeted filtering strategies to each. By integrating an unsupervised edge discriminator with a dual-channel GNN architecture, GREET produces robust representations that excel on both homophilic and heterophilic benchmarks while providing enhanced resistance to adversarial perturbations.
Introduction: The Homophily Trap
Most existing UGRL methods act as low-pass filters, smoothing features across edges to increase the similarity between neighbors. This approach is grounded in the homophily assumption. However, real-world graphs often exhibit significant heterophily—for instance, social network users following accounts with vastly different profiles, or web pages linking to different categories.
When standard models apply low-pass filtering to heterophilic edges, they inadvertently cause over-smoothing. This process makes node representations indistinguishable, stripping away critical discriminative information and leaving the model vulnerable to noise. As shown in Figure 3, baseline models like GAE, DGI, and GRACE often struggle to maintain separation between different node pairs, frequently pulling representations closer together regardless of their underlying relationship.
The GREET Framework
GREET addresses these challenges through a closed-loop, unsupervised pipeline consisting of two primary components: an Edge Discriminating Module and a Dual-Channel Representation Learning architecture.
Edge Discriminating Module
To identify edge types without ground-truth labels, GREET employs an edge discriminator that utilizes both node features and structural encodings derived from random walk diffusion. The module is trained using a pivot-anchored ranking loss. By sampling random node pairs as "pivots," the model learns to categorize edges: homophilic edges should exhibit higher similarity than the pivot, while heterophilic edges should exhibit lower similarity. The Gumbel-Max reparameterization trick is used to ensure the discrete selection process remains differentiable for end-to-end training.
Dual-Channel Representation Learning
Once edges are categorized, GREET processes them through two specialized channels:
- Homophilic View: A standard low-pass GNN performs smoothing among similar neighbors.
- Heterophilic View: A high-pass filter (Lap-GNN) "sharpens" the differences between connected nodes. This preserves the unique, discriminative signals provided by heterophilic connections rather than treating them as noise.
The final node representation is formed by concatenating the outputs of these two channels. An alternating training strategy ensures that improved representations refine the edge discriminator, which in turn leads to even better representations.
Experimental Evaluation
GREET was evaluated across 14 benchmark datasets, including 8 homophilic graphs (e.g., Cora, CiteSeer) and 6 heterophilic graphs (e.g., Chameleon, Squirrel).
Key Results
- State-of-the-Art Performance: GREET outperformed unsupervised baselines on 10 out of 14 datasets. Notably, on heterophilic datasets like Texas and Wisconsin, it surpassed several semi-supervised GNNs that utilized label information.
- Adversarial Robustness: Against "Metattack" perturbations, GREET maintained significantly higher accuracy than GCN, DGI, and GRACE. By identifying adversarial edges as heterophilic, the model naturally resists attempts to mislead the GNN through noisy connections.
- Effective Feature Separation: Unlike standard models that pull representations together, GREET's dual-channel approach successfully maintains the distinctiveness of nodes connected by heterophilic edges.
Conclusion
GREET demonstrates that heterophily is a valuable source of information rather than mere noise. By moving beyond simple smoothing and explicitly discriminating between edge types, GREET provides a more flexible and robust framework for unsupervised graph representation learning. Future work may extend this binary classification of edges to a continuous spectrum of relationship types and explore its utility in tasks such as link prediction and community detection.
Summary updated