Evaluating Small Models in Context › Summary
Language AI HandbookAll chapters Evaluating small models in context means measuring the system against the deployment's requirements, not ranking models by parameter count or a leaderboard score. The chapter's protocol has five parts, each producing a required, declared measurement:
- Task fit on matched slices. Build a slice from the deployment distribution, declare the target, scoring rule, minimum bar, and slice structure, and report quality per slice. Watch for contamination.
- Cost: measured, not synthetic. Measure latency (p50/p95), throughput, and energy on the target device under the target workload, and report the full setup. Synthetic costs are for design, not decisions.
- Privacy as system property. Evaluate which data leaves the device, under what policy, and whether it is enforceable. An on-device model with leaky telemetry is not private.
- Reliability on the tail. Measure distribution shift, input difficulty, and decoding stochasticity, and report a failure profile rather than only an average. Count silent errors separately and use deployment-specific costs to assess their impact.
- System comparison on a cost-aware objective. Compare (weights, quantization, tokenizer, runtime, prompt, fallback) tuples under declared weights and hard constraints. The ranking is undefined until the constraints and preferences are stated.
In the worked example, the cloud system fails the privacy gate and the on-device system misses the long-slice floor, leaving neither eligible when both gates apply. The harness reproduces per-slice scoring, latency percentiles, and the gated objective on synthetic data.
The deeper point is that parameter count is a proxy that the evaluation should replace with measured quantities wherever it appears. A small model evaluated in context is judged on whether this system, on this device, under this workload, satisfies these requirements. That is a harder question than "which model scores highest," and it is the only one that matters for deployment. The next chapters extend this contextual view: Hybrid Edge-Cloud Inference elaborates the fallback policies this chapter treated as a system component, and Part XLIV: Retrieval-Augmented Generation covers the knowledge-augmentation side of making small models useful in production.
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!