Code-first grading
Gradingprogrammatic gradingScoring with a program — unit tests, an exact check, a parser — before reaching for a human or model judge.
In plain words: if a machine can decide whether the answer is right (the tests pass, the number matches, the JSON parses), let the machine decide; it is cheaper, reproducible, and has no opinions. Precisely: code-first grading computes the score by executing a deterministic checker against the response. HumanEval (Chen et al., 2021) grades each generated program by running hidden unit tests and reports pass@k, defining correctness functionally rather than by textual similarity; SWE-bench (Jimenez et al., 2024) grades a patch by running the repository's own tests inside a container. The rule of precedence: use code grading wherever a checkable ground truth exists, use a reference-guided judge only for what code cannot check, and use a free-form generative judge last — and label each panel of a report with the grader kind that produced it.
ExampleA math eval extracts the final number from each answer and compares it to the key: no judge, bit-identical scores on every rerun. An essay eval cannot do this, so it uses a rubric judge and reports the judge's human-agreement rate beside the score.
From the Eval Literacy World · source · Mark Chen et al., 'Evaluating Large Language Models Trained on Code', arXiv:2107.03374 (2021) (HumanEval, pass@k); Carlos E. Jimenez et al., 'SWE-bench', ICLR 2024
Commitment (a committed answer)
Gradingfinal answerA single, extractable final answer the model stands behind — as opposed to a hedge, a list of options, or a trailing-off explanation.
In plain words: 'the answer is 42' is a commitment; 'it is probably 42 or 48, depending' is not; a grader needs the first kind, and the eval must say what happens to the second. Precisely: a committed answer is the response segment that a declared extraction rule identifies as the model's final answer — GSM8K (Cobbe et al., 2021) delimits it with a marker before the final number, chain-of-thought prompting (Wei et al., 2022) extracts the value following a 'the answer is' pattern — such that exactly one candidate is graded. Responses with zero or multiple extractable candidates are 'no-commit' and are a separate outcome from 'wrong'; SQuAD 2.0 (Rajpurkar, Jia & Liang, 2018) likewise scores abstention on unanswerable questions as its own category rather than folding it into error. The extraction rule and the no-commit rate are part of the receipt; a lenient grader that credits a response containing the right answer among several candidates rewards hedging.
ExampleOf 400 responses, 352 contain one final number, 31 contain two or more, and 17 contain none. Accuracy is reported over the 352 committed answers, with the 12% no-commit rate beside it — not silently as 48 extra 'wrong'.
From the Eval Literacy World · source · Karl Cobbe et al., 'Training Verifiers to Solve Math Word Problems', arXiv:2110.14168 (2021) (GSM8K final-answer delimiter); Jason Wei et al., 'Chain-of-Thought Prompting', NeurIPS 2022 (answer extraction); Rajpurkar, Jia & Liang, 'Know What You Don't Know', ACL 2018
Decision model vs generative judge
Gradingclassifier reward model vs LLM judgeTwo ways to build a grader: a model that outputs a number or label directly, or a model that writes out a judgment and then gives a verdict.
In plain words: a decision model is a trained classifier — feed it the answer, get back a score; a generative judge is a chat model that reasons in text and then says 'A is better'; they fail differently and should be cited differently. Precisely: a decision (discriminative) model is a reward or classifier head trained to map a prompt-response pair to a scalar or label, as in the InstructGPT reward model (Ouyang et al., 2022) — cheap, deterministic given weights, but opaque and bound to its training distribution. A generative judge is an instruction-following LLM prompted with a rubric that produces a rationale and a verdict (Zheng et al., 2023) — more flexible and auditable through its rationale, but subject to position, length, and self-enhancement bias and to sampling variance. RewardBench (Lambert et al., 2024) evaluates both families on the same preference pairs, making the choice a measured trade-off rather than a default. A receipt names which kind of grader produced the score.
ExampleThe same 500 preference pairs scored by a 7B classifier reward model (agreement with humans 78%, 2 seconds total) and by a prompted generative judge (agreement 83%, 40 minutes, verdicts vary 4% across reps). Neither is 'the' grader; each is a measured instrument.
From the Eval Literacy World · source · Long Ouyang et al., 'Training language models to follow instructions with human feedback', NeurIPS 2022 (reward model); Nathan Lambert et al., 'RewardBench', arXiv:2403.13787 (2024); Lianmin Zheng et al., 'Judging LLM-as-a-Judge', NeurIPS 2023
Judge bias
Gradingevaluator biasAny systematic way a grader's score depends on something other than answer quality — order, length, style, or the grader's own authorship.
In plain words: a biased judge still gives a number, and the number still looks precise; the bias shows only when you change something irrelevant and the score moves. Precisely: Zheng et al. (2023) identify position bias (preference for the first-listed answer), verbosity bias (preference for longer answers), and self-enhancement bias (a judge favoring outputs from its own model family), alongside a weakness at verifying math and reasoning; Wang et al. (2023) show positional bias can be large enough to reverse rankings and propose calibration by evaluating both orderings and averaging. A judge bias is detected by a controlled perturbation — swap, pad, restyle, or substitute the author — and is reported as the score shift under that perturbation; it is reduced by calibration, by rubric-anchored grading, and by preferring code-first grading where a checkable answer exists.
ExampleThe same 200 pairwise verdicts rerun with the answers swapped: 31 verdicts flip toward whichever answer is now first. That 15% flip rate is the judge's position bias, and it is larger than the 6-point gap the eval claimed to find.
From the Eval Literacy World · source · Lianmin Zheng et al., 'Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena', NeurIPS 2023; Peiyi Wang et al., 'Large Language Models are not Fair Evaluators', arXiv:2305.17926 (2023)
Length bias
Gradingverbosity biasA judge preferring the longer answer, so models learn to pad rather than improve.
In plain words: longer answers look more thorough, so a judge rewards them, so the model being tuned learns to write more — a loop that raises scores without raising quality. Precisely: length (verbosity) bias is a positive dependence of judge preference on response length holding content fixed; Zheng et al. (2023) demonstrate it by padding answers with restated content and observing the verdict shift. Dubois et al. (2024) show that on AlpacaEval a win rate correlates strongly with output length and that a length-controlled estimate — regressing the judge preference on the length difference and reporting the preference at zero length difference — markedly improves agreement with human rankings. The receipt for a judged score therefore includes the mean lengths of both arms and, where possible, a length-controlled variant of the metric.
ExampleTwo answer sets with identical facts, one rewritten at twice the length. The judge prefers the long set 68% of the time. A length-controlled win rate reports 51%: a coin flip, which is the truth.
From the Eval Literacy World · source · Yann Dubois et al., 'Length-Controlled AlpacaEval', arXiv:2404.04475 (2024); Lianmin Zheng et al., 'Judging LLM-as-a-Judge', NeurIPS 2023 (§'verbosity bias')
LLM-as-judge
Gradingmodel-graded evalUsing a language model to grade another model's answers — fast and scalable, but a grader with its own biases that must itself be checked.
In plain words: when there is no single right answer to string-match, you can ask a strong model 'is this response good?' and use its verdict as the score; it works surprisingly well, and it fails in specific, measurable ways. Precisely: Zheng et al. (2023) formalize three judge protocols — pairwise comparison (which of two responses is better), single-answer grading (a score on a rubric), and reference-guided grading (score against a gold answer) — and measure judge-human agreement on MT-Bench and Chatbot Arena, finding strong judges agree with human majority at rates comparable to human-human agreement, while exhibiting position bias, verbosity bias, self-enhancement bias, and limited ability to grade math and reasoning. A judge score is a measurement with its own validity question; the required receipt is the judge model's identity and version, the exact rubric and prompt, and an agreement rate against a human-labeled sample.
ExampleA judge model is given a question, a rubric, and two candidate answers, and asked which is better. Swap the two answers and ask again: if the verdict flips, the judge was grading position, not content.
From the Eval Literacy World · source · Lianmin Zheng et al., 'Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena', NeurIPS 2023 (Datasets & Benchmarks)
Position bias
Gradingpositional biasA judge preferring whichever answer is shown first (or last), regardless of which is better.
In plain words: show the judge A then B and it prefers A; show B then A and it prefers B; the judge is grading the order. Precisely: position bias is a dependence of a pairwise verdict on the presentation order of the candidates. Zheng et al. (2023) measure it by presenting each pair in both orders and counting the verdicts that are consistent across orders; Wang et al. (2023) show the effect can be strong enough to make a weaker model win by being placed first, and propose balanced position calibration — evaluate both orders and average, or declare a tie when the orders disagree. A pairwise judge result that was not run in both orders cannot be distinguished from a position effect.
ExampleA judge prefers the first answer in 71% of pairs. When every pair is scored in both orders and only consistent verdicts count, the apparent lead of the new model shrinks from 12 points to 3.
From the Eval Literacy World · source · Peiyi Wang et al., 'Large Language Models are not Fair Evaluators', arXiv:2305.17926 (2023); Lianmin Zheng et al., 'Judging LLM-as-a-Judge', NeurIPS 2023 (§'position bias')
Strict vs lenient match
Gradingexact match vs F1How forgiving the answer checker is — and why a score means nothing until you know which rule produced it.
In plain words: 'Paris' versus 'Paris, France' versus 'the capital is Paris' are all right to a person; whether they are right to the grader depends on a rule that must be written down. Precisely: a strict (exact-match) grader counts a response correct only if, after declared normalization (case, punctuation, articles, whitespace), it equals a gold string; a lenient grader awards credit for partial or containing matches — SQuAD (Rajpurkar et al., 2016) reports both exact match and token-level F1 for exactly this reason, and Jurafsky & Martin treat the choice of match rule as part of the metric's definition. The same responses can move ten or more points between the two rules, so a score is only comparable to another score graded by the same rule, and the normalization steps are part of the receipt. Lenient rules also admit new failure modes: a response that lists every candidate answer 'contains' the right one.
ExampleThe same 300 answers: 61% under exact match, 74% under normalized containment. A paper reporting '74%' against a baseline's published '63% EM' is comparing two different instruments.
From the Eval Literacy World · source · Pranav Rajpurkar et al., 'SQuAD: 100,000+ Questions for Machine Comprehension of Text', EMNLP 2016 (exact match vs F1); Jurafsky & Martin, Speech and Language Processing (3rd ed. draft), ch. on question answering and evaluation
Truncation vs wrong
Gradingfinish_reason lengthAn answer that got cut off by a token limit is not the same failure as a wrong answer — and lumping them together hides a settings bug behind a model score.
In plain words: if the model was stopped mid-sentence because the output limit was too low, it did not get the question wrong; it never finished; counting that as 'wrong' punishes the model for your configuration. Precisely: generation ends either because the model emitted a stop condition (finish_reason 'stop' in the OpenAI API reference) or because an output-length cap was hit ('length'); HELM (Liang et al., 2022) notes that per-scenario max-token settings materially affect scores and must be reported. A literate eval records the finish reason per row, reports the truncation rate as its own column, and either excludes truncated rows from the accuracy denominator with the exclusion stated, or raises the cap and reruns. A truncation rate above the noise floor is a configuration finding, not a model finding.
ExampleAccuracy 52%, but 30% of responses ended with finish_reason 'length' at a 256-token cap. Rerun at 1024 tokens: truncation 1%, accuracy 71%. The first number measured the cap.
From the Eval Literacy World · source · OpenAI API reference — chat completion `finish_reason` values (`stop`, `length`); Percy Liang et al., 'Holistic Evaluation of Language Models', arXiv:2211.09110 (2022) (max-token settings per scenario)