Abstract
Multi-Behavior Sequential Recommendation (MBSR) aims to predict future user actions by leveraging diverse interaction types such as clicking, favoriting, and purchasing. Traditional methods often treat these auxiliary behaviors merely as additional inputs, failing to capture the inherent predictive value of the behavior type itself. This paper introduces MBGen, a novel generative framework that models recommendation as a two-step autoregressive task: first predicting the user's next behavior type and then the specific item. By utilizing a Position-and-Behavior-Aware (PBA) Transformer with a sparse Mixture-of-Experts (MoE) architecture and a balanced item tokenization strategy, MBGen achieves significant performance improvements—ranging from 31% to 70%—over state-of-the-art models on large-scale e-commerce datasets.
Introduction
In modern e-commerce ecosystems, user engagement is multifaceted. Users do not simply interact with items in a vacuum; they perform a sequence of distinct actions, including clicking, adding to a cart, favoriting, or purchasing. This variety of actions provides rich signals regarding user intent. However, most existing recommendation models struggle with two primary challenges in this domain. First, they often ignore the value of predicting the behavior itself, treating non-purchase actions only as auxiliary data. Second, there is a massive solution space imbalance: while there are typically fewer than ten behavior types, there are millions of potential items. MBGen addresses these issues by shifting recommendation into a generative paradigm, treating behaviors and items as part of a unified sequence.
Methodology
Unified Tokenization and Two-Step Generation
MBGen moves away from treating items as atomic IDs. Instead, it tokenizes both behaviors and items into a single, continuous sequence. To handle the millions of items efficiently, the authors propose two new tokenization methods: Balanced Semantic ID (SID) and Balanced Chunked ID (CID). These methods ensure that the vocabulary of item pieces is distributed evenly, preventing the "representation collapse" and prefix collisions common in previous generative models like TIGER.
The core of the MBGen approach is a two-step generation process. The model is trained to predict the next behavior token first. This acts as an internal "prompt" that frames the user's intention (e.g., "the user is now ready to purchase"), which then guides the generation of the subsequent item tokens.
Position-and-Behavior-Aware (PBA) Transformer
To manage the heterogeneous nature of the sequence—which mixes behavior tokens with item digits—MBGen employs a Position Routed Mixture of Experts (MoE). Unlike traditional MoE models that use complex gating networks, MBGen routes tokens to specific "experts" based on their deterministic position in the sequence (e.g., the first token in a block is always routed to the Behavior Expert). This allows the model to scale its parameter count and capacity without increasing the computational overhead during inference. Furthermore, the model explicitly injects the current behavior type into the Feed-Forward Network (FFN) layers to ensure that item generation is tightly coupled with the predicted intent.
Experimental Setup
Datasets
The framework was evaluated on two large-scale public e-commerce datasets:
- Retail (Taobao/Tmall): Features four behavior types (click, add-to-cart, favorite, purchase) with over 7.6 million interactions.
- IJCAI: A massive dataset from the IJCAI competition containing over 32 million interactions.
Notably, the authors excluded the Yelp dataset frequently used in prior research, arguing that rating-based behaviors do not accurately reflect the explicit action distributions found in real-world e-commerce environments.
Key Insights and Results
Performance Gains
MBGen demonstrates a substantial leap over both traditional sequential models (such as SASRec) and recent generative baselines. On the Retail dataset, MBGen improved NDCG@10 by over 60% compared to the strongest baselines. It also excelled in the complex "Behavior-Item" joint task, where the model must correctly predict both the action and the object of that action.
The Importance of Code Balance
A critical finding of the research is the impact of item ID distribution. Quantitative analysis showed that standard tokenization methods often lead to high variance and collisions, where many items share identical prefixes, leading to model confusion. The Balanced SID approach significantly reduces this variance, facilitating smoother and more accurate learning.
Scalability via Sparsity
While traditional multi-behavior models often see diminishing returns or performance degradation as they scale, MBGen’s MoE architecture allows it to scale effectively. Performance metrics continued to improve as more parameters were added, demonstrating the robustness of the position-routed sparse Transformer.
Limitations and Future Work
Despite its performance, MBGen faces challenges regarding inference latency. Because autoregressive generation requires predicting tokens one by one, it is inherently slower than the "all-at-once" scoring used in traditional models. Additionally, the "cold start" problem—how the model handles entirely new items or users—remains an area for further investigation. Future research may explore incorporating other modalities, such as text descriptions or images, directly into the generative token sequence to further enrich the model's understanding of item semantics.
Conclusion
MBGen represents a significant shift in multi-behavior recommendation by framing the problem as a generative task. By predicting intent before items and ensuring balanced token representations, it sets a new benchmark for accuracy and scalability in the field.
Summary updated