SocialRec: User Activity Based Post Weighted Dynamic Personalized Post Recommendation System in Social Media

Md Jahangir Alam, Ismail Hossain, Sai Puppala, Md Jahangir Alam 0003, Sajedul TalukderarXiv 2024 · DOI

Abstract

Social media platforms struggle with the "cold-start" problem and data sparsity when delivering personalized content. This paper introduces SocialRec, a hybrid recommendation framework that dynamically weights user demographics, post history, and multi-tiered engagement metrics (e.g., likes vs. shares). By fusing traditional Matrix Factorization with a Neural Matrix Factorization (NeuMF) architecture—combining linear and non-linear modeling—SocialRec provides highly accurate recommendations even for new users. Experimental results on synthetic and survey data demonstrate a Hit Rate of 0.80 and an NDCG of 0.60, outperforming standalone models.

Introduction

The modern social media experience is defined by the "feed," yet platforms face significant challenges in content discovery. Traditional Collaborative Filtering and Content-Based Filtering often fail when interaction data is sparse or when new users join the platform (the cold-start problem). Furthermore, these systems frequently treat all user interactions as equal, ignoring the fact that a "share" or a "comment" indicates a much stronger preference than a simple "like."

The SocialRec Framework

SocialRec addresses these limitations by integrating three distinct data streams into a unified recommendation engine.

Figure 1: The SocialRec system architecture, illustrating the fusion of user demographics, history, and engagement signals into a final recommendation score.

The system operates through several key components:

  1. Weighted Dynamic Demographics: Unlike static models, SocialRec calculates weights for demographic attributes (age, gender, occupation) based on their correlation with specific content categories.
  2. Hybrid Matrix Factorization: The system generates separate interaction matrices for user history ($R_{dh}$) and user engagement ($R_e$). These are aggregated to form a holistic user profile, $R_{dhe}$.
  3. Engagement Weighting: Interactions are not binary. The model assigns higher weights to high-intent actions like sharing or commenting compared to passive reactions.

Neural Matrix Factorization (NeuMF)

At the heart of SocialRec is the Neural Matrix Factorization (NeuMF) layer. This architecture is designed to capture both linear and complex non-linear relationships between users and posts.

Figure 3: The NeuMF architecture, combining Generalized Matrix Factorization (GMF) for linear patterns and a Multi-Layer Perceptron (MLP) for non-linear behavior modeling.

As shown in Figure 3, the model fuses:

  • Generalized Matrix Factorization (GMF): Uses an element-wise product of user and item latent vectors to model linear interactions.
  • Multi-Layer Perceptron (MLP): Employs standard neural layers with ReLU activation to learn deep, non-linear patterns in user behavior.

The final output is a predicted score $\hat{r}_{up}$, which is trained against actual target interactions using log loss.

Results and Discussion

The authors evaluated SocialRec using a synthetic dataset of 500 users and 2,000 posts, supplemented by survey data to calibrate demographic weights. Performance was measured using Hit Rate (HR) and Normalized Discounted Cumulative Gain (NDCG).

The hybrid NeuMF model achieved an HR of 0.80 and an NDCG of 0.60, significantly outperforming individual GMF and MLP components. Crucially, the system demonstrated effective cold-start mitigation; by leveraging weighted demographic similarity, it could generate functional recommendations for users with zero prior history.

Conclusion

SocialRec represents a significant step toward more nuanced social media recommendations. By treating demographics as dynamic features and weighting engagement by intensity, the system provides a more accurate reflection of user intent. Future work will focus on scaling the model to real-world datasets and incorporating temporal dynamics to account for shifting user interests over time.

Summary updated

BibTeX
@misc{alam2024socialrec,
  author = {Md Jahangir Alam and Ismail Hossain and Sai Puppala and Md Jahangir Alam and Sajedul Talukder},
  title = {{SocialRec: User Activity Based Post Weighted Dynamic Personalized Post Recommendation System in Social Media}},
  year = {2024},
  eprint = {2407.09747},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.09747},
}
Figure