# Detecting Communities from Heterogeneous Graphs: A Context Path-based Graph Neural Network Model

arXiv: https://arxiv.org/abs/2109.02058 · HTML: https://mlsanity.com/paper/2109.02058/

## Key facts

- Cited by 15 papers in the map (data through 14 Oct 2026).
- Builds on 24 of its 59 references that are in the map.
- First posted on arXiv 5 Sep 2021.

## Builds on (most cited first, 24 of 24)

- [Adam: A Method for Stochastic Optimization](https://mlsanity.com/paper/1412.6980/) (2014)
- [Semi-Supervised Classification with Graph Convolutional Networks](https://mlsanity.com/paper/1609.02907/) (2016)
- [Graph Attention Networks](https://mlsanity.com/paper/1710.10903/) (2017)
- [How Powerful are Graph Neural Networks?](https://mlsanity.com/paper/1810.00826/) (2018)
- [Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translation](https://mlsanity.com/paper/1406.1078/) (2014)
- [node2vec: Scalable Feature Learning for Networks](https://mlsanity.com/paper/1607.00653/) (2016)
- [Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semantics](https://mlsanity.com/paper/1705.07115/) (2017)
- [Unsupervised Deep Embedding for Clustering Analysis](https://mlsanity.com/paper/1511.06335/) (2015)
- [Heterogeneous Graph Attention Network](https://mlsanity.com/paper/1903.07293/) (2019)
- [Heterogeneous Graph Transformer](https://mlsanity.com/paper/2003.01332/) (2020)
- [Measuring and Relieving the Over-smoothing Problem for Graph Neural Networks from the Topological View](https://mlsanity.com/paper/1909.03211/) (2019)
- [Identity-aware Graph Neural Networks](https://mlsanity.com/paper/2101.10320/) (2021)
- [A Survey of Heterogeneous Information Network Analysis](https://mlsanity.com/paper/1511.04854/) (2015)
- [A Survey of Community Detection Approaches: From Statistical Modeling to Deep Learning](https://mlsanity.com/paper/2101.01669/) (2021)
- [Heterogeneous Deep Graph Infomax](https://mlsanity.com/paper/1911.08538/) (2019)
- [Clustering and Community Detection in Directed Networks: A Survey](https://mlsanity.com/paper/1308.0971/) (2013)
- [Is a Single Vector Enough? Exploring Node Polysemy for Network Embedding](https://mlsanity.com/paper/1905.10668/) (2019)
- [A Survey of Community Search Over Big Graphs](https://mlsanity.com/paper/1904.12539/) (2019)
- [Is a Single Embedding Enough? Learning Node Representations that Capture Multiple Social Contexts](https://mlsanity.com/paper/1905.02138/) (2019)
- [Self-Supervised Learning of Contextual Embeddings for Link Prediction in Heterogeneous Networks](https://mlsanity.com/paper/2007.11192/) (2020)
- [MetaGraph2Vec: Complex Semantic Path Augmented Heterogeneous Network Embedding](https://mlsanity.com/paper/1803.02533/) (2018)
- [Unsupervised Differentiable Multi-aspect Network Embedding](https://mlsanity.com/paper/2006.04239/) (2020)
- [Explaining reviews and ratings with PACO: Poisson Additive Co-Clustering](https://mlsanity.com/paper/1512.01845/) (2015)
- [Heterogeneous-Temporal Graph Convolutional Networks: Make the Community Detection Much Better](https://mlsanity.com/paper/1909.10248/) (2019)

## Built on by (most cited first, 15 of 15)

- [Normalizing Flow-based Neural Process for Few-Shot Knowledge Graph Completion](https://mlsanity.com/paper/2304.08183/) (2023)
- [Graph Sequential Neural ODE Process for Link Prediction on Dynamic and Sparse Graphs](https://mlsanity.com/paper/2211.08568/) (2022)
- [Path-based Explanation for Knowledge Graph Completion](https://mlsanity.com/paper/2401.02290/) (2024)
- [Heterogeneous Graph Neural Network for Privacy-Preserving Recommendation](https://mlsanity.com/paper/2210.00538/) (2022)
- [Heterogeneous Graph Contrastive Learning with Meta-path Contexts and Adaptively Weighted Negative Samples](https://mlsanity.com/paper/2212.13847/) (2022)
- [Towards Few-shot Inductive Link Prediction on Knowledge Graphs: A Relational Anonymous Walk-guided Neural Process Approach](https://mlsanity.com/paper/2307.01204/) (2023)
- [GSim: A Graph Neural Network based Relevance Measure for Heterogeneous Graphs](https://mlsanity.com/paper/2208.06144/) (2022)
- [Towards Causal Classification: A Comprehensive Study on Graph Neural Networks](https://mlsanity.com/paper/2401.15444/) (2024)
- [A Self-guided Multimodal Approach to Enhancing Graph Representation Learning for Alzheimer's Diseases](https://mlsanity.com/paper/2412.06212/) (2024)
- [MGTCOM: Community Detection in Multimodal Graphs](https://mlsanity.com/paper/2211.06331/) (2022)
- [Top K Enhanced Reinforcement Learning Attacks on Heterogeneous Graph Node Classification](https://mlsanity.com/paper/2408.01964/) (2024)
- [HACD: Harnessing Attribute Semantics and Mesoscopic Structure for Community Detection](https://mlsanity.com/paper/2411.01947/) (2024)
- [HeteroSample: Meta-path Guided Sampling for Heterogeneous Graph Representation Learning](https://mlsanity.com/paper/2411.07022/) (2024)
- [Virtual Nodes based Heterogeneous Graph Convolutional Neural Network for Efficient Long-Range Information Aggregation](https://mlsanity.com/paper/2509.23660/) (2025)
- [Accelerating Storage-Based Training for Graph Neural Networks](https://mlsanity.com/paper/2601.01473/) (2026)

## Abstract (arXiv)

Community detection, aiming to group the graph nodes into clusters with dense inner-connection, is a fundamental graph mining task. Recently, it has been studied on the heterogeneous graph, which contains multiple types of nodes and edges, posing great challenges for modeling the high-order relationship between nodes. With the surge of graph embedding mechanism, it has also been adopted to community detection. A remarkable group of works use the meta-path to capture the high-order relationship between nodes and embed them into nodes' embedding to facilitate community detection. However, defining meaningful meta-paths requires much domain knowledge, which largely limits their applications, especially on schema-rich heterogeneous graphs like knowledge graphs. To alleviate this issue, in this paper, we propose to exploit the context path to capture the high-order relationship between nodes, and build a Context Path-based Graph Neural Network (CP-GNN) model. It recursively embeds the high-order relationship between nodes into the node embedding with attention mechanisms to discriminate the importance of different relationships. By maximizing the expectation of the co-occurrence of nodes connected by context paths, the model can learn the nodes' embeddings that both well preserve the high-order relationship between nodes and are helpful for community detection. Extensive experimental results on four real-world datasets show that CP-GNN outperforms the state-of-the-art community detection methods.
