Friendship Prediction in Composite Social Networks

Erheng Zhong, Evan Wei Xiang, Wei Fan, Nathan Nan Liu, Qiang Yang · DOI

Abstract

Friendship prediction is a critical task in social network analysis (SNA), helping users identify potential connections and increasing platform activity. However, data sparsity—especially in new or niche networks—often leads to overfitting and poor performance in traditional models. This paper introduces ComFP (Composite Friendship Prediction), a hierarchical Bayesian model that leverages "composite" social networks. By identifying overlapping users across multiple platforms, ComFP transfers friendship knowledge from data-rich networks to sparse ones. Unlike naive merging, ComFP extracts common behaviors while respecting network-specific properties. Empirical results across nine real-world datasets show significant improvements in Mean Average Precision (MAP), particularly for "long-tail" users with few existing connections.

Introduction: The Sparsity Challenge

Predicting future links in a social graph is essential for recommendation systems. Yet, most users have limited friends in any single network, creating a "sparsity problem." This is most acute when a network is in its infancy. While a user might be inactive on a new platform, they often possess a rich social history elsewhere (e.g., Facebook, Twitter, or GitHub). These overlapping memberships form a "composite" network.

The challenge lies in how to integrate this cross-network data. A simple union of all edges (naive merging) often fails because different platforms serve different purposes—professional networking on LinkedIn differs structurally from visual sharing on Instagram. Naive integration can introduce noise and "negative transfer," where the unique properties of one network degrade prediction accuracy in another.

The ComFP Framework

To address these issues, the authors propose ComFP, which extends the Mixed Membership Stochastic Blockmodel (MMSB). In a standard MMSB, users are represented by a distribution over various "roles" or communities. ComFP introduces a hierarchical structure to separate global social tendencies from network-specific behaviors.

Comparison of the standard MMSB (a) and the proposed ComFP (b) hierarchical Bayesian models.

As shown in the figure above, ComFP introduces two key components:

  1. Global User Interests ($x_i$): Latent features representing a user's general social profile across all observed platforms.
  2. Network-Specific Mappings ($\lambda_d$): A transformation matrix that adapts global interests to the specific context of network $d$.

This architecture allows the model to recognize that a shared interest (e.g., "gaming") might be a strong predictor of friendship on a gaming forum but irrelevant on a professional site. The model employs Gibbs sampling for community assignments and a combination of L-BFGS and Metropolis-Hastings sampling for parameter estimation.

Empirical Evaluation

The study evaluated ComFP against state-of-the-art baselines using nine diverse real-world datasets, including relational networks (Tencent, Douban) and interaction networks (Facebook, GitHub, StackOverflow).

Visualization of the Tencent-QQ social network, illustrating the complex community structures ComFP aims to model.

These datasets are characterized by overlapping users identifiable via unified IDs. The visualizations (such as the Tencent-QQ network above) highlight the dense community clusters that ComFP must navigate.

Key Results

  • Performance Gains: ComFP consistently outperformed baselines like Tensor Factorization and Multi-Relational Link Prediction, achieving up to a 0.11 improvement in Mean Average Precision (MAP).
  • The Long-Tail Solution: The most dramatic improvements occurred for users with fewer than 10 neighbors. For these "cold-start" users, the ability to pull data from auxiliary networks provided a vital signal that single-network models lacked.
  • Scalability: Computation time scales linearly with the number of links and communities, ensuring the model remains viable for large-scale industrial applications.

Discussion: Why ComFP Works

The success of ComFP stems from its ability to use overlapping users as "bridges." If the model identifies that two users are connected in multiple auxiliary networks, it can predict a link in a target network even with zero prior activity there. Crucially, by modeling network-specific parameters ($\lambda_d$), ComFP avoids the "naive merge trap," ensuring that platform-specific noise does not drown out the cross-network signal.

Conclusion

ComFP represents a significant step forward in multi-network social analysis. By treating social platforms as a composite ecosystem rather than isolated silos, it effectively mitigates the data sparsity problem. Future work will focus on automating "user alignment" (identifying the same user across platforms without explicit IDs) and refining the Bayesian priors to further enhance robustness.

Summary updated

BibTeX
@misc{zhong2014friendship,
  author = {Erheng Zhong and Evan Wei Xiang and Wei Fan and Nathan Nan Liu and Qiang Yang},
  title = {{Friendship Prediction in Composite Social Networks}},
  year = {2014},
  eprint = {1402.4033},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1402.4033},
}
Figure