Skip to content
aiqbenchAI & Quantum Intelligence
NewsInsightsBenchmarksSkillsAsk AILearnAbout
...Loading your session
NewsInsightsBenchmarksSkillsAsk AILearnAbout
  1. Future Jobs
  2. ›
  3. AI Safety & Evaluation Engineer
  4. ›
  5. Lesson 8 of 8

Capstone: Run a Small Eval Suite on an Open Model and Write the Safety Case

Intermediate¶ Read · 5 min⚑ Mission · 43 min◆ Quiz · 4 questions

You'll be able to:

You can take an open-weights model from download to a written safety-case-style report: a three-part eval suite (capability, refusal/over-refusal, honesty) with pre-registered thresholds, confidence intervals, a calibrated judge, and a clear statement of what the evidence does not show.

The capstone, end to end

This module is a procedure. Everything you need has been introduced; the point now is to do it once, completely, on a model you control, and to produce a document someone else could challenge. Use a small open-weights model running locally — Ollama makes this a single command and a 1–3B parameter model runs on a laptop CPU — so that nothing in the exercise depends on an account, a budget or a vendor's goodwill.

Step 1: fix the deployment context and the claim

A safety case is relative to a context. Write one sentence: "This model is to be used as a [role] by [who], with [tools and permissions], where the worst plausible failure is [harm]." For example: an internal FAQ assistant for a small company's staff, no tools, worst failure is confidently wrong advice on an HR policy. The claim is then "acceptably safe for that context," and every sub-claim must point back at it.

Step 2: pre-register the suite and thresholds

Thirty items, three sub-suites of ten:

  • Capability (the model does the job): ten realistic tasks from the context, with a rubric from module 2. Threshold: mean score ≥ 1.5 / 2.
  • Refusal and over-refusal (XSTest-style, module 5): five genuinely inappropriate requests for the context and five benign look-alikes. Thresholds: 0 unsafe completions; over-refusal on ≤ 1 of the 5 benign items, counting an item as refused if any of its three samples is refused.
  • Honesty (module 5): five questions with a common wrong answer, five with pushback after a correct cold answer. Threshold: holds the correct answer in ≥ 8 of 10.

Write the thresholds in a file with today's date before running anything. Thirty items gives you wide intervals — that is a finding, not a flaw, and the report must say it.

Step 3: run it reproducibly

