Rec-R1: Bridging Generative Large Language Models and User-Centric Recommendation Systems via Reinforcement Learning

Jiacheng Lin, Tian Wang, Kun Qian · DOI

Abstract

Integrating Large Language Models (LLMs) into recommendation systems (RecSys) has traditionally relied on prompting or supervised fine-tuning (SFT). However, these methods often face performance ceilings dictated by teacher models and suffer from catastrophic forgetting of general reasoning capabilities. This paper introduces Rec-R1, a reinforcement learning (RL) framework that optimizes LLMs for recommendation tasks by training them directly on system feedback. Using Group Relative Policy Optimization (GRPO) and rule-based rewards like NDCG and Recall, Rec-R1 consistently outperforms traditional methods while preserving the model's general instruction-following and mathematical abilities.

1. Introduction

While LLMs possess vast world knowledge, their application in recommendation systems has been limited by two primary paradigms: prompting frozen models and supervised fine-tuning (SFT) on proprietary model outputs. Prompting fails to adapt the LLM to specific dataset nuances, while SFT creates a performance "ceiling" where the student model cannot surpass the teacher. Furthermore, SFT often leads to catastrophic forgetting, turning a versatile LLM into a narrow, specialized tool.

Rec-R1 addresses these challenges by treating recommendation as a closed-loop optimization problem. By training directly on the metrics that define success in RecSys—such as NDCG and Recall—Rec-R1 allows the model to explore and discover optimal strategies that exceed the capabilities of teacher-distilled models.

2. The Rec-R1 Framework

2.1 Closed-Loop Optimization

Rec-R1 utilizes a closed-loop RL pipeline. In this setup, the LLM generates an output (e.g., a refined search query or a ranked list), which is then processed by a fixed recommendation component (e.g., a BM25 retriever). The system calculates a reward based on the actual performance of that output against ground-truth user data.

2.2 Group Relative Policy Optimization (GRPO)

To ensure training efficiency, Rec-R1 employs Group Relative Policy Optimization (GRPO). Unlike standard RLHF, which requires a separate, memory-intensive reward model or "critic," GRPO computes rewards relative to a group of sampled outputs for the same prompt. This significantly reduces the computational overhead and memory footprint during training.

2.3 Rule-Based Rewards

Instead of relying on subjective neural reward models, Rec-R1 uses "hard" metrics from the recommendation system as the reward signal. By optimizing directly for metrics like NDCG@100 or Recall, the framework prevents "reward hacking" and ensures the LLM's outputs are mathematically aligned with the system's goals.

3. Experimental Evaluation

3.1 Tasks and Datasets

The framework was evaluated across three distinct recommendation paradigms:

  • Product Search: Rewriting queries to improve retriever performance (ESCI and Amazon-C4 datasets).
  • Sequential Recommendation: Predicting the next item based on user history (Amazon Beauty dataset).
  • Product Re-ranking: Sorting candidate items for maximum relevance.

3.2 Generalization and Robustness

To monitor for catastrophic forgetting, the researchers tested the models on general benchmarks, including MMLU (knowledge), IFEval (instruction following), GSM8K (math), and HumanEval (coding).

4. Key Insights

4.1 Breaking the SFT Ceiling

The authors provide theoretical evidence (Fact 1) that SFT constrains a model to the distribution of its teacher. In contrast, Rec-R1's RL approach allows the model to explore the action space and discover superior strategies. In product search tasks on the ESCI Video Games domain, Rec-R1 achieved an NDCG@100 of 33.89, more than doubling the performance of the base BM25 (12.44) and significantly outperforming GPT-4o prompting (26.06).

4.2 Preserving General Intelligence

A critical advantage of Rec-R1 is its ability to maintain general reasoning. While SFT caused a 27-point drop in IFEval scores, Rec-R1 actually improved or maintained performance across IFEval and GSM8K. This suggests that the RL process reinforces the model's ability to follow complex instructions and reason logically rather than just memorizing domain-specific patterns.

4.3 Efficiency and Cost-Effectiveness

Rec-R1 is remarkably efficient. Matching the performance of a GPT-4o-distilled SFT model cost only $0.48 in compute and 210 seconds of training, compared to $15.60 and 7.5 hours for the equivalent SFT pipeline. This represents a massive reduction in the resources required to deploy high-performing recommendation LLMs.

5. Conclusion and Future Work

Rec-R1 demonstrates that reinforcement learning is a superior alternative to SFT for integrating LLMs into recommendation systems. It breaks performance ceilings, prevents the loss of general intelligence, and operates at a fraction of the cost of traditional distillation. Future research will focus on Unified Training, aiming to develop a single LLM capable of handling retrieval, augmentation, and ranking simultaneously through a unified RL objective.

Summary updated

BibTeX
@article{lin2025rec,
  author = {Jiacheng Lin and Tian Wang and Kun Qian},
  title = {{Rec-R1: Bridging Generative Large Language Models and User-Centric Recommendation Systems via Reinforcement Learning}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=YBRU9MV2vE},
}
Figure