Incorporating Implicit Link Preference Into Overlapping Community Detection

Hongyi Zhang, Irwin King, Michael R. Lyu

Abstract

Traditional Nonnegative Matrix Factorization (NMF) for community detection often suffers from the "indiscriminate penalty" problem, where the model is penalized for predicting high affinity between non-linked nodes even if they belong to the same community. This paper introduces Preference-based Nonnegative Matrix Factorization (PNMF), a novel approach that shifts the focus from approximating absolute link values to modeling implicit link preferences. By treating a node’s neighbors as "preferred" over its non-neighbors, PNMF avoids traditional pitfalls and achieves state-of-the-art accuracy and scalability on networks with over a million nodes.

1. Introduction

In network science, community detection is essential for understanding the structural organization of nodes, such as individuals in social networks or proteins in biological systems. Most real-world communities are overlapping, meaning nodes often belong to multiple groups simultaneously. While NMF is a standard tool for identifying these overlaps, it typically attempts to approximate the network's adjacency matrix $G$ directly.

The authors identify a critical flaw in this approach: the indiscriminate penalty problem. In traditional NMF, if two nodes $i$ and $j$ are in the same community but lack a direct link, the model is penalized for assigning them a high affinity score. This forces the model to match the "0" in the adjacency matrix exactly, losing the nuanced structural information that defines a community. PNMF addresses this by prioritizing the relative ranking of ties over their absolute values.

2. Methodology

PNMF borrows the concept of Bayesian Personalized Ranking (BPR) from recommender systems. Instead of regression (predicting link existence), PNMF focuses on relative preference.

2.1 Preference Likelihood and Sigmoid Modeling

For any node $i$, the model assumes $i$ "prefers" its actual neighbors ($j \in N^+(i)$) over its non-neighbors ($k \in N^-(i)$). The objective is to maximize the likelihood that the affinity score for a neighbor is higher than for a non-neighbor. This probability is modeled using a sigmoid function of the difference between their community membership dot products: $$p(j >_i k | F) = \sigma(F_i \cdot F_j^T - F_i \cdot F_k^T)$$

2.2 Stochastic Learning and Scalability

To ensure scalability, the authors employ Stochastic Gradient Descent (SGD) with bootstrap sampling. In each iteration, the algorithm randomly selects a "triple" (node $i$, neighbor $j$, and non-neighbor $k$) to update the community membership matrix $F$. This approach ensures that complexity depends on the number of links ($m$) rather than the total number of possible pairs ($n^2$), enabling the processing of massive datasets.

3. Experimental Evaluation

The model was evaluated on 12 diverse datasets, including small-to-medium networks from the UMich collection (e.g., Dolphins, American College Football) and large-scale SNAP datasets with ground-truth communities (DBLP, Amazon, and YouTube).

4. Results and Discussion

PNMF demonstrated superior performance across both small and large networks. On the UMich datasets, it outperformed five state-of-the-art baselines in terms of Modularity in the majority of cases. On large-scale datasets like DBLP and YouTube, PNMF achieved the highest F1 scores, proving its effectiveness in recovering ground-truth community structures.

Performance comparison of PNMF against baseline methods across various datasets using Modularity (M) and F1 score.

Furthermore, PNMF exhibited excellent scalability and convergence properties. It successfully processed the YouTube dataset (over 1.1 million nodes), a task that several baseline NMF methods could not complete due to memory constraints. Analysis of the loss function shows that the model converges rapidly, with significant loss reduction occurring within the first 20% of iterations.

Convergence of PNMF on large-scale SNAP datasets (Amazon, DBLP, and YouTube).

5. Conclusion

By reframing community detection as a ranking problem rather than a regression problem, PNMF effectively overcomes the indiscriminate penalty problem of traditional NMF. The method is both accurate and highly scalable. Future work aims to incorporate "common neighbor" information to further refine the ranking system, distinguishing between different levels of non-neighbors based on shared connections.

Summary updated

BibTeX
@inproceedings{zhang2015incorporating,
  author = {Hongyi Zhang and Irwin King and Michael R. Lyu},
  title = {{Incorporating Implicit Link Preference Into Overlapping Community Detection}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9155},
}
Figure