Benchmarking and Selecting Foundation Models
This lesson describes a selection process that chooses among shortlisted models on measured quality, latency and cost for the actual task, since public benchmarks help shortlist but do not decide.
Learning outcomes
After completing this lesson, you will be able to:
- Explain the limits of public benchmarks.
- Run task-specific evaluations on a shared dataset.
- Decide with a weighted selection matrix.
Public benchmarks and their limits
Public performance benchmarks measure models on standard tasks: knowledge and reasoning question sets, mathematics, coding, long-context retrieval, multilingual understanding and human preference rankings. They are useful to shortlist models and to understand relative strengths, for example a model that is strong at code but weaker at long documents.
Benchmarks have limits. Their tasks rarely match a company's documents, terminology and output format; models may have been trained on benchmark data; and scores say nothing about latency, cost or behaviour with the company's prompts. A model in fifth place on a leaderboard may be first on a specific extraction task, so the final decision must come from task-specific evaluation.
What benchmarks can tell you
Task-specific evaluation
Task-specific evaluation runs each shortlisted model on the same evaluation dataset with the same prompt (adjusted only where a model requires it) and scores the outputs. Amazon Bedrock model evaluation supports this directly: automatic evaluation jobs with built-in metrics, LLM-as-a-judge jobs that score correctness, completeness, helpfulness and other dimensions, and human evaluation jobs with your own reviewers. Results for several models can be compared in the console. The module "Evaluating FM Outputs" covers these jobs in depth.
Alongside quality, the evaluation records latency (time to first token and total) and token usage per request, because two models with similar quality can differ several times in cost and speed. Prompt sensitivity is tested too: a model whose quality collapses with small wording changes is risky in production.
The following diagram summarises a task-specific evaluation of three candidate models on annotated contracts, compared with their positions on public benchmarks.

Making the decision
A selection matrix weights criteria by importance for the use case. For a customer-facing chat assistant, latency and safety weigh heavily; for overnight document processing, cost and accuracy matter most and latency hardly at all. The usual principle is to choose the smallest model that meets the quality bar, then use a larger model only where the task needs it, possibly with routing between them.
The decision is recorded with its evidence so it can be revisited. New models appear frequently, so the evaluation is kept as a repeatable job and re-run when a candidate model is released or a current model approaches end of life. The following table shows a simplified selection matrix.
| Criterion | Weight (chat assistant) | Weight (overnight extraction) |
|---|---|---|
| Task accuracy on evaluation set | High | High |
| Time to first token | High | Low |
| Cost per request | Medium | High |
| Safety and refusal behaviour | High | Medium |
| Batch inference support | Low | High |
A model selection process
Benchmark versus evaluation
A legal technology company shortlists three models for clause extraction. Model A tops public reasoning benchmarks; models B and C are smaller. On 200 annotated contracts, A scores 94% field accuracy, B scores 93% and C 81%. B costs one quarter of A per request and is twice as fast.
The matrix favours model B: its accuracy is within the tolerance, and cost and speed are far better. The leaderboard position of A did not translate into a meaningful advantage on this task, which is exactly why task-specific evaluation decides.
Several models meet the quality bar in an evaluation. Which should be chosen?
Show answer
The smallest one, because it is usually the cheapest and fastest model that still meets the requirement.
Exam Tips
Remember for the exam
- Benchmarks shortlist; task-specific evaluation on your data decides.
- Use Bedrock model evaluation jobs to compare models on the same dataset.
- Choose the smallest model that meets the quality bar.
- Keep the evaluation repeatable and re-run it when models change.