Abstract
Different from the traditional recommender system, the session-based recommender system introduces the concept of the session, i.e., a sequence of interactions between a user and multiple items within a period, to preserve the user's recent interest. The existing work on the session-based recommender system mainly relies on mining sequential patterns within individual sessions, which are not expressive enough to capture more complicated dependency relationships among items. In addition, it does not consider the cross-session information due to the anonymity of the session data, where the linkage between different sessions is prevented. In this paper, we solve these problems with the graph neural networks technique. First, each session is represented as a graph rather than a linear sequence structure, based on which a novel Full Graph Neural Network (FGNN) is proposed to learn complicated item dependency. To exploit and incorporate cross-session information in the individual session's representation learning, we further construct a Broadly Connected Session (BCS) graph to link different sessions and a novel Mask-Readout function to improve session embedding based on the BCS graph. Extensive experiments have been conducted on two e-commerce benchmark datasets, i.e., Yoochoose and Diginetica, and the experimental results demonstrate the superiority of our proposal through comparisons with state-of-the-art session-based recommender models.
Introduction
Session-based Recommender Systems (SBRS) are critical for platforms where user identity is often anonymous, requiring the system to predict the next interaction based solely on a short sequence of clicks. Traditional approaches often treat these sessions as linear sequences using Recurrent Neural Networks (RNNs). However, this linear modeling fails to capture complex, non-sequential dependencies between items. Furthermore, because sessions are typically treated as isolated "islands," models miss out on valuable cross-session information—patterns of item relationships that exist across the entire dataset.
Motivation: The Hidden Links in Anonymous Data
A core challenge in SBRS is the lack of explicit user IDs to link sessions. However, the authors posit that anonymous sessions are not truly isolated. By performing a Pearson correlation analysis on sessions that share at least one common item, they discovered a strong positive correlation in item preferences.
As shown in the figure above, the average correlation coefficient is 0.43, suggesting that cross-session information is a rich, untapped resource for improving recommendation accuracy even without user identity tracking.
The FGNN-BCS Framework
To address these limitations, the authors propose the Full Graph Neural Network (FGNN) with Broadly Connected Sessions (BCS). The framework moves beyond linear sequences by transforming each session into a weighted directed graph.
Key Components:
- Session-to-Graph Transformation: Sessions are modeled as graphs to capture complex patterns, such as users toggling between two items.
- Weighted Graph Attentional Layer (WGAT): This layer explicitly incorporates edge weights (transition frequency) and directions to learn nuanced item embeddings.
- Broadly Connected Session (BCS) Graph: To solve the "Island" problem, a Global Graph is constructed from all training data. For any given session, the model samples $n$-hop neighbors from this global context, allowing the current session to "borrow" knowledge from related sessions.
- Mask-Readout Function: To prevent global noise from overwhelming the user's specific current intent, the Mask-Readout function allows the model to learn from the expanded BCS graph during feature extraction but "masks out" external neighbor nodes during the final session embedding phase.
Experimental Results
The model was evaluated on two benchmark datasets: Yoochoose (RecSys Challenge 2015) and Diginetica (CIKM Cup 2016). The FGNN-BCS model consistently outperformed state-of-the-art baselines like NARM, STAMP, and SR-GNN.
- Performance Gains: On the Diginetica dataset, FGNN-BCS achieved a Recall@20 of 51.67% and an MRR@20 of 18.69%, significantly higher than the previous graph-based leader, SR-GNN (50.73% and 17.59%).
- Impact of Cross-Session Info: Versions of the model utilizing the BCS graph consistently outperformed those restricted to individual session graphs, validating the importance of global context.
- Short Session Robustness: The model showed particular strength in sessions with five or fewer items, which are traditionally the most difficult to predict accurately.
Conclusion and Future Work
By representing sessions as graphs and bridging the gap between isolated sessions via a global graph, FGNN-BCS sets a new standard for session-based recommendation. While the current model finds a performance peak at 2 or 3-hop neighbors due to the "shallow GNN" problem, future work may explore more sophisticated sampling strategies or deeper architectures to further refine the extraction of global patterns while minimizing computational overhead.
Summary updated