Session-based Social Recommendation via Dynamic Graph Attention Networks

Weiping Song, Zhiping Xiao, Yifan Wang, Laurent Charlin, Ming Zhang, Jian Tang · DOI

TL;DR

This paper introduces DGREC, a novel recommender system for online communities that tackles the challenge of dynamic user interests and context-dependent social influences. By combining recurrent neural networks for user behavior with graph attention networks for social influence, DGREC dynamically identifies influential friends based on a user's current interests, leading to more accurate recommendations.

What Problem Does This Paper Address?

Recommending relevant content in online communities like Facebook and Twitter is crucial for user engagement. However, this is a complex task due to two main challenges:

  1. Dynamic User Interests: A user's preferences aren't static; they evolve over time. For example, someone interested in sports might later shift to music.
  2. Social Influence: Users are influenced by their friends' choices. This influence can also be dynamic and context-dependent. For instance, when looking for a comedy movie, a user might be influenced by friends who like comedies, but for an action movie, a different set of friends might be more influential.

Existing recommender systems often struggle to model both these aspects simultaneously. Some focus on dynamic interests but ignore social influence, while others model social influence statically, failing to capture its context-dependent nature. This paper aims to bridge this gap by proposing a model that effectively integrates both dynamic user interests and context-dependent social influences for session-based recommendations.

Methods

The core of the proposed system, DGREC (Dynamic Graph Recommendation), is built upon a dynamic-graph-attention neural network. Here's a breakdown of its key components:

  • Dynamic Individual Interests: To capture a user's evolving interests within a specific browsing session, the paper employs a Recurrent Neural Network (RNN), specifically a Long Short-Term Memory (LSTM) unit. This RNN models the sequence of items a user interacts with, generating a representation of their current session-based interests.
  • Representing Friends' Interests: The model considers two types of social influence:
  • Short-term preference: This is modeled using an RNN on the friend's most recently consumed items, similar to how the target user's session is modeled.
  • Long-term preference: This is represented by a learned individual embedding for each friend, capturing their general, time-invariant interests. These short-term and long-term preferences are then combined.

  • Context-dependent Social Influences: This is the most novel aspect. The system uses a Graph Attention Network (GAT) to dynamically infer which friends are influential for a user's current session.

  • A graph is constructed where nodes represent the target user and their friends.
  • The GAT uses an attention mechanism to assign different weights (influences) to each friend based on the target user's current interests (derived from the RNN). This allows the model to learn which friends are most relevant for a particular context.
  • The GAT propagates information through the graph, allowing the model to consider not just direct friends but also friends of friends (higher-order influences) up to a certain depth.
  • Recommendation Generation: Finally, the user's dynamic individual interest representation and the context-dependent social influence representation are combined to generate the final user representation. This representation is then used with a softmax layer to predict the probability of the next item the user might be interested in.

Datasets

The authors evaluated their model on three real-world datasets:

  • Douban: A platform for reviewing movies, music, and books. User behaviors (movie reviews) were segmented into week-long sessions.
  • Delicious: A bookmarking system where users assign tags to bookmarks. Sessions were defined as sequences of tags assigned to a bookmark.
  • Yelp: A review platform for local businesses. User reviews were segmented into month-long sessions.

Key Insights and Ideas

  • Context is King for Social Influence: The most significant insight is that social influence is not a one-size-fits-all phenomenon. The model's ability to dynamically weigh friend influences based on the user's current interests is crucial for effective recommendations.
  • Short-term Interests Dominate in Dynamic Environments: For rapidly changing environments like Douban, friends' short-term interests proved more predictive than their long-term preferences. This highlights the importance of capturing immediate trends.
  • Higher-Order Friends Matter (Up to a Point): Using multiple layers in the graph convolutional network (two layers in this case) was beneficial, indicating that influences from friends-of-friends can be valuable. However, adding too many layers didn't improve performance and sometimes led to degradation, suggesting potential overfitting or noise from distant connections.
  • Attention Mechanism is Key: The attention mechanism in the GAT was shown to be superior to simpler aggregation methods (like averaging or max-pooling) for social influence, demonstrating its effectiveness in selectively leveraging friend information.

Key Results

  • Superior Performance: DGREC significantly outperformed all seven baselines across all three datasets and both evaluation metrics (Recall@20 and NDCG).
  • Ablation Studies:
    • DGRECself (user interests only) performed better than DGRECsocial (social influence only), indicating that individual interests are generally more impactful. However, both DGRECself and DGRECsocial performed significantly worse than the full DGREC model, underscoring the necessity of combining both.
  • For Douban, friends' short-term interests were more predictive than long-term interests. For Delicious, the results were comparable, suggesting that the nature of the platform (static vs. dynamic interests) influences the relative importance of short-term vs. long-term social signals.
  • Attention Weights Vary: The analysis of attention weights revealed that users indeed attend to different friends across different sessions, confirming the context-dependent nature of social influence.

Limitations and Future Work

  • Session Segmentation: The paper acknowledges that optimizing session segmentation is an area for future work, as different segmentation strategies might impact performance.
  • User and Item Features: The authors suggest exploring user and item features that are indicative of preferences as a next step to further improve the model.
  • Scalability: While the paper mentions the model can be efficiently fit on large-scale data, further investigation into its scalability and potential optimizations for extremely large graphs could be beneficial.
  • Dynamic Social Networks: The current model assumes a static social network structure within a session. Future work could explore how dynamic changes in the social graph itself might influence recommendations.

Summary updated

BibTeX
@inproceedings{song2019session,
  author = {Weiping Song and Zhiping Xiao and Yifan Wang and Laurent Charlin and Ming Zhang and Jian Tang},
  title = {{Session-based Social Recommendation via Dynamic Graph Attention Networks}},
  booktitle = {WSDM},
  year = {2019},
  doi = {10.1145/3289600.3290989},
}
Figure