Nonnegative Matrix Tri-Factorization with Graph Regularization for Community Detection in Social Networks

Yulong Pei, Nilanjan Chakraborty, Katia P. SycaraIJCAI 2015

Abstract

Community detection on social media is a classic and challenging task. In this paper, we study the problem of detecting communities by combining social relations and user generated content in social networks. We propose a nonnegative matrix tri-factorization (NMTF) based clustering framework with three types of graph regularization. The NMTF based clustering framework can combine the relations and content seamlessly and the graph regularization can capture user similarity, message similarity and user interaction explicitly. In order to design regularization components, we further exploit user similarity and message similarity in social networks. A unified optimization problem is proposed by integrating the NMTF framework and the graph regularization. Then we derive an iterative learning algorithm for this optimization problem. Extensive experiments are conducted on three real-world data sets and the experimental results demonstrate the effectiveness of the proposed method.

Introduction

Community detection—identifying groups of users who interact more frequently with each other than with outsiders—is a cornerstone of social network analysis. However, researchers face two major hurdles: the sparsity of social relations and the noise inherent in user-generated content. On platforms like Twitter, social links (follows/friends) are often extremely sparse; two users might belong to the same community (e.g., "Data Science") but have no direct link between them. Conversely, user-generated content is messy and full of irrelevant information that can mislead simple text-based clustering.

Existing methods often rely on either relations or content, or combine them using heuristic methods that lack a strong theoretical foundation. This paper bridges this gap with a flexible, mathematically rigorous model that treats relations and content as two sides of the same coin.

Methodology: Fusing Relations and Content

The authors represent social media data as a user-word-message tripartite graph. This structure allows for the simultaneous modeling of who is talking, what they are saying, and the specific messages they produce.

Tripartite graph representation of users, words, and tweets showing how communities are formed around specific topics.

To cluster this graph, the paper proposes a constrained Nonnegative Matrix Tri-Factorization (NMTF) framework. While standard NMF factorizes a matrix into two factors ($X \approx FG^T$), NMTF uses three ($X \approx FSG^T$), providing more flexibility to capture relationships between different entity types (users, words, and messages).

The framework is enhanced with three types of graph regularization:

  1. User Similarity: Encourages similar users to be grouped together.
  2. Message Similarity: Groups messages with similar semantic content.
  3. User Interaction: Explicitly models direct interactions like retweets or mentions.

A novel random walk method on a two-layer graph is used to calculate these similarities, allowing the model to discover latent similarities between users who publish similar content even if they lack direct social links.

Experimental Evaluation

The model was evaluated on three real-world datasets: Politics-UK (413 members of Parliament), Politics-IE (331 Irish politicians), and DBLP (6,604 authors across 4 research fields). Performance was measured using Purity, which quantifies how well detected clusters match ground-truth labels.

Performance comparison (Purity) of the proposed NMTF + regularization method against various baselines across three datasets.

Key Results

  • Superior Performance: The proposed "NMTF + regularization" method consistently outperformed all baselines. It achieved a 7% improvement over the Relational Topic Model (RTM) and a 20% improvement over content-only methods (like K-means or LDA) on the Politics-UK dataset.
  • Signal Strength: Relation-only methods (like Louvain) generally performed better than content-only methods, suggesting social links are a stronger signal for community membership than noisy text.
  • Ablation Success: The full model with regularization performed significantly better than basic NMTF, proving the effectiveness of the specific graph regularization terms in capturing latent network structures.

Conclusion and Future Work

The NMTF framework with graph regularization provides a modular and effective approach to community detection. By fusing social relations with content, it mitigates the weaknesses of using either signal in isolation. Future work will explore incorporating sentiment analysis and designing faster learning algorithms to scale the system for even larger networks.

Summary updated

BibTeX
@inproceedings{pei2015nonnegative,
  author = {Yulong Pei and Nilanjan Chakraborty and Katia P. Sycara},
  title = {{Nonnegative Matrix Tri-Factorization with Graph Regularization for Community Detection in Social Networks}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2015},
  url = {https://openreview.net/forum?id=r1VVc4Mu-B},
}
Figure