R$^2$ec: Towards Large Recommender Models with Reasoning

Runyang You, Yongqi Li, Xinyu Lin, Xin Zhang, Wenjie Wang, Wenjie Li, Liqiang Nie

TL;DR

R$^2$ec is a unified large recommender model that integrates intrinsic reasoning chain generation with efficient item prediction into a single dual-head architecture. By leveraging a novel reinforcement learning framework called RecPO, the model learns to generate high-quality reasoning pathways without requiring human-annotated data, significantly boosting recommendation accuracy while drastically reducing inference latency compared to existing LLM-based recommenders.

What Problem Does This Paper Address?

Large Language Models (LLMs) have recently been adapted for recommendation systems in two primary ways: as powerful encoders to embed user histories, or as autoregressive generators that output item identifiers token-by-token. While recent breakthroughs show that "test-time compute" (i.e., giving a model time to think or reason before answering) drastically improves LLM performance in complex tasks, applying this to recommendation systems introduces severe bottlenecks:

  1. High Computational Latency: Autoregressively decoding both a reasoning chain and a long item identifier is incredibly slow, making it impractical for real-time production systems.
  2. Decoupled Pipelines: Existing reasoning-augmented recommenders use separate modules for reasoning and recommendation. This prevents end-to-end gradient flow, leading to suboptimal performance.
  3. Data Scarcity: High-quality, annotated reasoning data for recommendations is incredibly scarce and highly subjective, making supervised fine-tuning difficult.

The authors introduce R$^2$ec to solve these challenges by unifying reasoning and recommendation into a single, end-to-end trainable model.

Methods

Dual-Head Architecture

Instead of relying on slow token-by-token generation for items, R$^2$ec splits its output layer into two specialized heads attached to a decoder-only LLM backbone:

  • Language-Modeling Head (lm_head): Autoregressively generates the text-based reasoning tokens (the "chain of thought").
  • Recommendation Head (rec_head): Takes the final hidden state from the reasoning chain and projects it into a shared semantic item embedding space to predict the next item in a single step.
Figure 1: The architecture overview of R2ec, which facilitates interleaved reasoning and recom- mendation in an autoregressive process with two task-specific heads: 1) language-modeling head (lm_head) for reasoning generation; and 2) recommendation head (rec_head) for item prediction.

RecPO: Reinforcement Learning without Human Labels

To train the model without human-annotated reasoning chains, the authors propose RecPO (Recommendation Policy Optimization). For a given user profile, the model samples multiple diverse reasoning trajectories. To evaluate these trajectories, RecPO introduces a fused reward scheme:

$$R = \beta R_c + (1 - \beta) R_d$$

Where $R_d$ is a discrete ranking reward (like NDCG) and $R_c$ is a continuous similarity reward (softmax similarity of the target item). This continuous term provides fine-grained feedback when multiple reasoning paths yield identical top-K item rankings.

During optimization, all sampled paths update the token-level reasoning policy, but only the trajectory with the highest advantage contributes gradients to the recommendation head. This focuses recommendation learning on the most promising reasoning pathways.

Datasets

The model was evaluated on real-world e-commerce and interaction datasets from Amazon (2023):

  • Musical Instruments (Instruments)
  • CDs and Vinyl (CDs)
  • Video Games (Games)

To test cross-domain robustness, the authors also extended evaluations to the Electronics, MovieLens, and GoodReads datasets.

Key Insights and Ideas

  • Shared Hidden Space Alignment: Because the lm_head and rec_head share the same underlying transformer backbone, the act of generating text-based reasoning directly reshapes the final user hidden state ($h_T$). This tightly couples the "thinking" process with the final ranking vector.
  • Dense Rewards Solve Sparse Rankings: Relying purely on discrete recommendation metrics (like Hit Rate or NDCG) as RL rewards creates a sparse gradient problem. Fusing them with continuous semantic similarity provides the necessary resolution to guide policy optimization effectively.
  • Emergent Strategy Selection: Without any human templates, the model naturally discovers distinct recommendation strategies depending on the domain—such as Attribute Abstraction in music (identifying genres/vocals) and Scenario-Based Reasoning in video games (inferring user intent or hardware setups).

Key Results

R$^2$ec consistently outperformed traditional sequential recommenders (e.g., SASRec), standard LLM recommenders (e.g., LLaRA), and decoupled reasoning baselines (e.g., LangPTune) across all datasets.

Overall performance comparison of R$^2$ec against baselines on three primary datasets.
  • Accuracy Gains: On the Gemma-2B backbone, R$^2$ec achieved relative improvements in Hit@5 of up to 50.86% on Instruments and 63.71% on CDs and Vinyl compared to the best baseline methods.
  • Inference Efficiency: By replacing autoregressive item ID decoding with a single-step embedding projection, R$^2$ec cut inference latency down to 1.67 seconds (compared to LLaRA's 5.23 seconds). When paired with the vLLM inference framework, latency plummeted to 0.0945 seconds, effectively closing the gap with traditional non-LLM models.

Limitations and Future Work

Despite the massive speedups over other LLM recommenders, generating explicit reasoning chains still introduces a latency overhead compared to traditional, non-LLM sequential models (like SASRec at 0.014s). Additionally, due to computational constraints, the authors optimized the model using parameter-efficient fine-tuning (LoRA) rather than full-parameter tuning.

Future work will focus on exploring more compressed, highly efficient reasoning mechanisms to deploy these large recommender models in ultra-low-latency production environments.

Summary updated

BibTeX
@inproceedings{you2025r,
  author = {Runyang You and Yongqi Li and Xinyu Lin and Xin Zhang and Wenjie Wang and Wenjie Li and Liqiang Nie},
  title = {{R$^2$ec: Towards Large Recommender Models with Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=VYdzGigCBC},
}
Figure