TL;DR
This paper introduces MBHT, a novel framework for sequential recommendation that tackles the challenge of modeling diverse user behaviors (like views, adds-to-cart, and purchases) over time. By combining a multi-scale Transformer for short-term patterns with a hypergraph neural network for long-range dependencies, MBHT significantly improves recommendation accuracy.
What Problem Does This Paper Address?
Online platforms like e-commerce sites and video streaming services rely heavily on sequential recommendation systems to predict what users will interact with next. Traditional methods often focus on a single type of user interaction (e.g., just clicks) or model item sequences linearly. However, real-world user behavior is much richer, involving multiple interaction types (view, add-to-cart, purchase) that have complex, time-varying relationships. Existing models struggle to capture these dynamic, heterogeneous relationships, leading to suboptimal recommendations. This paper aims to bridge this gap by explicitly modeling both short-term and long-term dependencies across these diverse user behaviors.
Methods
The MBHT framework is built upon two core components:
- Multi-Scale Transformer for Behavior-Aware Sequential Patterns:
- Behavior-Aware Context Embedding: Each item interaction is enriched with its specific behavior type (e.g., "view," "purchase") and positional information.
- Multi-Scale Transformer: This module uses a Transformer architecture with a novel low-rank self-attention mechanism. This reduces the quadratic complexity of standard self-attention to a more efficient linear complexity, making it scalable for longer sequences. It also incorporates multi-scale temporal dynamics by aggregating patterns at different granularities (short-term and coarse-grained).
- Multi-Head-Enhanced Representation: To capture diverse interaction semantics, the Transformer uses multiple "heads" to attend to different aspects of the sequence in parallel.
- Customized Hypergraph Learning for Global Multi-Behavior Dependencies:
- Item-wise Hypergraph Construction: This component models long-range dependencies. It constructs two types of hypergraphs:
- Item Semantic Dependency Hypergraph: Captures general item relationships using a metric learning framework.
- Item-wise Multi-Behavior Dependency Hypergraph: Models personalized, time-aware dependencies between different behavior types for specific users.
- Hypergraph Convolution Module: This module uses a message-passing mechanism on the constructed hypergraphs to refine item embeddings and capture global, multi-behavior dependencies. The paper also proposes a simplified hypergraph message passing scheme to improve efficiency without significant performance loss.
- Cross-View Aggregation: Finally, the representations from the Transformer (short-term patterns) and the Hypergraph (long-term dependencies) are fused using an attention mechanism to generate the final recommendation.
Datasets
The authors evaluated their MBHT model on three publicly available datasets:
- Taobao: A large e-commerce dataset with four interaction types: purchase (target), add-to-favorites, add-to-cart, and page view (auxiliary).
- Retailrocket: An online shopping dataset with three interaction types: purchase (target), page view, and add-to-cart (auxiliary).
- IJCAI: A dataset from the IJCAI Contest 2015, similar to Taobao with purchase as the target behavior.
Key Insights and Ideas
- Beyond Single Behaviors: The core insight is that modeling user preferences requires understanding the interplay of multiple behavior types, not just one. The sequence of actions (view -> add-to-cart -> purchase) carries richer information than just the purchase itself.
- Multi-Scale Temporal Dynamics: User interests evolve at different time scales (daily, weekly, etc.). Capturing these multi-scale patterns, from fine-grained to coarse-grained, is crucial for accurate recommendations.
- Hypergraphs for Complex Relationships: Hypergraphs are a natural fit for modeling higher-order relationships, which is essential for capturing the complex, non-pairwise dependencies between different behavior types and items over time.
- Personalization is Key: The hypergraph construction is personalized for each user, acknowledging that different users exhibit distinct multi-behavior patterns.
- Efficiency Matters: The paper addresses the computational cost of Transformers and hypergraphs by introducing low-rank self-attention and a simplified hypergraph message passing scheme, making the model more practical.
Key Results
- Superior Performance: MBHT consistently outperforms state-of-the-art baselines across all three datasets and various metrics (HR@N, NDCG@N, MRR). For example, on Taobao, MBHT achieved a significant improvement in HR@5 (0.323 vs. 0.211 for the best baseline BERT4Rec-MB).
- Ablation Studies Validate Components: Removing either the hypergraph component or the multi-scale attention significantly degrades performance, confirming the importance of both modules.
- Robustness to Data Scarcity: MBHT shows strong performance even with shorter item sequences, suggesting it can better handle data sparsity issues compared to other methods.
- Faster Convergence: MBHT demonstrates faster convergence during training compared to many baselines, indicating that its augmented view of user behavior provides better gradient signals.
- Efficiency Gains: The simplified hypergraph message passing scheme significantly reduces training time (e.g., by over 50% on Taobao) with only a minor drop in accuracy.
Limitations and Future Work
- Computational Cost: While the paper introduces efficiency improvements, hypergraph learning can still be computationally intensive, especially for very large datasets. The simplified message passing scheme helps mitigate this.
- Hyperparameter Sensitivity: The performance can be sensitive to hyperparameter choices, particularly for the multi-scale settings and the number of semantic neighbors in the hypergraph.
- Future Work: The authors suggest further exploration of hypergraph structures and multi-behavior modeling, potentially incorporating more complex user-item interaction patterns or external knowledge. The paper also highlights the potential for further optimization of the hypergraph message passing.
Summary updated