Judge Calibration and Meta-Evaluation

Michael BrenndoerferDecember 1, 202631 min read

Build counterbalanced calibration fixtures, measure agreement and bias, and validate LLM judges against a characterized expert reference.

Language AI HandbookAll chapters
Part 57 of 67Dynamic, Interactive, and Agentic Evaluation
Chapter 438Judge Calibration and Meta-Evaluation
Reading the full chapter · 20 sections · 31 min20 sections · 31 min

All 20 sections · 31 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

Judge Calibration and Meta-Evaluation

A judge can agree with experts on most comparisons and still favor whichever answer appears first. Swap the candidates and ask again. If the decision follows the position, agreement in a single presentation may reflect how the fixture was arranged. We will estimate agreement with a panel, build a paired test, and compare three synthetic judges with their ensembles.

The chapter builds directly on LLM-as-Judge, Position Bias in LLM Judges, and Evaluation Prompt Engineering. Those chapters established how to prompt and query a judge; here we focus on whether the resulting judgments are trustworthy and how to prove it. The key idea running through everything is the distinction between agreement and validity. Two judges can agree perfectly and both be wrong. A judge can disagree with experts on cases where the experts themselves are unreliable. Meta-evaluation is the discipline of checking the judge against a reference whose own quality you have characterized.

By the end of this chapter you will be able to:

  • Construct a blinded, counterbalanced, expert-labeled calibration set with abstention, ties, uncertainty, and group slices.
  • Compute agreement metrics (raw agreement, Cohen's κ\kappa, Krippendorff's α\alpha) between judge and experts and between judges.
  • Diagnose and quantify systematic biases: position, verbosity, self-preference, and rubric interpretation.
  • Validate a rubric as a measurement instrument (construct validity, discriminant validity, sensitivity).
  • Combine multiple judges into an ensemble and understand when ensembles help and when they merely amplify shared bias.
  • Set alerting thresholds from held-out calibration data, with a confidence-aware decision rule.

What Meta-Evaluation Means

Meta-evaluation examines when a judge agrees with a human reference and how its decisions change across conditions. The judge is a function J:(x,y1,y2,c)→p^J:(x, y_1, y_2, c) \to \hat{p} mapping a prompt, candidate pair, and rubric to a preference or probability. The human panel provides a separate reference.

For example, a judge might agree with the panel on 75% of one sample and 40% of a sample from another domain. Report the sampled tasks and counts for each comparison. Diagnose judge behavior and reference reliability separately; an agreement gap alone does not identify its cause.

Meta-evaluation comes in two flavors that are easy to conflate:

  • Agreement analysis measures whether the judge's decisions line up with the reference, both overall and per slice. It includes reliability (self-consistency, stability across paraphrases) and fairness (bias across order, length, source).
  • Validity analysis asks whether the reference and the judge are measuring the construct you care about. A judge can agree perfectly with experts on a rubric that has drifted from what "good answer" means.

Measure agreement and investigate validity as separate questions. Agreement can reveal whether two raters make the same decisions; the question of what they measure needs separate evidence.

Judge Calibration

Judge calibration is the process of estimating the mapping from judge outputs to reference labels, characterizing the judge's biases on that mapping, and using those estimates to decide whether the judge's scores are trustworthy enough to use, to correct, or to alert on.

Calibration is not the same as calibration of a classifier's probabilities (that is the Calibration chapter). Here, "calibrated" means the judge's decisions track an expert reference at an acceptable, characterized rate on a representative slice, and that deviations are known rather than assumed away. The emphasis is on characterized: an uncalibrated judge is not necessarily an unusable one, but it is an unknown one, and an unknown measurement cannot support a decision you intend to defend.

The Reference Is Also an Instrument

Compute agreement among panel members separately from judge-to-consensus agreement. Per-item majority labels can equal a judge’s labels on all items even when annotators within an item disagree. Panel-only alpha is therefore not an upper bound for judge-to-consensus agreement.

Disagreement flags cases to inspect. It may come from ambiguous evidence, an underspecified rubric, or annotation error. Compare adjudicated examples and report the disputed fraction to distinguish those cases where possible.

In the panel-size simulation each annotator independently matches a latent binary label with probability 0.70. The majority of three matches it with probability 3(0.7)2(0.3)+(0.7)3=0.7843(0.7)^2(0.3)+(0.7)^3=0.784. The two-annotator agreement probability is (0.7)2+(0.3)2=0.58(0.7)^2+(0.3)^2=0.58. The quantities describe different comparisons.

PythonIn [2]
CollapseExpand
import numpy as np

# Simulate majority-vote accuracy vs panel size against a latent reference.
# Each annotator is correct with probability ACC per item, independent of others.
# Seed fixed so the curve is reproducible; each panel size uses 2000 trials.
panel_rng = np.random.default_rng(11)
ACC = 0.70
TRIALS = 2000
panel_sizes = np.array([1, 3, 5, 7, 9, 11, 15, 21, 31])

majority_accuracy = []
for m in panel_sizes:
    votes = panel_rng.random((TRIALS, m)) < ACC
    # Majority correct if strictly more than half the annotators are correct
    correct = votes.sum(axis=1) > (m / 2)
    majority_accuracy.append(correct.mean())
majority_accuracy = np.array(majority_accuracy)
VisualizationOut [3]
CollapseExpand
Line chart of majority-vote accuracy versus panel size, rising above the single-annotator baseline.
Simulated majority-vote accuracy against a latent preference across odd panel sizes. Each annotator independently matches it with probability 0.70. The dashed line is the single-annotator probability.

