Introduction
Session-based Social Recommendation (SSR) is a critical task in personalized recommendation, aiming to predict a user's next interaction by leveraging their current session, historical behavior, and social network. However, existing SSR models often struggle with two primary challenges: the "Noisy Friend" problem and underutilized personalization. Many models treat all social ties and historical interactions as equally relevant, leading to biased predictions from noisy data. Furthermore, user identity is often treated as an afterthought, preventing the model from deeply contextualizing sessions through a user's specific long-term preferences.
Methods: The SSAN Architecture
The proposed Social-aware Sparse Attention Network (SSAN) addresses these issues through two main modules: the Heterogeneous Graph Embedding (HGE) and the Social-aware Encoder-decoder Network (SEN).
Heterogeneous Graph Embedding (HGE)
The HGE module constructs a complex graph representing User-User (social), User-Item (history), and Item-Item (transitions) relationships. To combat noise, HGE employs a threshold-based filtering mechanism. Connections with attention weights below a specific value ($\beta$) are pruned, forcing the model to focus on high-confidence social ties and key historical interactions.
Social-aware Encoder-decoder Network (SEN)
The SEN module processes the current session using two key innovations:
- Sparse Attention ($\alpha$-entmax): Unlike standard softmax, which assigns non-zero weights to all items, $\alpha$-entmax can assign weights of exactly zero to irrelevant items, effectively denoising the session data.
- User Information Fusing: SEN integrates enhanced user representations from the HGE module directly into the encoder-decoder process. By fusing long-term preferences with short-term intent before decoding, the model ensures the session analysis is fully "socially aware."
Experimental Results
The model was evaluated on two real-world datasets: Gowalla (location-based check-ins) and Delicious (social bookmarking). SSAN was compared against a wide range of baselines, including non-social models (e.g., SR-GNN) and state-of-the-art social models (e.g., SERec).
Key Findings
- Superior Performance: SSAN consistently outperformed all baselines across metrics such as Hit Ratio (H@K), Mean Reciprocal Rank (M@K), and NDCG (N@K). Notably, on the Delicious dataset, SSAN improved MRR@10 by over 10% compared to the previous state-of-the-art.
- Sparsity Benefits: The results confirm that intentionally ignoring low-confidence data via sparse attention and thresholding leads to higher accuracy.
- Efficiency: Despite the complexity of the HGE module, SSAN maintains competitive inference times, making it suitable for real-world deployment.
Conclusion
SSAN demonstrates that "more data" is not always better in social recommendation. By employing sparse attention and graph pruning, the model effectively filters out noise from social networks and historical sessions. Future work will explore more sophisticated noise-filtering techniques, such as contrastive learning, to further refine the judgment of social influence.
Summary updated