Abstract
Recent studies increasingly explore Large Language Models (LLMs) as a new paradigm for recommendation systems due to their scalability and world knowledge. However, existing work has three key limitations: (1) most efforts focus on retrieval and ranking, while the reranking phase, critical for refining final recommendations, is largely overlooked; (2) LLMs are typically used in zero-shot or supervised fine-tuning settings, leaving their reasoning abilities, especially those enhanced through reinforcement learning (RL) and high-quality reasoning data, underexploited; (3) items are commonly represented by non-semantic IDs, creating major scalability challenges in industrial systems with billions of identifiers. To address these gaps, we propose the Generative Reasoning Reranker (GR2), an end-to-end framework with a three-stage training pipeline tailored for reranking. First, a pretrained LLM is mid-trained on semantic IDs encoded from non-semantic IDs via a tokenizer achieving $\ge$99% uniqueness. Next, a stronger larger-scale LLM generates high-quality reasoning traces through carefully designed prompting and rejection sampling, which are used for supervised fine-tuning to impart foundational reasoning skills. Finally, we apply Decoupled Clip and Dynamic sAmpling Policy Optimization (DAPO), enabling scalable RL supervision with verifiable rewards designed specifically for reranking. Experiments on two real-world datasets demonstrate GR2's effectiveness: it surpasses the state-of-the-art OneRec-Think by 2.4% in Recall@5 and 1.3% in NDCG@5. Ablations confirm that advanced reasoning traces yield substantial gains across metrics. We further find that RL reward design is crucial in reranking: LLMs tend to exploit reward hacking by preserving item order, motivating conditional verifiable rewards to mitigate this behavior and optimize reranking performance.
Introduction
In modern recommendation systems, the "re-ranking" phase is the final filter that determines exactly what a user sees. While Large Language Models (LLMs) are increasingly used for recommendation, current approaches suffer from three major bottlenecks: neglected re-ranking optimization, underutilized reasoning capabilities, and the scalability issues inherent in non-semantic item IDs.
The Generative Reasoning Re-ranker (GR2) is a new framework from Meta AI that elevates recommendation re-ranking by teaching LLMs to generate explicit reasoning traces. By combining semantic item identifiers, high-quality Chain-of-Thought data, and a novel reinforcement learning strategy, GR2 significantly outperforms existing state-of-the-art generative recommendation models.
Methodology
The GR2 framework employs a three-stage training pipeline to transform a standard LLM into a reasoning-capable re-ranker.
Stage 1: Tokenized Mid-Training
Instead of random IDs, GR2 uses Semantic IDs (SIDs) generated via a specialized tokenizer (RQ-VAE). A "Random Last Level" technique ensures that over 99% of items have a unique identifier while still preserving semantic meaning. The LLM is then "mid-trained" to align these SIDs with natural language metadata (titles, categories, and content).
Stage 2: Reasoning Data Generation
A larger "teacher" model (e.g., Qwen-32B) generates high-quality reasoning traces (Chain-of-Thought) explaining why certain items match a user's history. These traces act as a bridge between raw item metadata and the final ranking decision. The "student" model (e.g., Qwen-8B) is then fine-tuned on this data to impart foundational reasoning skills.
Stage 3: Reinforcement Learning (RL)
To ensure the reasoning actually leads to better rankings, the framework uses DAPO (Decoupled Clip and Dynamic sAmpling Policy Optimization). This stage involves verifiable rewards designed specifically for reranking, including a "Ranking Reward" and a "Conditional Format Reward" to prevent "reward hacking"—a behavior where the model might preserve the original input order just to satisfy formatting requirements.
Experimental Results
Datasets
The framework was evaluated on two widely recognized benchmarks for sequential recommendation: Amazon Beauty (22,363 users, 12,101 items) and Amazon Sports (35,598 users, 18,357 items). Both datasets include rich metadata essential for generating meaningful reasoning traces.
Key Findings
- State-of-the-Art Performance: On the Amazon Beauty dataset, GR2 outperformed the previous leader, OneRec-Think, by 2.4% in Recall@5 and 1.3% in NDCG@5.
- Reasoning Quality: Ablation studies confirmed that "advanced" reasoning traces (those using hierarchical item information) yield significantly better gains than "vanilla" traces. Teaching the model to "summarize history" and "identify patterns" before ranking leads to more robust performance.
- The Necessity of RL: Supervised Fine-Tuning (SFT) alone is often insufficient. While SFT makes the reasoning look plausible, RL is required to align that reasoning with the actual goal of promoting the "ground-truth" item to the top of the list.
- Uniqueness Matters: The tokenization strategy's $\ge$99% uniqueness proved critical for the model's ability to distinguish between similar items in a dense candidate set.
Conclusion and Future Work
GR2 demonstrates that explicit reasoning can significantly enhance the performance of LLM-based re-rankers. While the paper addresses scalability via Semantic IDs, future work will explore testing on industrial-scale datasets with billions of items. Additionally, researchers aim to address inference latency—as generating reasoning traces is computationally expensive—and explore the integration of multi-modal features, such as product images, directly into the reasoning process.
Summary updated