Research method /
Before you trust an LLM judge, swap the answers
A real 24-judgment smoke test, a response-identity trap, and a small reproducible audit for checking answer-order sensitivity without overstating the result.

Before using an LLM to decide which answer is better, show it the same pair in both orders. Then check whether it still prefers the same response, rather than the same position. Repeat the original order too: a changed verdict might reflect ordinary variability rather than an order effect.
I ran a small version of this audit: eight authored answer pairs, three evaluation batches, and 24 actual judgments. The judge stayed consistent on every pair. That is a useful smoke-test result. It is not enough to conclude that the judge is unbiased or ready to grade your application.
What should change when the answers move?
Imagine comparing two sales briefings. One preserves a missing employee count as null; the other invents a number. You ask a judge to choose A, B, or a tie. The briefing that preserves the source should remain preferable wherever you place it.
There is an easy bookkeeping trap:
| Presentation | Label if Response 1 wins |
|---|---|
| Response 1, then Response 2 | A |
| Response 2, then Response 1 | B |
The labels changed, but the preferred response did not. Comparing the raw strings A and B would incorrectly report disagreement. Conversely, choosing A twice would select different responses.
This order-swap idea is established research, not a new method introduced here. Zheng and colleagues discuss evaluating both orders in their work on MT-Bench. My contribution here is a small executed audit, downloadable judgments, and the analysis code needed to avoid that identity mistake.
The experiment I actually ran
I wrote eight synthetic pairs before collecting the judgments. Four contain a clear factual or instruction-following gap: an invented employee count, a calibration misconception, an unsafe patient split, and an incorrect QLoRA explanation. Three contain close, defensible alternatives about RAG, judging and clinical distribution shift. The last pair contains identical answers as a tie control.
The four clear-gap pairs have author-specified reference choices. The close pairs have no independently annotated preference label. Reference choices and case-group labels were omitted from the judge’s inputs.
The judge was the model reported as gpt-6.1-sol by a ChatGPT-authenticated Codex CLI, version 0.162.1. Each of three separate ephemeral sessions received the same rubric and eight pairs:
- Original answer order.
- Reversed answer order, keeping the questions and answer text unchanged.
- Original order again as a repeat control.
The rubric prioritised correctness, instruction compliance, relevance and clarity, allowed ties, and explicitly warned against preferring the first or longer answer. The prompts prohibited web search. Sampling temperature and seed were not controlled through this wrapper.
These are three batch contexts containing eight pairs each, not 24 independent model calls. Other cases in a batch can influence the context. The downloadable record includes the exact rubric, runtime timestamps, model identifier and every returned reason.
The result: no flips in this smoke test
After mapping position labels back to response identity:
| Check | Observed result |
|---|---|
| Same preference after swap | 8/8 pairs |
| Same preference on repeat | 8/8 pairs |
| Clear-gap references recovered | 4/4 in every batch |
| Close pairs and identical control | 4/4 ties in every batch |
All four clear-gap reference choices were recovered in each batch. All three close pairs and the identical pair were labelled ties in every batch: 12 of the 24 judgments were ties. Among the 12 decisive judgments, six chose position A and six position B.
The tie count matters. Half of the pairs contribute stable ties to the headline agreement. This does not tell us how the judge behaves when two real model outputs have a subtle but important quality difference. It would be misleading to turn this table into a general accuracy claim.
The result also does not reproduce the original papers’ findings or contradict them. The tasks, models, prompts and evaluation scale differ. In Shi and colleagues’ study, repeated judgments help assess stability, and their analysis examines how answer quality gaps affect order consistency. My one-repeat check is simpler than their repetition-stability metric.
Replay the analysis without a model account
Download these files into one folder:
- The eight cases and reference notes
- All recorded judgments and the rubric
- The three exact input prompts
- The dependency-free audit script
Run it with Node.js 24.21.0, the version used for this analysis:
node audit.mjs
An excerpt of the actual output is:
{
"cases": 8,
"swapAgreement": 8,
"repeatAgreement": 8,
"firstPositionWins": 6,
"ties": 12,
"totalJudgments": 24,
"clearGapCorrect": { "original": 4, "swapped": 4, "repeat": 4 }
}
The complete computed output also lists each canonical winner. The script validates case IDs and labels before counting. It makes no model calls: replaying stored judgments is different from obtaining new judgments.
To collect your own results, reuse the recorded rubric and present the same question with A/B, then B/A, then A/B again. Keep canonical response IDs outside the prompt so the analysis can map labels correctly. Start with cases from your actual task rather than treating these eight teaching cases as a benchmark.
Why agreement is not enough
A judge can consistently prefer a wrong answer. It can also consistently call a meaningful quality difference a tie. The MT-Bench paper explicitly cautions that consistency need not imply accuracy. Order checking probes one failure mode; it does not validate factuality, human alignment or clinical safety.
This pilot has obvious limits: eight hand-written pairs, mostly short answers, one rubric, one reported model and one repeat. The close pairs have no human preference study. Batch context and uncontrolled sampling limit how strongly any disagreement could be attributed to order. A clean result is a reason to try harder, representative cases, not to stop evaluating.
For a real evaluation, I would keep genuine ties and order disagreements as separate fields. Otherwise an unstable comparison can disappear inside a reassuring tie rate. I would add repeated runs, realistic near-equal candidates, clear reference cases and a human-labelled subset where human preference is the target.
The practical decision is small: before trusting a pairwise judge, check what survives an order swap. Track response identity, include a repeat control, and retain the raw outcomes. If it passes, you have cleared one smoke test. You still need evidence that it measures the quality you care about.
Prepared with AI assistance. Sources and a worked example are provided so you can check the reasoning.
