Sari la conținut
aiqbenchInformații despre AI & calcul cuantic
ȘtiriAnalizeBenchmark-uriSkill-uriÎntreabă AIÎnvațăDespre
...Se încarcă sesiunea
ȘtiriAnalizeBenchmark-uriSkill-uriÎntreabă AIÎnvațăDespre

Română · beta. Traducerea a fost făcută automat și este încă în curs de revizuire. Citește pagina în engleză

  1. Joburile viitorului
  2. ›
  3. AI Safety & Evaluation Engineer
  4. ›
  5. Lecția 8 din 8

Lecțiile acestui traseu sunt publicate deocamdată doar în engleză, așa că lecția de mai jos apare în engleză. Restul — module, quiz și materiale — funcționează la fel.

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

Intermediar¶ Citire · 5 min⚑ Misiune · 43 min◆ Quiz · 4 întrebări

Vei putea să:

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.

Verifică-te

Se încarcă întrebările…

Misiunea modulului

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.

Se încarcă lucrarea ta…

Materiale selectate

2.1h

Munca de profunzime se întâmplă aici — lecția este briefingul tău.

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

În direct pe aiqbench

Subiectul acestei lecții în restul site-ului, astăzi.

În știri, ultimele 30 de zile

  • Alignment as a dot product of morality?LessWrong · 26 nov.
  • Shuffle the Questions to Catch an LLM That Memorized Its BenchmarkTowards Data Science · 26 nov.
  • Recursive Self Alignment: The Model is the EstimatorLessWrong · 26 nov.
Mai multe știri pe acest subiect →

Mergi mai departe

  • Cum funcționează clasamenteleCum se combină scorurile și ce nu poate spune un loc în clasament.
  • Întreabă AI despre această lecțieDeschide Întreabă AI cu o întrebare despre această lecție, cu răspuns din arhiva de știri, cu surse.
  • Skill-uri de agent pentru această muncăSkill-uri gata făcute pentru agenți AI de programare, verificate și evaluate.
← Lecția anterioară7. Safety Cases, Frameworks and Governance HooksDupă ultima lecție →Verificarea finală și certificatul
aiqbench
Informații despre AI & calcul cuantic© aiqbench. Toate drepturile rezervate.

Fluxuri:RSS·JSON Feed

LimbăEnglish·Românăbeta
ȘtiriAI & tehnologieCuanticAnalize
ExploreazăBenchmark-uriÎnvață
CompanieDespreÎncredereInformații legaleTermeni și condițiiPolitica de confidențialitateNotificări privind drepturile de autorȘtergerea datelorRaportează conținut

Perspectiva aiqbench, analizele, rezumatul zilnic și răspunsurile din Întreabă sunt scrise de modele AI din sursele afișate, fără revizuire editorială înainte de publicare. Pot conține erori — verifică sursa. Cum este folosit modelul →

  • Știri
  • Analize
  • Întreabă
  • Topuri
  • Cont