MoR4Rec: Mixture-of-Recursion for Sequential Recommendation
Organizations: University of Delhi, India · K.R. Mangalam University, India · National Institute of Technology Warangal, India
Abstract
Sequential recommender systems aim to predict a user's next interaction by modeling temporal dependencies in historical behavior sequences. To capture such dependencies, recent approaches increasingly rely on attention-based architectures, particularly transformers. While effective at modeling long-range sequential patterns, these models apply a fixed computation depth to all interaction items, treating them as equally complex. However, user behavior is inherently heterogeneous, with many interactions following simple repetitive patterns, whereas others require modeling higher-order dependencies. This mismatch leads to inefficient utilization of model capacity and unnecessary computational overhead, particularly in deep transformer-based architectures. To address this issue, we propose MoR4Rec, a sequential recommendation framework based on a Mixture-of-Recursion paradigm, which enables item-wise adaptive computation through a shared transformer backbone. A learned routing mechanism dynamically assigns each item to an appropriate recursion depth, allocating deeper computation to complex interactions while processing simpler patterns more efficiently. To improve computational efficiency, we develop a cascade-based strategy with key-value sharing across recursion steps. We further introduce a gated attention mechanism that adaptively regulates contextual information during recursive sequence modeling. Extensive experiments on three benchmark datasets show that MoR4Rec consistently outperforms strong transformer-based baselines, achieving average gains of 2.28% in Recall@5, 2.50% in NDCG@5, and 2.0% in MRR@5 over the strongest baseline. The improvements remain consistent across top-10 and top-20 recommendation cutoffs, while comparisons with vanilla transformers demonstrate the computational efficiency of adaptive recursive processing.
Figures & tables
| Dataset | Model | MFLOPs | Parameter | Train | Infer |
|---|---|---|---|---|---|
| MovieLens 1M | Vanilla Transformer | 44.10 | 422.0 | 647.1 | 0.0004 |
| MoR4Rec | 42.76 | 380.5 | 643.7 | 0.0003 | |
| Industrial & Scientific | Vanilla Transformer | 187.66 | 1857.66 | 897.26 | 0.0002 |
| MoR4Rec | 184.48 | 1803.84 | 1070.64 | 0.0002 | |
| Video Games | Vanilla Transformer | 186.15 | 1842.56 | 2339.53 | 0.0002 |
| MoR4Rec | 182.78 | 1788.86 | 2302.33 | 0.0002 |
Sequential Recommendation
Sequential recommendation predicts what a user will choose next from ordered interactions, adapting to changing interests and context.
See all 157 papers