Simple Algorithm
Reinforcement Learning · Bootstrapping · 24 min

RL from Human Feedback

Reward models from preferences, KL-regularized fine-tuning and direct preference optimization.

Nobody can write down a reward function for "be helpful and harmless", but people can say which of two answers is better. RLHF turns those comparisons into a reward model and then runs policy-gradient RL against it, with a KL penalty that keeps the policy near its starting point. This lesson derives each stage: the Bradley–Terry loss, the closed-form optimum of the KL-regularized objective, the token-level setup used with PPO, and DPO, which reads that closed form backwards to skip the reward model entirely.

What you’ll learn

  • Describe the three-stage pipeline (supervised fine-tuning, a reward model, RL with a KL penalty) and the experiments that established it.
  • Derive the Bradley–Terry loss as logistic regression on reward differences, with its gradient and its invariance to per-prompt shifts.
  • Derive the optimum π⋆(y∣x)∝πref(y∣x) er(x,y)/β\pi^\star(y\mid x)\propto\pi_{\text{ref}}(y\mid x)\,e^{r(x,y)/\beta} of the KL-regularized objective with a Lagrange multiplier, and explain what β\beta controls.
  • Write generation as a token-level MDP with a per-token KL penalty, and explain how PPO is applied to it.
  • Derive the DPO loss from the closed-form optimum, and name the main practical failure modes: rater disagreement, length bias, sycophancy and overoptimization.

Three stages, from backflips to InstructGPT

RLHF grew out of a short line of experiments. Christiano et al. (2017) trained Atari and MuJoCo agents from human preferences between pairs of short trajectory segments, fitting a reward model and running deep RL against it at the same time. Ziegler et al. (2019) applied the idea to a pretrained language model; Stiennon et al. (2020) to summarization, where optimizing a learned reward gave summaries that people preferred to those from optimizing the standard ROUGE score; and Ouyang et al. (2022) to general instruction following, producing the InstructGPT models.

The recipe that emerged has three stages. Throughout, xx is a prompt, y=(y1,…,yT)y=(y_1,\dots,y_T) a response made of tokens, and a policy is an autoregressive language model, π(y∣x)=∏tπ(yt∣x,y<t)\pi(y\mid x)=\prod_t\pi(y_t\mid x,y_{<t}).

StageDataObjectiveProduces
  1. Supervised fine-tuning (SFT)
demonstrations (x,y)(x,y) written by peoplemaximum likelihood, max⁡∑log⁡π(y∣x)\max\sum\log\pi(y\mid x)the reference policy πref\pi_{\text{ref}}, also RL's starting point
  1. Reward modeling
comparisons (x,yw,yl)(x,y_w,y_l) with ywy_w preferred to yly_lBradley–Terry maximum likelihooda reward model rϕ(x,y)r_{\boldsymbol\phi}(x,y)
  1. RL
prompts only; responses are sampled from the current policymax⁡θE[rϕ]−β DKL(πθ ∥ πref)\max_{\boldsymbol\theta}\E[r_{\boldsymbol\phi}]-\beta\,\KL(\pi_{\boldsymbol\theta}\,\|\,\pi_{\text{ref}}), classically with PPOthe final policy
InstructGPT used a 6-billion-parameter reward model and labelers who ranked 4 to 9 responses per prompt. Stages 2 and 3 can be repeated, collecting fresh comparisons of the newest policy's outputs.

The reward model is logistic regression

The Bradley–Terry model (Bradley & Terry, 1952) says that a rater prefers y1y_1 to y2y_2 with probability P(y1≻y2∣x)=σ(r(x,y1)−r(x,y2))P(y_1\succ y_2\mid x)=\sigma\big(r(x,y_1)-r(x,y_2)\big), where σ(z)=1/(1+e−z)\sigma(z)=1/(1+e^{-z}). Fitting it by maximum likelihood gives the reward model's loss.

