Neural Attentive Session-based Recommendation

Jing Li, Pengjie Ren, Zhumin Chen, Zhaochun Ren, Jun MaCIKM 2017 · DOI

TL;DR

This paper introduces NARM, a novel neural network for session-based recommendation that goes beyond simply modeling a user's click sequence. By employing an attention mechanism, NARM effectively captures both the user's sequential behavior and their underlying "main purpose" within a session, leading to more accurate next-item predictions.

What Problem Does This Paper Address?

In e-commerce, users often browse without explicit profiles, making traditional recommendation methods challenging. Session-based recommendation aims to predict the next item a user will be interested in based solely on their current click sequence. However, existing methods primarily focus on the sequence of clicks, potentially overlooking the user's core intent. For instance, a user might click on a few unrelated items by accident or curiosity before settling on their actual goal. This paper addresses the limitation of previous approaches by proposing a method that can discern and leverage both the user's click history and their primary objective within a session.

Methods

The core of NARM is a neural encoder-decoder architecture. It utilizes a hybrid encoder that combines two key components:

  • Global Encoder: This part uses a Gated Recurrent Unit (GRU) to model the user's overall sequential behavior throughout the session, similar to existing RNN-based methods. The final hidden state of this encoder represents the user's sequential behavior.
  • Local Encoder: This is where the novelty lies. It employs an item-level attention mechanism. This mechanism allows the model to dynamically weigh the importance of different items clicked in the session. By attending to specific items, it aims to capture the user's "main purpose" or current intent. The attention weights are computed based on the interaction between the current hidden state and previous item representations.

These two representations (sequential behavior and main purpose) are then concatenated to form a unified session representation. This unified representation is fed into a bi-linear matching scheme in the decoder to compute recommendation scores for candidate items. This bi-linear decoder is highlighted as an improvement over standard fully-connected decoders, reducing parameters and potentially improving performance.

Datasets

The authors evaluated NARM on two publicly available datasets:

  • YOOCHOOSE: A dataset from the RecSys Challenge 2015, containing click-streams from an e-commerce site.
  • DIGINETICA: A dataset from the CIKM Cup 2016, also containing transaction data.

For YOOCHOOSE, they used two subsets (1/64 and 1/4 of training sequences) to account for potential issues with training on the entire dataset and to align with prior work. They also performed sequence splitting to create training and testing sets.

Key Insights and Ideas

  • Beyond Sequentiality: The most significant insight is that simply modeling the order of clicks isn't enough. A user's "main purpose" within a session is a crucial, often overlooked, signal for accurate recommendations.
  • Attention as Intent Detector: The attention mechanism is shown to be effective in identifying and focusing on the most relevant items that signal a user's intent, even if those items are not contiguous in the click sequence.
  • Long Sessions Benefit: NARM's ability to capture intent proves particularly beneficial for longer sessions, where users might exhibit more complex browsing patterns.
  • Hybrid Approach Wins: Combining both sequential behavior and main purpose features leads to superior performance compared to using either feature in isolation.

Key Results

NARM consistently outperformed state-of-the-art baselines, including traditional methods and other RNN-based approaches like GRU-Rec and Improved GRU-Rec, across both datasets.

  • On the DIGINETICA dataset, NARM achieved relative performance improvements of 7.98% in Recall@20 and 9.70% in MRR@20 compared to the best baseline (Improved GRU-Rec).
  • The paper also demonstrated that NARM's bi-linear decoder performed better than a fully-connected decoder, especially on the DIGINETICA dataset, for both Recall@20 and MRR@20.
  • Analysis of session lengths showed that NARM performed best on sessions with lengths between 4 and 17, suggesting its strength in capturing intent in moderately long sessions.

Limitations and Future Work

  • Long Session Decline: While NARM excels with longer sessions, its performance improvement declines for very long sessions. The authors hypothesize this is because extremely long sessions might involve more aimless clicking, making it harder to discern a clear main purpose.
  • Item Attributes: The authors suggest that incorporating item attributes (like price and category) could further enhance recommendation performance.
  • Neighbor Sessions: Exploring nearest neighbor sessions and the importance of different neighbors is proposed as a future direction.
  • Attribute Importance: The attention mechanism could be further utilized to explore the importance of different attributes within a session.

Summary updated

BibTeX
@inproceedings{li2017neural,
  author = {Jing Li and Pengjie Ren and Zhumin Chen and Zhaochun Ren and Jun Ma},
  title = {{Neural Attentive Session-based Recommendation}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2017},
  doi = {10.1145/3132847.3132926},
}
Figure