Introduction
In modern e-commerce and media platforms, users often browse anonymously, leaving systems with no long-term historical data. Session-based recommendation aims to predict a user's next action based solely on their current sequence of interactions. While recent advancements using Recurrent Neural Networks (RNNs) and Graph Neural Networks (GNNs) have improved the capture of sequential transitions, they often treat all items in a session as equally relevant. In practice, sessions are frequently noisy, containing "accidental" clicks driven by curiosity rather than intent. This paper introduces SR-IEM, a model designed to filter this noise by explicitly extracting item importance.
The SR-IEM Model
The core of the proposed approach is the Importance Extraction Module (IEM), which utilizes a modified self-attention mechanism to identify items that reflect the user's true intent. The architecture consists of three primary stages:
- Importance Extraction Module (IEM): The model calculates an affinity matrix $C$ by comparing every item in the session to every other item. The underlying assumption is that an item's importance is proportional to its average similarity to other items in the session. By masking the diagonal to prevent self-matching, the model generates importance scores ($\alpha$ and $eta$) that effectively down-weight outliers.
- Preference Fusion: A "long-term" session preference is constructed as a weighted sum of item embeddings using the IEM importance scores. This is then concatenated with the "current interest," represented by the embedding of the most recent item ($e_t$).
- Recommendation: The fused representation is passed through a feed-forward network to score and rank candidate items from the catalog.
Experimental Evaluation
The model was evaluated on two benchmark datasets: YOOCHOOSE (RecSys Challenge 2015) and DIGINETICA (CIKM Cup 2016). SR-IEM consistently outperformed eight baselines, including state-of-the-art GNN and RNN models. On YOOCHOOSE, it achieved a Recall@20 of 71.15% and an MRR@20 of 31.71%, surpassing the previous best model, SR-GNN.
Beyond accuracy, SR-IEM offers significant computational advantages. By avoiding the heavy graph convolutions required by GNNs, its complexity is reduced to $O(t^2d + d^2)$. Empirical results show that SR-IEM is approximately 3 times faster than SR-GNN and up to 19 times faster than CSRM during testing.
Key Insights and Discussion
- Similarity as a Proxy for Importance: The model's success stems from the elegant insight that mutual similarity within a session indicates intent. For instance, in a session containing multiple electronics and one unrelated item, the electronics will have high mutual similarity and thus higher importance weights.
- Robustness to Session Length: SR-IEM shows particular strength in medium-length sessions (4-7 items), where the IEM has sufficient context to distinguish signal from noise. However, in very short sessions (1-3 items), the lack of context remains a challenge for importance extraction.
- Efficiency: The transition from complex graph-based modeling to a streamlined self-attention module demonstrates that accurately isolating user intent can be more effective and efficient than modeling exhaustive item-to-item transitions.
Conclusion
SR-IEM provides a highly efficient and accurate framework for session-based recommendation. By rethinking item importance through the lens of mutual similarity, the model effectively filters session noise, achieving state-of-the-art performance with a fraction of the computational cost of existing heavy-weight models.
Summary updated