DerivationThe loss and its gradient
  1. L(ϕ)=−E(x,yw,yl)∼D[log⁡σ(Δϕ)]\loss(\boldsymbol\phi)=-\E_{(x,y_w,y_l)\sim\data}\big[\log\sigma(\Delta_{\boldsymbol\phi})\big]

    For one comparison (x,yw,yl)(x,y_w,y_l) write the margin Δϕ=rϕ(x,yw)−rϕ(x,yl)\Delta_{\boldsymbol\phi}=r_{\boldsymbol\phi}(x,y_w)-r_{\boldsymbol\phi}(x,y_l). The negative log-likelihood of the dataset D\data is

  2. ∇ϕ[−log⁡σ(Δϕ)]=− σ(−Δϕ) (∇ϕrϕ(x,yw)−∇ϕrϕ(x,yl))\nabla_{\boldsymbol\phi}\big[-\log\sigma(\Delta_{\boldsymbol\phi})\big]=-\,\sigma(-\Delta_{\boldsymbol\phi})\,\big(\nabla_{\boldsymbol\phi}r_{\boldsymbol\phi}(x,y_w)-\nabla_{\boldsymbol\phi}r_{\boldsymbol\phi}(x,y_l)\big)

    Since ddzlog⁡σ(z)=1−σ(z)=σ(−z)\frac{d}{dz}\log\sigma(z)=1-\sigma(z)=\sigma(-z), one term's gradient is

  3. A descent step pushes the chosen response's score up and the rejected one's down, in proportion to σ(−Δϕ)\sigma(-\Delta_{\boldsymbol\phi}): the model's current probability of ordering this pair wrongly. Pairs it already orders confidently contribute almost nothing.

  4. With a linear reward rϕ(x,y)=ϕ⊤ψ(x,y)r_{\boldsymbol\phi}(x,y)=\boldsymbol\phi^\top\boldsymbol\psi(x,y) this is exactly logistic regression on the feature differences ψ(x,yw)−ψ(x,yl)\boldsymbol\psi(x,y_w)-\boldsymbol\psi(x,y_l), every label equal to 1, so the loss is convex in ϕ\boldsymbol\phi. In practice the reward model is a language model whose output layer is replaced by a scalar head that scores each complete response.

