Evaluating Small Models in Context › Why small-model evaluation is different

Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters
Part 43 of 67Small and On-Device Language Models
Chapter 331Evaluating Small Models in Context › Why small-model evaluation is different
Reading section 2 of 8 · Why small-model evaluation is different · 2 minSection 2 of 8 · 2 min

Section 2 of 8 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

A benchmark run with a fixed prompt measures performance under those particular conditions. A deployment comparison has to account for changes in the rest of the stack as well.

A tokenizer changes the number of positions the model processes. A different prompt or numeric precision can change its predictions. A different device can change latency even when the model and input are identical. Conversely, if the comparison varies only the weights, its conclusions apply to that fixed configuration.

Four sensitivities dominate.

Tokenizer sensitivity. Tokenizers can encode comparable text into different numbers of tokens. Extra tokens use more of a fixed context window and increase the number of positions the model must process. Measure token counts on the task slices using each system's tokenizer, especially when inputs include domain-specific strings or multiple languages. Petrov et al. document tokenization-length disparities across languages. The tokenization chapters explain how the underlying segmentation works.

Prompt format sensitivity. Chat templates, system prompts, few-shot examples, and even formatting can change the measured score. Sclar et al. show this for meaning-preserving variations in few-shot classification prompts. Declare the prompt configuration and tune it on separate development examples before measuring held-out performance.

Quantization sensitivity. Lower-precision weights approximate the original weights. Even a small change in aggregate accuracy can hide a larger drop on a particular slice, so compare the quantized system with its higher-precision baseline under the same protocol. The inference optimization chapters describe the representations.

Device dependence. Latency and energy depend on the chip, memory bandwidth, thermal state, inference runtime, batch size, and concurrency. Report the hardware and workload with the measurements. The MLPerf Client benchmark uses specified workloads such as creative writing and code analysis, with input and expected output lengths for each category.

Record the choices that differ between candidates. To isolate the effect of one choice, such as weight precision, hold other conditions fixed. To choose a deployment, compare the actual candidate systems.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy