RRPO: Reference-Relative Policy Optimization with Stratified Conditional Rollouts
RRPO uses stratified conditional rollouts and contrastive learning to optimize policies without explicit verification signals.
Key Findings
Methodology
RRPO constructs positive and negative anchor sets via stratified conditional rollouts guided by weak task conditions. An offline-trained metric projection head compares candidate rollouts against these anchors using set-contrastive loss, producing alignment scores. During policy updates, the projection head is frozen, and normalized contrastive scores serve as advantages in a group-relative policy gradient framework. This approach replaces explicit correctness rewards with relative, instance-conditioned contrastive advantages, enabling effective learning in tasks lacking verifiable signals. The method integrates group normalization, contrastive metric learning, and policy gradient optimization, demonstrating broad applicability across reasoning, generation, and fine-tuning scenarios.
Key Results
- On GSM8K, RRPO with Qwen3-1.7B achieved Pass@1 of 0.768, surpassing the verifier-based Dr.GRPO at 0.765, indicating competitive performance without explicit verification.
- In open-ended tasks ELI5 and SAMSum, RRPO improved ROUGE and BLEU scores by 2-3 points over pseudo-target fine-tuning, showing stable effectiveness in unverifiable settings.
- Post-fine-tuning, RRPO further enhanced performance, increasing average ROUGE by 1-2 points over supervised fine-tuning alone, confirming its complementary benefits.
Significance
This work advances reinforcement learning by removing reliance on explicit verification, crucial for tasks like long-form generation and dialogue summarization where success signals are ambiguous. The contrastive advantage framework broadens the scope of policy optimization, enabling models to learn from relative cues rather than absolute correctness. Such flexibility is vital for real-world applications, reducing annotation burdens and improving generalization. The approach also bridges the gap between supervised fine-tuning and reinforcement learning, offering a unified framework adaptable to diverse NLP tasks. Its potential to facilitate autonomous, robust, and scalable learning systems marks a significant step forward in AI research.
Technical Contribution
RRPO introduces a novel combination of stratified conditional rollout-based anchor generation and offline contrastive metric learning, resulting in a learned similarity space for policy evaluation. The key innovation lies in freezing the learned metric during policy optimization, using standardized contrastive scores as advantages. This contrasts with traditional reward-based methods, providing a more stable, instance-conditioned signal. The method also extends group-relative policy gradient techniques by replacing explicit scalar rewards with learned, reference-relative scores, enabling effective training without verifiable feedback. Theoretically, RRPO offers a new perspective on advantage estimation grounded in contrastive metric learning, with empirical validation across multiple NLP benchmarks.
Novelty
This is the first work to leverage weak task-specific conditions to generate anchor sets and train a contrastive metric for advantage estimation in reinforcement learning. Unlike prior approaches relying solely on explicit success signals, RRPO employs a learned similarity measure to compare rollouts against weak references, broadening applicability to tasks with ambiguous or subjective success criteria. Its integration of offline contrastive learning with group-relative policy optimization represents a significant methodological innovation, enabling effective policy updates without explicit verification.
Limitations
- The quality of anchor sets heavily influences the effectiveness; poor or biased anchors can degrade performance, especially in highly noisy or complex environments.
- Offline training of the contrastive metric incurs computational overhead, which may limit scalability in large-scale or real-time applications.
- In scenarios with high variability or ambiguous reference behaviors, the contrastive scores may become unstable, requiring further robustness enhancements.
Future Work
Future directions include developing adaptive anchor generation methods to improve diversity and relevance, integrating multi-modal signals for richer reference sets, and extending the framework to multi-turn dialogue and long-form content generation. Additionally, exploring online contrastive learning and dynamic anchor updates could further enhance robustness and scalability.
AI Executive Summary
In recent years, reinforcement learning has become a powerful paradigm for optimizing complex models, especially in natural language processing. Traditional methods like REINFORCE and PPO rely heavily on explicit, verifiable reward signals, which are often unavailable or unreliable in open-ended tasks such as long-form generation, dialogue, and summarization. These tasks involve subjective success criteria, making it difficult to define clear-cut rewards. Consequently, models trained solely on such signals tend to struggle with stability and generalization.
To address this challenge, the paper introduces Reference-Relative Policy Optimization (RRPO), a novel framework that replaces explicit verification with a contrastive advantage mechanism. RRPO constructs positive and negative anchor sets for each input using stratified conditional rollouts guided by weak task conditions. An offline-trained metric projection head compares candidate rollouts against these anchors, producing alignment scores that reflect relative desirability. During policy training, this head is frozen, and the normalized contrastive scores serve as advantages in a group-relative policy gradient setting. This approach effectively leverages weak supervision, enabling stable and scalable policy optimization without reliance on task-specific verifiers.
Experimental results across multiple benchmarks demonstrate RRPO’s versatility and effectiveness. In GSM8K, a mathematical reasoning dataset, RRPO achieves competitive or superior Pass@k metrics compared to verifier-based methods, with Qwen3-1.7B reaching Pass@1 of 0.768. In open-ended tasks like ELI5 and SAMSum, RRPO outperforms pseudo-target fine-tuning, improving ROUGE and BLEU scores by 2-3 points, indicating robust performance in subjective settings. Furthermore, applying RRPO after supervised fine-tuning yields additional gains, confirming its role as a complementary enhancement.
Overall, RRPO broadens the horizon of reinforcement learning in NLP, offering a practical, robust, and versatile solution for policy optimization in complex, ambiguous tasks. Its core innovation—using contrastive, reference-relative advantages—addresses longstanding limitations of reward sparsity and annotation dependency, paving the way for more autonomous and adaptable AI systems. Future work will focus on refining anchor generation, extending to multi-modal data, and online learning strategies to further improve scalability and robustness.
Deep Analysis
Background
The evolution of reinforcement learning in NLP has seen methods like REINFORCE and PPO dominate, relying on explicit reward signals. GRPO further improved efficiency by normalizing rewards within groups, making training more stable for verifiable tasks like GSM8K. However, many real-world NLP tasks—such as dialogue summarization, long-form explanation, and open-ended generation—lack clear success signals, often involving subjective judgments. Recent advances like RLHF and preference learning attempt to address this by using human feedback or relative preferences, but they still depend on some form of explicit supervision. The challenge remains: how to effectively optimize policies when success is ambiguous or hard to verify, especially in large-scale, diverse tasks. This paper situates itself within this context, proposing a method that leverages weak supervision via contrastive learning to overcome these limitations.
Core Problem
The core issue is the reliance on verifiable rewards, which are often unavailable or unreliable in many NLP tasks. Without explicit success signals, existing reinforcement learning approaches struggle with stability and scalability. The key bottleneck is how to construct meaningful advantage signals that guide policy improvement without explicit correctness labels. Pseudo-target methods and preference-based signals provide some solutions but are often brittle or noisy. The challenge is to develop a unified framework that can utilize weak, instance-specific cues to generate stable, informative advantages, enabling effective policy updates across diverse, subjective, and complex tasks.
Innovation
RRPO introduces a paradigm shift by replacing explicit correctness rewards with reference-relative contrastive advantages. Its main innovation is the generation of positive and negative anchor sets using stratified conditional rollouts guided by weak task conditions. An offline-trained contrastive metric compares candidate rollouts against these anchors, producing alignment scores that reflect relative desirability. During policy training, the projection head is frozen, and the normalized contrastive scores serve as advantages, enabling stable, group-relative updates. This approach combines the strengths of contrastive learning, weak supervision, and group normalization, providing a scalable and robust alternative to traditional reward-based methods.
Methodology
- �� Anchor Generation: Use weak task-specific conditions to generate positive and negative rollout sets via a fixed anchor policy. • Offline Metric Learning: Train a contrastive model with set-contrastive loss to distinguish positive and negative anchors, creating a similarity space. • Advantage Construction: During policy updates, compute alignment scores between rollouts and anchors, freeze the metric head, and normalize scores within each group. • Policy Optimization: Apply a clipped policy gradient objective, replacing scalar rewards with normalized contrastive advantages. • Training Workflow: First, offline train the contrastive metric; then, perform policy optimization with frozen metric, ensuring stability and robustness.
Experiments
Experiments cover verifiable reasoning (GSM8K), open-ended generation (ELI5, SAMSum), and post-fine-tuning scenarios. Multiple model sizes (Qwen2.5-1.5B, Qwen3-1.7B, Qwen3-4B) are evaluated. Baselines include standard instruction tuning, verifier-based Dr.GRPO, and pseudo-target fine-tuning. The evaluation metrics include Pass@k, ROUGE, BLEU, and BERTScore. Anchor sets are generated with weak conditions, and the offline contrastive model is trained on initial rollouts. Policy updates use standardized contrastive scores as advantages, with ablation studies confirming the importance of anchor quality and model parameters.
Results
RRPO consistently outperforms baseline instruction models, achieving Pass@1 of 0.768 on GSM8K with Qwen3-1.7B, surpassing verifier-based methods. In open-ended tasks, RRPO improves ROUGE-L by 2-3 points over pseudo-target fine-tuning, with stable training curves. Post-fine-tuning, RRPO further enhances ROUGE scores by 1-2 points, demonstrating its complementary nature. These results confirm that contrastive, reference-relative advantages are effective across diverse tasks, especially where explicit verification is infeasible.
Applications
RRPO is suitable for tasks lacking explicit success signals, such as long-form content creation, dialogue summarization, and preference-based learning. It can be integrated into large language model training pipelines to improve stability and generalization, reducing reliance on costly annotations. Its adaptability makes it promising for multi-modal applications, multi-turn dialogues, and real-time systems where explicit verification is impractical.
Limitations & Outlook
The quality of anchor sets critically impacts performance; poor anchors can introduce bias. Offline contrastive training adds computational overhead, limiting scalability. In highly noisy or ambiguous environments, the contrastive advantage may become unstable, requiring further robustness enhancements. Future work should focus on adaptive anchor generation and online contrastive learning to address these issues.
Plain Language Accessible to non-experts
想象你在学校里学习,老师告诉你:这个题目没有唯一的答案,但你可以通过观察不同学生的答案,找到哪些答案更接近老师想要的标准。你不用每次都得到正确答案,只需要比较答案之间的差异,学习哪些做法更好。每次你完成作业,老师会帮你分析:哪个答案更像“好学生”的答案,哪个还差一点。这样,你就可以不断改进,不用依赖老师给的明确评分,只靠自己和老师的比较。这就像RRPO的方法,用弱条件生成“好”和“差”的参考答案,通过比较,帮助你逐步变得更棒。它不需要明确的对错,只要学会比较,就能不断提升。
ELI14 Explained like you're 14
想象你在玩一款游戏,没有明确的得分规则。你想变得更厉害,但不知道怎么练。于是,你的哥哥告诉你:观察高手的动作,学习他们的优点,避开他们的缺点。每次你玩完,他会帮你比较:哪个动作更像高手的表现,哪个还差一点。这样,你就能慢慢学会哪些行为更好,而不用依赖具体的得分。RRPO就像这个哥哥,用“高手的动作”作为参考,帮你不断改进。它不用告诉你“你赢了”或“你输了”,而是通过比较,找到更接近“高手”的行为,逐步提升你的水平。这种学习方式特别适合那些难以用简单对错判断的任务,比如写长文章、聊天等。
Glossary
对比学习 (Contrastive Learning)
一种通过比较样本相似性或差异性,学习样本间关系的机器学习方法。技术上通过最大化正样本对的相似度、最小化负样本对的相似度实现。
RRPO中用来训练度量投影头,构建相对优势。
锚点 (Anchor)
在对比学习中用作参考的样本,用于与其他样本进行相似性比较。
RRPO中由弱任务条件生成的正负锚点集。
集对比损失 (Set-Contrastive Loss)
一种对一组样本进行对比的损失函数,鼓励正样本集比负样本集更相似。
训练投影头时使用,确保模型区分正负锚点。
策略优势 (Policy Advantage)
在强化学习中,用于衡量某个动作或轨迹相对于基准的优劣程度。
RRPO中用对比得分标准化后作为优势。
分层条件滚动 (Stratified Conditional Rollouts)
根据弱任务条件生成不同类别的轨迹,用于构建锚点集。
RRPO中用于生成正负锚点。
Open Questions Unanswered questions from this research
- 1 如何进一步提高锚点生成的多样性和代表性,确保对比优势的稳定性和泛化能力。
- 2 在极端复杂或高噪声环境中,参考相对优势的鲁棒性和适应性如何提升。
Abstract
Group Relative Policy Optimization (GRPO) has shown strong effectiveness in reinforcement learning from verifiable feedback, where sampled rollouts can be compared within a group using task-provided correctness signals. However, extending group-relative optimization beyond verifiable settings is challenging because success in many tasks is not captured by a single correctness criterion. We propose \textbf{Reference-Relative Policy Optimization (RRPO)}, which generalizes GRPO by replacing direct correctness-based advantage construction with reference-relative contrastive comparisons. RRPO first uses \emph{stratified conditional rollouts} to construct positive and negative anchor sets, and then trains a metric projection head with a set-contrastive objective to compare candidate rollouts against these anchors. The resulting alignment scores directly define contrastive advantages: during policy optimization, the projection head is frozen, and the scores are centered within each rollout group in a standard group-relative objective. We evaluate RRPO using anchor-based contrastive advantages throughout policy optimization, without relying on task ground-truth verifiers. Across verifiable reasoning, open-ended generation, and post-SFT settings, RRPO remains competitive with verifier-based optimization, improves over weakly supervised baselines, and provides additional gains after supervised fine-tuning.