GLANCE: Graph Logic Attention Network with Cluster Enhancement for Heterophilous Graph Representation Learning

Zhongtian Sun, Anoushka Harit, Alexandra I. Cristea, Christl A. Donnelly, Pietro LiòarXiv 2025 · DOI

Introduction

Graph Neural Networks (GNNs) typically rely on the homophily assumption, the principle that connected nodes share similar features or labels. However, many real-world graphs exhibit heterophily, where linked nodes are often dissimilar (e.g., protein-protein interactions or buyer-seller networks). In such scenarios, standard message-passing mechanisms can lead to "over-smoothing," effectively blurring the distinct identities of nodes and degrading classification performance. GLANCE (Graph Logic Attention Network with Cluster Enhancement) addresses this by integrating logic-guided reasoning, adaptive clustering, and structural refinement.

Methodology

The GLANCE framework employs a multi-stage pipeline designed to handle the complexities of heterophilous graphs by reasoning about structure rather than just aggregating neighbors:

  1. Structural Feature Augmentation: Local topology is captured by augmenting node features with structural information, such as node degrees, providing an immediate sense of the graph's local connectivity.
  2. Dynamic Graph Refinement: A multi-head attention mechanism identifies and prunes "noisy" edges that do not contribute to meaningful learning, cleaning the graph structure before deep representation learning begins.
  3. Adaptive Clustering: Global context is incorporated via KMeans clustering. Cluster centroids provide a hierarchical perspective, helping nodes understand their position within the broader graph structure beyond their immediate neighborhood.
  4. Logic-Guided Representations: A differentiable logic layer enables the model to learn symbolic rules (e.g., using AND, OR, XOR gates). This allows the model to find structured patterns, making the resulting embeddings more powerful and interpretable.
  5. Composite Loss: Training is guided by a three-part loss function that balances classification accuracy, logical consistency, and edge sparsity.
Overview of the GLANCE framework architecture, illustrating structural augmentation, refinement, logic-guided representations, and cluster enhancement.

Experimental Setup and Datasets

The model was evaluated on three benchmark datasets from the WebKB collection: Cornell, Texas, and Wisconsin. These datasets represent web pages from computer science departments where links frequently connect different classes (e.g., a student page linking to a faculty page), making them ideal stress tests for heterophilous learning.

Statistics of the heterophilous datasets used for evaluation, highlighting low homophily ratios across the Cornell, Texas, and Wisconsin benchmarks.

Key Insights and Results

GLANCE demonstrates significant improvements over traditional GNNs like GCN and GAT, which often struggle to exceed 60-65% accuracy on these challenging benchmarks.

  • Denoising and Pruning: By adaptively pruning edges via attention, GLANCE prevents misleading information from propagating through the network, which is a critical step in heterophilous graphs where many edges are effectively "noise."
  • Global Context: The clustering module allows the model to overcome the "short-sightedness" of local message passing by providing a global map of the graph structure.
  • State-of-the-Art Performance: GLANCE achieved highly competitive results, notably reaching 86.7% accuracy on the Wisconsin dataset and 83.7% on the Texas dataset, outperforming specialized models like CAT-supervised.

Conclusion

GLANCE provides a robust framework for heterophilous graph representation learning by combining symbolic logic with neural attention and global clustering. While the model shows some sensitivity to initialization and introduces computational complexity through KMeans and multi-head attention, its ability to learn interpretable rules and handle structural noise makes it a powerful tool for complex graph analysis. Future work will focus on scaling these techniques to massive graphs and refining the logic-guided optimization process.

Summary updated

BibTeX
@misc{sun2025glance,
  author = {Zhongtian Sun and Anoushka Harit and Alexandra I. Cristea and Christl A. Donnelly and Pietro Liò},
  title = {{GLANCE: Graph Logic Attention Network with Cluster Enhancement for Heterophilous Graph Representation Learning}},
  year = {2025},
  eprint = {2507.18521},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.18521},
}
Figure