Manuscript Offprint

arXiv:2610.07755

Trustworthy Method Comparison with AI Judges: Estimation and Design under Order, Batch, and Aggregation Effects

Tianxi Li, Jie Ding

Abstract

Large language models (LLMs) are increasingly used as judges for automated AI evaluation. A common practice is to randomize prompt sequences and average the resulting scores, but its statistical validity remains unclear. We show that LLM evaluation mechanisms can be approximated by a class of Markov generalized linear mixed models (GLMMs), supported by out-of-sample predictions across three major commercial LLMs. Using a first-order Markov GLMM, we study leaderboard ranking and group comparison. For leaderboard ranking, randomize-and-average selection is consistent under a mild separation condition, and a Williams square design can improve efficiency when item qualities are close. For group comparison, naive averaging can yield inconsistent conclusions about differences in group-level quality because of the response model's nonlinearity. Empirical results further support the validity of the proposed model-based inference beyond the first-order theory, including settings with higher-order sequence memory. We illustrate the approach in an application where AI judges compare two graphical model estimation methods.

1 Introduction

Generative large language models (LLMs) are increasingly used as AI judges, scoring and ranking candidate responses, model versions, and even grant proposals at a scale that human raters cannot match. For example, a traditional grant review panel reads a slate of proposals in one review session and makes a sponsoring decision for each. An AI judge can be placed as a screening gate for such a panel by identifying promising proposals before human panels spend effort. For another example, comparing two methods using a benchmark dataset is a common task in scientific publications. When the task involves interpretation and domain knowledge, such as variable selection in genetic studies or graph construction by graphical models, an AI judge with broader background knowledge can take the output of the two methods and help with evaluating whether one gives more scientifically meaningful results. In these examples, a number of items to be evaluated go to the judge together in one shared context, and a decision or “meaningful” label is assigned by the AI judge.

In many of these cases, the items for evaluation are provided together in a batch. This is not only how tasks are commonly posed, since a judgment about one item is made against the standard the rest of the slate sets, but also the token-economical choice to reduce repetitive prompts. In such settings, a judge's ratings may not be independent: what the judge says about the fifth item depends on what it has just said about the fourth. That dependence is the source of complications for much of the related research. In particular, whether the resulting evaluation can be trusted raises two critical questions.

The first is whether the judge is measuring the right thing. Does the criterion it applies track the quality a human evaluator ultimately cares about? This is a question of validity, and it is where most of the field's attention has gone. MT-Bench and Chatbot Arena calibrate judge ratings against human preference data [Zheng et al., 2023, Chiang et al., 2024]; AlpacaEval's length-controlled revision corrects a specific, documented misalignment between the judge's criterion and the human target [Dubois et al., 2024]; and recent surveys and audits catalog the ways a judge's criterion can drift from the intended one [Gu et al., 2024, Ye et al., 2024].

The second question, which is equally important, is whether we can recover what the judge actually concluded. Given a criterion, aligned or not, the judge is typically queried a finite number of times under a common protocol for stability, and its answers are aggregated into a score, a ranking, or a conclusion about which of two groups is better. Does that aggregation return the judge's own answer, or does the procedure introduce error of its own? This is a question of measurement rather than validity. A perfectly aligned judge tells us nothing useful if the aggregation step distorts its answer, and, as we show, the distortion can grow with the evaluation budget, so that the more one spends on collecting more answers, the more confident one could become in a conclusion the judge never reached.

In this paper, we focus on solving the second problem (measurement). We take the judge's criterion as given. Every failure we study is therefore a failure of the evaluator's statistics rather than of the rubric it was judged by, and every remedy is a change of estimator or of experimental design rather than of prompt.

The dominant evaluation pipeline used in practice has two steps. First, items are presented to the judge in randomized order to mitigate the well-documented position bias of LLM judges. Such bias has been observed in pairwise judging [Zheng et al., 2023, Wang et al., 2024], list-wise ranking [Shi et al., 2024], and multiple-choice option order [Pezeshkpour and Hruschka, 2024], and is reviewed together with other judge biases in recent surveys and audits [Gu et al., 2024, Ye et al., 2024]. Proposed remedies include reversing presentation order and averaging scores [Wang et al., 2024], splitting and re-merging candidate answers [Li et al., 2024], bootstrapping over reshuffled presentations [Hou et al., 2024], symmetrizing pairwise comparisons [Liusie et al., 2024], and multi-agent debate [Khan et al., 2024]. These remedies are largely heuristic, format-specific, and often computationally costly. Second, each item is scored by its marginal average rating, and these averages are compared or ranked. Variants of this “random shuffle followed by marginal averaging” pipeline underlie many contemporary judge-based benchmarks, including MT-Bench, which averages absolute grades [Zheng et al., 2023], and AlpacaEval, which averages win rates against a fixed baseline [Dubois et al., 2023, 2024]. A notable exception is Chatbot Arena, which fits a logit-scale Bradley–Terry model to pairwise votes [Chiang et al., 2024] and is therefore insulated from the bias studied below. It is the second step, the estimator, that the order-effect literature largely leaves untouched. Yet aggregation itself can introduce systematic error: a biased, order-dependent rating process can distort marginal averages in ways that randomization cannot remove. As we show, this is where the statistical failure arises.

A statistical model is needed to assess the validity of the “randomize and average” procedure and to develop improved alternatives. We show that an LLM judge scoring a shuffled batch can be well approximated by a Markov generalized linear mixed model (GLMM), in which each item’s binary rating follows a Bernoulli distribution on the logit scale, with a serial effect, a cold-start effect, and a batch-level random intercept. We view this as a working model class, rather than a representation of the judge’s internal mechanism. Its adequacy can be assessed empirically through out-of-sample predictive evaluation, as demonstrated in our experiments.

Under the order-1 Markov GLMM, we study two common evaluation tasks. For leaderboard ranking, which seeks to identify the best item in a pool, we show that the naive average is consistent under a mild separation condition. A Williams Latin square design, combined with the same estimator, can further improve selection performance at no additional computational or token cost. In contrast, for group comparison, the A/B test of whether one collection of items outperforms another, the naive procedure can fail. We show that it is structurally biased, leading to invalid point estimation and hypothesis testing; increasing the evaluation budget does not remove this bias. A unified alternative is to fit the GLMM under an ordinary random shuffle and conduct standard model-based inference. This procedure is valid for both tasks. Although the theory is developed under the order-1 model, we further show that an order-1 approximation can still provide reliable inference when the judge exhibits higher-order memory.

The rest of the paper is organized as follows. Section 2 introduces the Markov-GLMM working model for an AI judge and establishes its empirical adequacy. Section 3 analyzes leaderboard ranking and the properties of the Williams design, while Section 4 analyzes group comparison and the nonlinearity bias of naive averaging. Section 5 considers judges with memory beyond first order, a setting outside our design theory. Section 6 applies the group-comparison method to a real problem, using AI judges to compare two graphical model estimation methods based on the scientific meaningfulness of their discovered associations. Section 7 concludes with further discussion.

References (26)