F-GRPO: Factorized Group-Relative Policy Optimization for Unified Candidate Generation and Ranking

Rohan Surana, Gagan Mundada, Junda Wu, Xintong Li, Yizhu Jiao, Bowen Jin, Sizhe Zhou, Tong Yu, Ritwik Sinha, Jiawei Han, Jingbo Shang, Julian McAuleyarXiv 2026

TL;DR

Large Language Models (LLMs) can select and rank items in a single autoregressive pass, but training them via reinforcement learning often fails due to ambiguous credit assignment. F-GRPO solves this by factorizing the policy into distinct generation and ranking phases within a single rollout, applying phase-specific rewards and group-relative advantages. This end-to-end training eliminates gradient interference and yields substantial performance gains in recommendation and question-answering tasks without changing the inference architecture.

What Problem Does This Paper Address?

Traditional retrieval and recommendation systems rely on multi-stage pipelines: a retriever first pulls a broad set of candidates, and a reranker subsequently orders them. While LLMs can consolidate this into a single generative process—producing a subset (a "slate") and ordering it in one go—optimizing them end-to-end with reinforcement learning (RL) is notoriously difficult.

The core issue is the credit assignment gap. If an LLM generates a poor final ranked list, a standard sequence-level reward cannot distinguish whether the model failed to select the right items (slate generation) or simply ordered them poorly (ranking). This ambiguity causes cross-phase gradient contamination, making training unstable and sample-inefficient.

Figure 1: (a) Black-box ranking conflates candidate selection and ordering, yielding ambiguous credit assignment. (b) Factor- ized in-context generation and ranking with phase-specific goals within a single autore- gressive rollout.

Methods

The authors introduce F-GRPO (Factorized Group-Relative Policy Optimization) to bridge this optimization gap. Instead of treating the rollout as a monolithic block, F-GRPO structures the LLM's output into two distinct phases within the same decoding trajectory using XML-style tags (<SLATE>...</SLATE> and <RANK>...</RANK>).

The key innovations lie in how feedback is decoupled and applied:

  1. Phase-Specific Rewards: The slate generator receives an order-invariant coverage reward (focusing purely on whether relevant items were captured). The ranker receives a position-aware utility reward (such as NDCG, focusing on placing the best items at the top).
  2. Factorized Credit Assignment: Rather than computing a single joint advantage for the entire sequence, F-GRPO computes separate group-relative advantages for the slate tokens and the rank tokens. This ensures that the slate generator is updated purely based on coverage quality, while the ranker is updated purely based on ordering quality.

Datasets

The framework was evaluated across two distinct task domains:

  • Sequential Recommendation: Evaluated on MovieLens and LastFM. Given a user's consumption history, the model must select and rank items from a candidate pool of 20.
  • Multi-Hop Question Answering (QA): Evaluated on HotpotQA and MuSiQue. The model must select and rank 2–4 gold evidence passages out of 20 candidates to answer a complex question.

Key Insights and Ideas

  • Phase Separation in Learning: The two components of the factorized policy mature at different rates. The slate generator learns to find relevant items very quickly (reaching 90% of its peak recall by step 150), whereas the ranker takes longer to mature because it can only learn effectively once the slate generator provides a stable, high-quality candidate set.
  • Precision-Recall Redistribution: F-GRPO drives a natural division of labor. The slate generator optimizes for high recall (broad coverage) at the expense of precision. The ranker then reverses this balance, trading recall for high precision by concentrating the best items at the very top of the list.
Figure 3: Precision–recall redistribution between the slate and ranker on LastFM across two model sizes. The ranker trades recall for precision by filtering the slate.
  • Mitigating Distribution Mismatch: Pipelines that train a selector and ranker completely separately often suffer from distribution shift at inference time because the ranker was only exposed to perfect "gold" slates during training. F-GRPO avoids this entirely; the ranker co-adapts by conditioning directly on the imperfect slates generated by the model's own evolving slate generator.

Key Results

  • Substantial Gains over Standard RL: F-GRPO consistently outperformed vanilla GRPO and Supervised Fine-Tuning (SFT) baselines. For example, on the LastFM dataset using a Qwen3-4B backbone, F-GRPO achieved a Recall@3 of 72.4%, compared to vanilla GRPO's 55.1% and SFT's 47.1%.
  • Outperforming Specialized Models: Despite the harder setting of generating item names as free-form text (rather than scoring a closed set of learned embeddings), the Qwen3-4B F-GRPO variant surpassed traditional sequential recommendation baselines (like GRU4Rec and UniSRec) at almost every cutoff on MovieLens and LastFM.
  • Competitive with Dedicated Rerankers: On HotpotQA, the F-GRPO 4B model outperformed all dedicated zero-shot rerankers (such as MonoT5 and RankZephyr), demonstrating the power of in-domain RL alignment.

Limitations and Future Work

  • Model Scale Constraints: Due to practical compute limitations, the study focused primarily on the 2B–4B parameter scale (Qwen3-4B and Qwen3.5-2B). Exploring how factorized credit assignment scales to frontier models (70B+) remains an open direction.
  • Dependency on Structured Formatting: The pipeline relies on the model adhering strictly to the XML delimiter format. While the authors successfully mitigated malformed outputs using constant format penalties, extreme formatting failures during early training phases can still hinder sample efficiency.
  • Broader Applications: The authors suggest extending this two-phase sequence-level objective to other multi-stage compound AI tasks, such as combining chain-of-thought reasoning with external tool execution.

Summary updated

BibTeX
@misc{surana2026f,
  author = {Rohan Surana and Gagan Mundada and Junda Wu and Xintong Li and Yizhu Jiao and Bowen Jin and Sizhe Zhou and Tong Yu and Ritwik Sinha and Jiawei Han and Jingbo Shang and Julian McAuley},
  title = {{F-GRPO: Factorized Group-Relative Policy Optimization for Unified Candidate Generation and Ranking}},
  year = {2026},
  eprint = {2605.12995},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.12995},
}
Figure