Evaluation, diagnostics, benchmarks, and additional tests · Evaluation, diagnostics, benchmarks, and additional hypothesis tests · EVA038 · Diagnostic
LLM-as-judge and pairwise human preference protocols
Uses a rubric to judge open-ended outputs and aggregates paired preferences, ideally validated against independent human ratings.
In CodeSplash
A CodeSplash method runs this entry in Python and R. Set it up from the method's page.
- Cohen's kappa (two raters) Verified in Python and R
Do it in CodeSplash Run it on your own data, in Python or R.
- Availability
- Runs in CodeSplash
- Code example
- Complete calculation
- Who ran it
- CodeSplash's run and the reference's record
- CodeSplash's run
- Verified in Python and R through agreement.kappa. The reference's example ran in Python and R here, and they agree.
- The reference's record
- Python: Ran in the reference's review. The report doesn't record which version of the code ran. R: Reviewed but not run: R wasn't available to the reference's authors.
Purpose
Uses a rubric to judge open-ended outputs and aggregates paired preferences, ideally validated against independent human ratings.
Question / hypotheses
Which response better satisfies the rubric for a sampled task population? A judge score is not an objective truth label.
Architecture / computational structure
A fixed scoring/calibration pipeline applied to model outputs or supplied observations; the formula and usage sections identify its operations.
Assumptions
Blind system identities, randomize order, control prompt/rubric versions, and account for dependence among prompts and raters. Validate the judge on representative human-labeled examples.
Formula / computational definition
Parameters and notation
Judge checkpoint, rubric, temperature, tie policy, presentation order, and aggregation are protocol hyperparameters. Any learned judge adaptation requires separate rating data and holdout evaluation.
Fitting, fine-tuning, and adaptation
There is no model fine-tuning step for this evaluation procedure. Freeze the evaluated systems and evaluator before the final test. Select evaluation settings on development data; if a learned evaluator or calibration model is adapted, use separate fitting data, version it, and reassess its validity.
How to use and calibrate
Evaluate both presentation orders, retain judgments and reasons, report ties and disagreement, and bootstrap at the prompt level. Supplement with task-grounded correctness checks.
Example application
Compare assistant responses or video captions that admit several valid phrasings.
Interpretation / pitfalls
Watch out
Position, verbosity, style, and self-preference biases can distort rankings. A fluent justification does not validate a verdict. Prompt injection in evaluated text must be treated as data, not instructions to the evaluator.
Python and R code examples
Scope: Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
Validation: Python — Executed successfully on synthetic inputs. R — reviewed but not executed in this environment. Python dependencies are explicit imports; R uses base R unless a package/bridge is explicitly named.
Python and R
The reference's own programs, shown as written. A component demo shows one central piece of the method; it doesn't train a full model.
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline. · needs numpy
import numpy as np
outcomes=np.array([1.,.5,0.,1.,1.,.5])
print("tie-adjusted win fraction",outcomes.mean())
Complete calculation — Mathematical calculation on synthetic inputs; not a complete benchmark pipeline.
outcomes <- c(1,.5,0,1,1,.5)
print(mean(outcomes))
Sources
- Source 1arxiv.org
- Source 2github.com
From the CodeSplash reference, entry EVA038.