Table of Contents
Fetching ...

Beyond Homophily: Community Search on Heterophilic Graphs

Qing Sima, Xiaoyang Wang, Wenjie Zhang

TL;DR

The paper tackles community search on heterophilic graphs where edge signs are unknown, a setting where traditional homophily-based signals and pure structure-based methods fail. It introduces AdaptCS, a two-phase framework with a Distinctive-Hop encoder that disentangles distance and frequency signals and a memory-efficient low-rank optimization to scale to large graphs. Phase II offers online search via Signed Community Search (SCS) and Adaptive Community Score (ACS), balancing embedding similarity and topology conditioned on estimated homophily. Empirical results show AdaptCS achieves higher F1-scores, robust performance across heterophily levels, and up to two orders of magnitude faster queries, enabling practical CS on massive real-world networks.

Abstract

Community search aims to identify a refined set of nodes that are most relevant to a given query, supporting tasks ranging from fraud detection to recommendation. Unlike homophilic graphs, many real-world networks are heterophilic, where edges predominantly connect dissimilar nodes. Therefore, structural signals that once reflected smooth, low-frequency similarity now appear as sharp, high-frequency contrasts. However, both classical algorithms (e.g., k-core, k-truss) and recent ML-based models struggle to achieve effective community search on heterophilic graphs, where edge signs or semantics are generally unknown. Algorithm-based methods often return communities with mixed class labels, while GNNs, built on homophily, smooth away meaningful signals and blur community boundaries. Therefore, we propose Adaptive Community Search (AdaptCS), a unified framework featuring three key designs: (i) an AdaptCS Encoder that disentangles multi-hop and multi-frequency signals, enabling the model to capture both smooth (homophilic) and contrastive (heterophilic) relations; (ii) a memory-efficient low-rank optimization that removes the main computational bottleneck and ensures model scalability; and (iii) an Adaptive Community Score (ACS) that guides online search by balancing embedding similarity and topological relations. Extensive experiments on both heterophilic and homophilic benchmarks demonstrate that AdaptCS outperforms the best-performing baseline by an average of 11% in F1-score, retains robustness across heterophily levels, and achieves up to 2 orders of magnitude speedup.

Beyond Homophily: Community Search on Heterophilic Graphs

TL;DR

The paper tackles community search on heterophilic graphs where edge signs are unknown, a setting where traditional homophily-based signals and pure structure-based methods fail. It introduces AdaptCS, a two-phase framework with a Distinctive-Hop encoder that disentangles distance and frequency signals and a memory-efficient low-rank optimization to scale to large graphs. Phase II offers online search via Signed Community Search (SCS) and Adaptive Community Score (ACS), balancing embedding similarity and topology conditioned on estimated homophily. Empirical results show AdaptCS achieves higher F1-scores, robust performance across heterophily levels, and up to two orders of magnitude faster queries, enabling practical CS on massive real-world networks.

Abstract

Community search aims to identify a refined set of nodes that are most relevant to a given query, supporting tasks ranging from fraud detection to recommendation. Unlike homophilic graphs, many real-world networks are heterophilic, where edges predominantly connect dissimilar nodes. Therefore, structural signals that once reflected smooth, low-frequency similarity now appear as sharp, high-frequency contrasts. However, both classical algorithms (e.g., k-core, k-truss) and recent ML-based models struggle to achieve effective community search on heterophilic graphs, where edge signs or semantics are generally unknown. Algorithm-based methods often return communities with mixed class labels, while GNNs, built on homophily, smooth away meaningful signals and blur community boundaries. Therefore, we propose Adaptive Community Search (AdaptCS), a unified framework featuring three key designs: (i) an AdaptCS Encoder that disentangles multi-hop and multi-frequency signals, enabling the model to capture both smooth (homophilic) and contrastive (heterophilic) relations; (ii) a memory-efficient low-rank optimization that removes the main computational bottleneck and ensures model scalability; and (iii) an Adaptive Community Score (ACS) that guides online search by balancing embedding similarity and topological relations. Extensive experiments on both heterophilic and homophilic benchmarks demonstrate that AdaptCS outperforms the best-performing baseline by an average of 11% in F1-score, retains robustness across heterophily levels, and achieves up to 2 orders of magnitude speedup.
Paper Structure (29 sections, 2 theorems, 34 equations, 6 figures, 2 tables, 1 algorithm)

This paper contains 29 sections, 2 theorems, 34 equations, 6 figures, 2 tables, 1 algorithm.

Key Result

Theorem 1

Suppose $X = Z$ (one-hot labels) and $\hat{A}^{(k)}$ is constructed via distinctive-hop masking. For any number of classes $c > 2$, all nodes become high-order diversification distinguishable, and thus $\mathrm{HDD}_{H_{HP}}(G) = 1$. A detailed proof can be found in Sec.sec:proof_HDD.

Figures (6)

  • Figure 1: Limitations of three representative paradigms. Node colors show communities; blue/red edges indicate implied homophilic/heterophilic links that are unobserved in practice.
  • Figure 2: AdaptCS Encoder Frameworks
  • Figure 3: Flip Effects
  • Figure 4: Efficiency evaluation of different datasets (in seconds)
  • Figure 5: Ablation study
  • ...and 1 more figures

Theorems & Definitions (6)

  • Definition 3.1: Flip Effect
  • Definition 4.1: High-Order Diversification Distinguishability (HDD)
  • Theorem 1: Distance awareness Yields HDD = 1 for $c > 2$
  • Theorem 2: Triangle-support lower bound for adaptively retained edges
  • proof
  • proof