This is why the first step in any serious meta-evaluation is characterizing the reference itself:

  1. Measure human-human reliability per slice using Krippendorff's α\alpha or a pairwise agreement metric (recall Inter-Annotator Agreement).
  2. Inspect high-disagreement slices. Review whether raters had different evidence, interpreted the rubric differently, or made annotation errors.
  3. Keep the comparisons separate. Report panel-member reliability and judge-to-consensus agreement with their metrics and denominators.

Record the panel size, labeling instructions, tie rules, and adjudication protocol. The synthetic example keeps individual votes, the majority label, and the latent preference separate.

Building a Calibration Fixture

The fixture determines which agreement and bias questions the evaluation can answer. It specifies the examples, reference labels, presentation order, and reported slices. These design choices apply to real evaluations. The synthetic example below implements a smaller subset.

Requirements for a calibration fixture

  • Blinding. Keep candidate source and previous decisions hidden when the evaluation requires it. If each pair is shown only once, randomize the candidate order; a matched design observes both orders.
  • Counterbalancing. Show the same candidates in both orders to measure how the choices change with display order. Assess the validity of those choices against a characterized reference.
  • Ties and abstentions: judges can say "tie" or "cannot decide." Forcing a choice on ambiguous items manufactures spurious agreement (or disagreement).
  • Uncertainty: if the judge produces a confidence or logprob, record it. Confidence calibration is itself a meta-evaluation target.
  • Stratification: label each item with one or more slices (task, domain, length bucket, source, language) so you can diagnose bias that hides in the aggregate.
  • Held-out split. Fit parameters or select thresholds using development data. Test the chosen rule on a different split.

Document the annotation protocol, what counts as a nondecision, and which IDs belong to calibration or test. Preserve all orientations of an item together when splitting or resampling.

The fixture is the deliverable

Write the fixture before tuning the prompt. Counterbalanced examples, an explicit nondecision outcome, and slice labels let you test how a change affects the recorded comparisons.

Why counterbalancing matters

For a judge that always chooses the first displayed answer, exactly one orientation agrees with a decisive reference and exactly one disagrees. Thus agreement is 1/2 across orientations for each such pair. Its signed position statistic is exactly +1 because every matched pair contains two first-position choices. A smaller preference for first position can change only some decisions, as with Judge B below.

Building a counterbalanced fixture costs little beyond generating each pair twice with the order flipped. Building a post-hoc correction for a position bias you never measured costs weeks of debugging and a missed deployment.

Let MM be the number of pairs with decisions in both orientations. Let FF count first-position wins over those 2M2M presentations. Use the difference in first- and second-position win rates:

F−(2M−F)2M=FM−1,M>0.\frac{F-(2M-F)}{2M}=\frac{F}{M}-1,\quad M>0.

For a pair with two decisions, the same candidate can win twice or the winner can flip. An unchanged candidate wins once from each position. Exclude pairs without two decisions from this statistic and report decision coverage separately.

Verbosity and self-preference as slices

Two of the most-reported judge biases are:

  • Verbosity. A judge might favor longer answers independent of correctness. The fixture reports a length association and agreement by length-gap bucket.
  • Self-preference. A judge might favor its own outputs after accounting for quality. Zheng et al. discuss the related self-enhancement bias alongside position and verbosity effects. This fixture reports affinity for a named source and records which simulator shares that identity. Zheng et al., 2023

Prompt or rubric changes can alter bias. Compare candidate versions on the same blinded and counterbalanced fixture to measure their effect.

Measuring Agreement

Raw agreement is the fraction of jointly rated items where the judge and reference match. Agreement under independent ratings depends on both label distributions. It can be substantial when both raters often use the same label, including a tie label. We use two chance-corrected statistics.

  • Cohen's κ\kappa for two raters assigning nominal categories: κ=(po−pe)/(1−pe)\kappa = (p_o - p_e)/(1 - p_e) where pop_o is observed agreement and pep_e is agreement expected under independent marginals. κ\kappa is easy to compute but assumes a fixed set of labels and treats each item symmetrically.
  • Krippendorff's α\alpha generalizes to multiple raters, missing data, and arbitrary difference functions. It is the right choice when the reference has multiple annotators per item or when items have varying rater counts.

Chance correction matters because a judge can achieve high raw agreement by exploiting label imbalance. If 80% of items the reference labels the same way, a judge that always outputs that majority label scores 80% raw agreement while carrying zero information. Chance-corrected statistics subtract the agreement expected from the marginals alone, so a judge that only reproduces the base rate scores κ≈0\kappa \approx 0 rather than 0.80. Report label distributions alongside chance-corrected agreement. A change in class frequencies can still change either coefficient.

Kappa can use any prespecified nominal categories for two complete ratings. Here we use binary A/B kappa with explicit ties omitted and coverage tracked. Nominal alpha uses coincidence counts and can accommodate missing comparisons.

κ=po−pe1−pe,pe=∑kπkπ^k\kappa = \frac{p_o - p_e}{1 - p_e}, \qquad p_e = \sum_k \pi_k \hat{\pi}_k

where πk\pi_k and π^k\hat{\pi}_k are the marginal label distributions of the two raters, and for Krippendorff's α\alpha:

α=1−DoDe\alpha = 1 - \frac{D_o}{D_e}

where DoD_o is observed disagreement (over actual rater pairs) and DeD_e is expected disagreement (over all pairs under the pooled distribution). We implement the nominal case: δ2=0\delta^2 = 0 when two labels agree, else 1.

Report Panel Reliability Separately

