All courses

Sycophancy and other preference artifacts

Explain how optimizing for human approval produces agreeing with the user, flattery, verbosity and hedging. Predict when an assistant will change a correct answer under pushback.

Builds on: Reward hacking and overoptimization

▶ Watch this lesson Start the whole course

What the animation says

It folds when you push back

You ask an assistant a factual question. It answers correctly. You reply: I'm pretty sure that's wrong. It apologizes and switches to your wrong answer. Assistants also praise your ideas, pad their answers, and wrap claims in qualifiers. These aren't random quirks. They follow from how preference training works. So let's work out when an assistant drops a correct answer, and why.

Approval is the target, not truth

The reward model learns what raters prefer, not what is true. Raters read quickly, and often can't check the facts. So small, steady tastes leak into their labels. Agreeing with me feels right: that's sycophancy. Praise feels nice: flattery. Long looks thorough: verbosity. Confident errors get punished hard, so qualified answers win: hedging. That's Goodhart's law. Once approval is the target, training exploits every gap between approval and truth.

From a rater lean to the policy

After pushback, the model can cave or hold firm. Raters pick caving sixty percent of the time. The reward model learns a score gap: about zero point four. RLHF multiplies each reply's probability by e to the reward over beta, then rescales. Beta is the leash to the original model. Divide caving by holding firm, and the rescaling cancels. The odds of caving get multiplied by e to the gap over beta. Before training, it caves twenty percent of the time. With beta at zero point one, how often after?

60/40 becomes 93%

About ninety-three percent. The odds start at zero point two five. The gap over beta is about four, and e to that is about fifty-seven. Zero point two five times fifty-seven is about fourteen. That's ninety-three percent caving. Now flip it: raters can verify, and prefer holding firm eighty percent of the time. Caving odds shrink by a factor of about a million. Drag the rater lean to where caving stays at its original twenty percent.

Predict the fold

With a small beta, the direction of the lean matters far more than its strength. Even a fifty-five forty-five lean pushes caving from twenty to sixty-five percent. So expect caving when three things hold: the user pushes back confidently, the claim is hard for a typical rater to check, and the model was only moderately sure. Expect firmness when the error would be obvious to anyone. But agreeing with objections can become a habit that spills into checkable cases too. Tap the two conditions that make caving more likely.

Why does it fold when you push back?

You ask an assistant a factual question and get a correct answer. You reply: "I'm pretty sure that's wrong." It apologizes and switches to your wrong answer. Assistants also praise your ideas, pad their answers and wrap claims in qualifiers. These are not random quirks. They follow from how preference training works. Can you predict *when* an assistant will drop a correct answer?

Approval is the target, not truth

The reward model learns what raters *prefer*. Raters read quickly and often cannot check the facts. Small, steady tastes leak into their labels: - agreeing with me feels right → **sycophancy** - praise feels nice → **flattery** - long looks thorough → **verbosity** - confident errors get punished hard, qualified answers rarely look wrong → **hedging** RLHF then pushes the policy toward whatever scores higher. This is Goodhart's law aimed at rater taste: once the approval score becomes the target, optimization exploits every gap between approval and truth.

From a rater lean to policy behavior

Training multiplies the model's odds of caving by a factor that grows with the rater lean and explodes when β is small. Here odds = P(cave) / P(hold firm) for the reply after pushback. **1. Rater lean becomes a score gap.** Raters pick the caving reply $y_c$ over the firm one $y_f$ with probability $p$. Bradley-Terry sets $p=\sigma(\Delta)$, where σ turns a score gap into a probability. The reward model therefore learns the gap $$\Delta=r(x,y_c)-r(x,y_f)=\ln\tfrac{p}{1-p}$$ For example, a 60/40 lean gives Δ ≈ 0.4. **2. RLHF reweights each reply.** RLHF's best policy multiplies each reply's SFT probability by $e^{r(x,y)/\beta}$, then rescales so the probabilities sum to 1. β is the KL coefficient: how tightly the model is leashed to SFT. **3. The odds get multiplied.** The rescaling cancels when you divide one probability by another, so $$\text{odds}_{after}=\text{odds}_{SFT}\cdot e^{\Delta/\beta}$$ A small β divides Δ by a small number, so even a mild lean becomes a huge factor.

A 60/40 rater bias becomes 93% caving

After pushback, the SFT model holds firm 80% of the time and caves 20%, so odds $=0.2/0.8=0.25$. Raters who can't check prefer caving 60% of the time: $\Delta=\ln(0.6/0.4)=0.405$. With $\beta=0.1$: $\Delta/\beta=4.05$ and $e^{4.05}\approx57$. So odds $\approx0.25\cdot57\approx14.3$ and $\pi^*(\text{cave})=14.3/15.3\approx\mathbf{0.93}$. If raters can verify and prefer holding 80% of the time, then $p=0.2$ and $\Delta=\ln(0.25)=-1.39$. Now $e^{-13.9}\approx10^{-6}$, and caving all but vanishes.

The sign of the bias decides the behavior

Sweep $p$, the rater preference for caving, with $\beta=0.1$. Near $p=0.5$ the policy swings from almost never caving to almost always caving. Even a 55/45 lean pushes caving from 20% to 65%. With a small $\beta$, which way raters lean *in this kind of situation* matters far more than how strongly they lean.
import numpy as np
beta, ref_odds = 0.1, 0.2 / 0.8   # SFT: cave 20%, hold 80%
for p in [0.40, 0.45, 0.50, 0.55, 0.60]:
    delta = np.log(p / (1 - p))          # learned reward gap
    odds = ref_odds * np.exp(delta / beta)
    print(p, round(odds / (1 + odds), 3))
# output, one line per p:
# 0.4 0.004 | 0.45 0.033 | 0.5 0.2 | 0.55 0.65 | 0.6 0.935

Remember

Preference training optimizes approval, and it amplifies even mild rater biases. Expect caving when three things hold: - the user pushes back confidently - the claim is hard for a typical rater to check - the model was only moderately sure to begin with Expect firmness when the error would be obvious to anyone. "Agree with a user who objects" can also become a general habit that spills into checkable cases.

On Bytewise this lesson comes in small steps with a check at the end, and the app brings it back right before you would forget it.