Introduction
Session-based recommendation (SBR) is a critical task in e-commerce, aiming to predict a user's next interaction based on a short-term sequence of actions within a single session. While traditional models often simplify this by treating all interactions as uniform "clicks," real-world user behavior is inherently multi-faceted, involving clicks, favorites, and purchases. The Multi-behavior Graph Contextual Aware Network (MGCNet) addresses this complexity by modeling multiple behavior types simultaneously and leveraging global transition patterns through a context-aware lens.
Problem Statement
Existing SBR research faces three primary challenges:
- Single-target Limitation: Most models are optimized for a single behavior type (e.g., clicking), failing to adapt when the target interaction changes (e.g., predicting a purchase).
- Neglect of Next-Behavior Semantics: The specific type of the next action is a strong indicator of intent, yet it is rarely modeled as a predictive signal.
- Global Graph Noise: While global graphs capture transitions across all users, they often introduce irrelevant information that does not align with the specific intent of a current session.
Methodology
MGCNet introduces a comprehensive framework to tackle these issues through four integrated components:
1. Heterogeneous Global Graph
The model constructs a global graph where items serve as nodes and edges represent transitions. Unlike homogeneous graphs, these edges are labeled with behavior patterns (e.g., click-to-buy), preserving the semantic richness of user journeys across the entire dataset.
2. Behavioral Context-Aware Attention (BCAN)
To mitigate noise from the global graph, the BCAN layer uses the local session context—processed via a Gated Recurrent Unit (GRU)—to filter global information. This ensures that only relevant global transitions are incorporated into the item representations for the current session.
3. Multiplex Behavior Session Modeling
This module captures the user's evolving intent by combining item embeddings, behavior types, and positional information (using reversed positions to emphasize recent actions). It balances the user's general historical interest with their immediate current intention.
4. Joint Predictor
MGCNet employs a dual-task prediction strategy. It first predicts the next behavior type (e.g., click vs. purchase). This predicted behavior then serves as a contextual guide to refine the prediction of the next item, creating a more precise recommendation.
Experimental Setup
The model was evaluated on two benchmark datasets:
- Yoochoose: A standard RecSys dataset containing click and buy events.
- Tmall: A complex dataset featuring click, add-to-favorite, and buy interactions. Standard preprocessing was applied, filtering for sessions with at least two items and removing infrequent items to ensure robust evaluation.
Key Results and Analysis
MGCNet demonstrates superior performance over state-of-the-art baselines, including GNN-based models (SRGNN) and existing multi-behavior frameworks (MKM-SR).
On the Tmall dataset, MGCNet achieved a Hit Ratio (HR@20) of 32.63% for clicks and 63.15% for purchases. As shown in the figure above, MGCNet consistently outperforms the MKMSR baseline across various session lengths for all behavior types (click, purchase, and favorite).
Furthermore, the model's ability to predict the next behavior type is a significant contributor to its success. It achieves over 93% recall for clicks and approximately 68-72% recall for more sparse actions like purchases and favorites. Ablation studies confirmed that both the heterogeneous global graph and the context-aware attention mechanism are vital for maintaining high accuracy.
Conclusion
MGCNet represents a significant step forward in session-based recommendation by explicitly modeling the multi-behavioral nature of user sessions. By predicting the next behavior type and using local context to filter global knowledge, the framework provides more accurate and intent-aware recommendations. Future work may involve incorporating more granular side information, such as item categories and brands, to further enhance contextual understanding.
Summary updated