NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Multi-Grained Preference Enhanced Transformer for Multi-Behavior Sequential Recommendation

Chuan He, Yongchao Liu, Qiang Li, Weiqiang Wang, Xing Fu, Xinyi Fu, Chuntao Hong, Xinwei YaoKDD 2024

TL;DR

This paper introduces M-GPT, a novel framework for multi-behavior sequential recommendation that tackles the challenge of modeling complex, interaction-level dependencies between different user actions (like clicks, favorites, purchases). By enhancing a Transformer architecture with a graph-based interaction-level dependency extractor and a multi-grained preference generator, M-GPT significantly improves next-item prediction accuracy.

What Problem Does This Paper Address?

Recommender systems are crucial for navigating vast online catalogs, and sequential recommendation (SR) specifically aims to predict a user's next action based on their historical interactions. A key challenge in modern e-commerce and social platforms is that users engage in multiple types of behaviors (e.g., viewing, adding to cart, purchasing). Effectively leveraging these diverse behaviors, especially their interdependencies, is vital for accurate recommendations. Existing Multi-Behavior Sequential Recommendation (MBSR) methods often struggle with two main issues:

  1. Modeling Interaction-Level Dependencies: Many approaches focus on dependencies at the "behavior-level" (e.g., all "add to cart" actions) or "item-level" (e.g., interactions involving the same item). However, they often fail to capture the more nuanced, interaction-level dependencies where different types of actions on different items influence each other (e.g., adding an item to a cart might increase the likelihood of viewing a related item).
  2. Capturing Dynamic, Multi-Grained Preferences: User preferences are not static; they evolve over time and can be viewed at different "grains" or levels of detail. For instance, a user might be interested in "electronics" generally (coarse-grained) but also specifically in "wireless headphones" (fine-grained), and this interest can shift over short or long periods. Existing models often struggle to capture this dynamic, multi-faceted nature of user preferences within interaction sequences.

Methods

M-GPT addresses these challenges with two core components:

  1. Interaction-Level Dependency Extractor (IDE): This component uses a graph-based approach to model dependencies between individual interactions. It constructs a graph where nodes represent user-item interactions and edges capture relationships. Crucially, it computes an "incidence matrix" that considers both item-level (e.g., similarity between two items) and behavior-level (e.g., relationship between "click" and "purchase") dependencies. Graph convolutions are then applied iteratively to learn these dependencies across multiple "orders" (from direct interactions to more complex, indirect relationships).
  2. Multifaceted Sequential Pattern Generator (MSPG): This component builds upon the Transformer architecture.
  3. Global Sequential Pattern: It employs a linear self-attention mechanism to efficiently capture long-term sequential patterns, overcoming the quadratic complexity of standard self-attention for long sequences.
  4. Temporal Multi-Grained Preference Encoding: It divides the interaction sequence into sessions based on different time scales. Within each session, a multi-grained multi-head self-attention mechanism is used to extract user preferences at various granularities (e.g., focusing on the last few items in a session to understand immediate intent).
  5. Fusion: The global and multi-grained local patterns are then fused to create a comprehensive representation of user preference.

Finally, a prediction layer uses max-pooling over the learned representations to predict the next item.

Datasets

The authors evaluated M-GPT on three real-world datasets:

  • Taobao: A large e-commerce dataset with 7 behavior types.
  • IJCAI: A dataset from an online e-commerce platform with 4 behavior types.
  • Retailrocket: An online shopping dataset with 3 behavior types.

The target behavior for recommendation was "purchase" across all datasets. The paper notes that they followed pre-processing steps from existing benchmarks for fair comparison.

Key Insights and Ideas

  • Interaction-Level is Key: The paper strongly argues that modeling dependencies between individual interactions (not just between behaviors or items) is crucial for accurate multi-behavior recommendation. This is a significant departure from many prior works.
  • Multi-Grained Preferences Emerge: User preferences are not monolithic. They can be understood at different levels of detail (e.g., general interest vs. specific product type) and change over different time scales (short-term vs. long-term). M-GPT's ability to capture this multi-faceted nature is a core strength.
  • Linear Attention for Efficiency: For long sequences, the quadratic complexity of standard self-attention is a bottleneck. The use of linear self-attention in M-GPT offers a practical solution for capturing global patterns without sacrificing scalability.
  • Graph Convolutions for Dependency Depth: Iteratively applying graph convolutions allows M-GPT to explore increasingly complex, multi-order dependencies between user interactions, providing a richer understanding of user behavior.

Key Results

  • State-of-the-Art Performance: M-GPT consistently outperformed various state-of-the-art baselines across all three datasets and all evaluation metrics (HR@5, NDCG@5, HR@10, NDCG@10, MRR). For example, on Taobao, M-GPT achieved a 12.2% improvement in HR@5 over the next best model (PBAT).
  • Ablation Studies Confirm Module Effectiveness: Removing either the Interaction-Level Dependency Extractor (IDE) or the Multifaceted Sequential Pattern Generator (MSPG) led to significant performance degradation, highlighting the importance of both components. Variants also showed that interaction-level dependency learning was superior to item-level or behavior-level alone, and that multi-grained preference extraction was essential.
  • Hyperparameter Sensitivity: The paper provides detailed hyperparameter analysis, showing optimal settings for mask ratio, dependency order, number of sessions, and preference granularity, which are crucial for achieving M-GPT's best performance. For instance, a dependency order of 3 was found to be optimal for most datasets.

Limitations and Future Work

  • Computational Complexity: While M-GPT improves efficiency with linear attention, the overall time complexity is still dependent on sequence length and dependency order. The paper states the complexity is comparable to other SOTA models, but further optimization might be beneficial.
  • Exploration of Graph Foundation Models: The authors express interest in exploring the capability of Graph Foundation Models (GFMs) in recommendation systems for future work.
  • Interpretability: While case studies are presented to offer an intuitive impression of interpretability (e.g., attention maps and behavioral relationships), a deeper, more systematic analysis of model interpretability could be a future direction.
  • Dataset Specificity: The optimal hyperparameter settings for session number and preference granularity varied slightly across datasets, suggesting that these parameters might need careful tuning based on dataset characteristics like sparsity.

Summary updated

BibTeX
@inproceedings{he2024multi,
  author = {Chuan He and Yongchao Liu and Qiang Li and Weiqiang Wang and Xing Fu and Xinyi Fu and Chuntao Hong and Xinwei Yao},
  title = {{Multi-Grained Preference Enhanced Transformer for Multi-Behavior Sequential Recommendation}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  url = {https://openreview.net/forum?id=ZcMqhsZKRf},
}
Figure