The panel’s alpha describes agreement among members. Agreement with a majority label uses an aggregated decision. Report both with their denominators. Low panel reliability can motivate further adjudication before using the reference for a gate.

Diagnosing Bias

Agreement numbers hide systematically structured errors. To see them, we decompose disagreement into defined categories and test each. The logic is that a single scalar like κ\kappa averages over many kinds of error; a judge that errs only on long answers and a judge that errs randomly can produce the same κ\kappa while requiring completely different fixes. Decomposition recovers the structure.

Position bias

The signed position statistic uses matched pairs with two decisive responses. Keep prompts, rubric, and answer text fixed across the swap. Report ties and refusals separately in a real test.

Verbosity bias

Verbosity bias is a systematic preference for longer answers. The diagnostics below describe associations. Distinguishing a causal length preference requires comparable-quality answers or experimental control of length.

  1. Length association. Compute Spearman correlation between the raw length gap, A minus B, and the chosen side coded as +1+1 for A or −1-1 for B. A positive result is an association. Control answer quality or vary length within equivalent answers to study a causal effect.
  2. Agreement by length bucket. Break items into bins by absolute length difference. Compare agreement and evaluated counts. A drop identifies a subset to inspect and does not isolate length from other differences.

Correlation concerns the association between length gap and the judge’s choice. The bucket summary compares judge-to-panel kappa across ranges of absolute length difference. Every jointly rated item in the bucket enters that comparison.

Self-preference

For each item, the fixture records which model produced each candidate. Define source affinity over decided original-order comparisons.

affinityk=P(J chooses sourcek∣one source-k candidate and decisive vote)−0.5\text{affinity}_k = P(J \text{ chooses source}_k \mid \text{one source-}k\text{ candidate and decisive vote}) - 0.5

This raw comparison to 0.5 measures affinity for a source on decided pairs with exactly one answer from that source. A quality-controlled attribution to self-preference needs a comparable reference and order controls. We report the same Model B affinity for every judge. Only Judge C has the corresponding own-source identity.

Look at comparisons where exactly one candidate belongs to the source. Source affinity on these comparisons can still reflect true quality differences or the composition of the pair set. Compare against human judgments on the same pairs before calling it bias.

Rubric drift

For rubric sensitivity, change one specified criterion, score again, and annotate a reference for each rubric. Another diagnostic keeps judge outputs fixed and compares them with a deliberately limited alternate reference. The example uses the longer answer as that alternate rule.

Judge Ensembles

Compare a vote or weighted vote with its members. Independent errors can cancel when raters have useful signals; shared mistakes can survive aggregation.

Majority vote

Vote over decided labels. Missing votes can create a tie even when the nominal judge count is odd. State the tie policy and track coverage alongside agreement.

Reliability-weighted aggregation

Use calibration kappa as a weight when it is positive and finite. Give each undefined or nonpositive kappa weight zero. Apply the weights to the two vote totals on the held-out items.

The weight is a heuristic. Compare it with the unweighted rule on the same held-out tasks and report coverage for both.

Bias cancellation is not guaranteed

A vote can reduce independent errors when the judges have useful signals. Correlated errors can limit improvement, so measure the ensemble on the same slices and under the same protocol as the individual judges.

Ensembles require a held-out agreement check

An ensemble is a new measurement instrument. Evaluate it against the reference exactly like a single judge: agreement, position bias, verbosity correlation, per-slice breakdown. Do not assume the ensemble inherits the single judges' weaknesses without checking. Nor should you assume it acquires their weaknesses automatically; the ensemble's bias profile is an empirical question, and it can surprise you in either direction.

Worked Example: Synthetic Fixture

The example uses simulated votes and fixed paired presentations. It records which votes are missing, stratifies agreement by length, and evaluates fixed illustrative thresholds on held-out items. It does not produce confidence scores or run a live model.

The fixture draws two candidates per comparison from three possible source labels and records both lengths in characters. Judges A, B, and C add different position, length and source effects. Shared noise within each two-order presentation isolates the simulated position effect.

We use numpy for the simulation and pandas for the analysis. If any package is missing, install with uv pip install numpy pandas matplotlib scipy.

PythonIn [4]
CollapseExpand
import numpy as np
import pandas as pd

rng = np.random.default_rng(7)

N = 600
item_ids = [f"item_{i:04d}" for i in range(N)]

# Candidate answers with lengths and source models.
# Candidate source labels affect length offsets. The latent preference is a
# separate random draw, independent of those source labels and lengths.
sources = np.array(["model_a", "model_b", "model_c"])
source_quality = {"model_a": 0.0, "model_b": 0.6, "model_c": -0.4}
lengths = rng.integers(40, 400, size=(N, 2))
# Add source-correlated length offset so length and source are entangled
source_pair = rng.choice(sources, size=(N, 2))
# Note: the draw is uniform per side in expectation, but the realized marginal
# counts under seed 7 are not exactly equal (side-0 counts are 167 model_a,
# 207 model_b, 226 model_c; pooling both sides gives 393/394/413).
for i in range(N):
    for side in range(2):
        lengths[i, side] += int(
            30 * source_quality[source_pair[i, side]] + rng.normal(0, 60)
        )
# Truncate the adjusted draws at one character.
lengths = np.maximum(lengths, 1)

# Reference labels from a simulated human panel: 3 annotators per item.
# Each annotator agrees with the latent "true preference" with probability 0.7
latent_pref = rng.choice(
    [0, 1], size=N
)  # 0 -> first listed is preferred, 1 -> second
panel = np.zeros((N, 3), dtype=int)
for a in range(3):
    for i in range(N):
        if rng.random() < 0.7:
            panel[i, a] = latent_pref[i]
        else:
            panel[i, a] = 1 - latent_pref[i]