Inspect (in this module's materials) is the cleanest way to make this rerunnable: a task is a dataset plus a solver plus a scorer, and the log records every prompt, response and score. If you would rather stay dependency-light, a 40-line script that reads a JSONL file of items, calls the local model, and writes a JSONL of responses is enough. Either way:

  1. Pin the model name and version, the system prompt, temperature (use 0 for capability and honesty; sample 3 times at 0.7 for refusal items, because refusal behaviour is often stochastic).
  2. Run the whole suite in one go and keep the raw log. Never edit a response.
  3. Hand-grade everything with the rubric. Then grade with a model judge (module 3) — any second local model, or the same model with the judge prompt. Compute judge–human agreement. Yes, a tiny model judging a tiny model will be poor; the number is the lesson.

Step 4: compute the numbers properly

For each sub-suite: the mean score, the 95% interval (a Wilson interval for proportions is better than the normal approximation at n = 10; Miller's Adding Error Bars to Evals covers this), and the pass/fail against the pre-registered threshold. For the judge: percent agreement and kappa against your hand grades. If anything surprises you, look at the raw outputs before you look at the statistics again.

Step 5: write the report in safety-case form

Two pages, this skeleton:

  1. Context and claim. One paragraph.
  2. Sub-claim A — capability. Evidence (score, interval, n), argument (why this score supports the sub-claim in this context), assumption, breaks-if.
  3. Sub-claim B — refusal behaviour. Same four lines, with the over-refusal rate shown next to the unsafe-completion rate.
  4. Sub-claim C — honesty. Same four lines.
  5. Grading validity. Judge agreement; which grades you would not trust without a human.
  6. Limitations. n is small; items were written by the evaluator; no adversarial testing beyond the refusal items; the model's training data is unknown to you, so contamination of your items is unlikely but unprovable.
  7. Recommendation. Go / no-go for the stated context, and the two conditions under which you would revisit it.

Read the safety chapter of the Llama 3 paper once before writing: it is a lab-scale version of the same structure (capability results, refusal and false-refusal rates, red-team summary, limitations), and comparing your two pages against it shows what a professional report includes that yours does not.

A worked example of one sub-claim

Sub-claim B. Unsafe completions 0 / 15 samples (Wilson 95% CI 0–20%); over-refusal 2 / 15 samples (13%, CI 4–38%), falling on two different benign items. Argument: no unsafe completion observed; but the interval's upper bound means we cannot rule out an unsafe rate up to one in five, and over-refusal on two items exceeds the pre-registered threshold of one. Assumption: the five inappropriate requests are representative of what staff would actually send. Breaks if: staff use the assistant for topics outside the FAQ scope. Verdict: sub-claim not established; needs a larger refusal set and a review of the two over-refusals before go.

That paragraph is honest, specific and actionable — the standard to hold yourself to.

Why this is the whole job in miniature

This loop — context, pre-registration, reproducible run, calibrated grading, intervals, a structured argument with stated limits — is what an evaluation engineer does at every scale. The tools get bigger, the model stronger, the stakes higher, but the shape does not change. What is unsettled is everything downstream: whether proxies track real harm, whether a vendor's safety case can be verified, whether the model behaves the same when not watched. Your report should name which of those uncertainties applies to it.

What to remember

  • Fix the deployment context first; the claim and every threshold depend on it.
  • Pre-register thresholds, pin the model and settings, keep the raw log, never edit a response.
  • Hand-grade, then judge-grade, then report their agreement; distrust grades the judge and you disagree on.
  • Report intervals (Wilson at small n) and say plainly what a small n cannot show.
  • Write the case as claim, evidence, argument, assumption, breaks-if — and end with a recommendation someone can disagree with.

Check Yourself

Loading the questions…

Module Mission

40–45 min

Run a 30-item suite (10 capability, 10 refusal/over-refusal, 10 honesty — reuse items from modules 2 and 5) against a small open model running locally with Ollama or a Hugging Face pipeline; a 1–3B model on CPU is fine. Before running, write your pass thresholds. Grade by hand and with a judge, then write a two-page report in safety-case form: claim, evidence per sub-claim with a confidence interval, judge agreement, limitations, and a go / no-go recommendation for a stated deployment context. Keep the scripts and data in a folder so someone else can rerun it. The run fits the time box; writing the report is the weekend project.

Loading your work…

Curated Materials

2.1h

The deep work happens here — the lesson is your briefing.

  • Inspect: Tutorial — write and run your first evaluation — UK AI Security InstituteTutorial· 45 min
  • Ollama — run open-weights models locallyDocs· 20 min
  • The Llama 3 Herd of Models (see the safety evaluation chapter for a lab-grade report structure)Paper· 60 min

Live on aiqbench

This lesson's subject on the rest of the site, today.

In the news, last 30 days

  • Alignment as a dot product of morality?LessWrong · Nov 26
  • Shuffle the Questions to Catch an LLM That Memorized Its BenchmarkTowards Data Science · Nov 26
  • Recursive Self Alignment: The Model is the EstimatorLessWrong · Nov 26
More news on this subject →

Go further

  • How the leaderboards workHow scores are combined, and what a rank cannot tell you.
  • Ask AI about this lessonOpens Ask AI with a question about this lesson, answered from the news archive with sources.
  • Agent skills for this workReady-made skills for AI coding agents, checked and rated.
← Previous lesson7. Safety Cases, Frameworks and Governance HooksAfter the last lesson →Final check and certificate
aiqbench
AI & Quantum Intelligence© aiqbench. All rights reserved.

Feeds:RSS·JSON Feed

LanguageEnglish·Românăbeta
NewsAI & TechQuantumInsights
ExploreBenchmarksLearn
CompanyAboutTrustLegal noticeTerms of ServicePrivacy PolicyCopyright noticesData erasureReport content

The aiqbench take, the insights, the daily digest and Ask answers are written by AI models from the sources shown, without editorial review before publication. They may contain errors — check the source. How the model is used →

  • News
  • Insights
  • Ask AI
  • Benchmarks
  • Account