Nash Learning from Human Feedback

Rémi Munos, Michal Valko, Daniele Calandriello, M. G. Azar, Mark Rowland +12 more
2/12/2026

No official code found. Best implementation: buttercutter/NLHF (6 stars, last commit 2024-05-01).

Abstract

Reinforcement learning from human feedback (RLHF) has emerged as the main paradigm for aligning large language models (LLMs) with human preferences. Typically, RLHF involves the initial step of learning a reward model from human feedback, often expressed as preferences between pairs of text generations produced by a pre-trained LLM. Subsequently, the LLM's policy is fine-tuned by optimizing it to maximize the reward model through a reinforcement learning algorithm. However, an inherent limitation of current reward models is their inability to fully represent the richness of human preferences and their dependency on the sampling distribution. In this study, we introduce an alternative pipeline for the fine-tuning of LLMs using pairwise human feedback. Our approach entails the initial learning of a preference model, which is conditioned on two inputs given a prompt, followed by the pursuit of a policy that consistently generates responses preferred over those generated by any competing policy, thus defining the Nash equilibrium of this preference model. We term this approach Nash learning from human feedback (NLHF). In the context of a tabular policy representation, we present a novel algorithmic solution, Nash-MD, founded on the principles of mirror descent. This algorithm produces a sequence of policies, with the last iteration converging to the regularized Nash equilibrium. Additionally, we explore parametric representations of policies and introduce gradient descent algorithms for deep-learning architectures. To demonstrate the effectiveness of our approach, we present experimental results involving the fine-tuning of a LLM for a text summarization task. We believe NLHF offers a compelling avenue for preference learning and policy optimization with the potential of advancing the field of aligning LLMs with human preferences.

View on arXivView PDF

Code Implementations(1)

buttercutter/NLHFCommunity64%

A simple code for [Nash Learning from Human Feedback](https://arxiv.org/abs/2312.00886)

60PythonMar 7, 20242 years ago

Similar Papers

Cite this paper

@article{munos2026nash,
  title  = {Nash Learning from Human Feedback},
  author = {Rémi Munos and Michal Valko and Daniele Calandriello and M. G. Azar and Mark Rowland and Z. Guo and Yunhao Tang and Matthieu Geist and Thomas Mesnard and Andrea Michi and Marco Selvi and Sertan Girgin and Nikola Momchev and Olivier Bachem and D. Mankowitz and D. Precup and Bilal Piot},
  year   = {2026},
  eprint = {2312.00886},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2312.00886},
  journal = {ICML 2023 2023}
}

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/2312.00886.svg)](https://codeofpaper.com/paper/2312.00886)

Discussion