# Majority vote of panel as the reference label
ref_majority = (panel.mean(axis=1) > 0.5).astype(int)

fixture = pd.DataFrame(
    {
        "item_id": item_ids,
        "len_1": lengths[:, 0],
        "len_2": lengths[:, 1],
        "src_1": source_pair[:, 0],
        "src_2": source_pair[:, 1],
        "ref_majority": ref_majority,
        "panel_a1": panel[:, 0],
        "panel_a2": panel[:, 1],
        "panel_a3": panel[:, 2],
    }
)

fixture["len_diff"] = fixture["len_1"] - fixture["len_2"]
fixture["position_of_ref"] = np.where(
    fixture["ref_majority"] == 0, "first", "second"
)
fixture.head()

The synthetic reference is the majority of three annotators. With independent errors at per-annotator accuracy 0.70, its expected latent-label accuracy is 0.784. Report measured panel-member reliability separately.

ConsoleOut [5]
CollapseExpand
Items: 600
Reference label balance: 0.48 (fraction preferring 2nd)
Mean length difference: 4.8, std: 168.8
Source-pair distribution:
src_1    src_2  
model_c  model_a    91
model_b  model_a    78
model_c  model_b    78
model_b  model_c    69
model_a  model_c    61
Name: count, dtype: int64

Candidate lengths are at least one character. This draw gives a reference preference for the second canonical candidate on about 48% of items. Counterbalancing keeps each pair fixed and displays both orders. A position-neutral judge that makes the same decisive choice in both orientations contributes zero to the signed position statistic even when the reference or source labels are skewed.

Computing Agreement Between the Panel and Each Judge

Each simulator draws one noisy margin in canonical answer order, then applies the first-position bonus in both presentations. A positive margin selects A and a negative one selects B, subject to the tie zone.

PythonIn [6]
CollapseExpand
def make_judge(
    name,
    position_bias,
    length_bias,
    self_bias,
    own_source=None,
    tie_threshold=0.0,
    noise=0.15,
):
    def judge(rng, i):
        pref = latent_pref[i]
        score_a = 0.5 * (pref == 0)
        score_b = 0.5 * (pref == 1)
        relative_length = fixture["len_diff"].iloc[i] / 200.0
        score_a += length_bias * relative_length
        score_b -= length_bias * relative_length
        if own_source is not None:
            score_a += self_bias * (fixture["src_1"].iloc[i] == own_source)
            score_b += self_bias * (fixture["src_2"].iloc[i] == own_source)
        delta = float(
            score_a - score_b + rng.normal(0, noise) - rng.normal(0, noise)
        )

        def canonical_choice(margin):
            if abs(margin) <= tie_threshold:
                return np.nan
            return 0 if margin > 0 else 1

        first_position_bonus = position_bias * 0.5
        return (
            canonical_choice(delta + first_position_bonus),
            canonical_choice(delta - first_position_bonus),
        )

    judge.__name__ = name
    return judge


judge_A = make_judge(
    "judge_A_neutral",
    position_bias=0.0,
    length_bias=0.0,
    self_bias=0.0,
    tie_threshold=0.05,
    noise=0.20,
)
judge_B = make_judge(
    "judge_B_position",
    position_bias=0.5,
    length_bias=0.0,
    self_bias=0.0,
    tie_threshold=0.05,
    noise=0.20,
)
judge_C = make_judge(
    "judge_C_verbose_selfpref",
    position_bias=0.0,
    length_bias=0.4,
    self_bias=0.4,
    own_source="model_b",
    tie_threshold=0.05,
    noise=0.20,
)

A has no assigned position, length, or source offset. B adds a first-position bonus. C adds length and Model B offsets. The observed diagnostics describe sample outcomes and need not match those coefficients.

PythonIn [7]
CollapseExpand
for name, simulate in [("A", judge_A), ("B", judge_B), ("C", judge_C)]:
    paired = np.array([simulate(rng, i) for i in range(N)])
    fixture[f"judge_{name}"] = paired[:, 0]
    fixture[f"judge_{name}_swapped"] = paired[:, 1]

print(
    f"Nondecisions in first presentation: A={fixture['judge_A'].isna().sum()}, "
    f"B={fixture['judge_B'].isna().sum()}, C={fixture['judge_C'].isna().sum()}"
)

Each simulated call returns two canonical candidate identities, zero for A and one for B, plus possible nondecisions. The original order presents A first. The second order presents B first. The paired position function therefore counts first-position wins as original=0 plus swapped=1.

Agreement Metrics

We compute raw pairwise agreement, Cohen's κ\kappa, and Krippendorff's α\alpha. Cohen defined kappa for agreement on nominal scales. Krippendorff’s nominal alpha uses coincidence counts for pairs of comparable ratings. Cohen, 1960 Cohen’s retrospective Krippendorff

PythonIn [8]
CollapseExpand
def percent_agreement(a, b):
    m = a.notna() & b.notna()
    if m.sum() == 0:
        return float("nan")
    return float((a[m] == b[m]).mean())


def cohen_kappa(a, b):
    m = a.notna() & b.notna()
    a, b = a[m].astype(int), b[m].astype(int)
    n = len(a)
    if n == 0:
        return float("nan")
    labels = [0, 1]
    po = (a == b).mean()
    pe = sum((a == k).mean() * (b == k).mean() for k in labels)
    if pe >= 1 - 1e-9:
        return float("nan")
    return float((po - pe) / (1 - pe))


