Abstract
Graph Contrastive Learning (GCL) often struggles with heterophilous graphs where the homophily assumption—that connected nodes share similar properties—fails. We present the Attribute and Structure Preserving (ASP) framework, which addresses this "homophily bottleneck" by integrating attribute-based k-Nearest-Neighbor (kNN) graphs and higher-order structural views. By jointly optimizing attribute, structure, and cross-module losses, ASP learns robust node representations that excel across both homophilous and heterophilous datasets, frequently outperforming state-of-the-art supervised and unsupervised methods.
Introduction
Most Graph Neural Networks (GNNs) and Graph Contrastive Learning (GCL) methods operate on a fundamental assumption of homophily: the idea that connected nodes likely share the same label or attributes. However, many real-world graphs are heterophilous (e.g., dating networks or predator-prey graphs), where connected nodes are often different. When this assumption fails, standard GCL methods—which usually rely on local neighborhood aggregation—perform poorly. Furthermore, many existing methods overlook the rich similarity information hidden purely within node attributes, independent of the graph's edges. The ASP framework was developed to capture comprehensive information regardless of a graph's homophily level.
The ASP Framework
ASP is a multi-view contrastive learning framework that generates three distinct "views" of the data to capture diverse relationships:
- Original View ($v_o$): The raw graph structure and attributes.
- Attribute View ($v_a$): A $k$-Nearest-Neighbor (kNN) graph constructed purely from node attribute similarities (using Cosine or Jaccard distance). This captures relationships that physical edges might miss.
- Global Structure View ($v_s$): A higher-order view considering neighbors multiple hops away, capturing broader "global" context.
Methodology Highlights
- Summation Strategy: Instead of directly contrasting the original view against the attribute view, ASP adds attribute-based embeddings to original embeddings. This complementary approach preserves attribute knowledge without losing structural context.
- Base Encoder: The framework uses Simplifying Graph Convolution (SGC). For non-homophilous graphs, propagation steps are set to zero, effectively turning the encoder into an MLP to avoid "smearing" distinct features across dissimilar neighbors.
- Joint Objective: The model optimizes three losses simultaneously: Attribute Loss ($L_{attr}$), Structure Loss ($L_{str}$), and a Cross-Module Loss ($L_{cross}$) that ensures consistency across different modules.
Experimental Results
The framework was evaluated on seven real-world datasets, including homophilous citation networks (Cora, Citeseer, Pubmed) and non-homophilous webpage/actor networks (Cornell, Texas, Wisconsin, Actor). ASP consistently outperformed state-of-the-art self-supervised baselines like DGI, GRACE, and RoSA.
Key performance insights include:
- Heterophily Gains: On the Cornell and Texas datasets, ASP outperformed the best baselines by 3.9% and 6.8%, respectively.
- Beating Supervised Models: In several cases, the unsupervised ASP framework outperformed supervised GNNs like GCN and GAT, demonstrating that self-supervised signals can be more robust than label-driven ones.
- Metric Sensitivity: The choice of distance metric for the kNN graph matters; Jaccard often works better for citation networks, while Cosine excels on webpage datasets.
Discussion and Conclusion
ASP effectively breaks the homophily bottleneck by treating attributes as a "safety net." In heterophilous graphs where structure is noisy, the attribute-based kNN graph provides a more reliable virtual structure. Additionally, the use of higher-order views captures global topology more efficiently than manual edge-dropping strategies.
While highly effective, the framework is sensitive to hyperparameters such as the number of neighbors ($k$) and hops ($l$). Future work may explore adaptive view generation to dynamically learn the relative importance of attribute versus structural information during training, as well as approximation methods to scale kNN construction for massive networks.
Summary updated