Exploiting Repeated Behavior Pattern and Long-term Item dependency for Session-based Recommendation

Ziyang Wang, Wei Wei, Gao Cong, Xian-Ling Mao, Xiao-Li Li, Shanshan Feng

Abstract

Session-based recommendation (SBR) is a challenging task, which aims to predict users' future interests based on anonymous behavior sequences. Existing methods leverage powerful representation learning approaches to encode sessions into a low-dimensional space. However, despite such achievements, all the existing studies focus on the instance-level session learning, while neglecting the group-level users' preference, which is significant to model the users' behavior. To this end, we propose a novel Repeat-aware Neural Mechanism for Session-based Recommendation (RNMSR). In RNMSR, we propose to learn the user preference from both instance-level and group-level, respectively: (i) instance-level, which employs GNNs on a similarity-based item-pairwise session graph to capture the users' preference in instance-level. (ii) group-level, which converts sessions into group-level behavior patterns to model the group-level users' preference. In RNMSR, we combine instance-level user preference and group-level user preference to model the repeat consumption of users, i.e., whether users take repeated consumption and which items are preferred by users. Extensive experiments are conducted on three real-world datasets, i.e., Diginetica, Yoochoose, and Nowplaying, demonstrating that the proposed method consistently achieves state-of-the-art performance in all the tests.

1. Introduction

Session-based recommendation (SBR) focuses on predicting a user's next action based on a short sequence of anonymous interactions. While current state-of-the-art models excel at capturing transitions between specific items (instance-level learning), they often fail to account for broader behavioral styles that are independent of specific item IDs. This paper introduces the concept of Group-level Behavior Patterns (GBPs)—abstract session structures like "A → B → A"—which serve as strong indicators of whether a user is likely to re-consume a previously seen item ("Repeat Mode") or explore new content ("Explore Mode"). We propose RNMSR, a framework that integrates these patterns with item-level dependencies to improve recommendation accuracy.

2. Methodology

RNMSR decomposes the recommendation task into three primary components: instance-level representation, group-level pattern learning, and a dual-mode prediction mechanism.

2.1 Instance-level Representation Learning

Unlike traditional models that rely on simple chronological sequences, RNMSR constructs a similarity-based item-pairwise session graph. By applying Graph Neural Networks (GNNs) to this graph, the model captures long-distance dependencies between items based on their latent similarity, allowing it to model complex user interests within a single session.

2.2 Group-level Behavior Pattern (GBP) Learning

To capture abstract behavioral styles, sessions are mapped to an anonymous alphabet (e.g., the first unique item is 'A', the second is 'B'). These sequences are embedded into low-dimensional vectors. This abstraction allows the model to learn that certain structural patterns are universally associated with specific intents, regardless of the specific items involved.

The architecture of the RNMSR framework, showing the integration of instance-level GNNs and group-level pattern learning into a dual-mode prediction system.

2.3 Repeat-Explore Mechanism

The model uses a Discriminate Module to process the GBP vector and calculate the probability of the user being in Repeat or Explore mode.

  • Repeat Module: Uses position-aware attention to select the most likely item from the current session history.
  • Explore Module: Predicts the most likely new item from the global catalog. The final recommendation score is a weighted combination of outputs from both modules, effectively mimicking the human decision-making process of choosing between familiarity and novelty.

3. Experimental Results

The model was evaluated on three benchmarks: Yoochoose, Diginetica, and Nowplaying.

3.1 Performance and Ablation

RNMSR consistently outperformed existing baselines. A significant breakthrough was observed in the Nowplaying dataset (music), where the model improved MRR@20 by 22.1% over GCE-GNN. This highlights the model's superior ability to handle high-repeat scenarios. Ablation studies confirmed that both the similarity-based session graph and the GBP learning are critical for these performance gains.

3.2 Pattern Analysis

Empirical analysis of the GBPs shows a clear correlation between session structure and user intent. Patterns with high internal repetition (e.g., A → B → B → C → C → B) have a high probability of leading to a repeat action, whereas linear, non-repeating patterns (e.g., A → B → C → D → E → F) favor the Explore Mode.

Analysis of various group-level behavior patterns and their statistical likelihood of triggering Repeat vs. Explore modes.

4. Conclusion

RNMSR advances session-based recommendation by explicitly modeling the interplay between specific item transitions and abstract behavioral patterns. By distinguishing between repeat and explore modes, the framework provides a more nuanced understanding of user intent, leading to state-of-the-art performance across diverse domains.

Summary updated

BibTeX
@article{wang2024exploiting,
  author = {Ziyang Wang and Wei Wei and Gao Cong and Xian-Ling Mao and Xiao-Li Li and Shanshan Feng},
  title = {{Exploiting Repeated Behavior Pattern and Long-term Item dependency for Session-based Recommendation}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2024},
  doi = {10.1109/tkde.2023.3280310},
}
Figure