def krippendorff_alpha_nominal(labels_matrix):
    """
    labels_matrix: shape (n_items, n_raters), NaN for missing.
    Nominal difference. Implements the standard coincidence-matrix form.
    """
    data = np.asarray(labels_matrix, dtype=float)
    n_items, n_raters = data.shape
    # Build coincidence matrix over all distinct labels
    distinct = sorted({x for x in data.flatten() if not np.isnan(x)})
    idx = {v: i for i, v in enumerate(distinct)}
    K = len(distinct)
    if K == 0:
        return float("nan")
    coinc = np.zeros((K, K))
    for i in range(n_items):
        row = data[i]
        valid = [x for x in row if not np.isnan(x)]
        m_i = len(valid)
        if m_i < 2:
            continue
        for a_idx in range(m_i):
            for b_idx in range(m_i):
                if a_idx == b_idx:
                    continue
                ca, cb = idx[valid[a_idx]], idx[valid[b_idx]]
                coinc[ca, cb] += 1.0 / (m_i - 1)
    N_c = coinc.sum()
    if N_c == 0:
        return float("nan")
    # Observed disagreement: (1/N_c) * sum_{c,k} coinc[c,k] * delta^2(c,k)
    delta = np.ones((K, K)) - np.eye(K)
    D_o = (coinc * delta).sum() / N_c
    # Expected disagreement: marginals
    marg = coinc.sum(axis=0)
    e = np.outer(marg, marg) - np.diag(marg * (marg - 1))
    D_e = (e * delta).sum() / (marg.sum() * (marg.sum() - 1))
    if D_e == 0:
        return float("nan")
    return float(1 - D_o / D_e)


# Human-human reliability across the three panel annotators
alpha_human = krippendorff_alpha_nominal(
    fixture[["panel_a1", "panel_a2", "panel_a3"]].values
)

# Append each judge to the three individual panel-vote columns.
agreement_rows = []
for j in ["A", "B", "C"]:
    pa = percent_agreement(fixture["ref_majority"], fixture[f"judge_{j}"])
    kp = cohen_kappa(fixture["ref_majority"], fixture[f"judge_{j}"])
    al = krippendorff_alpha_nominal(
        np.column_stack(
            [
                fixture["panel_a1"],
                fixture["panel_a2"],
                fixture["panel_a3"],
                fixture[f"judge_{j}"],
            ]
        ).astype(float)
    )
    agreement_rows.append(
        {"judge": j, "pct_agree": pa, "kappa": kp, "alpha_vs_panel": al}
    )

agreement_df = pd.DataFrame(agreement_rows)
agreement_df
ConsoleOut [9]
CollapseExpand
Human-human Krippendorff's alpha (panel): 0.212

Judge-reference agreement:
judge  pct_agree  kappa  alpha_vs_panel
    A      0.795  0.591           0.315
    B      0.770  0.535           0.292
    C      0.680  0.361           0.230

Read panel-only alpha separately from panel-plus-judge alpha. The latter includes panel-member pairs and judge-to-member pairs. Kappa compares the judge with the majority on common decided items.

Report the measured panel-only alpha and the judge-to-majority agreement as different comparisons. Agreement against the latent label in the panel-size simulation is a third comparison with its own assumptions.

Bias Diagnostics

We now compute the three bias statistics for each judge: position, verbosity, self-preference.

PythonIn [10]
CollapseExpand
def position_bias(df, judge_col):
    original = df[judge_col]
    swapped = df[f"{judge_col}_swapped"]
    both_decided = original.notna() & swapped.notna()
    if not both_decided.any():
        return float("nan")
    first_wins = (original[both_decided] == 0).sum() + (
        swapped[both_decided] == 1
    ).sum()
    return float(first_wins / both_decided.sum() - 1)


def length_pref_correlation(df, judge_col):
    from scipy.stats import spearmanr

    choice = df[judge_col]
    decided = choice.notna()
    length_gap = df.loc[decided, "len_diff"]
    side = choice[decided].map({0: 1, 1: -1})
    if len(side) < 5 or min(side.nunique(), length_gap.nunique()) < 2:
        return float("nan")
    return float(spearmanr(length_gap, side).statistic)


def source_affinity(df, judge_col, source):
    choice = df[judge_col]
    own_first = df["src_1"] == source
    own_second = df["src_2"] == source
    one_own_and_decided = (own_first ^ own_second) & choice.notna()
    if not one_own_and_decided.any():
        return float("nan")
    match_source = choice[one_own_and_decided] == np.where(
        own_first[one_own_and_decided], 0, 1
    )
    return float(match_source.mean() - 0.5)


bias_rows = []
for name in ("A", "B", "C"):
    col = f"judge_{name}"
    bias_rows.append(
        {
            "judge": name,
            "position_bias": position_bias(fixture, col),
            "length_pref_rho": length_pref_correlation(fixture, col),
            "source_affinity": source_affinity(fixture, col, "model_b"),
        }
    )
bias_df = pd.DataFrame(bias_rows)
ConsoleOut [11]
CollapseExpand
judge  position_bias  length_pref_rho  source_affinity
    A          0.000            0.031            0.009
    B          0.137            0.045           -0.006
    C          0.000            0.620            0.212

B is the simulator with a position bonus. C has length and Model B bonuses. The Model B affinity diagnostic uses the same source criterion for every judge.

Check the denominator before interpreting an alert. The order statistic omits pairs with a nondecision in either presentation. Source affinity and length association omit nondecisions in the original order.

