Manuscript Offprint

arXiv:2610.28886

SANE: Automated Scorer-Specific Metamorphic Testing for LLM Judges

Ethan Ludwick, Yu-Chung Hsiao

Abstract

LLM judges increasingly mediate benchmark evaluation, model selection, data curation, and training. 1^{1} Their decisions are useful only when each judge responds reliably to changes affecting its scoring criterion. Existing methods for reliability testing perturb inputs with known expected effects on judge scores. Prominent LLM-judge testing harnesses combine human-authored perturbation recipes with synthetic test generation, leaving scorer-specific recipe ideation outside the automated pipeline. This limits their use to fixed perturbations and pre-assumed scorer types. We introduce SANE, an agent-based framework that encodes behavioral requirements for stochastic evaluators as reusable agent instructions. Given a scorer specification, implementation, and representative inputs, the pipeline first identifies scorer-specific capabilities, then automatically derives perturbation recipes and expected score relations for each. SANE also defines a scorer-independent validation framework for generated judge tests. It determines whether each recipe agrees with scorer intent and whether each instantiated case realizes the recipe and supports its expected relation. Because SANE generates a recipe inventory tailored to each scorer, the number of aligned recipes grows as scorers are added. Across five domains, SANE produces 3.7 times as many validated test families as the Judge Reliability Harness (JRH) at comparable end-to-end validity and detects scorer deficiencies in every domain, including professionalism and toxicity, where JRH detects none. On faithfulness, SANE achieves strong human alignment in judge ranking: its test-suite scores rank 11 judge models consistently with human-labeled FaithBench performance (Spearman ρ=0.852\rho = 0.852), while JRH does not ( ρ=0.100\rho = 0.100).

1 Introduction

LLM judges now assign benchmark scores, curate supervised fine-tuning data, provide preference and reward signals for post-training, and inform deployment gates for models and prompts (Zheng et al., 2023; Liu et al., 2023; Gu et al., 2024). Their decisions are useful only when a scoring implementation measures its stated criterion reliably. Agreement with human annotations on a held-out benchmark provides important evidence, but an aggregate agreement score does not characterize how a judge responds to input variations that should preserve or alter that criterion. Behavioral testing applies controlled changes to characterize these responses before comparable input variation occurs in deployment.

Behavioral testing evaluates whether a model satisfies focused, task-relevant behavioral properties rather than only summarizing its average performance on held-out data. It treats the model as a black box and evaluates its responses to targeted examples and controlled input changes. These tests primarily use two categories: minimum functionality tests, and metamorphic tests with invariance or directional expectations. Minimum functionality tests evaluate individual capabilities on targeted examples. Invariance and directional

  • A shorter version of this work was accepted for presentation at the non-archival NeurIPS 2026 workshop TAE (Trust-AI-Eval): Can We Trust AI Evaluation?

1^{1}The authors used large language model tools for manuscript editing and software implementation. The authors reviewed and take responsibility for all text, code, analyses, claims, and citations.

Figure

Figure 1: End-to-end comparison of native test-case generation and validation pipelines. Both SANE and JRH receive a scorer definition, implementation, and representative examples. SANE begins with a fixed set of behavioral requirements. It identifies capabilities per scorer, derives recipes per capability, then generates cases per recipe. Both harnesses instantiate cases and apply LLM validation. SANE separates recipe alignment from case realization and expected-relation applicability before assembling the validated test suite. JRH uses a validator LLM with retries. Automating capability identification and recipe ideation makes SANE's aligned recipe inventory adapt to new scorers. Dashed boxes mark automated operations. Figure 3 defines the oracle decisions and validity accounting.

tests state whether outputs should remain unchanged or move in an expected direction after controlled input transformations (Ribeiro et al., 2020). In a reference-free setting, metamorphic testing specifies the relation that should hold between scorer outputs before and after a controlled input transformation (Chen et al., 1998; Segura et al., 2016).

Many metamorphic testing methods begin from fixed, human-authored recipes, which constrain the available perturbations and the scoring criteria to which they apply. CheckList established a fixed, reusable testing inventory for NLP (Ribeiro et al., 2020). Humans

specify capabilities and tests, then use the framework's

