Community Detection in Attributed Graphs: An Embedding Approach

Ye Li, Chaofeng Sha, Xin Huang, Yanchun ZhangAAAI 2018

Introduction

In network science, community detection is the fundamental task of identifying clusters of nodes that are more densely connected to each other than to the rest of the network. Modern networks are increasingly "attributed," meaning nodes are associated with rich metadata—such as user interests in social networks or keywords in citation graphs.

However, a significant limitation in current methodologies is the treatment of network topology as a simple binary state (where an edge either exists or it does not). By assigning a uniform weight of 1 to every edge, standard algorithms fail to distinguish between a critical link within a tight-knit community and a noisy, incidental connection between acquaintances. This lack of differentiation leads to blurred community boundaries and suboptimal clustering performance.

Methodology: The CDE Framework

To address these challenges, we propose CDE (Community Detection via Embedding). This novel framework moves beyond the raw adjacency matrix to focus on the latent community-forming potential of edges through two primary innovations.

1. Community Structure Embedding ($M$)

Instead of relying on the observed graph structure, CDE derives a structural embedding matrix, $M$. Inspired by the logic of Skip-gram with Negative Sampling (SGNS) used in natural language processing, we mathematically demonstrate that community-forming potential is best represented as a shifted version of Pointwise Mutual Information (PMI). This transformation effectively down-weights edges connected to high-degree "hub" nodes—which often bridge multiple communities—and up-weights edges within dense, local clusters.

Figure 1: Illustration of edge re-weighting via community structure embedding.

2. Joint Non-negative Matrix Factorization (NMF)

CDE performs a simultaneous factorization of two distinct matrices to ensure communities are both structurally and contextually coherent:

  • Structural Embedding Matrix ($M \approx UU^T$): Where $U$ represents node-to-community membership.
  • Node Attribute Matrix ($T \approx UC$): Where $C$ represents the preference of a community for specific attributes.

By forcing both factorizations to share the same membership matrix ($U$), the model ensures that the discovered communities are both structurally sound and share similar attributes. An $l_1$-norm sparsity constraint is applied to ensure that each community is defined by a concise set of relevant attributes, filtering out background noise.

Experimental Evaluation

We evaluated CDE against seven state-of-the-art baselines (including Bigclam, CESNA, and SCI) across 19 real-world datasets. These datasets encompass both non-overlapping structures (e.g., citation networks like Cora and Citeseer) and complex overlapping structures (e.g., Facebook ego-networks and large-scale Flickr data).

Key Results

CDE significantly outperformed existing methods across nearly all metrics. As shown in the performance comparison below, CDE consistently achieves the highest Accuracy (AC) and Normalized Mutual Information (NMI). For instance, on the Wisconsin dataset, CDE achieved an AC of 0.7321, a substantial improvement over the next best method, SCI, which reached 0.5283.

Table 1: Performance comparison (AC and NMI) on non-overlapping datasets.

Beyond accuracy, the model demonstrated remarkable robustness in overlapping scenarios. In Facebook ego-networks, where individuals belong to multiple social circles, CDE maintained superior F1-scores and Jaccard Similarity. Furthermore, the iterative update rules designed for CDE proved computationally efficient, allowing the model to process the large-scale Flickr dataset (over 700,000 edges) significantly faster than many competing algorithms.

Conclusion and Future Work

CDE demonstrates that edges in a graph are not created equal. By transforming the raw graph into a PMI-based embedding space, the algorithm successfully filters structural noise to reveal latent communities. While the current model is optimized for binary attributes and static snapshots, future research will explore extending this embedding approach to continuous data and dynamic, evolving networks.

Summary updated

BibTeX
@inproceedings{li2018community,
  author = {Ye Li and Chaofeng Sha and Xin Huang and Yanchun Zhang},
  title = {{Community Detection in Attributed Graphs: An Embedding Approach}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11274},
}
Figure