Abstract
Session-based recommendation aims at predicting the next item given a sequence of previous items consumed in the session, e.g., on e-commerce or multimedia streaming services. Specifically, session data exhibits some unique characteristics, i.e., session consistency and sequential dependency over items within the session, repeated item consumption, and session timeliness. In this paper, we propose simple-yet-effective linear models for considering the holistic aspects of the sessions. The comprehensive nature of our models helps improve the quality of session-based recommendation. More importantly, it provides a generalized framework for reflecting different perspectives of session data. Furthermore, since our models can be solved by closed-form solutions, they are highly scalable. Experimental results demonstrate that the proposed linear models show competitive or state-of-the-art performance in various metrics on several real-world datasets.
Introduction: The Challenges of Session-Based Recommendation
Session-based recommendation (SBR) is the task of predicting a user's next action (like a click or purchase) based solely on their interactions within a single, often anonymous, session. Unlike traditional recommendation systems that rely on long-term user profiles, SBR must capture fleeting dynamics across four key dimensions:
- Session Consistency: Items within a single session usually share a common theme or intent (e.g., browsing for running shoes).
- Sequential Dependency: The order of interactions matters (e.g., purchasing a smartphone often leads to looking for a protective case).
- Repeated Item Consumption: Users frequently interact with the same item multiple times, such as re-listening to a song or comparing products.
- Timeliness: Recent sessions are typically better indicators of current trends than older ones.
Existing solutions often fall into two extremes: complex Deep Neural Networks (DNNs/GNNs) that are computationally expensive and prone to overfitting, or neighborhood-based models (like SKNN) that are fast but fail to capture global patterns. This research bridges the gap by proposing a holistic yet efficient linear framework.
Methods: The SLIST Framework
The core contribution is the Session-aware Linear Item-Item Model (SLIST). It generalizes linear models like EASE$^R$ specifically for session data by decomposing the problem into two sub-models:
- SLIS (Similarity Model): This model uses a "full session representation" to capture item-to-item similarities. Unlike traditional linear models that enforce a zero-diagonal constraint to avoid trivial solutions, SLIS relaxes this constraint. This allows the model to recommend items already seen in the current session, effectively handling repeated consumption.
- SLIT (Transition Model): This model utilizes a "partial session representation" where sessions are split into "past" and "future" subsets. This enables the model to learn directed transitions (e.g., Item A $\rightarrow$ Item B) rather than just undirected similarities.
The "Secret Sauce" for Performance
To further refine accuracy, SLIST incorporates several weighting schemes:
- Time Decay: Prioritizes more recent sessions in the training data.
- Position Decay: Weights items based on their relative position within a session.
- Inference Decay: Assigns more weight to the most recent items clicked when generating a prediction.
Crucially, SLIST can be solved directly using matrix algebra. This closed-form solution guarantees a unique, optimal result for a given set of hyperparameters and makes training orders of magnitude faster than iterative deep learning methods.
Experimental Setup and Datasets
The models were evaluated on four diverse real-world benchmarks:
- YooChoose (YC): E-commerce clickstream data.
- Diginetica (DIGI): Transaction data from the CIKM Cup 2016.
- RetailRocket (RR): Six months of e-commerce clicks and "add-to-carts."
- NowPlaying (NOWP): Music listening logs from Twitter, characterized by high rates of repeated consumption.
Key Insights
- Linear Models are Highly Effective: Well-designed linear models can match or exceed the performance of state-of-the-art neural networks when tailored to specific data properties.
- Holistic Modeling is Essential: Different datasets favor different session properties (e.g., sequential dependency vs. consistency). By unifying similarity and transition models, SLIST generalizes better across diverse domains.
- The Diagonal Matters: Allowing non-zero values on the diagonal of the item-item matrix effectively addresses the repeated consumption problem.
- Scalability as a Feature: The complexity of SLIST's solution depends primarily on the number of items rather than the number of sessions, allowing it to scale efficiently to massive datasets.
Results and Performance
- Accuracy: SLIST achieved top-tier performance across all datasets. Notably, it showed a 9.76% improvement in Hit Rate (HR@20) and an 8.83% improvement in MRR@20 over the best baselines on the NowPlaying dataset.
- Training Speed: On the YC-1/4 dataset, SLIST trained in approximately 4 minutes on a CPU. In contrast, the state-of-the-art SR-GNN required over 51 hours on a GPU—representing a 786x speedup.
- Ablation Study: The most critical component for boosting accuracy was found to be inference item weight decay, which prioritizes the user's most recent interactions.
Limitations and Future Work
While highly efficient, the closed-form solution requires inverting an $I \times I$ matrix (where $I$ is the number of items). For catalogs with millions of items, this becomes a bottleneck requiring approximation techniques. Additionally, as a pure item-item model, SLIST does not currently incorporate "side information" (e.g., item descriptions or categories), which could help with "cold-start" scenarios. Future research may explore integrating these linear components into hybrid architectures or developing more efficient matrix operations for extremely large vocabularies.
Summary updated