Two facts about this loss shape everything downstream. First, it uses only differences of rewards for the same prompt, so r(x,y)+c(x)r(x,y)+c(x) fits the data exactly as well as r(x,y)r(x,y), for any function cc. Rewards are identified only up to a per-prompt shift, and comparing reward values across prompts means nothing. (InstructGPT fixed the shift by adding a bias so that the labelers' demonstrations scored 0 on average.)

Second, a ranking of KK responses yields (K2)\binom{K}{2} comparisons that share responses and are strongly correlated. Shuffled into the data as independent examples, they made InstructGPT's reward model overfit within a single epoch; putting all comparisons from one prompt into one batch element fixed this, and needs only one forward pass per response.

python
import torch.nn.functional as F

def reward_model_loss(rm, prompts, chosen, rejected):
    """rm(prompts, responses) returns one scalar score per example, shape (B,)."""
    margin = rm(prompts, chosen) - rm(prompts, rejected)
    loss = -F.logsigmoid(margin).mean()      # Bradley-Terry negative log-likelihood
    accuracy = (margin > 0).float().mean()    # how often the RM orders a pair as the rater did
    return loss, accuracy

F.logsigmoid computes log⁡σ\log\sigma stably. The ordering accuracy reported in training logs cannot approach 100%: when two raters disagree on about a quarter of comparisons, no model can predict every label.

Check your understanding

Every response to one prompt xx gets its reward-model score increased by 5; scores for other prompts are unchanged. What happens to the Bradley–Terry loss and to the KL-regularized optimal policy?

  1. The loss gets worse, because the rewards are no longer calibrated
  2. Neither changes: the loss sees only differences within a prompt, and a constant does not change the optimal policy for that prompt
  3. The loss is unchanged, but the policy will now favor prompt xx
  4. Both change, because larger rewards produce larger policy-gradient steps
Show the answer

B. Neither changes: the loss sees only differences within a prompt, and a constant does not change the optimal policy for that prompt

Every comparison is within one prompt, so the +5 cancels in every margin. In the optimum derived next, a constant multiplies the tilted distribution by e5/βe^{5/\beta}, which normalization removes. A constant can still add noise to sampled gradients, which is one reason implementations normalize rewards or subtract a baseline.

RL on a leash: the KL-regularized optimum

Stage 3 maximizes, for each prompt, the expected reward minus a penalty for moving away from πref\pi_{\text{ref}}:

max⁡π  Ex∼D[Ey∼π(⋅∣x)[r(x,y)]−β DKL(π(⋅∣x) ∥ πref(⋅∣x))]\max_\pi\;\E_{x\sim\data}\Big[\E_{y\sim\pi(\cdot\mid x)}\big[r(x,y)\big]-\beta\,\KL\big(\pi(\cdot\mid x)\,\big\|\,\pi_{\text{ref}}(\cdot\mid x)\big)\Big]
KL regularization with coefficient β>0\beta>0. The objective separates over prompts, so it suffices to solve it for one prompt, over all distributions π(⋅∣x)\pi(\cdot\mid x) on responses.
DerivationThe closed form, by a Lagrange multiplier
  1. L(π,λ)=∑yπ(y) r(y)−β∑yπ(y)log⁡π(y)πref(y)+λ(∑yπ(y)−1)\mathcal L(\pi,\lambda)=\sum_y\pi(y)\,r(y)-\beta\sum_y\pi(y)\log\frac{\pi(y)}{\pi_{\text{ref}}(y)}+\lambda\Big(\sum_y\pi(y)-1\Big)

    Fix xx and drop it from the notation. Treat π(y)\pi(y) for each response as a variable, constrained by ∑yπ(y)=1\sum_y\pi(y)=1 with a Lagrange multiplier λ\lambda. (A response with πref(y)=0\pi_{\text{ref}}(y)=0 must get π(y)=0\pi(y)=0, or the KL is infinite.)

  2. r(y)−β(log⁡π(y)πref(y)+1)+λ=0⟹π(y)=πref(y) er(y)/β e(λ−β)/βr(y)-\beta\Big(\log\frac{\pi(y)}{\pi_{\text{ref}}(y)}+1\Big)+\lambda=0\quad\Longrightarrow\quad\pi(y)=\pi_{\text{ref}}(y)\,e^{r(y)/\beta}\,e^{(\lambda-\beta)/\beta}

    Set the derivative with respect to each π(y)\pi(y) to zero and solve:

  3. π⋆(y∣x)=1Z(x) πref(y∣x)exp⁡ ⁣(r(x,y)β),Z(x)=∑yπref(y∣x) er(x,y)/β\pi^\star(y\mid x)=\frac{1}{Z(x)}\,\pi_{\text{ref}}(y\mid x)\exp\!\Big(\frac{r(x,y)}{\beta}\Big),\qquad Z(x)=\sum_y\pi_{\text{ref}}(y\mid x)\,e^{r(x,y)/\beta}

    The last factor does not depend on yy, so normalization fixes it, through the partition function Z(x)Z(x):

  4. This stationary point is the maximum. The expected reward is linear in π\pi and DKL(π ∥ πref)\KL(\pi\,\|\,\pi_{\text{ref}}) is strictly convex, so the objective is strictly concave on the probability simplex and has exactly one maximizer; the KL term's derivative diverges at the boundary, so that maximizer is interior. Every response with πref(y)>0\pi_{\text{ref}}(y)>0 keeps positive probability: the penalty forbids collapse onto a single answer.

β\beta acts as a temperature. As β→∞\beta\to\infty, π⋆→πref\pi^\star\to\pi_{\text{ref}}; as β→0\beta\to0, π⋆\pi^\star concentrates on the highest-reward responses that πref\pi_{\text{ref}} can produce. The same form appears in maximum-entropy RL, where a policy proportional to eQ/αe^{Q/\alpha} is optimal (Maximum-Entropy RL & Soft Actor–Critic), and in Control as Inference, which reads π⋆\pi^\star as a posterior with prior πref\pi_{\text{ref}} and likelihood er/βe^{r/\beta}.

Predict before you look

Three responses have πref=(0.5, 0.3, 0.2)\pi_{\text{ref}}=(0.5,\,0.3,\,0.2) and rewards r=(0, 1, 2)r=(0,\,1,\,2). With β=1\beta=1, π⋆≈(0.18, 0.29, 0.53)\pi^\star\approx(0.18,\,0.29,\,0.53). What probability does π⋆\pi^\star give the best response when β=0.5\beta=0.5, in percent?

Show the answer

80 %

The weights πref(y) er(y)/β\pi_{\text{ref}}(y)\,e^{r(y)/\beta} are 0.50.5, 0.3e2≈2.220.3e^{2}\approx2.22 and 0.2e4≈10.920.2e^{4}\approx10.92; normalizing gives π⋆≈(0.04, 0.16, 0.80)\pi^\star\approx(0.04,\,0.16,\,0.80). Halving β\beta raises the expected reward from 1.35 to 1.76 and the KL divergence from the reference from 0.32 to 0.92 nats.

Token by token: RLHF with PPO

The closed form cannot be used directly, because Z(x)Z(x) sums over every possible response. Instead the policy is trained by RL on an MDP. The state is the prompt plus the tokens written so far, st=(x,y<t)s_t=(x,y_{<t}); the action is the next token yty_t, which is appended deterministically; and an end-of-sequence token closes the episode. The reward model scores only complete responses, while the KL penalty is spread over the tokens (Ziegler et al., 2019; Stiennon et al., 2020).

python
def per_token_rewards(logp, logp_ref, rm_score, beta):
    """logp, logp_ref: (T,) log-probs of the sampled tokens under the policy and pi_ref;
    rm_score: the reward model's score of the whole response (a scalar tensor)."""
    rewards = -beta * (logp - logp_ref).detach()   # KL penalty, one term per token
    rewards[-1] = rewards[-1] + rm_score            # the reward model speaks only at the end
    return rewards                                   # then GAE and PPO, as for any episodic task

Summed over an episode the penalty terms give −βlog⁡πθ(y∣x)πref(y∣x)-\beta\log\frac{\pi_{\boldsymbol\theta}(y\mid x)}{\pi_{\text{ref}}(y\mid x)}, whose expectation under πθ\pi_{\boldsymbol\theta} is −β DKL(πθ ∥ πref)-\beta\,\KL(\pi_{\boldsymbol\theta}\,\|\,\pi_{\text{ref}}). The undiscounted return therefore has exactly the expected value of the KL-regularized objective. A single response's log-ratio can be negative; only its average is a divergence.

From here PPO runs as on any episodic task: a value head estimates V(st)V(s_t), generalized advantage estimation turns the per-token rewards into advantages, and the clipped surrogate limits each update (Trust Regions: TRPO & PPO). The price is memory and tuning. Four large networks are held at once: the policy, the frozen reference, the reward model and the value network. InstructGPT also mixed a pretraining log-likelihood term into the objective ("PPO-ptx") to limit regressions on standard benchmarks.

Check your understanding

RLHF with PPO has two mechanisms that limit how far the policy moves: PPO's clipping of the ratio πθ/πold\pi_{\boldsymbol\theta}/\pi_{\text{old}}, and the penalty β DKL(πθ ∥ πref)\beta\,\KL(\pi_{\boldsymbol\theta}\,\|\,\pi_{\text{ref}}). Which one changes where training ends up?

  1. The clipping: it bounds the final policy's distance from πold\pi_{\text{old}}
  2. Both, equally
  3. Neither: only the reward model decides the end point
  4. The penalty to πref\pi_{\text{ref}}: it is part of the objective, whose optimum is π⋆∝πrefer/β\pi^\star\propto\pi_{\text{ref}}e^{r/\beta}, while clipping only limits the size of each update
Show the answer

D. The penalty to πref\pi_{\text{ref}}: it is part of the objective, whose optimum is π⋆∝πrefer/β\pi^\star\propto\pi_{\text{ref}}e^{r/\beta}, while clipping only limits the size of each update

πold\pi_{\text{old}} is refreshed at every iteration, so clipping restrains the step, not the destination: run long enough, a clipped optimizer can travel arbitrarily far from where it began. The penalty against the fixed πref\pi_{\text{ref}} changes the objective itself, and with it the optimum.

DPO: the reward model you already have

The closed form can be read backwards. Taking logarithms of π⋆∝πrefer/β\pi^\star\propto\pi_{\text{ref}}e^{r/\beta} expresses the reward through the policy it induces:

r(x,y)=βlog⁡π⋆(y∣x)πref(y∣x)+βlog⁡Z(x)r(x,y)=\beta\log\frac{\pi^\star(y\mid x)}{\pi_{\text{ref}}(y\mid x)}+\beta\log Z(x)
Every policy π\pi defines an implicit reward βlog⁡π(y∣x)πref(y∣x)\beta\log\frac{\pi(y\mid x)}{\pi_{\text{ref}}(y\mid x)} in this way.

Substitute this into the Bradley–Terry model. The intractable term βlog⁡Z(x)\beta\log Z(x) is the same for both responses to a prompt, so it cancels from their difference, which is all that Bradley–Terry uses. Fitting the policy itself to the comparisons by maximum likelihood gives direct preference optimization (Rafailov et al., 2023):

LDPO(θ)=−E(x,yw,yl)∼D[log⁡σ(βlog⁡πθ(yw∣x)πref(yw∣x)−βlog⁡πθ(yl∣x)πref(yl∣x))]\loss_{\text{DPO}}(\boldsymbol\theta)=-\E_{(x,y_w,y_l)\sim\data}\Big[\log\sigma\Big(\beta\log\frac{\pi_{\boldsymbol\theta}(y_w\mid x)}{\pi_{\text{ref}}(y_w\mid x)}-\beta\log\frac{\pi_{\boldsymbol\theta}(y_l\mid x)}{\pi_{\text{ref}}(y_l\mid x)}\Big)\Big]
A supervised loss on fixed preference data: no reward model, no sampling, no value network. Direct Preference Optimization & Its Relatives derives it in full and proves when its minimizer is π⋆\pi^\star.
python
import torch.nn.functional as F

def dpo_loss(logp_w, logp_l, ref_logp_w, ref_logp_l, beta=0.1):
    """Summed log-probs of whole responses, shape (B,), under the policy and the frozen reference."""
    margin = beta * ((logp_w - ref_logp_w) - (logp_l - ref_logp_l))
    return -F.logsigmoid(margin).mean()

Each log-probability is the sum of a response's token log-probabilities. The reference terms do not change during training, so they can be computed once in advance.

AspectRLHF with PPODPO
Dataprompts, with responses sampled during traininga fixed set of comparisons
Networks in memorypolicy, reference, reward model, value networkpolicy, plus reference log-probabilities
What it optimizesthe KL-regularized objective, by on-policy RLthe Bradley–Terry likelihood of the implicit reward
Sees its own outputs?yes: it samples and scores its own responsesonly if new comparisons of its outputs are collected
As of the mid-2020s, whether the offline shortcut matches on-policy RL in practice is contested; the Fixed Point lesson weighs the evidence.

What goes wrong in practice

Each stage of the pipeline adds its own distortions, and RL amplifies them:

  • Disagreement. Raters disagree on roughly a quarter of comparisons, and the reward model learns a single aggregate of their choices. When raters differ systematically, that aggregate behaves like a vote, not like an average of their preferences (Reward Models from Preferences).
  • Length. Preferred answers tend to be longer, and reward models learn the correlation. Singhal et al. (2024) found that optimizing a reward for length alone reproduced most of the gains of RLHF over supervised fine-tuning in their settings.
  • Sycophancy. Human raters, and preference models trained on their choices, sometimes prefer convincingly written answers that agree with the user over correct ones, and optimizing against such models can trade truthfulness for agreement (Sharma et al., 2024).
  • Overoptimization. As the policy moves away from πref\pi_{\text{ref}}, the proxy reward keeps rising while true quality peaks and falls (reward overoptimization; Gao, Schulman & Hilton, 2023), as in the widget above.

Comparisons need not come from people. Constitutional AI (Bai et al., 2022) had a model judge responses by a brief written set of principles, its "constitution", and trained on those AI-generated preferences (RLAIF); the Deep Learning course covers learning from AI feedback. The RL machinery is unchanged. Only the source of the comparisons differs, and with it the biases the reward model inherits.

Key takeaways

  • RLHF in three stages: supervised fine-tuning gives πref\pi_{\text{ref}}; a reward model is fitted to comparisons by Bradley–Terry maximum likelihood; RL maximizes E[r]−β DKL(π ∥ πref)\E[r]-\beta\,\KL(\pi\,\|\,\pi_{\text{ref}}), classically with PPO on a token-level MDP.
  • The Bradley–Terry loss is logistic regression on within-prompt reward differences. Its gradient weights each pair by the probability of misordering it, and rewards are identified only up to a per-prompt shift.
  • The KL-regularized objective has the unique optimum π⋆(y∣x)=πref(y∣x) er(x,y)/β/Z(x)\pi^\star(y\mid x)=\pi_{\text{ref}}(y\mid x)\,e^{r(x,y)/\beta}/Z(x); β\beta interpolates between the reference (β→∞\beta\to\infty) and the reward's maximizers (β→0\beta\to0).
  • Inverting the optimum writes the reward as βlog⁡π⋆πref+βlog⁡Z(x)\beta\log\frac{\pi^\star}{\pi_{\text{ref}}}+\beta\log Z(x); substituting into Bradley–Terry cancels ZZ and gives DPO, a supervised loss on fixed comparisons.
  • Rater disagreement, length and sycophancy biases, and overoptimization are built into the pipeline, because the reward model is a proxy fitted where πref\pi_{\text{ref}} puts its mass.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

During reward-model training, which comparison produces the largest gradient step?

  1. One the model already orders correctly, by a large margin
  2. One the model currently orders wrongly, by a large margin
  3. Every comparison produces a step of the same size
  4. One between two identical responses
Show the answer

B. One the model currently orders wrongly, by a large margin

The gradient of −log⁡σ(Δ)-\log\sigma(\Delta) is weighted by σ(−Δ)\sigma(-\Delta), the model's probability of misordering the pair. With Δ\Delta large and negative this weight is close to 1; with Δ\Delta large and positive it is close to 0.

Question 2

In the KL-regularized optimum π⋆∝πref er/β\pi^\star\propto\pi_{\text{ref}}\,e^{r/\beta}, what happens as β→0\beta\to0?

  1. π⋆\pi^\star approaches πref\pi_{\text{ref}}
  2. π⋆\pi^\star becomes uniform over all responses
  3. π⋆\pi^\star concentrates on the highest-reward responses among those πref\pi_{\text{ref}} can produce
  4. π⋆\pi^\star concentrates on the response πref\pi_{\text{ref}} considers most likely
Show the answer

C. π⋆\pi^\star concentrates on the highest-reward responses among those πref\pi_{\text{ref}} can produce

Dividing by a small β\beta makes er/βe^{r/\beta} dominated by the largest rewards, so all mass moves to the reward's maximizers within the support of πref\pi_{\text{ref}}. This is the regime where the reward model's errors are exploited most.

Question 3

Why did InstructGPT put all (K2)\binom{K}{2} comparisons from one ranking into a single batch element instead of shuffling them as separate examples?

  1. Comparisons from one ranking share responses and are highly correlated; treated as independent they made the reward model overfit within one epoch, and batching them needs only one forward pass per response
  2. The Bradley–Terry model cannot be applied to rankings
  3. To give every prompt the same weight in the KL penalty
  4. Because labelers' rankings are always transitive
Show the answer

A. Comparisons from one ranking share responses and are highly correlated; treated as independent they made the reward model overfit within one epoch, and batching them needs only one forward pass per response

Each response appears in K−1K-1 comparisons, so shuffled pairs repeat the same responses many times per epoch. Grouping them removes the overfitting and is cheaper: one forward pass per response rather than two per comparison.

Question 4

Why does the partition function Z(x)Z(x) disappear from the DPO loss?

  1. Because Z(x)=1Z(x)=1 for every prompt
  2. Because DPO assumes that β\beta is very small
  3. Because the reference policy is uniform
  4. Because the Bradley–Terry model uses only the difference of two rewards for the same prompt, and βlog⁡Z(x)\beta\log Z(x) is common to both
Show the answer

D. Because the Bradley–Terry model uses only the difference of two rewards for the same prompt, and βlog⁡Z(x)\beta\log Z(x) is common to both

Writing r=βlog⁡π⋆πref+βlog⁡Z(x)r=\beta\log\frac{\pi^\star}{\pi_{\text{ref}}}+\beta\log Z(x) and taking r(x,yw)−r(x,yl)r(x,y_w)-r(x,y_l) cancels the prompt-dependent term. That is what makes the loss computable from log-probabilities alone.

Go deeper

Further reading

  • P. F. Christiano, J. Leike, T. B. Brown, M. Martic, S. Legg & D. Amodei, "Deep reinforcement learning from human preferences," NeurIPS (2017).
  • N. Stiennon, L. Ouyang, J. Wu, D. M. Ziegler, R. Lowe, C. Voss, A. Radford, D. Amodei & P. Christiano, "Learning to summarize from human feedback," NeurIPS (2020).
  • L. Ouyang et al., "Training language models to follow instructions with human feedback," NeurIPS (2022).
  • R. Rafailov, A. Sharma, E. Mitchell, S. Ermon, C. D. Manning & C. Finn, "Direct preference optimization: Your language model is secretly a reward model," NeurIPS (2023).