On the Cross-type Homophily of Heterogeneous Graphs: Understanding and Unleashing

Zhen Tao, Ziyue Qiao, Chaoqi Chen, Zhengyi Yang, Lun Du, Qingqiang Sun · DOI

TL;DR

This paper introduces the Cross-Type Homophily Ratio (CHR), the first metric designed to quantify homophily across different node types in Heterogeneous Graphs (HGs). Leveraging this metric, the authors develop CTHGE, a plug-and-play graph editing framework that prunes semantically misaligned cross-type edges, boosting the performance of various heterogeneous graph neural networks (HGNNs) by up to 25%.

What Problem Does This Paper Address?

In network science, homophily is the principle of "birds of a feather flock together"—nodes with similar attributes or labels are more likely to connect. Graph Neural Networks (GNNs) inherently rely on this property to aggregate clean, consistent neighborhood features.

However, real-world networks are rarely homogeneous. They are better modeled as Heterogeneous Graphs (HGs) containing multiple types of nodes and edges (e.g., a graph with User, Product, and Brand nodes). Measuring homophily in HGs is notoriously difficult because different node types exist in entirely distinct label spaces. You cannot directly compare the "label" of a user with the "label" of a product.

Because of this complexity, previous HG homophily metrics focused strictly on same-type connections, completely ignoring cross-type edges. This is a massive blind spot, considering cross-type edges often make up the vast majority of connections in a heterogeneous network.

Figure 1: Graph homophily in diverse cases where colors denote node labels: (a) the homophily in homogeneous graphs is considered based on node labels; (b) in HGs, label- relevance-based methods can only assess same-type ho- mophily while failing to measure cross-type edge; (c) our method is capable of evaluating cross-type homophily in HGs by leveraging information relevance.

Methods

The authors tackle this problem with a two-part approach: a new metric (CHR) and a structural optimization framework (CTHGE).

1. Cross-Type Homophily Ratio (CHR)

To compare nodes across different label spaces, CHR projects them into a shared target information space. It takes known target labels and propagates them to non-target neighbors via cross-type edges. Once all nodes have a normalized "target information vector," the similarity between any cross-type pair can be calculated using a standard inner product. CHR is simply the average similarity across all cross-type edges.

2. Cross-Type Homophily-guided Graph Editing (CTHGE)

Once we can measure cross-type homophily, we can optimize for it. CTHGE refines the graph structure in two phases:

  • Phase I (Semantic Pruning): The graph is stripped of low-consistency cross-type edges whose similarity scores fall below a tunable threshold ($\tau$). This directly maximizes the graph's overall CHR.
  • Phase II (Confidence-Aware Refinement): Pruning can sometimes discard edges that are structurally valuable for message passing. To fix this, CTHGE uses a target-driven auxiliary learning paradigm. It pre-trains an HGNN on target labels, fine-tunes it on highly confident pseudo-labels for non-target nodes, and iteratively re-evaluates edges—recovering helpful connections and dropping remaining noise.

Datasets

The framework was evaluated on five real-world HG datasets:

  • Liar: A fake news detection dataset where the goal is to predict news node categories.
  • American, Amherst, MIT: Three Facebook friendship networks from the FB100 collection, capturing university social structures.
  • Actor: A film-related network focused on predicting actor categories.

As shown in the paper's analysis, cross-type edges dominate these datasets, making up 100% of the edges in Liar and over 92% in American.

Figure 2: Edge type distribution across different heteroge- neous graphs. The proportion of Cross-type Edge Types among the edge types in HGs is significant.

Key Insights and Ideas

  • Homophily Directly Impacts Generalization: The authors mathematically prove that maximizing cross-type homophily minimizes the representation complexity (via the Davies-Bouldin index) of an HGNN layer. Higher CHR directly improves the model's generalization lower bound.
  • Empirical Alignment: Across multiple datasets, plotting HGNN performance against engineered graph variants with different CHR levels revealed a stark, positive correlation. Higher CHR consistently means higher F1 scores.
Figure 3: Impact of CHR on HGNN Performance.
  • Pruning as a Powerful Denoiser: The framework provides its biggest benefits on graphs with high initial heterophily (low homophily). On the Liar dataset, which has a baseline CHR of only 21.66%, CTHGE acts as a critical filter that suppresses structural noise and highlights task-relevant paths.

Key Results

The authors integrated CTHGE with 9 different GNN backbones (ranging from standard GCN/GAT to specialized architectures like HAN and HINormer).

  • Universal Improvements: CTHGE achieved significant relative performance gains across all backbones and datasets, with improvements ranging from 4.63% to 25.67%.
  • Massive Gains on Low-Homophily Data: On the highly heterophilous Liar dataset, applying CTHGE to the PSHGCN backbone caused the Macro-F1 score to skyrocket from 20.42% to 42.52%.
  • Outperforming Graph Structure Learning (GSL): When compared against state-of-the-art GSL methods (like LDS and IDGL), CTHGE consistently achieved superior node classification accuracy without increasing graph complexity.

Limitations and Future Work

While the paper demonstrates impressive gains, a few limitations are apparent:

  • Hyperparameter Sensitivity: The framework relies on finding optimal values for the pruning threshold ($\tau$) and the refinement ratio ($\alpha$). The hyperparameter study shows that performance follows a unimodal curve, meaning poor tuning could lead to over-pruning or under-pruning.
  • Iterative Overhead: Phase II requires multi-round edge reconfiguration and model fine-tuning. Although the authors provide a complexity analysis showing it is efficient, this iterative process inherently adds computational overhead compared to static training.

Future work could focus on adaptively learning these thresholds or extending the cross-type homophily framework to dynamic or directed heterogeneous networks.

Summary updated

BibTeX
@inproceedings{tao2025cross,
  author = {Zhen Tao and Ziyue Qiao and Chaoqi Chen and Zhengyi Yang and Lun Du and Qingqiang Sun},
  title = {{On the Cross-type Homophily of Heterogeneous Graphs: Understanding and Unleashing}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2025},
  doi = {10.1145/3746252.3761008},
}
Figure