Concepts / Designing Evaluation Criteria for Language Model Outputs

Designing Evaluation Criteria for Language Model Outputs

A score from one benchmark tells you about the particular notion of instruction-following that benchmark adopted. It does not automatically tell you how well a model will handle your own use case.

  • Programming

A Request With Several Demands

Imagine you ask a model to write a short product description. In the same request you tell it how long the answer should be, which words must appear in it, and how the answer should be laid out. The text may read smoothly and still miss some of those demands. It might meet the length limit but leave out a required word, or use the right words in the wrong layout.

This raises a practical question: how do you measure how well a model handles a request like this, rather than only judging whether the text sounds fluent? The answer depends on a decision that every evaluation has to make first. Before you can score anything, you have to decide what counts as success. Once that decision is made, you can ask whether success can be checked by a program or whether it requires a judge who reads the output.

EASY

Before reading on, write down three demands you would put in a request for a product description. For each one, say whether you could check it by running a short script on the text, or whether you would need someone to read the text and decide.

Hints
  • Think about whether a demand can be answered by counting, searching, or parsing the text.
  • Think about whether a demand, such as tone, depends on how a reader interprets the words.

What Instruction-Following Capability Means

Definition

Instruction-following capability is a model's ability to produce outputs that follow given instructions. Benchmarks that measure this capability do not all define it the same way.

The word follow hides a real design choice. Two questions are built into it. First, which instructions count as part of the test at all? Second, what does it mean for an output to satisfy one of them? A benchmark has to answer both before it can produce a score.

Key point

A score from one benchmark tells you about the particular notion of instruction-following that benchmark adopted. It does not automatically tell you how well a model will handle your own use case.

Why Benchmarks Disagree

Different benchmarks do not agree on what instruction-following covers. Some look mainly at whether the output has the right shape. Others also check the content, the language style, and the tone. The two benchmarks named in the source illustrate this difference well.

BenchmarkWhat it emphasizesHow instructions are checked
IFEval (Zhou et al.)Whether the model produces output in an expected form, such as keyword use, length, bullet points, or JSONAutomatically verifiable instructions that a program can test
INFOBench (Qin et al.)Format, plus content constraints such as restricting a response to one topic, linguistic guidelines such as a requested dialect, and style rules such as a required toneYes or no criteria for each instruction, answered by a human evaluator or an AI evaluator

Two benchmarks define instruction-following with different scope and different checking methods.

Because the two benchmarks cover different territory, their scores are not directly interchangeable. A model that does well on a format-focused benchmark has shown one kind of ability. It has not necessarily shown that it can keep to a required tone.

Automatically Verifiable Instructions

IFEval concentrates on whether a model can produce output in an expected form. Zhou et al. identified 25 types of instructions that can be verified automatically. Examples include requirements about including certain keywords, meeting length limits, using a given number of bullet points, and returning JSON. These are called automatically verifiable instructions because the requirement has clear criteria that a program can test.

The defining feature is that a checker can decide the answer without asking anyone's opinion. Take an instruction to use a particular word in a sentence. A short script can search the output for that word. Whether the instruction was followed becomes a yes or no question with a mechanical answer.

python
Output (expected)
True

The check above is a simple substring test. It needs no human reading, and running it twice on the same output always gives the same answer. That reliability is what makes an instruction automatically verifiable.

The grouping of these instructions matters for evaluation design. Each group probes a different ability. Some groups test whether the model tracks specific vocabulary, others test whether it controls the length or structure of its answer, and others test whether it switches language when asked. A model can be strong in one group and weak in another, so a single overall number can hide that pattern.

Instructions That Need Judgment

INFOBench, created by Qin et al., takes a broader view. In addition to format, it evaluates content constraints such as restricting a response to one topic, linguistic guidelines such as a requested dialect, and style rules such as a required tone. Many of these demands cannot be checked by counting words or searching for strings. Whether a passage is in an appropriate tone for a young audience is a matter of judgment.

The benchmark's authors did not give up on checking these demands. For each instruction they wrote a list of criteria, and each criterion was framed as a yes or no question about the output. Those questions can be answered by a human evaluator or by an AI evaluator.

Two Kinds of Checks Compared

The two kinds of instruction differ in what the checker needs. An automatically verifiable rule needs only the output and the rule itself, and a program can apply the rule. A rule that needs judgment needs a reader, either a human or an AI judge, who answers a question about the output. The diagram below sets the two verification processes side by side.

Checkera programInputsoutput and ruleDecisionyes or no, mechanicalCheckera human or AI judgeInputsoutput, criteria listDecisionyes or no per criterionapplies rulereturns answerreads criteriaanswers each question
How do the verification process and the required inputs differ between a rule a program can check and a rule a human or model must judge?

Because the automatic checker needs no reader, it can be run again and again on new outputs without fresh human effort. A judgment-based check uses human or AI evaluators, so the way the criteria are written has a direct effect on the result.

Tracing a Score Under Each Checker

The two checkers start from the same place, a model output, but they reach a score by different routes. The flowchart traces both routes. Follow the automatic path first, then the criteria path, and notice where they diverge.

Model outputtext the model producedProgram checks rulee.g. keyword presentYes or no perinstructionmechanical answerPooled overall scorepooling method set bybenchmarkCriteria appliedyes or no questionsJudge answers eachcriterionhuman or AI evaluatorAll criteria met?instruction counts only ifall are metautomatic pathreturns resultresults pooledcriteria patheach criterioncollect answersresults pooled
What steps happen from model output to final score in each checker, and where do the two paths diverge?

