Efficient community detection in large networks using content and links

Yiye Ruan, David Fuhry, Srinivasan ParthasarathyWWW 2012

Abstract

Identifying communities within large-scale networks is a fundamental task in network analysis, yet traditional methods often struggle with noisy link data or the high computational cost of incorporating node content. This paper introduces CODICIL (COmmunity Discovery Inferred from Content Information and Link-structure), a framework that fuses network topology with node content to detect communities efficiently. By employing a novel biased edge sampling technique to create a sparse "backbone" graph, CODICIL achieves state-of-the-art accuracy while maintaining the scalability necessary for networks with millions of nodes.

Introduction

Community detection aims to identify groups of nodes that are more densely connected to each other than to the rest of the network. While topological structure (links) is the primary source of information, real-world networks are often plagued by "false positives" (spurious links) and "false negatives" (missing links between related nodes). Node content, such as text in citation networks or tags in social media, offers a powerful means to denoise these structures.

However, existing content-aware methods often rely on complex probabilistic models or iterative clustering that fail to scale. The challenge lies in effectively combining content and links without sacrificing the performance required for massive datasets. Researchers from The Ohio State University addressed this by developing CODICIL, which leverages content to preprocess graphs into a more manageable and accurate form.

The CODICIL Framework

The authors propose CODICIL, a four-step pipeline designed to preprocess a graph into a refined "backbone" that simplifies the clustering task.

The CODICIL pipeline: integrating content and topological information through biased edge sampling.

The process consists of the following stages:

  1. Content Edge Generation: For each node, the algorithm identifies its $k$ most similar neighbors based on content (e.g., using TF-IDF and Cosine similarity), creating "virtual links" between semantically related nodes.
  2. Graph Fusion: The original topological edges $\mathcal{E}_t$ are merged with the newly generated content edges $\mathcal{E}_c$ to form a union graph $\mathcal{E}_u$.
  3. Biased Edge Sampling: To maintain sparsity and remove noise, the algorithm ranks all neighbors for each node using a fused similarity score. It retains only a sublinear fraction of these edges—specifically, the top $\sqrt{|\Gamma_i|}$ edges, where $\Gamma_i$ is the degree of node $i$.
  4. Clustering: The resulting sparse backbone graph is partitioned using standard, high-performance clustering algorithms such as METIS or Markov Clustering (MCL).

By using content to refine the graph structure before clustering, CODICIL allows simple, established tools to perform the heavy lifting of community detection.

Experimental Evaluation

The effectiveness of CODICIL was evaluated across three real-world datasets of varying scales:

  • CiteSeer: A citation network of 3,312 nodes using paper text as content.
  • Flickr: A social network of 16,710 nodes using user-applied tags.
  • Wikipedia: A massive network of 3.58 million nodes and 162 million edges, using page text as content to test scalability.

Key Results

  • Performance and Scalability: CODICIL demonstrated remarkable speed. On CiteSeer, it completed sampling and clustering in under one second, compared to 234 seconds for competing methods like PCL-DC. Crucially, it successfully processed the 3.5-million-node Wikipedia dataset, where most other content-aware baselines failed due to memory constraints.
  • Accuracy: Using F-score metrics against ground-truth categories, CODICIL consistently outperformed topology-only methods and matched or exceeded the accuracy of more complex probabilistic models.
  • Denoising Capabilities: A case study on Wikipedia's "Machine Learning" category showed that CODICIL successfully added missing relevant links (e.g., to "neural network") while pruning peripheral noise.

Discussion and Conclusion

CODICIL demonstrates that content information acts as an effective filter for network noise. The sublinear sampling strategy ensures that the graph remains connected while drastically reducing edge count, which is the key to its scalability.

While the framework is currently optimized for disjoint communities in undirected graphs, its "clustering-agnostic" nature suggests it could be extended to overlapping community detection. Future work may also explore adapting the biased sampling logic for directed networks, such as web links or citation flows.

Summary updated

BibTeX
@inproceedings{ruan2012efficient,
  author = {Yiye Ruan and David Fuhry and Srinivasan Parthasarathy},
  title = {{Efficient community detection in large networks using content and links}},
  booktitle = {The Web Conference},
  year = {2012},
  doi = {10.1145/2488388.2488483},
}
Figure