Effectively Using Long and Short Sessions for Multi-Session-based Recommendations

Zihan Wang, Gang Wu, Yan WangarXiv 2022 · DOI

Abstract

The ENIREC (Enhance Next-Item Recommender) model addresses the pervasive "short session" problem in recommendation systems by intelligently blending a user's current interest with their long-term history and similar sessions sampled from across the dataset. By employing a novel hybrid Attention-RNN extractor (GAFE) and a "divide-and-conquer" strategy for long sessions (LSIS), ENIREC significantly outperforms state-of-the-art models on datasets where brief user interactions are the norm, such as Reddit and Delicious.

The Challenge of Short Sessions

In Session-Based Recommendation (SBR), the primary objective is to predict a user's next action based on a sequence of recent interactions. However, real-world data presents a significant hurdle: the dominance of short sessions. On platforms like Reddit, over 96% of sessions consist of four or fewer items.

Distribution of session lengths in Delicious and Reddit datasets.

Standard Recurrent Neural Networks (RNNs) struggle in these environments because they rely on long sequential patterns that are absent in brief interactions. Furthermore, existing Multi-Session-Based Recommendation (MSBR) models—which incorporate a user's past history—often suffer from "noise." If a user's interests have shifted over time, their older history can hinder accurate prediction. The authors identify three specific gaps in current approaches:

  1. Noise Sensitivity: Over-reliance on irrelevant historical data.
  2. RNN Inefficiency: Sequential models are poorly suited for very short bursts of activity where order may be less critical than co-occurrence.
  3. Long Session Neglect: While rare, long sessions are complex and often contain multiple shifting interests that are ignored when treated as a single monolithic sequence.

The ENIREC Architecture

To address these gaps, the authors propose ENIREC, a model composed of four specialized modules designed to handle the nuances of both short and long user histories.

Overview of the ENIREC architecture and its constituent modules.

GAFE (GRU-ATTENTION Feature Extractor)

This module combines the sequential processing of a Gated Recurrent Unit (GRU) with an attention mechanism. While the GRU focuses on the order of items, the attention mechanism captures the contextual relationship between them. This is vital for short sessions where the specific sequence might be less important than the set of items viewed together.

LSIS (Long Session Interest-Spliter)

To handle long sessions effectively, ENIREC uses a sliding window (size 3) to break one long, multi-faceted session into several short, targeted "sub-sessions." These are then processed using the GAFE module, allowing the model to treat long-term interests as a series of short-term shifts rather than one static interest.

Sim Session’s Interest Module

To reduce noise, the model filters historical data. It samples candidate sessions from the user's history, similar users' history, and random samples from the dataset. It then applies a Top-K similarity filter to ensure only sessions that closely match the user's current "vibe" influence the prediction.

Long-Term Interest Module

A multi-layer GRU captures how a user's interests evolve across different sessions over extended periods, providing a stable baseline for the more dynamic short-term modules.

Experimental Evaluation

ENIREC was evaluated on two real-world datasets: Delicious (64.03% short sessions) and Reddit (96.95% short sessions). The model was compared against 10 baselines, including single-session models (GRU4Rec, SR-GNN) and state-of-the-art multi-session models (BERT4Rec, INSERT).

Key results include:

  • Superior Accuracy: ENIREC outperformed all baselines across all metrics, including Recall@20 and MRR@20.
  • Reddit Performance: On the Reddit dataset, ENIREC achieved an MRR@20 of 0.3421, significantly outperforming the next best model, INSERT (0.2858).
  • Ablation Success: Removing the LSIS/GAFE components or the long-term interest module led to a clear drop in performance, validating the contribution of each specialized module.

Conclusion

ENIREC demonstrates that the key to mastering session-based recommendations lies in balancing short-term context with filtered long-term history. By treating long sessions as sequences of short interests and using attention to bolster RNNs in brief interactions, ENIREC provides a robust framework for modern, high-noise recommendation environments.

Summary updated

BibTeX
@misc{wang2022effectively,
  author = {Zihan Wang and Gang Wu and Yan Wang},
  title = {{Effectively Using Long and Short Sessions for Multi-Session-based Recommendations}},
  year = {2022},
  eprint = {2205.04366},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.04366},
}
Figure