Towards Efficient Exact Optimization of Language Model Alignment

Haozhe Ji, Cheng Lu, Yilin Niu, Pei Ke, Hongning Wang +3 more
2/12/2026

No official code found. Best implementation: haozheji/exact-optimization (55 stars, MIT, last commit 2024-06-16).

Abstract

The alignment of language models with human preferences is vital for their application in real-world tasks. The problem is formulated as optimizing the model's policy to maximize the expected reward that reflects human preferences with minimal deviation from the initial policy. While considered as a straightforward solution, reinforcement learning (RL) suffers from high variance in policy updates, which impedes efficient policy improvement. Recently, direct preference optimization (DPO) was proposed to directly optimize the policy from preference data. However, we show that DPO derived based on the optimal solution of the problem leads to a compromised mean-seeking approximation of the optimal solution in practice. In this paper, we propose efficient exact optimization (EXO) of the alignment objective. EXO is guaranteed to optimize in the same direction as RL algorithms asymptotically for arbitrary policy parametrization. This leads to the same mode-seeking solution, while enables efficient optimization by circumventing the complexities of RL. We also compare our method to DPO with both theoretical and empirical analyses, and further demonstrate the advantages of our method over existing approaches on realistic human preference data. Code is available at https://github.com/haozheji/exact-optimization.

View on arXivView PDF

Code Implementations(1)

MIT

ICML 2024 - Official Repository for EXO: Towards Efficient Exact Optimization of Language Model Alignment

551Shell, PythonJan 27, 20242 years agoMIT
large-language-modelslearning-from-human-feedbacknatural-language-processingrlhf

Similar Papers

Cite this paper

@article{ji2026towards,
  title  = {Towards Efficient Exact Optimization of Language Model Alignment},
  author = {Haozhe Ji and Cheng Lu and Yilin Niu and Pei Ke and Hongning Wang and Jun Zhu and Jie Tang and Minlie Huang},
  year   = {2026},
  eprint = {2402.00856},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2402.00856},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.00856.svg)](https://codeofpaper.com/paper/2402.00856)

Discussion