Per-Slice Agreement

Break agreement down by absolute length gap. The small bucket includes a gap of zero. Report the number of comparisons that contributed to each coefficient.

PythonIn [12]
CollapseExpand
fixture["len_bucket"] = pd.cut(
    fixture["len_diff"].abs(),
    bins=[-1, 50, 200, 1e9],
    labels=["small", "medium", "large"],
)

slice_rows = []
for j in ["A", "B", "C"]:
    for b, sub in fixture.groupby("len_bucket", observed=True):
        reference = sub["ref_majority"]
        choice = sub[f"judge_{j}"]
        paired = reference.notna() & choice.notna()
        slice_rows.append(
            {
                "judge": j,
                "len_bucket": b,
                "kappa": cohen_kappa(reference, choice),
                "decided": int(paired.sum()),
                "offered": len(sub),
            }
        )

slice_df = pd.DataFrame(slice_rows)
slice_df.pivot(index="judge", columns="len_bucket", values="kappa")
ConsoleOut [13]
CollapseExpand
judge len_bucket  decided  offered  kappa
    A      small      135      143  0.670
    A     medium      298      309  0.584
    A      large      143      148  0.526
    B      small      138      143  0.509
    B     medium      294      309  0.581
    B      large      138      148  0.459
    C      small      138      143  0.590
    C     medium      297      309  0.366
    C      large      147      148  0.127

The bucket comparison describes agreement at small, medium, and large length gaps. Check the counts in each bucket. In this fixture, the length mechanism is known because it was explicitly assigned to C.

The plot shows the kappa column from the table. The decided column gives its denominator, and the offered column shows the total comparisons in the bucket. We already have slice_df with one row per judge and length bucket, so the figure only renders those precomputed values.

PythonIn [14]
CollapseExpand
# Reshape the per-slice kappa table into a judge-by-bucket matrix for plotting.
slice_pivot = slice_df.pivot(
    index="judge", columns="len_bucket", values="kappa"
)
slice_pivot = slice_pivot[["small", "medium", "large"]]
VisualizationOut [15]
CollapseExpand
Grouped kappa bars for three judges across small, medium, and large length gaps. Solid, diagonal, and crosshatched bars distinguish judges.
Cohen's kappa between each judge and the reference panel, stratified by the absolute length difference between the two candidates. The chart compares small, medium, and large length gaps rather than pooling their agreement.

Rubric Validity

Agreement measures the consistency of judgments. To assess a rubric, ask whether decisions trace its intended property, including cases where superficially similar properties vary independently.

The distinction between reliability and validity is central to measurement and easy to forget when the numbers look good. A reliable judge reproduces the same verdicts on repeated trials. A valid judge reproduces the verdicts that correspond to the construct you care about. A judge can be perfectly reliable and entirely invalid if it has collapsed onto a stable but wrong criterion: length, formatting, or some other surface feature that correlates with the reference labels on the fixture but not on deployment.

The comparison reference picks the longer answer and uses the original majority label when the lengths match. The judge outputs remain fixed. Agreement against the two label sets shows how closely decisions resemble the length-only rule.

PythonIn [16]
CollapseExpand
fixture["ref_length"] = np.select(
    [fixture["len_diff"] > 0, fixture["len_diff"] < 0],
    [0, 1],
    default=fixture["ref_majority"],
)
validity_rows = []
for name in ("A", "B", "C"):
    col = f"judge_{name}"
    original = cohen_kappa(fixture["ref_majority"], fixture[col])
    length_rule = cohen_kappa(fixture["ref_length"], fixture[col])
    validity_rows.append(
        {
            "judge": name,
            "kappa_original": original,
            "kappa_length_rule": length_rule,
            "delta": length_rule - original,
        }
    )
validity_df = pd.DataFrame(validity_rows)
ConsoleOut [17]
CollapseExpand
judge  kappa_original  kappa_length_rule  delta
    A           0.591              0.050 -0.541
    B           0.535              0.063 -0.472
    C           0.361              0.547  0.185

A positive delta indicates higher agreement with the length rule. A negative one indicates the opposite. Neither sign by itself establishes whether the original rubric measures the intended property.

Validating a rubric

Use a versioned rubric, independent reference annotation, and comparison pairs that vary specified properties. An artificial length-only comparison can diagnose association but cannot validate a deployment rubric.

Judge Ensembles

Now let's build a three-judge ensemble and evaluate it against the reference and against each judge's biases.

PythonIn [18]
CollapseExpand
def aggregate_votes(df, columns, weights=None):
    votes = df[columns].to_numpy(dtype=float)
    weight_vector = (
        np.ones(len(columns)) if weights is None else np.asarray(weights)
    )
    zero_votes = (votes == 0) @ weight_vector
    one_votes = (votes == 1) @ weight_vector
    close = np.isclose(zero_votes, one_votes, rtol=1e-12, atol=1e-12)
    chosen = np.where(close, np.nan, np.where(zero_votes > one_votes, 0.0, 1.0))
    return pd.Series(chosen, index=df.index)


judge_cols = ["judge_A", "judge_B", "judge_C"]
calibration = fixture.index % 2 == 0
test_mask = ~calibration

weights = {}
for col in judge_cols:
    kappa = cohen_kappa(
        fixture.loc[calibration, "ref_majority"], fixture.loc[calibration, col]
    )
    weights[col] = max(0.0, kappa) if np.isfinite(kappa) else 0.0

