[Paper Review] Neural Attentive Session-based Recommendation
This paper proposes Neural Attentive Recommendation Machine (NARM), a deep learning framework that enhances session-based recommendation by jointly modeling user sequential behavior and main purpose using an attention mechanism. By attending to key items in a session and combining them with RNN-encoded sequential features via a bi-linear matching scheme, NARM achieves state-of-the-art performance, especially on longer sessions, outperforming prior methods by up to 15.32% on long-session predictions.
Given e-commerce scenarios that user profiles are invisible, session-based recommendation is proposed to generate recommendation results from short sessions. Previous work only considers the user's sequential behavior in the current session, whereas the user's main purpose in the current session is not emphasized. In this paper, we propose a novel neural networks framework, i.e., Neural Attentive Recommendation Machine (NARM), to tackle this problem. Specifically, we explore a hybrid encoder with an attention mechanism to model the user's sequential behavior and capture the user's main purpose in the current session, which are combined as a unified session representation later. We then compute the recommendation scores for each candidate item with a bi-linear matching scheme based on this unified session representation. We train NARM by jointly learning the item and session representations as well as their matchings. We carried out extensive experiments on two benchmark datasets. Our experimental results show that NARM outperforms state-of-the-art baselines on both datasets. Furthermore, we also find that NARM achieves a significant improvement on long sessions, which demonstrates its advantages in modeling the user's sequential behavior and main purpose simultaneously.
Motivation & Objective
- To address the limitation of existing session-based recommendation models that focus only on sequential behavior without capturing the user's main purpose in a session.
- To improve recommendation accuracy by jointly modeling sequential behavior and user intent using a hybrid encoder with attention.
- To develop a unified session representation that captures both the flow of user interactions and the most relevant items reflecting user intent.
- To demonstrate that attention-based modeling is particularly effective in long sessions where user intent is more clearly expressed.
Proposed method
- NARM employs a hybrid encoder combining a GRU-based RNN for sequential modeling and a user-intent-aware attention mechanism to identify key items in the session.
- The attention mechanism computes dynamic weights for each item based on its relevance to the user's main purpose, with higher weights assigned to items that are more representative of the user's intent.
- A bi-linear matching scheme computes recommendation scores by measuring the compatibility between the unified session representation and candidate items.
- The model is trained end-to-end to jointly optimize item representations, session representations, and their matching scores.
- The attention weights are computed using a query vector derived from the final hidden state of the GRU, enabling the model to focus on items that best reflect the user's intent.
- The unified session representation is formed by concatenating the final GRU hidden state and the weighted sum of item embeddings based on attention weights.
Experimental results
Research questions
- RQ1Can attention mechanisms effectively identify the user's main purpose in a session when sequential behavior alone is insufficient?
- RQ2Does modeling both sequential behavior and user intent lead to improved recommendation accuracy, especially in longer sessions?
- RQ3How does the performance of NARM compare to RNN-based baselines across different session lengths?
- RQ4To what extent does the attention mechanism highlight semantically relevant items that are not necessarily at the end of the session?
Key findings
- NARM outperforms the state-of-the-art Improved GRU-Rec baseline on both the DIGINETICA and Diginomail datasets across all evaluation metrics.
- On the DIGINETICA dataset, NARM achieves a 15.32% improvement in accuracy for sessions of length 11, demonstrating strong performance on longer sessions.
- For sessions of length 4 to 17, NARM consistently improves over the baseline, with gains ranging from 8.24% to 15.32%, indicating effective modeling of user intent.
- The attention mechanism successfully identifies key items that are often localized and frequently near the end of the session, aligning with typical browsing behavior.
- Performance gains diminish in very long sessions (e.g., length 17+), likely due to increased noise from aimless clicks, suggesting a limit to attention-based modeling in such cases.
- Visualization confirms that the attention mechanism assigns higher weights to semantically relevant items, even when they appear early or in the middle of the session, proving its ability to capture intent beyond sequential order.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.