Lesson 2 of 4 Selecting and Configuring Foundation Models

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.

True or false

What benchmarks can tell you

Exam skills 1.2.1

Test four claims about public benchmarks.

Log in to try this activity Interactive activities are free with an account.

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.

Benchmark position against task-specific evaluation. Model A tops public reasoning benchmarks and scores 94% on 200 annotated contracts; model B scores 93% at a quarter of the cost and twice the speed; model C scores 81%. Model B wins because its accuracy is within tolerance and its cost and speed are far better.
Cost and speed for model C were not needed once its accuracy fell below the bar.

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.

CriterionWeight (chat assistant)Weight (overnight extraction)
Task accuracy on evaluation setHighHigh
Time to first tokenHighLow
Cost per requestMediumHigh
Safety and refusal behaviourHighMedium
Batch inference supportLowHigh
Put in order

A model selection process

Exam skills 1.2.1 · 5.1.2

Put the steps of an evidence-based model selection in order.

Log in to try this activity Interactive activities are free with an account.
Worked example

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.

Check yourself

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.