Control presentation and length without erasing real task differences
Design paired display-order checks and explicit length analyses while separating observed nuisance effects from genuine quality and causal claims.
On this page
The question for today
What you’ll understand
- Compare candidate identity across randomized presentation positions.
- Explain what length matching and statistical adjustment do and do not identify.
- Keep paired uncertainty and the evaluation estimand explicit.
A candidate wins more often when displayed first, and a longer version receives higher reward despite adding no checked task value. These patterns can distort preference data or release rankings. Diagnose them with controlled presentation and content-aware analysis rather than automatically penalizing every long answer. Length can be necessary for a complete explanation, and order effects can interact with task difficulty. Define which behavior is a nuisance for the evaluation goal and which differences belong to the quality judgment.
Randomize positions and preserve candidate identity
Randomize which candidate appears in each display slot and store the mapping back to the candidate's stable identity. Otherwise a label meaning left wins can accidentally become a label favoring whichever generator was always placed left. For a controlled order check, evaluate the same prompt and answer pair in both orientations under a recorded judge protocol, resetting conversation context and accounting for stochastic repetition. Preserve the paired records: two orientations of one prompt are related observations, not two independent new prompts. Conceal irrelevant model labels when the experiment is intended to assess response content.
Measure both candidate win rates by position and within-pair consistency. A judge can switch content preference after swapping slots, or a consistent content preference can coexist with other population-level biases. Report ties, invalid outputs, and parsing failures rather than silently dropping inconvenient decisions. MT-Bench and later position-bias research document empirical presentation effects in particular judge/task settings. They motivate testing your own protocol, not a universal correction factor that applies to every human annotator, automated judge, or response quality gap.
Examine length as a task-dependent variable
A longer response may contain more reasoning, necessary qualifications, or irrelevant repetition. Raw correlation between reward and length cannot distinguish those causes. Analyze matched tasks and quality evidence, inspect controlled rewrites where content is checked, and stratify by response-length differences. Shortening text can remove essential information, so a length-matched rewrite is not automatically a pure intervention on length alone. For training, ensure score reduction is identified: sequence log-probability sums and token means have different length behavior, and swapping one for the other changes the stated objective rather than merely removing a harmless display artifact.
Length-controlled AlpacaEval proposes a statistical adjustment for a particular evaluator setting. Such an adjusted score estimates a chosen comparison under modeling assumptions, not an observed universal utility ranking. Unmeasured content changes and model misspecification can remain. Report the raw and adjusted estimands, data coverage, and relevant held-out checks instead of selecting whichever favors a release. An evaluation whose task explicitly requires detailed explanation may value some extra length; a terse-answer task may not. The rubric should resolve that distinction before looking at candidate names or final scores.
Keep the experiment and its uncertainty reviewable
Choose the order, repetition, and length-control analyses before selecting the winning checkpoint. Use prompt-aware paired or grouped uncertainty where appropriate, and keep a held-out confirmation set if the protocol is tuned after seeing results. A single swapped judgment can be noisy, so distinguish consistent effects from random variation without discarding difficult examples. Record judge weights or version, prompt template, decoding settings, rubric, and parser. A changed template can alter the judgment process even if the named judge stays the same.
The probability lab models independent randomized slot assignment only. Reset, set both p=0.5 and n=20, predict the number assigned to the first slot, then inspect. The exact count distribution has mean ten and variance five, so random assignment need not yield exactly ten first-slot presentations in a small group. Playback highlights mathematical outcomes rather than running judges. This instrument has no response length, task rubric, candidate quality, or position preference. It helps separate assignment variability from the actual paired judgments needed to measure a position effect.
Work it through
Track content identity after swapping slots
Twenty fictional prompt/answer pairs are each judged in both orientations under a controlled protocol. Candidate A wins 14 of 20 evaluations when displayed first and 8 of 20 when displayed second. Use binary eligible decisions only, and retain the paired records.
A’s first-slot win rate is 14/20=0.7; its second-slot rate is 8/20=0.4. The descriptive position contrast is 0.3, or thirty percentage points.
A’s average win score across the two balanced orientations is(0.7+0.4)/2=0.55. This average summarizes the chosen presentation mixture rather than eliminating all judge bias.
The forty judgments are paired within twenty prompts. Use their actual joint outcomes for an appropriate uncertainty analysis; the two marginal counts alone do not justify treating forty outcomes as independent new prompts.
The controlled observation shows a thirty-point position contrast and a 55% balanced-orientation A win score for this protocol, with paired uncertainty still to assess.
The living notebook
Explore the model
Interactive lab · probability
Randomized display assignment has finite-sample variation
Reset, set both p=0.5 and n=20, predict, then inspect. Independent first-slot assignments have mean 10 and variance 5. The exact binomial bars are not judge outcomes, response-length measurements, or a fitted position-bias estimate.
- Mean · np
- 5
- Variance · np(1−p)
- 2.5
- Total probability
- 1
These are exact binomial probabilities for independent trials with one fixed success probability. Playback tours the distribution; it does not resample outcomes. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forRecord assignment and candidate identity, then analyze actual paired judgments. Randomization controls presentation but does not guarantee exact balance in every small sample.
Pause & reason
Check your understanding
Your turn
Try it yourself
A candidate wins 9 of 15 paired checks when displayed first and 6 of 15 when displayed second. Compute the position contrast and balanced-orientation average. What dependence must uncertainty retain?
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Compute both rates using candidate identity, then their difference and mean.
Compare with the solution
The rates are 0.6 and 0.4, so the contrast is 0.2 and their balanced average 0.5. The two orientations share each prompt and response pair, so an uncertainty method must retain that pairing rather than count thirty independent new prompts.
Keep the idea
Take it with you
- Preserve candidate identity while randomizing and testing presentation order.
- Length analysis must distinguish nuisance cues from required task content.
- Adjusted estimands and paired uncertainty need explicit assumptions and records.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.