templates, lexicons, and perturbations to generate concrete test cases. FBI adapts this approach to evaluator LLMs. Doddapaneni et al. (2024) generate perturbations for 22 human-designed categories and manually validate every generated perturbation, producing a 2,400-case benchmark. JRH instead provides an open-source harness that automatically generates and executes judge-reliability tests from a fixed, human-authored recipe library, with optional human review (Dev et al., 2026). Across these systems, automation begins only after humans define the testing inventory. JRH, the closest prior system, draws from fixed tests for label changes, formatting, paraphrase, verbosity, repeatability, and ordinal calibration.

A fixed recipe library works when each selected transformation has the same interpretation for every scorer to which it is applied. This condition does not hold in general. Formatting changes may be irrelevant to a faithfulness scorer but directly relevant to a professionalism scorer. Adding relevant detail should reduce a concision score, but increase a coverage score when the detail supplies missing salient information. A generic verbosity recipe cannot assign one expected relation to both. The required perturbation and score relation therefore depend on the scorer specification, its output contract, and the data being evaluated.

We introduce SANE, a reference-free agent-based framework that automates capability identification, scorer-specific recipe ideation, test-case generation, and validation.

SANE organizes testing around six fixed behavioral requirements: monotonicity, subadditivity, repeatability, robustness, dynamic range, and calibration. It encodes these requirements as reusable agent instructions. The requirements remain fixed across scorers, while the capabilities, perturbations, and expected relations that operationalize them depend on scorer intent. For each scorer, the agent reads the specification, implementation, and representative inputs, identifies capabilities pertinent to the scoring criterion, and ideates recipes and expected relations for each capability. SANE next instantiates test cases for each recipe and validates the complete progression from design to execution: whether the recipe agrees with scorer intent, whether the generated text realizes the requested perturbation, and whether the expected relation applies to the realized instance. Behavioral testing and metamorphic testing are well-explored foundations of SANE. We do not claim novelty in their behavioral requirements or relation types. Our contribution replaces human-authored recipe design with an agent that determines how general behavioral requirements apply to each scorer and derives the corresponding perturbations and expected relations to target its specific scoring domain. Since our framework makes no assumptions about scorer type, the same procedure could be applied to multi-agent evaluators and statistical metrics in addition to single-model LLM judges; we do not evaluate these scorer types here.

We compare SANE against JRH, a recent open-source harness for judge reliability and the most directly comparable prior system (Dev et al., 2026), across faithfulness, fluency, coherence, professionalism, and toxicity. Figure 1 compares the two harness architectures and their automation boundaries. Both methods use Claude Opus 5 and the same balanced 1,200-example generation dataset, composed of 300 examples each from AggreFact-CNN, AggreFact-XSum, TofuEval-MediaS, and TofuEval-MeetB. To isolate the fully automated pipelines, neither method uses human review during generation. We pass every generated recipe and test case to automated validation without manual editing, rejection, or selection. SANE identifies each scorer's capabilities and uses the six requirements to derive scorer-specific perturbations and expected relations. Its aligned recipe inventory therefore expands with the scorer set. JRH continues to draw from its fixed human-authored library. Across five domains, SANE accumulates 108 unique aligned recipes, while JRH yields seven. After test-case validation, SANE produces 3.7 times as many validated test families and detects scorer deficiencies in all five domains, including professionalism and toxicity, where JRH fails to detect any under the evaluated configuration.

We make four contributions. First, we automate the scorer-specific reasoning required to translate fixed general behavioral requirements into capabilities, perturbations, and expected relations. This design expands the aligned recipe inventory as scorers are added. Second, we define a formal, scorer-independent validation framework that separates recipe alignment, perturbation realization, and instance-level relation applicability. Third, we show that SANE detects scorer deficiencies with tests adapted to faithfulness, fluency, coherence, professionalism, and toxicity, including scorer-dependent expected relations that JRH's fixed recipes did not express. Fourth, we evaluate human alignment at the judge-ranking level and find that SANE's faithfulness test suite ranks 11 judge models consistently with human-labeled FaithBench performance. Model-level rank concordance is the relevant unit because we evaluate LLM judges themselves, not individual model outputs.

References (30)