Think Before Recommend: Unleashing the Latent Reasoning Power for Sequential Recommendation

Jiakai Tang, Sunhao Dai, Teng Shi, Jun Xu, Xu Chen, Wen Chen, Jian Wu, Yuning Jiang

TL;DR

ReaRec introduces the concept of inference-time compute scaling—akin to Chain-of-Thought reasoning in Large Language Models—to sequential recommendation systems. By autoregressively refining user representations through implicit multi-step reasoning in the latent space, it significantly boosts recommendation quality, particularly for long-tail items, while adding negligible latency.

What Problem Does This Paper Address?

Mainstream Sequential Recommendation (SeqRec) models, such as SASRec or UniSRec, typically follow a "direct recommendation" paradigm. They process a user's historical interactions through a sequence encoder and use the final hidden state as the static user representation to predict the next item.

The authors argue that this single-pass forward computation lacks the computational depth required to capture complex, evolving user preferences. This limitation is especially pronounced for "long-tail" scenarios: users with very sparse interaction histories or items with low popularity. These challenging cases inherently demand deeper representation learning and more nuanced reasoning than a single forward pass can provide.

Traditional direct inference vs. multi-step reasoning-enhanced recommendation framework.

Methods

To give recommendation models more "thinking space," the authors propose ReaRec, a model-agnostic framework that extends computational capacity during inference via multi-step implicit reasoning.

Instead of outputting a recommendation immediately, ReaRec autoregressively feeds the sequence's last hidden state back into the encoder for $K$ additional passes. To prevent the model from confusing the initial sequence encoding phase with the subsequent reasoning phase, they introduce Reasoning Position Embeddings (RPE) to decouple the two spaces.

To optimize this implicit reasoning process and prevent "reasoning degradation" (where the model simply copies previous states or drifts off-course), the paper introduces two lightweight learning strategies:

  1. Ensemble Reasoning Learning (ERL): Aggregates the hidden states from all reasoning steps using average pooling to create a multi-view user representation. It applies a Kullback-Leibler (KL) divergence regularization to maximize the diversity between steps, preventing pattern collapse.
  2. Progressive Reasoning Learning (PRL): Uses Progressive Temperature Annealing (PTA) to gradually sharpen the predicted probability distribution as the reasoning steps progress. It pairs this with Reasoning-aware Contrastive Learning (RCL), which injects noise into intermediate states to teach the model how to self-correct reasoning errors.

To keep inference fast, ReaRec utilizes KV Caching, which reuses key and value vectors from past steps and reduces attention computation complexity from $O(N^2)$ to $O(N)$.

Overview of the proposed ReaRec framework alongside ERL and PRL learning strategies.

Datasets

The framework was evaluated on five public, real-world datasets:

  • Yelp: A business review dataset preprocessed with 20-core filtering.
  • Amazon 2023: Four distinct e-commerce domains including Video & Games, Software, CDs & Vinyl, and Baby & Products.

Key Insights and Ideas

  • "Thinking Space" Benefits the Long Tail Most: A robustness analysis across subgroups revealed that multi-step reasoning steadily improves recommendation quality for short-sequence users and unpopular items. Conversely, highly active users or popular items see diminishing returns or slight degradation, suggesting they don't need the extra compute.
  • Naive Autoregressive Loops Fail: Simply looping hidden states back into a transformer without RPE or step-wise supervision actually hurts performance. Explicitly guiding the intermediate thought steps is mandatory to avoid homogenization.
  • Latent Chain-of-Thought is Viable: While LLMs rely on discrete text tokens to reason, recommendation backbones can successfully execute multi-step reasoning entirely within continuous latent spaces.
Robustness study showing performance trends across different user and item subgroups as reasoning steps increase.

Key Results

  • Consistent Performance Gains: Across five datasets and multiple backbones (SASRec, BERT4Rec, UniSRec, MoRec), ReaRec achieved an average performance gain of 7.49% across all metrics.
  • Minimal Latency Overhead: Thanks to KV caching, the optimal two-step reasoning configuration incurred only 3.51% additional inference latency, making it highly practical for real-world deployment.
  • Massive Performance Ceilings: A post-hoc analysis selecting the optimal reasoning step per sample showed that ReaRec can theoretically elevate the performance ceiling of baseline models by 30% to 50%.
Empirical performance gains and potential upper bound analysis on the Yelp dataset.

Limitations and Future Work

The authors candidly point out a few open challenges:

  • The "Overthinking" Phenomenon: Performance tends to decline if the number of reasoning steps gets too large (typically past 2 or 3 steps). The framework currently lacks a true monotonic "inference-time scaling law."
  • Static Inference Depth: ReaRec applies the same number of reasoning steps to all users. A valuable future direction is developing an adaptive inference depth policy that bypasses extra compute for active users but deepens it for cold-start users.
  • Parameter Sharing Ambiguity: Currently, the same neural modules handle both item sequence encoding and multi-step reasoning. Fully decoupling these parameters at the model level could reduce task interference and further boost results.

Summary updated

BibTeX
@article{tang2026think,
  author = {Jiakai Tang and Sunhao Dai and Teng Shi and Jun Xu and Xu Chen and Wen Chen and Jian Wu and Yuning Jiang},
  title = {{Think Before Recommend: Unleashing the Latent Reasoning Power for Sequential Recommendation}},
  journal = {IEEE Trans. Knowl. Data Eng.},
  year = {2026},
  doi = {10.1109/tkde.2026.3694421},
}
Figure