AI Navigate

CLIPO: Contrastive Learning in Policy Optimization Generalizes RLVR

arXiv cs.AI / 3/12/2026

💬 OpinionIdeas & Deep AnalysisModels & Research

Key Points

  • RLVR previously relied only on final outcomes for rewards, which can lead to process-level errors and hallucinations in the model's reasoning.
  • CLIPO introduces a contrastive learning objective that operates over successful rollouts to learn an invariant structure across correct reasoning paths, providing stronger cross-trajectory regularization than single-path supervision.
  • This approach mitigates step-level reasoning inconsistencies and reduces hallucinations, improving generalization and robustness in LLM policy optimization.
  • Experiments show that CLIPO consistently improves RLVR baselines across diverse reasoning benchmarks, and the authors provide code and training recipes on GitHub.

Abstract

Reinforcement Learning with Verifiable Rewards (RLVR) has significantly advanced the reasoning capacity of Large Language Models (LLMs). However, RLVR solely relies on final answers as outcome rewards, neglecting the correctness of intermediate reasoning steps. Training on these process-wrong but outcome-correct rollouts can lead to hallucination and answer-copying, severely undermining the model's generalization and robustness. To address this, we incorporate a Contrastive Learning mechanism into the Policy Optimization (CLIPO) to generalize the RLVR process. By optimizing a contrastive loss over successful rollouts, CLIPO steers the LLM to capture the invariant structure shared across correct reasoning paths. This provides a more robust cross-trajectory regularization than the original single-path supervision in RLVR, effectively mitigating step-level reasoning inconsistencies and suppressing hallucinatory artifacts. In experiments, CLIPO consistently improves multiple RLVR baselines across diverse reasoning benchmarks, demonstrating uniform improvements in generalization and robustness for policy optimization of LLMs. Our code and training recipes are available at https://github.com/Qwen-Applications/CLIPO.