Abstract
Session-based recommendation (SBR) aims to predict the next user interaction based on short-term, often anonymous, histories. While existing methods utilize complex recurrent or graph-based architectures, they frequently struggle with inference latency and the "intention gap"—the failure to distinguish between core user intent and noisy interactions. This paper presents the Intention enhanced Mixed Attentive Model (IMAM), which replaces sequential units with a dual-pronged attention mechanism. By integrating position-sensitive temporal patterns with an explicit estimate of user intention, IMAM achieves state-of-the-art performance across six diverse datasets and delivers a significant 47.7x average speedup during inference.
Introduction
Session-based recommendation is a cornerstone of modern e-commerce and content platforms, yet it faces three primary challenges:
- The Recurrence Trap: Sequential models like Gated Recurrent Units (GRUs) are slow to train and struggle with sparse data.
- The Intention Gap: Models often fail to model the underlying why behind a click, treating all interactions with equal weight regardless of their relevance to the user's current goal.
- Scalability: Complex models are difficult to deploy in high-throughput environments.
IMAM addresses these by shifting from heavy recurrence to lightweight, parallelizable attention.
Methodology
IMAM utilizes a two-pronged attentive architecture to capture both temporal order and user intent without the overhead of recurrent units.
Position-Sensitive Preference Prediction (PS)
To retain the chronological importance of clicks without using a GRU, IMAM employs a dot-product attention mechanism integrated with position embeddings. This allows the model to understand that recent clicks typically carry more weight while remaining fully parallelizable.
Intention Enhanced Preference Prediction (IE)
The output of the PS layer serves as a proxy for the user's "prospective preference." A multi-head attention layer then uses this estimate to re-weight items within the session, effectively filtering out noise and focusing on the user's primary intent.
Hybrid Scoring
The final recommendation score is derived from the summation of vectors from both the PS and IE components, allowing temporal patterns and intent estimates to mutually reinforce the prediction.
Experimental Setup
The model was evaluated on six benchmark datasets:
- Diginetica (DG) & Yoochoose (YC): Retail and e-commerce clickstreams.
- Gowalla (GA): Location-based check-ins.
- Lastfm (LF) & Nowplaying (NP): Music listening events.
- Tmall (TM): Large-scale shopping logs.
Data was pre-processed to remove short sessions and rare items, with data augmentation applied via a sliding window approach.
Results and Discussion
IMAM demonstrated superior performance and efficiency across all tested scenarios.
State-of-the-Art Accuracy
IMAM outperformed seven major baselines, including SR-GNN and DHCN. Notably, it achieved a 19.2% improvement in Recall@20 on the Tmall dataset. Ablation studies confirmed that position embeddings are critical; removing them led to significant performance degradation.
Inference Speedup
The most striking result is IMAM's efficiency. It achieved an average 47.7x speedup over the strongest baseline (DHCN) during inference. In specific cases like the Lastfm dataset, the speedup reached 245x, making it highly suitable for real-time production systems.
The Role of Intention
Validation using an "Oracle" model (provided with ground-truth next items) confirmed that even rough estimates of user intent provide a massive performance boost. IMAM’s learning-based approach to intent proved more robust than simple heuristics like "last-item-as-intent."
Conclusion
IMAM proves that well-designed attention mechanisms can surpass complex recurrent and graph-based models in both accuracy and speed for session-based recommendation. While the model faces challenges with extreme data sparsity—where simpler mean-pooling sometimes suffices—its ability to disentangle intent from temporal patterns offers a scalable path forward for high-performance recommendation systems. Future work will explore the integration of side information, such as item categories and temporal intervals, to further refine intent estimation.
Summary updated