On the automatic path the program produces a yes or no result for each verifiable instruction, and those results feed the pooled score. On the criteria path the criteria for each instruction are answered one by one, and the instruction is counted as followed only when all of its criteria are met. The two paths meet at the pooling step. The source states that overall scores depend on how criteria are pooled, but it does not give a single pooling formula, so the exact arithmetic depends on the benchmark.

Worked example

Scoring one instruction under the criteria method

A judged instruction asks for a product description written in a friendly tone for young readers. It has three criteria: the text is written for a young audience, the tone is friendly, and the text stays on the product. A judge reads one output and answers each criterion.

  1. 1
    Answer each criterion

    The judge answers yes or no for each of the three criteria. Suppose the answers are yes, yes, and no, because the text drifts into an unrelated topic.

  2. 2
    Apply the all-criteria rule

    Under the criteria method an instruction counts as followed only when all of its criteria are met. One criterion failed, so this instruction is not counted as followed for this output, even though two of its three criteria were met.

  3. 3
    Pool across instructions

    The instruction-level outcome, followed or not followed, then feeds the overall score. How those outcomes are combined is set by the benchmark's pooling method.

Result

The instruction is not counted as followed, because all criteria were not met. The partial credit from two criteria does not make the instruction count as followed under this rule.

Building a Team's Own Instruction Set

The source recommends curating your own benchmark. The idea is to write the instructions your application really needs and attach criteria that define success for each one. The published benchmarks show you what the field has measured so far. Your own set shows you what your users will ask for.

The work usually moves from broad goals to specific checks. The hierarchy below shows one way to break an evaluation goal into categories, then into specific instructions, and finally into criteria that a checker or judge can answer.

Evaluation goaloutput suits our productpagesFormatcategoryReturn JSONinstructionOutput parses as JSONautomatic checkContentcategoryStay on one productinstructionText names only oneproductyes or no by judgeStylecategoryFriendly toneinstructionTone is friendlyyes or no by judge
How do general evaluation goals break down into categories, then into specific instructions, and then into checkable criteria?

Notice that the hierarchy ends at criteria that either a program can test or a judge can answer. A goal such as suits our product pages is too vague to score. Splitting it until each leaf is a yes or no question is what makes it evaluable. The example requirement from the source is a direct illustration: if your application needs a particular output format such as YAML, include a YAML instruction in your evaluation set and test the model on it.

Mistakes in Designing Criteria

  • Common mistake

    Treating a benchmark score as a measure of your own use case

    Why it fails

    Each benchmark adopts its own notion of instruction-following. A score tells you about that notion, not automatically about the demands your users make.

    Do this instead

    Check whether the benchmark's instruction types match what your application needs, and add your own instructions where they do not.

  • Common mistake

    Using a program to check a judgment-based demand

    What it looks like

    Counting words to decide whether a passage has an appropriate tone for a young audience.

    Why it fails

    Tone is a matter of judgment and cannot be decided by counting words or searching for strings.

    Do this instead

    Write the demand as yes or no criteria and have a human or AI evaluator answer them.

  • Common mistake

    Counting a partly met instruction as followed

    What it looks like

    An instruction with three criteria where only two are met is treated as followed.

    Why it fails

    Under the criteria method an instruction counts as followed only when all of its criteria are met.

    Do this instead

    Record the instruction as not followed and keep the per-criterion results so you can see which criterion failed.

  • Common mistake

    Reading one overall number as evidence of skill in every area

  • Common mistake

    Writing criteria that a reader cannot answer consistently

    Why it fails

    If two evaluators would answer the same criterion differently, the score reflects the evaluators as much as the model.

    Do this instead

    Phrase each criterion as a clear yes or no question about the output.

Practice Sorting Instructions by Checker

MEDIUM

For each of the following instructions, decide whether it is automatically verifiable or needs judgment, and name the input a checker would need: (a) the output must include the word refund; (b) the output must be returned as JSON; (c) the output must use a calm and reassuring tone; (d) the output must contain no more than three bullet points.

Hints
  • Ask whether a program could decide the answer without reading for meaning.
  • Instructions about counting, searching for a string, or parsing a format can usually be checked automatically. Instructions about tone usually need a reader.
  • Under the automatic path the input is the output plus the rule. Under the judgment path the input is the output plus the criteria list.
MEDIUM

Choose one evaluation goal for a model you might use, such as producing replies for a customer support chat. Break it into two categories, give each category one specific instruction, and write one yes or no criterion for each instruction. Mark each criterion as automatic or judgment.

Hints
  • Make sure every leaf of your breakdown is a question that can be answered yes or no.
  • If a criterion cannot be checked by a program, decide who will answer it and what they will read.

Key Takeaways

  • Instruction-following capability is a model's ability to produce outputs that follow given instructions, and benchmarks define that notion differently, so a score always reflects a particular definition.
  • Automatically verifiable instructions, such as keyword use, length, bullet points, and JSON, have clear criteria that a program can test, while content, linguistic, and style constraints usually need a judge.
  • Under an automatic checker the program returns a yes or no result for each instruction, while under a criteria-based checker an instruction counts as followed only when all of its yes or no criteria are met, and the results are then pooled into an overall score.
  • A team can build its own instruction set by breaking its evaluation goal into categories, then specific instructions, then checkable criteria, so that its evaluation reflects what its users actually ask for.

Related concepts

More concepts starting with D