for suffix in ("", "_swapped"):
    columns = [col + suffix for col in judge_cols]
    fixture["ensemble_vote" + suffix] = aggregate_votes(fixture, columns)
    fixture["weighted_vote" + suffix] = aggregate_votes(
        fixture, columns, list(weights.values())
    )
ConsoleOut [19]
CollapseExpand
Agreement weights fitted on the calibration half:
  judge_A: 0.585
  judge_B: 0.549
  judge_C: 0.339
       judge_A | held-out kappa 0.596 | coverage 0.957
       judge_B | held-out kappa 0.520 | coverage 0.947
       judge_C | held-out kappa 0.378 | coverage 0.977
 ensemble_vote | held-out kappa 0.571 | coverage 0.980
 weighted_vote | held-out kappa 0.573 | coverage 1.000

Evaluate majority and weighted votes on the held-out half. Compare coverage and kappa together, since a method can change which items contribute.

PythonIn [20]
CollapseExpand
ensemble_pos = position_bias(fixture, "ensemble_vote")
ensemble_len_rho = length_pref_correlation(fixture, "ensemble_vote")
ensemble_source = source_affinity(fixture, "ensemble_vote", "model_b")
print(
    f"Majority: position {ensemble_pos:.3f}, length {ensemble_len_rho:.3f}, "
    f"model_b affinity {ensemble_source:.3f}"
)
ConsoleOut [21]
CollapseExpand
Judge A: pos=0.000, len_rho=0.031
Judge B: pos=0.137, len_rho=0.045
Judge C: pos=0.000, len_rho=0.620

The majority vote has its own position and length statistics. The results describe fixed synthetic draws and do not establish a general reduction.

Thresholds and Decision Rules

