Prospective Preference Enhanced Mixed Attentive Model for Session-based Recommendation

Bo Peng, Chang-Yu Tai, Srinivasan Parthasarathy, Xia NingarXiv 2022 · DOI

Abstract

Session-based recommendation (SBR) focuses on predicting user actions within short-term, anonymous interaction sequences. Traditional approaches using Recurrent Neural Networks (RNNs) or Graph Neural Networks (GNNs) often face challenges regarding computational overhead and the inherent sparsity of session data. This paper introduces the Prospective Preference Enhanced Mixed Attentive Model (P²MAM), a lightweight architecture that leverages position-sensitive temporal patterns and a novel "prospective preference" mechanism. By estimating a user's future intent to re-evaluate the importance of past actions, P²MAM achieves significant improvements in recommendation accuracy—up to 19.2% in Recall@20—while delivering a 47.7x speedup in inference compared to state-of-the-art baselines.

Introduction

In modern digital platforms, session-based recommendation is essential for personalizing experiences for anonymous users. Unlike traditional recommendation systems that rely on long-term user profiles, SBR must infer intent from a handful of clicks. Current state-of-the-art models often employ complex GNNs or GRUs, which can be difficult to train on sparse data and slow to deploy in production environments. P²MAM addresses these issues by utilizing a dual-stage attention mechanism that is both computationally efficient and effective at filtering noise from session histories.

Methodology: The P²MAM Architecture

P²MAM operates through two primary components designed to capture both the temporal order of items and the underlying goal of the user session.

Figure 1: The architecture of the P²MAM model, illustrating the flow from input items to position-sensitive and prospective preference predictions.

1. Position-sensitive Preference Prediction (PS)

To avoid the sequential processing bottlenecks of RNNs, P²MAM uses a dot-product attention mechanism enhanced with position embeddings. This allows the model to recognize that the relative order of interactions (e.g., the most recent click) is a strong indicator of current interest without sacrificing parallelizability.

2. Prospective Preference Enhancement (P²E)

The core innovation of P²MAM is the use of a "prospective preference" estimate. The output of the PS stage serves as an initial guess of the user's next action. This estimate is then used as a query in a multi-head attention block to re-examine the session items. By "looking back" with a hypothesized future goal, the model can more accurately identify which previous items were central to the user's intent and which were merely incidental or "noisy" clicks.

Experimental Evaluation

The model was evaluated against six benchmark datasets: Diginetica (DG), Yoochoose (YC), Gowalla (GA), Lastfm (LF), Nowplaying (NP), and Tmall (TM). These datasets represent a wide range of domains, from e-commerce to music streaming and location-based services.

Performance and Efficiency

P²MAM-O-P (the full model) consistently outperformed top-tier baselines such as SR-GNN, LESSR, and DHCN. Notably, on the Nowplaying dataset, the model achieved a 19.2% improvement in Recall@20.

Beyond accuracy, P²MAM offers a massive leap in efficiency. By replacing recurrent and graph-based layers with parallelizable attention, the model achieved a 47.7x speedup in inference time. For instance, on the Lastfm dataset, latency was reduced from 130ms (DHCN) to just 0.52ms.

Figure 4: Visualization of attention weights across different session lengths for the YC and LF datasets, comparing position-sensitive (PS) and prospective preference (P²E) mechanisms.

Discussion and Key Insights

The "prospective preference" mechanism acts as a powerful filter. Visualization of attention weights (as seen in Figure 4) demonstrates how the model shifts its focus based on the estimated future intent. Ablation studies further confirmed that position embeddings are vital; removing them significantly degraded performance across most datasets, proving that temporal order remains a critical feature even in non-recurrent models.

Conclusion

P²MAM demonstrates that high-performance session-based recommendation does not require computationally expensive graph or recurrent architectures. By combining position-sensitive attention with a prospective look-ahead mechanism, the model provides a robust, scalable, and highly accurate solution for real-time recommendation tasks.

Summary updated

BibTeX
@misc{peng2022prospective,
  author = {Bo Peng and Chang-Yu Tai and Srinivasan Parthasarathy and Xia Ning},
  title = {{Prospective Preference Enhanced Mixed Attentive Model for Session-based Recommendation}},
  year = {2022},
  eprint = {2206.01875},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.01875},
}
Figure