Imagine you’re winding down after a long day, scrolling through your favorite app. Some of your clicks are mindless habits—you buy the same brand of coffee every Tuesday. Others are deep dives—you’ve suddenly decided to take up woodworking and are comparing specialized chisels.
Current recommendation AI treats both these behaviors exactly the same. Whether it's a routine "latte" or a complex "lathe," the model spends the same amount of "thinking time" (computational depth) on every single item in your history. This paper, MoR4Rec, suggests that’s a massive waste of energy. Instead, it proposes a system that knows when to skim and when to study.
TL;DR
MoR4Rec introduces a "Mixture-of-Recursion" approach to sequential recommendation, allowing the model to adaptively decide how much computation to spend on each item in a user's history. By routing "easy" routine interactions through fewer layers and "complex" preference shifts through more, it achieves state-of-the-art accuracy while actually reducing the computational footprint.
What Problem Does This Paper Address?
Sequential Recommender Systems (SRS) try to predict your next move by looking at your past. Most modern versions use Transformers—the same tech behind ChatGPT—because they are great at spotting long-range patterns.
However, Transformers are "fixed-depth." If you have a 12-layer model, every item in the sequence goes through all 12 layers. The authors argue this is suboptimal. User behavior is heterogeneous:
- Simple patterns: Repetitive, habitual clicks that don't need deep reasoning.
- Complex patterns: Interactions that signal a shift in intent or require understanding a long chain of previous actions.
Applying a "one-size-fits-all" depth leads to inefficient use of model capacity and unnecessary lag. MoR4Rec aims to fix this by making the computation depth item-wise adaptive.
Methods
The framework processes a sequence through a few clever stages:
- The Shared Backbone: Instead of having many unique layers, MoR4Rec uses a recursive structure. It has a shared transformer block that can be reused multiple times. This keeps the parameter count low while allowing for "virtual" depth.
- The Token Router: This is the "brain" of the operation. After an initial pass, a lightweight router looks at each item and assigns it a recursion depth.
- Cascading Selection: Items assigned a shallow depth exit early. Only the "complex" items continue through additional recursive loops.
- Adaptive KV Sharing: To avoid re-doing work, the model caches "Keys" and "Values" (internal attention states) from the first pass. In subsequent loops, it only updates these states for the active, complex items.
- Gated Attention: The authors added a "volume knob" to the attention mechanism. This allows the model to dynamically suppress noisy or irrelevant interactions on a per-item basis, which is particularly helpful when a user's history is sparse or messy.
Datasets
The authors tested MoR4Rec on three well-known benchmarks that represent different "vibes" of user data:
- MovieLens 1M: A relatively dense dataset of movie ratings.
- Amazon Video Games: A sparse dataset with long-tail (rare) items.
- Amazon Industrial & Scientific: Another sparse dataset representing niche professional interests.
Key Insights and Ideas
- Recency Matters: When analyzing the router's behavior, the authors found it naturally learned to spend more "thinking time" on the most recent items in a sequence. This makes intuitive sense: your last three clicks are usually more complex signals for your next click than something you did three years ago.
- Parameter Efficiency: Because the middle layers are shared (recursive), you can effectively have a very "deep" model without the massive memory footprint of a standard deep Transformer.
- Noise Filtering: The gated attention mechanism proved vital for sparse datasets. It acts as a filter, preventing the model from getting distracted by "incidental" clicks that don't represent the user's true intent.
Key Results
MoR4Rec didn't just save time; it got smarter. Compared to the strongest baselines (like LRURec and BERT4Rec):
- Accuracy Gains: It achieved average improvements of 2.28% in Recall@5 and 2.50% in NDCG@5.
- Efficiency: On the MovieLens 1M dataset, it required 42.76 MFLOPs compared to the vanilla Transformer's 44.10 MFLOPs, while using roughly 10% fewer parameters.
- Statistical Significance: Using the Friedman and Nemenyi tests, the authors confirmed that these gains weren't just lucky flukes—they are statistically superior across the board.
Limitations and Future Work
While MoR4Rec is a leap forward, the authors note a few areas for growth:
- Interpretability: While we know that the router picks different depths, we don't always know exactly why a specific item was deemed "complex." Improving the transparency of this routing logic is a goal.
- Beyond Text/IDs: The current model focuses on item IDs. Future versions could incorporate multi-modal data (like product images or descriptions) to see if that changes how the model allocates its "thinking time."
- Cross-Domain: Testing how this adaptive depth handles users who jump between very different categories (e.g., from buying electronics to buying groceries) is another promising direction.
Summary updated