The toy uses fixed illustrative thresholds on a held-out half. The calibration split fits vote weights. In deployment set thresholds from downstream costs and a development split, then lock them before inspecting the test set.

  1. Agreement floor: minimum κ\kappa (or Krippendorff's α\alpha) below which the judge is not trusted for the current task.
  2. Bias ceilings. Use limits for paired position, length association, and Model B affinity.
  3. Coverage floor. Include the share with decisive outputs so a screen cannot improve by dropping too many comparisons.

For agreement, "correct" thresholds come from downstream cost: if a mis-judgment produces a user-visible error, set the floor based on the base rate of errors the product tolerates. For our synthetic example we choose illustrative values but emphasize that real thresholds should be set with respect to the decision they feed.

The screen first checks that all five required statistics are available and finite. An undefined statistic yields insufficient evidence. If all are finite, it reports every threshold that was missed.

PythonIn [22]
CollapseExpand
THRESHOLDS = {
    "coverage_min": 0.85,
    "kappa_min": 0.35,
    "position_bias_max": 0.10,
    "length_pref_rho_max": 0.20,
    "source_affinity_max": 0.08,
}


def decide(metrics):
    required = (
        "coverage",
        "kappa",
        "position_bias",
        "length_pref_rho",
        "source_affinity",
    )
    if any(m not in metrics or not np.isfinite(metrics[m]) for m in required):
        return "insufficient evidence"
    failures = [
        label
        for label, fails in (
            ("coverage", metrics["coverage"] < THRESHOLDS["coverage_min"]),
            ("agreement", metrics["kappa"] < THRESHOLDS["kappa_min"]),
            (
                "position",
                abs(metrics["position_bias"]) > THRESHOLDS["position_bias_max"],
            ),
            (
                "length",
                abs(metrics["length_pref_rho"])
                > THRESHOLDS["length_pref_rho_max"],
            ),
            (
                "source",
                abs(metrics["source_affinity"])
                > THRESHOLDS["source_affinity_max"],
            ),
        )
        if fails
    ]
    return (
        "review: " + ", ".join(failures)
        if failures
        else "accept fixture screen"
    )


holdout = fixture.loc[test_mask]
results = []
for name, col in (
    ("A", "judge_A"),
    ("B", "judge_B"),
    ("C", "judge_C"),
    ("majority", "ensemble_vote"),
    ("weighted", "weighted_vote"),
):
    metrics = {
        "coverage": float(holdout[col].notna().mean()),
        "kappa": cohen_kappa(holdout["ref_majority"], holdout[col]),
        "position_bias": position_bias(holdout, col),
        "length_pref_rho": length_pref_correlation(holdout, col),
        "source_affinity": source_affinity(holdout, col, "model_b"),
    }
    results.append({"judge": name, **metrics, "decision": decide(metrics)})
threshold_df = pd.DataFrame(results)
ConsoleOut [23]
CollapseExpand
   judge  coverage  kappa  position_bias  length_pref_rho  source_affinity               decision
       A     0.957  0.596          0.000            0.098            0.066  accept fixture screen
       B     0.947  0.520          0.150            0.084            0.032       review: position
       C     0.977  0.378          0.000            0.585            0.269 review: length, source
majority     0.980  0.571          0.039            0.186            0.126         review: source
weighted     1.000  0.573          0.053            0.160            0.112         review: source

The screen reports failed metrics and distinguishes an undefined required statistic from a pass. An acceptance qualifies only the stated fixture screen.

Confidence-aware abstention

When a judge supplies confidence estimates, test whether they predict errors on data separate from the data used to select a referral threshold. A referral policy can send uncertain cases to a person or another judge. Report its held-out acceptance rate. This fixture does not implement confidence-based referral.

Visualization of Bias Profiles

Plotting the bias profiles side by side makes the trade-offs obvious. We construct the plot from precomputed values (below) so the visualization cell itself only renders.

PythonIn [24]
CollapseExpand
plot_df = threshold_df[
    threshold_df["judge"].isin(["A", "B", "C", "majority"])
].copy()
VisualizationOut [25]
CollapseExpand
Grouped bars of paired position, length association, and Model B affinity for A, B, C, and majority vote.
Signed diagnostics on held-out items. Position uses pairs answered in both orders. Length uses the original order. Model B affinity conditions on exactly one answer from that source.

Each bar has its own diagnostic interpretation. For Model B affinity the denominator includes only decided comparisons where exactly one candidate came from Model B.

A Note on Self-Consistency

Production judgments can vary with prompt paraphrases, sampling, and model updates. Isolate one factor at a time. This fixture repeats Judge A with fresh simulator noise under the original presentation and then measures nominal alpha across repeats.

PythonIn [26]
CollapseExpand
repeat_count = 3
repeat_rng = np.random.default_rng(29)
repeat_votes = np.array(
    [[judge_A(repeat_rng, i)[0] for _ in range(repeat_count)] for i in range(N)]
)
stability = krippendorff_alpha_nominal(repeat_votes)
repeat_coverage = np.isfinite(repeat_votes).mean()
ConsoleOut [27]
CollapseExpand
Judge A repeat alpha: 0.901
Share of repeat calls with a decision: 0.967

Repeat agreement and reference agreement are distinct. A stable rule can consistently choose the same wrong answer. Report repeat coverage as well, since missing votes change which comparisons contribute.

Limitations and Impact

Meta-evaluation does not solve judge evaluation. It turns a vague claim ("the judge is pretty good") into a reproducible number with characterized uncertainty. It also has failure modes that are easier to see once you have built it.

Repeatedly optimizing a judge or rubric against a visible benchmark can overfit it. Develop criteria and thresholds before looking at the final test labels. Keep repeated presentations of a pair in the same split.

Agreement with a length-only reference shows how closely the judge tracks that rule. Assess whether the deployed rubric captures the intended property using tasks that vary length and quality independently.

An ensemble can retain correlated errors. Model diversity can help when it supplies independent information. Evaluate the new combination on the same held-out tasks and rubric before using it.

Compare changes in the judge or rubric against a versioned anchor subset and a sample drawn from current traffic. A previously measured coefficient describes the model version and population that were measured. The Dynamic, Interactive, and Agentic Evaluation part covers related evaluation settings.

Panel cost can affect which items are rated by whom. Report reference reliability by tier or task when protocols differ, and retain adjudicated examples for ambiguous or consequential decisions.

A practical report can compare two judge versions on paired decisions and follow up on the disagreement classes. When reporting uncertainty, resample whole items so the two presentations remain paired. Version the reference and rules before repeating the evaluation.

Summary

A meta-evaluation reports who labeled the reference, how each pair was presented, how many decisions contributed, and how agreement varied across slices. Keep reference reliability distinct from agreement with its consensus. Test rubric validity with examples that separate the intended property from correlated features. Compare ensembles and thresholds on held-out items, and repeat the checks after changes to the judge, rubric, or task distribution.

Quiz

Judge Calibration and Meta-Evaluation

Question 1 of 80 of 8 completed
What is the key distinction that runs through meta-evaluation according to the chapter?
Join the discussionAsk a question or share what you learned.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

A different angle
All writing
Language AI Handbook · Vol. 18

Online Experiments and Production Evaluation

Compare shadow scores, blended preferences, and randomized outcomes. Apply canary guardrails and monitor input drift before expanding a model rollout.

34 min read
Language AI Handbook · Vol. 18

Live and Continuously Updated Benchmarks

Design live benchmarks with versioned releases, shared-item comparisons, explicit exposure controls, and reproducible scoring.

40 min read
Language AI Handbook · Vol. 18

Evaluation Harnesses and Reproducibility

Build a versioned evaluation harness that pins prompts, graders, and configs. Measure replay agreement, task-level uncertainty, and paired model differences.

47 min read

About the author

Reference

Citation details

Cite or share this article.

BIBTEXAcademic
@misc{brenndoerfer2026judgecalibration, author = {Michael Brenndoerfer}, title = {Judge Calibration and Meta-Evaluation}, year = {2026}, url = {https://mbrenndoerfer.com/writing/judge-calibration-meta-evaluation-agreement-bias-ensembles}, organization = {mbrenndoerfer.com}, note = {Accessed: 2026-12-03} }
APAAcademic
Michael Brenndoerfer (2026). Judge Calibration and Meta-Evaluation. Retrieved from https://mbrenndoerfer.com/writing/judge-calibration-meta-evaluation-agreement-bias-ensembles
MLAAcademic
Michael Brenndoerfer. "Judge Calibration and Meta-Evaluation." 2026. Web. December 3, 2026. <https://mbrenndoerfer.com/writing/judge-calibration-meta-evaluation-agreement-bias-ensembles>.
CHICAGOAcademic
Michael Brenndoerfer. "Judge Calibration and Meta-Evaluation." Accessed December 3, 2026. https://mbrenndoerfer.com/writing/judge-calibration-meta-evaluation-agreement-bias-ensembles.
HARVARDAcademic
Michael Brenndoerfer (2026) 'Judge Calibration and Meta-Evaluation'. Available at: https://mbrenndoerfer.com/writing/judge-calibration-meta-evaluation-agreement-bias-ensembles (Accessed: December 3, 2026).
SimpleBasic
Michael Brenndoerfer (2026). Judge Calibration and Meta-Evaluation. https://mbrenndoerfer.com/writing/judge-calibration-meta-evaluation-agreement-bias-ensembles
Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy