Abstract
With the rising popularity of social networks and service recommendations, research on new methods of friend recommendation have become a key topic, especially when based on quality-driven resource processing in an edge computing environment. Traditional methods seldom systematically combine static attributes (e.g., interests, geographical locations, and common friends), dynamic behaviors (e.g., liking, making comments, forwarding and @), and network structures (e.g., social ties) to recommend a new friend to a target user. Meanwhile, with the advent of deep learning, it has become more challenging to integrate these features into a deep neural network framework for friend recommendation. In this paper, we propose DFRec++, a hybrid deep neural network framework combining attribute attention and network embeddings to make social friend recommendations with the help of both interactive semantics and contextual enhancement. More specifically, we first utilize the latent dirichlet allocation (LDA) topic model to generate common interest topics between users and compute the similarity of the explicit static attribute vector representation of topics, locations, and common friends. Then we feed dynamic behavior attributes into a convolutional neural network (CNN) to obtain the implicit vector representation of the interactions and context between two users. Subsequently, a multi-attention mechanism is designed to further improve the deep vector representation of the attribute information. Next, the LINE-based network embeddings algorithm is applied to embed the network structure into a low-dimensional vector. Finally, the attribute attention vector and the network embeddings are concatenated to form a deep feature representation, which is subsequently fed to a fully connected neural network (FCNN) to capture the probability of friendship between two users. The output of FCNN indicates the probability of two users becoming friends. We conducted experiments on a real-world Weibo dataset and the results show that DFRec++ outperforms several existing methods.
Introduction
Friend recommendation is a cornerstone of modern social networks. However, most existing systems are limited by a "one-sided" focus, typically modeling either static user attributes, dynamic interaction behaviors, or network topology in isolation. Integrating these heterogeneous data sources into a cohesive deep learning model is challenging due to data sparsity in static profiles, high dimensionality in dynamic behaviors, and the massive scale of social graphs.
In the context of edge computing—where low-latency processing is critical—there is a need for frameworks that can efficiently extract high-quality features from these diverse streams. This paper introduces DFRec++, a hybrid framework that fuses these three data dimensions to provide timely and relevant recommendations.
Methodology: The DFRec++ Architecture
The DFRec++ framework functions as a sophisticated feature-fusion pipeline designed to capture the nuances of social bonding.
Static Attribute Processing
To handle static data, the model utilizes Latent Dirichlet Allocation (LDA) to extract interest topics from user posts. This allows the system to identify shared interests that may not be explicitly stated in a user profile. Additionally, the model calculates explicit similarities based on geographical location and common friends.
Dynamic Behavior and Network Structure
User interactions—such as liking, commenting, forwarding, and @ mentions—are mapped into a matrix and processed via a Convolutional Neural Network (CNN). This captures the implicit semantics of how users interact over time. Simultaneously, the LINE (Large-scale Information Network Embedding) algorithm compresses the global social graph into low-dimensional vectors, preserving both local and global community structures.
Feature Fusion and Attention
A core innovation of DFRec++ is the multi-attention mechanism. This layer refines the representations of both users, ensuring that the most relevant shared interests and behaviors are prioritized during the recommendation process. Finally, all features are concatenated and passed through a Fully Connected Neural Network (FCNN) with a Sigmoid output to predict the probability of a friendship forming.
Experimental Evaluation
The model was evaluated using a massive real-world dataset from Weibo, consisting of 1.8 million users. After preprocessing to remove low-activity users (approximately 7% of the dataset), the model was tested against eight baseline methods, including Collaborative Filtering and Bayesian models like CVAE.
Key Results
DFRec++ outperformed all baselines across major metrics:
- Precision (P@5): Achieved 0.813, surpassing the next best model (TBDM at 0.791).
- Recall: Reached 0.921, significantly outperforming neighbor-based approaches (~0.584).
- AUC: The model demonstrated high stability and superior accuracy compared to traditional methods.
Analysis of the results revealed that active interactions, such as making comments and @ mentions, are far stronger predictors of friendship than passive actions like "liking." Furthermore, the study found that a depth of three hidden layers provided the "Goldilocks" zone for performance, as deeper networks led to overfitting.
Conclusion
DFRec++ demonstrates that the synergy between user attributes and network structure is key to high-quality recommendations. By automating feature engineering through attention mechanisms, the framework reduces the need for manual feature selection while improving robustness. Future work will focus on streamlining the multi-stage pipeline for better optimization on low-power edge devices.
Summary updated