Variance — Large language model evaluation | variance-inc.com
Variance — Large language model evaluation | variance-inc.com

Contents

  1. Why a generic ranking cannot answer your question
  2. Understand tokens, context capacity and output limits be
  3. Worksheet
  4. Run the test, then check quality, risk and failure handl
  5. Terms used on this page
  6. Sources
Why a genericranking cannotBuild arepresentativeUnderstand tokens,context capacityRun the test, thencheck qualityTurn results into adecision you can
A map of this guide's sections

Test on your tasks

Variance — Large language model evaluation | variance-inc.com

Generic leaderboards tell you how a model performed on someone else's questions. This workbench shows how to turn your own task into a small, repeatable test with explicit pass criteria, so the result you see is the result that matters to you.

Why a generic ranking cannot answer your question

A benchmark rank describes performance on the benchmark's task and data, not on yours.

A public ranking aggregates results over a fixed set of prompts and a fixed grading method. If your task is extracting line items from supplier invoices, a rank built on trivia questions or general chat prompts tells you very little about that task.

The gap is not only topic. It is also format, length, vocabulary, tolerance for errors and what counts as a good answer. A model that scores well on short factual questions may fail on a long form with nested fields, or the reverse.

The practical fix is to build a small test set from your own inputs, write down what a correct output looks like, and grade against that. The ranking can stay as a starting shortlist, but the decision comes from your test.

  • Pick inputs that resemble real requests, including the awkward ones.
  • Write the expected answer before you see any model output.
  • State the grading rule in words a second person could apply.

Build a representative test set with explicit pass criteria

A useful test set is small, documented and tied to one task at a time.

Start with one task and describe it in a sentence: what goes in, what comes out, and what makes the output acceptable. Then collect inputs. Ten to thirty well-chosen inputs usually reveal more than a thousand random ones, because each input is there for a reason you can name.

For each input, write the expected answer or the acceptance rule. If the task has a single correct label, an exact-match grader can compare the model output with the human-supplied reference label. If the task allows several good answers, write a rubric instead and say who applies it.

Keep the criteria visible next to the inputs. A test whose pass rule is invented after seeing the output is not a test; it is a rationalization.

  • One task per test card, with a one-sentence description.
  • Inputs chosen to cover typical cases and known failure cases.
  • A reference answer or rubric written before the run.
  • A pass rule a second person could apply without asking you.

Understand tokens, context capacity and output limits before a test

Token accounting explains many apparent quality failures before you blame the model.

A language model generates the next token from the prompt and the prior generated output, stopping at a configured length or an end-of-sequence token. That single sentence explains most length surprises: the model does not know your intended length unless the prompt or the configuration says so.

The context window is the text a model can reference while generating a response, including the response itself. It is not the training corpus. Prompts, messages, tool results, documents, tool definitions and generated output can all consume context, and the exact inclusion varies by provider and model.

Generation-length controls such as max_new_tokens limit how much new text is produced. With a decoder-only model, a result may include the initial prompt unless your code separates it, so check what you are actually reading before you grade it.

A generic rank is a prior, not a result for your data.
Write down failures as they happen; a failure you cannot reproduce is a failure you cannot fix.

Worksheet

Test-plan worksheet: what to write down before a run
ElementExample quantityWhy it matters
Task1 taskKeeps inputs, criteria and failures comparable across runs.
Expected answer1 expected answerAn exact-match grader needs a human-supplied reference label.
Model output1 outputThe thing you actually grade, separated from the prompt.
Decoding modes2 decoding modesGreedy and sampling can show different failure patterns.
Context budget1 context windowPrompt, inputs and output share one budget; overflow truncates.
Output limit1 max_new_tokens settingA length control, not a quality score.
Failure note1 failure entryInput, output, violated criterion and mode, written at the time.
Test-plan worksheet: what to write down before a run

Run the test, then check quality, risk and failure handling

One run is an anecdote; a repeatable run with written failures is a measurement.

Run the same inputs through the model more than once, and compare greedy decoding with sampling. Greedy decoding tends to be stable; sampling can vary. If a failure appears only under sampling, that is a finding about reliability, not noise to be averaged away.

Write down failures as they happen: the input, the output, the criterion it violated, and the decoding mode. A failure you cannot reproduce is a failure you cannot fix, and a failure you did not write down tends to disappear from the discussion.

For risk, use NIST AI 600-1 as a voluntary cross-sectoral companion to AI RMF 1.0, published July 26, 2024, to structure scoped use, measurement, documentation, human review and ongoing checks. The framework does not certify a model or guarantee safety; this site offers an educational checklist, not compliance certification.

  • Repeat each input at least twice and note whether the output changed.
  • Compare greedy and sampling on the same inputs.
  • Write down failures with input, output, violated criterion and mode.
  • Add a human review step for any output that would affect a person.
July 26, 2024NIST publishes AI 600-1, a voluntary cross-sectoral companion to AI RMF 1.0 for generative AI.
A test cycle: scope, inputs, criteria, run, review, revise.

Turn results into a decision you can defend

A defensible decision names the task, the inputs, the criteria and the observed failures.

Summarize per task, not per model. For each test card, report how many inputs passed, how many failed, and what the failures had in common. A model that passes 18 of 20 invoice extractions with two failures on nested tables is a different proposition from one that passes 12 of 20 across the board.

Keep the test set alive. When a new failure appears in real use, add it as an input. Over time the test set becomes a record of the failures you have already seen, which is more useful than a score.

If you need current provider specifics such as context limits or generation parameters, cite the provider's own documentation rather than a third-party summary. Those details change, and a test built on stale assumptions measures the wrong thing.

The signature mark of this site, drawn as a plate

Terms used on this page

Evaluation
A test of model outputs against specified style and content criteria, using test inputs, graders and analysis followed by iteration.
Exact-match grader
A grader that compares model output with a human-supplied reference label, usable when the task has a single correct label.
Context window
The text a model can reference while generating a response, including the response itself, rather than the model's training corpus.
max_new_tokens
A generation-length control that limits how much new text is produced; a decoder-only result may still include the initial prompt unless code separates it.
Greedy decoding
A decoding mode that picks the most likely next token at each step, typically more stable than sampling but not necessarily better.

Sources

Provider documentation and NIST publications are cited for definitions and current specifics; check the provider's own pages for limits and parameters.