From Community Detection to Community Profiling

HongYun Cai, Vincent Wenchen Zheng, Fanwei Zhu, Kevin Chen-Chuan Chang, Zi Huang

TL;DR

Standard community detection tells you who belongs to a group, but fails to explain what the community cares about or how it interacts with others. This paper introduces the Community Profiling and Detection (CPD) model, a unified generative framework that jointly learns user community memberships, internal topic profiles, and external cross-community diffusion profiles while scaling linearly with network size.

What Problem Does This Paper Address?

Traditional community detection algorithms cluster nodes based purely on network topology (e.g., finding dense subgraphs with low conductance). However, knowing a user's community assignment alone cannot answer questions like: Which community should an advertiser target for a given product? or How does information flow between machine learning and software engineering researchers?

A naive workaround—running community detection first and then aggregating member text and interactions post-hoc—fails because the detection step cannot leverage topical context to resolve ambiguous ties. Furthermore, modeling real-world networks requires overcoming three major hurdles:

  1. Inter-dependency: Detecting community membership and inferring community profiles inherently depend on each other.
  2. Link Heterogeneity: Friendship/co-authorship links are typically dense within communities, whereas diffusion links (e.g., retweets, citations) frequently cross community boundaries via "weak ties."
  3. Behavioral Nonconformity: A user's diffusion behavior is not dictated solely by community norms; individual user popularity and time-sensitive topic trends also play significant roles.

Methods

The authors frame joint profiling and detection as a unified probabilistic graphical model:

[Friendship Links (Dense / Low Conductance)] <--- [User Community Memberships π]
                                                         |
                                                         v
[Documents / Words] <--- [Internal Profile θ] <--- [Document Topics z]
                                                         |
                                                         v
[Diffusion Links]   <--- [External Profile η] + [Topic Trends] + [User Activeness/Popularity]
  • Dual Profiling:
  • Internal Content Profile ($\theta_c$): A multinomial distribution over topics for each community $c$.
  • External Diffusion Profile ($\eta_c$): A matrix capturing the probability of community $c$ diffusing information to community $c'$ conditioned on topic $z$.
  • Heterogeneous Link Formulations: Friendship links are modeled via a sigmoid of membership similarity $\sigma(\hat{\pi}_u^T \hat{\pi}_v)$ to enforce low conductance. Diffusion links are modeled using a logistic function combining three distinct signals: topic-aware community diffusion strength, time-varying topic popularity ($n_z^t$), and individual user features (ratio of followers/followees and retweet activity).
  • Scalable Inference: Because logistic functions lack standard Dirichlet-multinomial conjugacy, the authors apply Pólya-Gamma data augmentation within a collapsed Gibbs sampling framework (variational EM).
  • Workload-Balanced Parallelization: To parallelize the E-step across multi-core CPUs without memory contention, data is partitioned by dominant topics (via LDA) and allocated to worker threads by solving a 0-1 knapsack problem.

Datasets

The authors evaluated CPD on two large-scale, real-world networks:

  • Twitter: 137,325 users, ~3.59M followership links, 992,522 retweet links, ~39.95M tweets, and ~2.32M vocabulary size.
  • DBLP: 916,907 authors, ~3.06M co-authorship links, ~10.21M citation links, ~4.12M paper titles, and 330,334 vocabulary size.

Both datasets were preprocessed with standard stop-word removal, stemming, and POS tagging (retaining nouns, verbs, and hashtags).

Key Insights and Ideas

  • Joint Learning Matters: Optimizing community assignment and community profiles simultaneously yields dramatically lower perplexity than two-stage pipelines (detect-then-aggregate), proving that topic signals help partition communities more accurately.
  • Diffusions Don't Obey Conductance: Forcing citation or retweet graphs into standard community detection assumptions harms accuracy. Cross-community interaction is often robust when specialized domains rely on foundational research from others (e.g., software engineering communities citing machine learning papers on deep learning).
  • Accounting for Nonconformity Protects Profiles: Separating out individual popularity (e.g., celebrities on Twitter) and global topic bursts prevents the model from polluting community-level diffusion matrices with outlier behaviors.

Key Results

  • Diffusion Prediction: On link prediction AUC with $|C|=100$, CPD achieved a 24.2%–91.6% relative improvement on Twitter and 5.1%–108.0% on DBLP compared to state-of-the-art baselines (COLD, CRM, WTM, PMTLM).
  • Community Ranking: Evaluated on Mean Average F1 (MAF@5) for retrieving communities likely to diffuse specific query terms, CPD outperformed baselines by 27.6%–92.0% (Twitter) and 35.4%–150.8% (DBLP).
  • Detection Quality & Perplexity: CPD achieved both lower conductance and higher link-prediction AUC than competing detectors, alongside drastically reduced document perplexity (e.g., ~3,801 vs. >420,000 for COLD+Agg on Twitter at $|C|=100$).
  • Linear Scalability: Per-iteration execution time scaled linearly with document and link counts, achieving an 8-core speedup of up to 4.5× on Twitter and 5.7× on DBLP.

Limitations and Future Work

  • Document Length Assumption: CPD assumes each document addresses a single dominant topic, which holds well for microblogs and paper titles, but breaks down for long-form documents.
  • Feature Scope: The external profile relies primarily on text content and explicit interaction links; user demographics, tabular attributes, and sentiment are not yet incorporated.
  • Distributed Computing: While multi-threaded parallelization on a single machine is implemented, distributed multi-node parallelization (e.g., via parameter servers or Spark) remains future work.

Summary updated

BibTeX
@article{cai2017from,
  author = {HongYun Cai and Vincent Wenchen Zheng and Fanwei Zhu and Kevin Chen-Chuan Chang and Zi Huang},
  title = {{From Community Detection to Community Profiling}},
  journal = {Proc. VLDB Endow.},
  year = {2017},
  url = {https://openreview.net/forum?id=LkNkJ0t2rNB},
}
Figure