Use paired order reversal, synthetic fixtures and conditional sign tests to expose order-sensitive judgments without inventing model benchmarks.
A winner can depend on where an answer appears
A pairwise judge receives one question and two candidate answers, then chooses a winner or a tie. If candidate A always appears first, a preference for the first position can look like a preference for A. Increasing the number of questions does not remove a systematic presentation bias. It can make the wrong conclusion appear more statistically convincing.
The original MT-Bench and Chatbot Arena paper discusses position bias among several limitations of language-model judges. This guide uses that observation to build an original synthetic experiment. It does not reproduce the paper's benchmark, call a model or claim that an artificial judge predicts any current model. The goal is to separate answer preference, order sensitivity and uncertainty in a controlled setting.
For each synthetic question, keep the candidate identities fixed and evaluate both presentations: A then B, and B then A. Convert each positional answer back to candidate identity before computing a result. This sounds elementary, but a reversed prompt followed by an unreversed parser will manufacture exactly the effect the experiment is intended to detect.
Record two judgments as one paired observation
There are four outcomes when the judge must choose one candidate in each presentation. It can choose A twice, choose B twice, choose whichever answer appears first, or choose whichever appears second. The last two are order-sensitive disagreements. In a real evaluation, explicit ties, refusals, malformed output and timeouts need additional categories; none should silently disappear from the denominator.
The paired unit is the question with its two fixed answers. It is not each model call. The two calls share content and may share other sources of variation. Treating them as independent questions doubles the apparent sample size without doubling independent evidence. Report the number of pairs and the number of calls separately.
Use three complementary summaries. The single-order A win rate shows the vulnerable evaluation design. The fraction of pairs that flip candidate identity shows order sensitivity. The counts of consistent A and consistent B wins describe the subset whose winner survived reversal. Also report how many pairs were excluded from that consistent subset. A clean-looking win rate computed from very few surviving pairs is not a strong general conclusion.
Work through twelve synthetic pairs
Suppose twelve pairs produce eight first-position wins in both orders, two consistent A wins and two consistent B wins. If only the A-first presentation were used, A would appear to win ten of twelve pairs. After reversing order, ten of twelve picks favor B. The consistent subset contains two wins each, and eight pairs expose order sensitivity.
This fixture demonstrates a mechanism; it is not a measured model result. It also shows why simply averaging two positional win rates is insufficient. An average candidate score might look balanced while the judge is unstable on two-thirds of the questions. Keep the paired outcomes so instability remains visible.
The opposite fixture is also useful: twelve consistent A wins in both orders. That is evidence of an A preference under this judge and these prompts, but it is not proof of correctness. Both orders can share verbosity bias, prefer a familiar style or fail the same factual task. Reversal diagnoses one vulnerability while leaving others to separate checks.
Use a transparent synthetic judge
Let d be an assumed quality difference between A and B, and b a preference for the first position. The artificial judge picks the first answer with probability sigmoid(d + b) when A is first and sigmoid(-d + b) when B is first. The laboratory controls these assumed values directly. Real model quality is not normally observable as one scalar, which is a deliberate limitation of the model.
# Author: Sandeep Belgavi. Synthetic probability model.
from math import exp
def first_probability(first_minus_second, position_bias):
return 1.0 / (1.0 + exp(-(first_minus_second + position_bias)))
def classify_pair(ab_pick, ba_pick):
# Both arguments are candidate IDs after positional decoding.
if ab_pick == ba_pick:
return "consistent_" + ab_pick
return "first_both" if ab_pick == "A" else "second_both"At zero quality difference and zero position bias, each individual pick is a fair coin. Independent randomness can still make the two calls disagree. Therefore a nonzero flip rate alone does not establish systematic position bias. The direction of the disagreement matters: first-both versus second-both, and their balance across many independent pairs.
Use a seeded generator for reproducible synthetic runs, then vary the seed as a sensitivity check. A selected seed is not evidence of a robust effect. Keep all inputs in the export so another reader can reproduce the exact trace. Changing the number of pairs changes simulated sampling variability; it does not change the assumed bias parameter.
Interpret a sign test narrowly
For a simple sign test on consistent winners, let W count consistent A wins and L count consistent B wins. Under an exchangeable null of equal probability among those decisive pairs, the count follows a binomial distribution with probability one-half. An exact two-sided tail calculation avoids relying on a normal approximation for a small sample.
That test answers a conditional question about the retained consistent subset. Excluding flips is not a neutral way to recover the full population's preference; inconsistent pairs may differ systematically from consistent ones. Publish W, L, the number of flips and the selection rule with the p-value. If W plus L is zero, return no decisive evidence rather than a fabricated winner.
A p-value is not the probability that A is better. It does not quantify factual correctness, practical significance or model fairness. Repeatedly changing prompts until a threshold is crossed also changes the interpretation. Fix the rubric and analysis plan before collecting the final judgments, and keep exploratory runs separate from the final evaluation.
Design the real evaluation boundary
For an actual model run, freeze the questions, both candidate answers, rubric, model identifier and generation parameters. Randomize which presentation is requested first to reduce confounding from temporal changes or provider conditions. Give each pair a stable identifier and each call an independent attempt identifier. Record retries and incomplete pairs explicitly.
Avoid presenting the first judgment's explanation to the second call, since that turns order reversal into a different experiment about anchoring. Where the API offers deterministic settings, do not assume they guarantee identical outputs forever. Preserve raw structured judgments within your data-retention policy and record the normalization from position to candidate identity.
Use reference-based checks for tasks with executable or factual criteria. A compiler, schema validator or expected numeric answer can provide a deterministic signal that a preference judge lacks. Human review is useful for a stratified sample of flips and consistent disagreements with those checks. Reviewing only the most surprising examples does not estimate overall error.
Explore the lab and its expected outcomes
Start with equal assumed quality and zero position bias. The aggregate should fluctuate around balanced candidate preference across seeds; an individual small run need not be exactly balanced. Increase first-position bias while retaining equal quality. The A-first single-order result should become more favorable to A, while first-both disagreements become more common.
Next give A a strong quality advantage. Some consistent A wins should remain even with moderate position bias. Raising bias far enough can still overwhelm that advantage in one ordering. Inspect individual rows to see whether disagreement came from position preference or ordinary random draws. The trace exposes the assumed probability and normalized pick rather than presenting a score without its calculation.
Reset restores the documented defaults. Export includes inputs, seed, pair outcomes, aggregate counts and the stated limitations. These controls test the mechanism; they do not connect to an inference provider. A result from this lab must be described as a synthetic simulation, never a measured ranking of real models.
Decide what evidence is sufficient
A useful evaluation report preserves failed and ambiguous judgments, discloses the paired design and compares results across task groups. A judge can be stable on short factual responses and unstable on long explanations. Aggregate stability can hide that difference. Track the rubric and prompt version with each group so a later migration does not mix incompatible measurements.
The practical outcome is a better decision about the evaluator. If order changes many winners, fix or replace the judging design before using its ranking to select an agent. If order sensitivity is low, continue checking other biases and task-specific correctness. Reversal is an inexpensive diagnostic relative to trusting a large misleading benchmark, but it is one diagnostic with a clearly bounded claim.
Interactive experiment
Pairwise judge position bias: order flips and a sign test. Synthetic browser-local fixtures, adjustable inputs, decision traces and JSON export.
Run the example yourself
The synthetic fixtures, expected output and tests behind this guide are in the companion code on GitHub; its README lists the prerequisites, exact commands, expected output and limits.