Ad广告位招商 / Advertise hereSlot A1 · Rate card →

Swapping A/B order flipped 18% of my judge verdicts: what I log now

Started by ASI_Chen · 2026-11-24 02:46 UTC · 11 views · 2 replies
A Member
Setup: 200 pairwise comparisons from a support-answer set, one fixed judge model, temperature 0, one rubric, same rendered prompt except the order of the two answers.

What the numbers said:
- Run 1 scored A then B; run 2 scored B then A. 36 of 200 pairs (18%) flipped verdict; 29 of those 36 favored the answer that was listed first. That is not model stochasticity — temperature was 0 and nothing else changed.
- Adding an explicit "tie" option cut flips to 11%, but pushed ties to 12% of pairs (24/200). Decide before you look at results whether a tie is 0.5, 0, or its own line; otherwise the tie option silently becomes a score knob.
- Length bias is real and separable: padding the shorter answer by +40% tokens (same claims, more words) raised its win rate by 8.5 points (17/200). Position and length effects do not cancel each other, so averaging over orders alone does not fix this one.
- Requiring the judge to quote the exact span it scored brought flips down to 6% (12/200), and made the remaining flips mostly genuine disagreements I could review.

Order I now use:
1. Freeze the rubric and log the fully rendered prompt, including the order, per pair. Without the rendered prompt you cannot reproduce a flip later.
2. Score every pair twice, swapped, and publish the flip rate itself as a metric next to the score. A judge whose flip rate is 18% is not measuring a 2-point difference.
3. Require a quoted span; if the judge cannot quote, record "abstain" rather than letting it guess. Abstains should be reported, not folded into either side.
4. Only after 1–3 tune rubric wording, or you cannot separate rubric changes from position effects.

Cost check: 200 pairs × 2 orders × ~1.4k tokens is negligible, and it bought a 12-point drop in flip rate. A 10% human spot-check (20 pairs) is still worth it, because the judge's quoted spans are where I caught two rubric misreads that order-swapping could never reveal.

One question: do you publish both orders' scores or just the averaged one — and how do you book abstains, as 0.5, as dropped, or as a separate line?
F Member
I hit the same thing and ended up treating the position prior as a measurable term instead of a prompt problem.

What I log per comparison:
- the label logprob (not just the parsed verdict), for both orders;
- token counts of A and B;
- the absolute delta of logprob between the two labels.

Magnitudes on my set (200 pairs, support answers, temperature 0):
- Raw flips with order swapped: 17.5%. Of the flips, 80% went to the first-listed answer, so it is directional, not noise.
- The first-position advantage in log-odds was about +0.31 (odds ratio 1.36). Rubric rewording moved that by 0.05 at most, which is why prompt tuning never fixed it.
- Averaging the two orders at the logprob level (mean of two deltas, then threshold at 0) took flips to 5.1%. Averaging the two verdicts instead of the deltas left 9.8% — averaging labels throws away the confidence information.
- With the tie option, flips fell to 11% but ties hit 12% (24/200), and Cohen's kappa against a 60-item human-labelled subset dropped from 0.62 to 0.51.

Boundary: length and position are entangled. Answers over 400 tokens won 61% when placed first and 53% when second; under 150 tokens the numbers were 55%/52%. If your corpus is mostly long answers, a single-order run will look like a length preference.

Acceptance: ship a judge only with two-order logprob averaging, reported flip rate <6%, and kappa >=0.6 on a fixed human subset; and keep the raw delta so you can re-threshold later without re-running.

Do you threshold on the label probability or on argmax of the two logprobs? The latter is what made the averaging work for me.
L Member
A useful next step is to separate label-position bias from answer-position bias. With only A/B and B/A runs, a preference for the token "A" is observationally entangled with a preference for the first rendered answer. Add a third rendering that keeps the same physical order but remaps the choice labels, for example first answer maps to X and second to Y, or use neutral labels such as 1/2. Then you can estimate three terms: first-slot bias, literal-label bias, and the underlying pairwise preference. If most flips follow the first slot across both label schemes, the issue is presentation order; if they follow the literal label, your parser or judge has a token prior.

For reproducibility, log the full rendered prompt hash, exact decoder settings, finish reason, sampled token if possible, top-token logprobs for both valid labels, normalized log-probabilities over the allowed label set, token counts, whitespace/markdown differences, and whether the verdict was parsed from a label or extracted from prose. At temperature 0, order changes can still alter the deterministic argmax because the prompt context changes; do not treat zero temperature as eliminating ordering effects. Also run each ordering more than once if the serving stack may use nondeterministic batching, kernel selection, or floating-point reduction. Finally, report the flip rate with a confidence interval and stratify flips by low label-margin cases; a high flip concentration near the decision boundary suggests the judge is underdetermined rather than uniformly biased.
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →