RepeatNet: A Repeat Aware Neural Recommendation Machine for Session-Based Recommendation

Pengjie Ren, Zhumin Chen, Jing Li, Zhaochun Ren, Jun Ma, Maarten de Rijke

Abstract

Session-based recommendation systems typically focus on discovering new items for users based on their recent interactions. However, in domains like e-commerce and music, users frequently re-interact with items within the same session—a phenomenon known as "repeat consumption." We present RepeatNet, a novel architecture that explicitly models this behavior through a dual-decoder structure and a "repeat-explore" switch. By dynamically choosing between recommending a previously seen item or exploring new ones, RepeatNet significantly improves recommendation accuracy, achieving state-of-the-art results on industry-standard benchmarks.

Introduction

Most session-based recommendation systems treat every prediction as a discovery problem, assuming users are always looking for something new. In reality, human behavior is often habitual. Existing neural models like GRU4REC or NARM capture sequential patterns effectively but lack a dedicated mechanism to handle these "repeats." The authors identify a critical gap: a recommender must not only predict what an item is but also decide whether the user is currently in a "repeat" mood or an "exploration" mood.

Methods

RepeatNet is an encoder-decoder framework that treats recommendation as a hybrid process of memory and discovery.

  1. Session Encoder: A Gated Recurrent Unit (GRU) transforms the sequence of items in a session into latent mathematical representations.
  2. Repeat-Explore Mechanism: A binary classifier calculates the probability that the next item will be a repeat ($P_{repeat}$) versus a new discovery ($P_{explore}$).
  3. Dual Decoders:
    • Repeat Decoder: Inspired by "pointer" networks in NLP, this decoder uses an attention mechanism to select an item specifically from the user’s current session history.
  4. Explore Decoder: A standard decoder that predicts the likelihood of items the user has not yet seen in the current session.
  5. Hybrid Output: The final recommendation score is a weighted combination of the scores from both decoders, scaled by the repeat-explore switch probability.
The RepeatNet architecture overview, illustrating the encoder, the repeat-explore mechanism, and the dual-decoder structure for hybrid recommendation.

Datasets

The model was evaluated on three industry-standard benchmarks with significant repeat ratios:

  • YOOCHOOSE: E-commerce dataset (Repeat ratio: ~26%).
  • DIGINETICA: E-commerce dataset (Repeat ratio: ~20%).
  • LASTFM: Music artist recommendation dataset (Repeat ratio: ~21%).

Key Results and Insights

RepeatNet achieved state-of-the-art results across all tested datasets, outperforming strong neural baselines like NARM and Improved-GRU4REC. A key finding is that explicitly modeling the intent to repeat is as important as the recommendation itself.

  • Accuracy Gains: On the YOOCHOOSE dataset, RepeatNet achieved an MRR@20 of 31.03%, compared to NARM’s 29.23%.
  • Repeat Session Performance: In sessions where a repeat actually occurred, RepeatNet’s performance was dominant. For example, on the DIGINETICA dataset, the inclusion of the repeat mechanism led to a massive performance jump on repeat sessions compared to a version of the model without it.
Performance comparison of RepeatNet with and without the repeat mechanism, highlighting the significant gains in repeat-heavy sessions.

Conclusion and Future Work

RepeatNet demonstrates that incorporating "copy" mechanisms from NLP into recommendation systems can effectively capture habitual user behavior. While the model is highly effective, the authors note that it can sometimes become overly inclined toward repeats. Future work will explore integrating item metadata (e.g., brand or category) and long-term user profiles to better predict repeat behavior across multiple sessions over longer timeframes.

Summary updated

BibTeX
@inproceedings{ren2019repeatnet,
  author = {Pengjie Ren and Zhumin Chen and Jing Li and Zhaochun Ren and Jun Ma and Maarten de Rijke},
  title = {{RepeatNet: A Repeat Aware Neural Recommendation Machine for Session-Based Recommendation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33014806},
}
Figure