Abstract
Standard sequential recommendation models often rely on a single forward pass to predict user intent, which can be insufficient for complex preferences or sparse data. This paper introduces ReaRec, a model-agnostic framework that implements "inference-time computing" for recommendation. By autoregressively feeding hidden states back into the model for multiple reasoning steps, ReaRec deepens feature interaction without significantly increasing parameter count. Experimental results across five datasets show an average accuracy boost of 7.49%, with potential gains of up to 50% if reasoning depth is optimized per user.
Introduction
Sequential Recommendation (SeqRec) aims to predict a user's next interaction based on their historical behavior. Current state-of-the-art models like SASRec and BERT4Rec typically follow a "direct inference" paradigm: the user sequence is encoded once, and the final state is used for prediction. However, this "shallow" computation often fails to capture nuanced intent, especially for long-tail items or cold-start users.
Inspired by the success of "Chain-of-Thought" and inference-time reasoning in Large Language Models (LLMs), the authors propose giving recommendation models more "thinking time." The challenge lies in doing so efficiently within the high-throughput constraints of production recommendation systems.
The ReaRec Framework
ReaRec extends the computational depth of existing recommenders during the inference phase through a latent reasoning process.
Core Components
- Extended Inference-Time Reasoning: Instead of a single pass, the model's final hidden state is fed back into the encoder for $K$ additional iterations. This allows the model to "deliberate" on the encoded sequence.
- Reasoning Position Embeddings (RPE): To distinguish between the initial sequence encoding and subsequent reasoning steps, specialized embeddings decouple these two functional spaces.
- Learning Strategies:
- Ensemble Reasoning Learning (ERL): Aggregates states from different reasoning steps as multiple views of user interest, using a KL Divergence Regularizer to maintain diversity across steps.
- Progressive Reasoning Learning (PRL): Employs Progressive Temperature Annealing to sharpen the model's focus as reasoning depth increases, complemented by Reasoning-aware Contrastive Learning (RCL) for noise robustness.
To maintain efficiency, ReaRec utilizes KV Caching, reusing previous computations to keep latency increases minimal (approximately 3.5%).
Experimental Results
The framework was evaluated on five real-world datasets (Yelp and four Amazon 2023 domains) using four backbone models: SASRec, BERT4Rec, UniSRec, and MoRec.
Key Findings
- Consistent Improvements: ReaRec improved performance across all backbones and datasets, with an average gain of 7.49%. In specific cases like the Amazon "CDs & Vinyl" dataset, improvements reached 18.59%.
- The Performance Ceiling: As shown in the results, there is a massive gap between current performance and the "Upper Bound" (the performance achievable if the optimal number of reasoning steps were chosen for each user). This suggests that current models are limited more by their inference logic than their parameter capacity.
- Handling the Long Tail: Reasoning is particularly effective for users with sparse histories or for predicting unpopular items, where "direct" patterns are less obvious.
Discussion and Future Work
While ReaRec demonstrates the power of latent reasoning, it also reveals an "overthinking" phenomenon: for some users, too many reasoning steps can degrade performance. Unlike the monotonic scaling laws seen in LLMs, recommendation reasoning currently exhibits a "peak and decline" pattern.
Future research will focus on adaptive depth, developing policies to automatically determine the optimal amount of "thinking" required for a specific sequence. Additionally, disentangling the parameters used for encoding versus reasoning may further improve the model's ability to handle complex user intents.
Conclusion
ReaRec represents a significant step toward more intelligent recommendation systems by shifting the focus from model size to inference-time computation. By allowing models to "think" before they recommend, we can unlock latent reasoning capabilities that significantly enhance accuracy and robustness.
Summary updated