Abstract
Session-based recommendation (SBR) systems aim to predict a user's next interaction based on a short sequence of activities. Traditional models often struggle with the sparsity of high-value "target" behaviors (e.g., purchases) and a lack of global context across sessions. We propose MGNN-SPred, a framework that constructs a global Multi-Relational Item Graph (MRIG) to capture transitions across all users and behavior types. By utilizing a Graph Neural Network (GNN) for item representation and an adaptive gating mechanism to fuse target and auxiliary behaviors, MGNN-SPred effectively "denoises" user intent. Our evaluation on WeChat and Yoochoose datasets shows that MGNN-SPred significantly outperforms state-of-the-art baselines, achieving a notable MRR@100 of 3.6564 on Yoochoose.
Introduction
Session-based recommendation is a critical task in modern e-commerce and social media platforms. However, most existing models face two major hurdles. First, there is a significant sparsity of high-value actions. We often want to predict "target" behaviors like buying or sharing, but these actions are rare compared to "auxiliary" behaviors like clicking or browsing. Most models ignore these auxiliary signals, missing out on rich context that could help clarify the user's intent.
Second, many models suffer from local vs. global blindness. State-of-the-art models often build a graph for each individual session. While this captures local patterns, it ignores global item-to-item relationships that exist across the entire dataset. To bridge these gaps, we introduce MGNN-SPred (Multi-relational Graph Neural Network for Session-based target behavior Prediction).
Methodology
The MGNN-SPred architecture consists of three main stages designed to leverage both global context and multi-behavior data.
Multi-Relational Item Graph (MRIG)
Instead of per-session graphs, we construct one massive global graph where nodes represent items. Edges represent transitions between items across all sessions in the training set. Critically, these edges are typed: we model "target-forward/backward" edges and "auxiliary-forward/backward" edges. This four-type edge system captures the nuanced "flow" of user interest better than a simple undirected graph.
Global Item Representation
The model uses a Graph Neural Network (GNN) to learn embeddings for every item. By propagating information through the MRIG, an item's representation is informed by how it relates to other items across both behavior types and directions. This allows the model to understand item transitions that haven't appeared in the current session yet.
Adaptive Gating Mechanism
For a specific active session, the model generates two representations: one for the target behavior sequence and one for the auxiliary sequence. Rather than simple summation, an adaptive gating mechanism calculates a weight ($\alpha$) to decide how much to trust each sequence. This allows the model to adapt if a user's clicks are particularly erratic or highly focused, effectively using auxiliary data as a "warm-up" to learn robust embeddings when target behaviors are sparse.
Experimental Evaluation
Datasets
The model was evaluated on two real-world datasets:
- WeChat: A dataset of video interactions where "sharing" is the target behavior and "clicking/viewing" is the auxiliary behavior.
- Yoochoose: A standard RecSys benchmark where "purchasing" is the target and "clicking" is the auxiliary behavior.
Results and Discussion
MGNN-SPred significantly outperformed state-of-the-art baselines like SR-GNN, GC-SAN, and HetGNN across all metrics. On the Yoochoose dataset, the model achieved an MRR@100 of 3.6564, a substantial improvement over the best baseline (HetGNN at 2.9546).
Ablation studies validated that removing auxiliary behavior edges or the gating mechanism led to consistent performance drops. Furthermore, we investigated the impact of GNN depth on performance. We found that a depth of 2 was the "sweet spot"; while depth 0 (no graph info) performed poorly, going beyond 3 led to "over-smoothing," where item representations became too similar to be useful.
Conclusion
MGNN-SPred demonstrates the power of combining global context with multi-behavioral data for session-based recommendation. By modeling global item relationships and intelligently gating auxiliary signals, the model overcomes the sparsity issues inherent in target behavior prediction. Future work will explore more complex sequence models, such as Transformers, and methods to make the global graph more dynamic to handle rapidly changing trends.
Summary updated