Contrastive Policy Gradient: Aligning LLMs on sequence-level scores in a supervised-friendly fashion
On the map: LLM alignment / RLHF / preference optimisation → LLM preference optimization methods
Abstract (arXiv)
Reinforcement Learning (RL) has been used to finetune Large Language Models (LLMs) using a reward model trained from preference data, to better align with human judgment. The recently introduced direct alignment methods, which are often simpler, more stable, and computationally lighter, can more directly achieve this. However, these approaches cannot optimize arbitrary rewards, and the preference-based ones are not the only rewards of interest for LLMs (eg., unit tests for code generation or textual entailment for summarization, among others). RL-finetuning is usually done with a variation of policy gradient, which calls for on-policy or near-on-policy samples, requiring costly generations. We introduce Contrastive Policy Gradient, or CoPG, a simple and mathematically principled new RL algorithm that can estimate the optimal policy even from off-policy data. It can be seen as an off-policy policy gradient approach that does not rely on important sampling techniques and highlights the importance of using (the right) state baseline. We show this approach to generalize the direct alignment method IPO (identity preference optimization) and classic policy gradient. We experiment with the proposed CoPG on a toy bandit problem to illustrate its properties, as well as for finetuning LLMs on a summarization task, using a learned reward function considered as ground truth for the purpose of the experiments.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Placed in LLM preference optimization methods, one of 10 directions in LLM alignment / RLHF / preference optimisation. Builds on 21 of its 31 references that are in the map. First posted on arXiv 27 Jun 2024.
Builds on
21 of 31 references.
Closest ancestors · 4
Same direction, newest first
- 2024Understanding the performance gap between online and offline alignment algorithms14 May
- 2024Generalized Preference Optimization: A Unified Approach to Offline Alignment8 Feb
- 2023A General Theoretical Paradigm to Understand Learning from Human Preferences18 Oct
- 2022Training language models to follow instructions with human feedback4 Mar
Other references · 17
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 11,979
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,634
- 2020Learning to summarize from human feedbackcited by 2,562
- 2023SLiC-HF: Sequence Likelihood Calibration with Human Feedbackcited by 395
- 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
- 2019A Theory of Regularized Markov Decision Processescited by 279
5 more
- 2024Preference Fine-Tuning of LLMs Should Leverage Suboptimal, On-Policy Datacited by 184
- 2015Taming the Noise in Reinforcement Learning via Soft Updatescited by 125
- 2016Sequence Tutor: Conservative Fine-Tuning of Sequence Generation Models with KL-controlcited by 100
- 2023Factually Consistent Summarization via Reinforcement Learning with Textual Entailment Feedbackcited by 71
- 2023Pairwise Proximal Policy Optimization: Harnessing Relative Feedback for LLM Alignmentcited by 57
Built on by
Citing papers per year: 2024: 2; 2025: 11.
13 papers.
Sort:
By area:
- 2024BOND: Aligning LLMs with Best-of-N Distillationcited by 73
- 2024Asynchronous RLHF: Faster and More Efficient Off-Policy RL for Language Modelscited by 65
- 2025Tapered Off-Policy REINFORCE: Stable and efficient reinforcement learning for LLMscited by 61
- 2025On a few pitfalls in KL divergence gradient estimation for RLcited by 27
- 2025It Takes Two: Your GRPO Is Secretly DPOcited by 25
- 2025Trinity-RFT: A General-Purpose and Unified Framework for Reinforcement Fine-Tuning of Large Language Modelscited by 19
- 2025World Modelling Improves Language Model Agentscited by 12
- 2025RL-finetuning LLMs from on- and off-policy data with a single algorithmcited by 11
- 2025TROLL: Trust Regions improve Reinforcement Learning for Large Language Modelscited by 7
- 2025ShiQ: Bringing back Bellman to LLMscited by 3
- 2025Reverse Engineering Human Preferences with Reinforcement Learningcited by 3
- 2025KL-Regularised Q-Learning: A Token-level Action-Value perspective on Online RLHFcited by 2
1 more
- 2025TROLL: Trust Regions improve Reinforcement Learning for Large Language Models4 Oct 2025
- 2025It Takes Two: Your GRPO Is Secretly DPO1 Oct 2025
- 2025Imitate Optimal Policy: Prevail and Induce Action Collapse in Policy Gradient2 Sep 2025
- 2025KL-Regularised Q-Learning: A Token-level Action-Value perspective on Online RLHF23 Aug 2025
- 2025On a few pitfalls in KL divergence gradient estimation for RL11 Jun 2025
- 2025World Modelling Improves Language Model Agents3 Jun 2025
- 2025Trinity-RFT: A General-Purpose and Unified Framework for Reinforcement Fine-Tuning of Large Language Models23 May 2025
- 2025Reverse Engineering Human Preferences with Reinforcement Learning21 May 2025
- 2025ShiQ: Bringing back Bellman to LLMs16 May 2025
- 2025RL-finetuning LLMs from on- and off-policy data with a single algorithm25 Mar 2025
- 2025Tapered Off-Policy REINFORCE: Stable and efficient reinforcement learning for LLMs18 Mar 2025
- 2024Asynchronous RLHF: Faster and More Efficient Off-Policy RL for Language Models23 Oct 2024
1 more
- 2024BOND: Aligning LLMs with Best-of-N Distillation19 Jul 2024
- 2024BOND: Aligning LLMs with Best-of-N Distillationcited by 73
- 2024Asynchronous RLHF: Faster and More Efficient Off-Policy RL for Language Modelscited by 65
- 2025Reverse Engineering Human Preferences with Reinforcement Learningcited by 3
- 2025KL-Regularised Q-Learning: A Token-level Action-Value perspective on Online RLHFcited by 2
- 2025KL-Regularised Q-Learning: A Token-level Action-Value perspective on Online RLHF23 Aug 2025
- 2025Reverse Engineering Human Preferences with Reinforcement Learning21 May 2025
- 2024Asynchronous RLHF: Faster and More Efficient Off-Policy RL for Language Models23 Oct 2024
- 2024BOND: Aligning LLMs with Best-of-N Distillation19 Jul 2024
- 2025It Takes Two: Your GRPO Is Secretly DPOcited by 25
- 2025It Takes Two: Your GRPO Is Secretly DPO1 Oct 2025
- 2025World Modelling Improves Language Model Agentscited by 12
- 2025World Modelling Improves Language Model Agents3 Jun 2025
- 2025Tapered Off-Policy REINFORCE: Stable and efficient reinforcement learning for LLMscited by 61
- 2025On a few pitfalls in KL divergence gradient estimation for RLcited by 27
- 2025Trinity-RFT: A General-Purpose and Unified Framework for Reinforcement Fine-Tuning of Large Language Modelscited by 19
- 2025RL-finetuning LLMs from on- and off-policy data with a single algorithmcited by 11
- 2025TROLL: Trust Regions improve Reinforcement Learning for Large Language Modelscited by 7
- 2025ShiQ: Bringing back Bellman to LLMscited by 3
- 2025Imitate Optimal Policy: Prevail and Induce Action Collapse in Policy Gradientcited by 0
- 2025TROLL: Trust Regions improve Reinforcement Learning for Large Language Models4 Oct 2025
- 2025Imitate Optimal Policy: Prevail and Induce Action Collapse in Policy Gradient2 Sep 2025
- 2025On a few pitfalls in KL divergence gradient estimation for RL11 Jun 2025
- 2025Trinity-RFT: A General-Purpose and Unified Framework for Reinforcement Fine-Tuning of Large Language Models23 May 2025
- 2025ShiQ: Bringing back Bellman to LLMs16 May 2025
- 2025RL-finetuning LLMs from on- and off-policy data with a single algorithm25 Mar 2025
- 2025Tapered Off-Policy REINFORCE: Stable and efficient reinforcement learning for LLMs18 Mar 2025
Similar, not cited
Close in wording, no citation either way
- 2024Unified Preference Optimization: Language Model Alignment Beyond the Preference Frontier
- 2024Towards Efficient Exact Optimization of Language Model Alignment
- 2025AlignDistil: Token-Level Language Model Alignment as Adaptive Policy Distillation
- 2025Aligning Frozen LLMs by Reinforcement Learning: An Iterative Reweight-then-Optimize Approach
- 2023RLCD: Reinforcement Learning from Contrastive Distillation for Language Model Alignment
- 2024Exploring RL-based LLM Training for Formal Language Tasks with Programmed Rewards
- 2024Mixed Preference Optimization: Reinforcement Learning with Data Selection and Better Reference Model
- 2024RS-DPO: A Hybrid Rejection Sampling and Direct Preference Optimization Method for Alignment of Large Language Models