ealeng

Episode 58 of 61 · Self-improving systems

Can a model check its own answers?

A course assistant should answer on its own and hand only its risky answers to a person. With no answer key at answer time, it needs warning signs. Of four tested on 988 graded answers, the assistant rating its own answer ranked the 34 bad ones best (83 of 100), and cost least. But it was at least 90% sure of 19 of its 25 wrong answers, so keeping its own answers under 1 in 100 wrong meant sending 56% of all answers to a person.

Lab 18 · Autonomous Systems11 min read
Video transcript7:35

0:00Cold open

0:01

A learner asked our course assistant: what makes full fine-tuning costly?

0:06

It answered: you would have to retrain whenever the knowledge changes.

0:11

That’s the wrong reason. The article does say that, but about when not to fine-tune. It’s costly because it updates every weight in the model, and that needs a lot of GPU memory.

0:24

Then I asked the assistant how sure it was. Ninety-eight percent.

0:29

A bigger model, checking the same answer, said twenty-two percent.

0:35

So which one should decide when to call a person?

0:39Intro

0:40

Hands-on AI engineering: autonomous AI, part two.

0:45

Today: can an AI tell when it’s wrong, and know when to ask a person?

0:50Meet Nadia

0:52

I’m Nadia, an AI engineer at Quill Academy, a made-up online course site.

0:58

Our assistant answers learners from a handful of short course articles.

1:03

When the articles don’t cover a question, it should say “I don’t know”.

1:08

I’d like it to run on its own, and hand only the risky answers to a person.

1:14

To test that, I replayed six weeks of learner messages. A model wrote the messages. Every answer is a real, recorded one.

1:24

Then a bigger model, given the right answers, graded every real question: nine hundred and eighty-eight of them.

1:32

Thirty-four of them needed a person. About three in a hundred.

1:37

Most were wrong. The rest said “I don’t know”, when the article did have the answer.

1:4401 · Four signs

1:45

But when it runs on its own, there’s no answer key. So it needs warning signs it can work out by itself.

1:53

Think of checking a student’s homework, without the answers.

1:57

One: how close search came. Did search find a passage that looks like the question? If not, the answer is shaky. This one is free.

2:07

Two: the assistant rates its own answer. How sure are you that it’s right? Like asking the student.

2:14

Three: a bigger model reads the same answer and passages, and rates it. Like asking a teacher.

2:22

Four: ask the same question twice more. If the answers disagree, something is off. Like having the student do it again.

2:3102 · Which ranks best?

2:33

Which sign works best? First, how do you score one?

2:37

Take one answer that needed a person, and one that was fine.

2:42

Here, the bad answer is less sure of itself than the fine one. So it looks riskier. That’s the right way round.

2:50

Now the fine-tuning answer from the start. It’s surer than this fine one. Wrong way round.

2:57

Do that for every pair. The score is how many in a hundred come out the right way. A tie counts as half. A coin flip gets fifty.

3:07

So which sign scored best? Make a guess.

3:12

How close search came was last: sixty-three.

3:17

The assistant rating itself came first: eighty-three. And it was the cheapest of the three model checks.

3:25

I expected the opposite. A model grading its own work sounds like the weakest check.

3:31

But there were only thirty-four bad answers. With so few, the order could change on a new test. So: promising, not proven.

3:4103 · Drawing the line

3:43

But a ranking isn’t a decision. Some answers have to go to a person.

3:49

So line up all the answers by the self-check, the least sure on the left. Red marks the ones that needed a person.

3:57

Then draw a line. Everything left of it goes to a person. The AI sends the rest on its own.

4:05

Say I want fewer than two in a hundred of those to need a person. Then twelve percent of answers go to a person: everything it rated ninety-five percent sure or less.

4:17

Fewer than one in a hundred? Everything ninety-eight percent or less: fifty-six percent of all answers.

4:25

A perfect signal would put all the red at the far left. It would send only three percent.

4:32

Look at the self-check’s red marks again. About half are bunched at the left. The rest are spread across the first half, mixed in with hundreds of fine answers. One is far over to the right. Why?

4:4604 · Very sure

4:48

Look at how sure the assistant was of its own answers. Ninety percent or more counts as very sure.

4:55

Of its right answers, it was very sure of all but one.

5:00

And of its twenty-five wrong answers? Nineteen. Very sure, too.

5:06

Here they all are. The bars are the right answers. The dots are the wrong ones.

5:12

Eleven of the wrong ones sit right at the top, where most right answers are.

5:18

Like a student who writes “100 percent sure” on every answer.

5:23

Less sure still means riskier, on average. That’s why it ranks well. But no single line separates right from wrong.

5:32

And the bigger model was no better at this.

5:3705 · A worse assistant

5:38

One more test. I made a worse version of the assistant.

5:43

When the articles don’t cover a question, it answers anyway, from what it already knows. I called it “helpful”.

5:51

On the same messages, the careful version needed a person fourteen times.

5:56

The “helpful” one: a hundred and seven.

6:01

Now the warning signs. On just these four hundred messages, the careful version scores like this.

6:08

And on the “helpful” one. All three rank better. Search most of all: from sixty-five to ninety.

6:16

Did the signs get better? No. The assistant got worse.

6:21

Most of its bad answers were to questions no article covers. Those are easy to spot, so every sign looks good.

6:30

Take them out, and only five bad answers are left: too few to show the self-check got any better.

6:38Back to Nadia

6:40

So, back to the fine-tuning answer. On that one, the bigger model was right.

6:45

But over all nine hundred and eighty-eight answers, the self-check ranked better, on this test.

6:52

So neither number should decide on its own. Here’s what I do instead.

6:58

So I test the signs on my own graded answers,

7:02

draw the line by the error rate I can accept,

7:06

and expect most of what goes to a person to be fine.

7:10

And when the system changes, I measure again. A sign can look better just because the system got worse.

7:18

Next time: a QA agent that runs the test suite every night. How often does it cry wolf?

7:26Summary

7:28

A self-check ranks answers.

7:30

You still choose where to draw the line.Nadia: Measure, then decide.

Key takeaways

  • ✓A self-check is a warning sign the system works out without the answer key: how close search came, the model rating its own answer, a second model rating it, or asking the same question again and seeing whether the answers agree. Each gives every answer a risk.
  • ✓Score a sign by ranking: take every pair of one answer that needed a person and one that was fine, and count how often the bad one looks riskier. A tie counts as half; a coin flip scores 50. This is AUROC. On 988 graded answers: search 63, the assistant rating itself 83, a bigger model 74, asking again 72.
  • ✓The assistant rating itself ranked best and cost least ($0.09 per 1,000 answers, against $0.35 for the bigger model). The lab expected the opposite. With only 34 bad answers the intervals overlap (0.76–0.89 against 0.66–0.81): promising, not proven.
  • ✓A ranking isn't a decision. To keep the answers the AI sends on its own under 2 in 100 needing a person, send 12% to a person (everything it rated 95% sure or less). Under 1 in 100: 56% (98% or less). A perfect sign would send only the 34 that need a person, 3%.
  • ✓The reason: its confidence is bunched near 100%. It was at least 90% sure of 953 of its 954 right answers and of 19 of its 25 wrong ones. Less sure still means riskier on average, so it ranks well, but no line separates right from wrong.
  • ✓Signs can look better because the system got worse. A "helpful" version that answers from general knowledge needed a person for 107 of 400 answers (the careful one: 14), and every sign ranked better on it. 102 of the 107 were questions no article covers, which are easy to spot.

A course assistant answers learners' questions from a handful of short articles. It should run on its own and hand only the risky answers to a person. But at answer time there's no answer key. Can it tell which of its own answers are wrong, and how much has to go to a person to keep the rest safe?

The source is Lab 18 (Autonomous Systems), script 02_self_check.py, recorded in October 2026; the video uses that run, no new calls. The course site, Quill Academy, and its learners are made up: a model wrote six weeks of learner messages, and they were replayed through the real assistant. Every answer and every check is a recorded call: gpt-5.4-nano answers and rates itself, gpt-5.4-mini checks it, and gpt-5.4-mini, given the articles' right answers, grades every real question (small talk skipped). Chapter 57 covered tests written from real usage; this is part two of Self-improving systems.

The test

The assistant searches the articles, picks the top three passages, and answers from them. When the articles don't cover a question, it should say "I don't know". Over six replayed weeks:

  • 988 real questions were graded.
  • 34 of them needed a person (3%): 25 wrong answers, and 9 "I don't know" answers when the article did have the answer.
  • The other 954 were fine.

The goal: find those 34 without the answer key, and send as few of the 954 fine ones to a person as possible.

Here's the case that opens the video. A learner asked what makes full fine-tuning costly. The assistant said you'd have to retrain whenever the knowledge changes. That's the wrong reason: the article does say that, but about when not to fine-tune. Full fine-tuning is costly because it updates every weight and needs a lot of GPU memory. Asked how sure it was, the assistant said 98%. A bigger model, checking the same answer, said 22%.

Four warning signs

Think of checking a student's homework without the answers.

Sign Like… What it measures Cost per 1,000 answers
How close search came – 1 − the best passage's similarity to the question free
Rates its own answer asking the student gpt-5.4-nano reads the passages, question and answer: how sure is it that it's right? $0.09
A bigger model rates it asking a teacher the same question to gpt-5.4-mini $0.35
Ask twice more having the student do it again two more answers: does one refuse while another answers, or do the texts differ? $0.29

The check prompt treats "I don't know" as an answer too: it's right only if the passages really lack the answer.

Which sign ranks best?

To score a sign, take one answer that needed a person and one that was fine. If the bad one looks riskier, that pair is the right way round. Do it for every pair (34 × 954 = 32,436 of them) and count how many in 100 come out right. A tie counts as half. A coin flip scores 50, a perfect sign 100. This is the AUROC (area under the ROC curve).

Two pairs from the data, using the self-check:

  • "how does pq shrink high-dimensional vectors" (wrong, 65% sure) against "what is faiss?" (fine, 99%): the bad one looks riskier. Right way round.
  • The fine-tuning answer (wrong, 98% sure) against "how does chain of thoguht [sic] prompting work" (fine, 95%): wrong way round.
Sign Ranking score (of 100) 95% interval
How close search came 63 55–70
Rates its own answer 83 76–89
A bigger model rates it 74 66–81
Ask twice more 72 61–83

The assistant rating itself came first, and it was the cheapest of the three model checks. The lab's plan said the opposite: a model grading its own work sounds like the weakest check. But there were only 34 bad answers, and the intervals overlap. Read it as "no evidence the bigger checker is better here", not as a rule. Search came last: it measures whether the question looked like a passage, not whether the answer is right.

On the fine-tuning answer, the bigger model was right and the self-check wasn't. Over all 988, the self-check ranked better. One example doesn't tell you which sign to trust.

Drawing the line

A ranking isn't a decision. Line up all 988 answers by a sign, riskiest first, and draw a line: everything left of it goes to a person, and the AI sends the rest on its own. Answers with the same score go together, so the line can't split a tie.

Try it · Draw the lineLab 18 · script 02 · 988 recorded answers

The assistant (gpt-5.4-nano) reads the passages, the question and its answer, and says how sure it is that the answer is right.

← riskiest by this signsafest →
Left of the line: a person checks it needed a person (34)
Sent to a person
12%
Needing one, caught
19 / 34
Left: need a person
1.7 in 100
Ranking score
83

120 of 988 answers go to a person; of those, 19 needed one. The AI sends the other 868 on its own, and 15 of them needed a person. In the lab's table: ranking score 0.83 (0.76–0.89) (95% interval in brackets), at $0.09 per 1,000 answers.

Answered on its own, but needed a person (6 of 15)
  • “what do the evaluation outcomes look like in llm evaluation” (wrong answer)99% sure
  • “hey what's hybrid search in vector databases” (wrong answer)98% sure
  • “i'm evaluating our support bot and need to know how to measure the faithfulness of a rag answer” (wrong answer)98% sure
  • “hey, what usually goes wrong in a rag system” (wrong answer)98% sure
  • “i'm evaluating our support bot and need to know how to measure the faithfulness of a rag answer” (wrong answer)98% sure
  • “why is full fine tuning expensive” (said “I don't know”, the article had it)98% sure

The safest-looking ones first.

How much has to go to a person, so that the answers the AI sends on its own stay under a target:

Sign Under 2 in 100 need a person Under 1 in 100
How close search came 31% 84%
Rates its own answer 12% (95% sure or less) 56% (98% sure or less)
A bigger model rates it 28% 68%
Ask twice more 11% 100%
A perfect sign (all 34) 3% 3%

With the self-check at under 1 in 100: 554 answers go to a person, 33 of the 34 bad ones are among them, and 1 bad one is left among the other 434. So most of what a person reads, 521 of 554, was fine. With the bigger model at the same target, 676 went to a person and 31 of them needed one: 5%.

A perfect sign would send only the 34. (The lab's README quotes 1% and 2% for a perfect sign at these targets: the least it could send, since it could leave a few bad answers among the rest and still get under the target. The video, and the widget, count all 34: 3%.)

Look at where the red marks sit in the self-check's line. About half (19 of 34) are bunched in the first 12%. The rest are spread across the first half, mixed in with hundreds of fine answers, and one is far to the right. That last one is why under 1 in 100 costs 56%.

Very sure, and wrong

Why are the bad answers spread out? Look at how sure the assistant was. Call 90% or more "very sure".

Try it · How sure was it?Lab 18 · script 02 · 988 recorded answers
Very sure of right ones
953 / 954
Very sure of wrong ones
19 / 25
…of wrong “I don't know”
9 / 9

“Very sure” = 90% or more.

% sureRight answersNeeded a person
100
143
99
290
98
348
97
52
96
20
95
62
90–94
38
80–89
1
50–79
0–49

wrong answer said “I don't know”, but the article had the answer

  • Of its 954 right answers, it was very sure of 953.
  • Of its 25 wrong answers, it was very sure of 19 (76%).
  • Of the 9 wrong "I don't know" answers, all 9.
  • 11 of the wrong answers sat at 98–99%, where 638 of the right ones are.

Like a student who writes "100% sure" on every answer. Less sure still means riskier, on average: that's why it ranks well. But no single line separates right from wrong. The bigger model was no better at this: very sure of 96% of right answers and of 20 of 25 wrong ones (80%).

A worse assistant

One more test. The lab made a worse version of the assistant: when the passages don't cover a question, it answers anyway from what it already knows. Call it "helpful". Both versions answered the same 400 messages.

Careful (the real one) "Helpful"
Needed a person 14 of 400 (4%) 107 of 400 (27%)
Search's ranking score 65 90
Self-check's ranking score 90 94
Bigger model's ranking score 79 89

All three signs rank better on the worse system. Did the signs get better? No: the assistant got worse. 102 of its 107 bad answers were to questions no article covers. Those are easy to spot (search finds nothing close, and the checker sees the answer isn't in the passages), so every sign looks good. Take them out, and only 5 bad answers are left. The self-check scores 86 on those, against the careful version's 90: too few to show it got any better.

Self-checks catch blatant errors. The careful assistant's subtle ones are what's hard.

Also in the lab

  • The bad answers that matter most were the hardest to rank. Scored on wrong answers alone (leaving out the wrong "I don't know"s), the lab's table gives search 61, the self-check 81, the bigger model 71 and asking again 80.
  • Combining checks didn't help. Taking the larger risk of the bigger model and asking again ("any check") scored 76 and cost $0.63 per 1,000 answers, more than either alone.
  • Week by week, the line didn't follow the need. With the bigger model at the under-1-in-100 setting, 106–124 answers a week went to a person while 2–9 a week needed one.
  • Less bunched confidence. The lab suggests asking for a ranking or a comparison instead of a number, using token log-probabilities where the API gives them, or calibrating the scores on graded answers. It didn't test these.

What to do

  • Test the signs on your own graded answers, with intervals. Which ranks best here isn't what the lab expected.
  • Draw the line by the error rate you can accept, from the escalation curve, not from the ranking score.
  • Expect most of what goes to a person to be fine. At under 1 in 100, 521 of the 554 were.
  • Look at the top of the score. If confidence is bunched near 100%, the line has to go deep to catch the last few.
  • When the system changes, measure again. A sign can look better just because the system got worse.

Caveats

  • 34 bad answers. Rankings and lines from so few can change on a new test; the intervals overlap.
  • Made-up learners, model-graded. A model wrote the messages and a model graded the answers against the articles' right answers. The lab notes some right answers are narrow ("Noisy.") and a few "not covered" questions are partly answered by the articles (how to assess faithfulness). Several of the 25 wrong answers are faithfulness questions, so some may be grading artifacts.
  • One assistant, two checkers. gpt-5.4-nano rating itself and gpt-5.4-mini checking it. Other models report confidence differently.
  • The person is perfect here. Whatever goes to a person counts as handled. Real reviewers are slower and sometimes wrong.
  • Ties matter. Confidence comes in round numbers, so many answers tie; the line moves in jumps (the 12% line falls between 95% and 96% sure).

The checklist

  1. Grade a sample of real answers so you can test any sign.
  2. Compute each sign's ranking score with an interval, and its cost.
  3. Plot the escalation curve and read off the share for your target error rate.
  4. Check how bunched the confidence is for right and wrong answers.
  5. Keep ties together when you set the line.
  6. Re-measure after every change to the model, the prompt or the documents.

Practice: draw the line in code

Write the lab's ranking score (ties count half), the escalation curve that keeps ties together, the smallest share to send for a target error rate, and the "very sure" count. The tests use the 988 recorded answers and their four signs, and expect the lab's numbers: 63, 83, 74 and 72; 120 sent with 15 left, then 554 with 1 left; 84%, 56%, 68% and 100% at under 1 in 100; 34 for a perfect sign; and 19 of 25 wrong answers very sure.

Try it · Practice in PythonRuns in your browser · ⌘/Ctrl + Enter to run
selfcheck_practice.py49 lines

Quiz

Try it · Check your understanding0 of 6 answered
  1. 1.At answer time there's no answer key. What is a self-check, then?

  2. 2.How is a sign's ranking score (AUROC) worked out?

  3. 3.Which of the four signs ranked the bad answers best on 988 answers?

  4. 4.The self-check scores 83. Can you promise that under 1 in 100 of the answers the AI sends on its own are wrong?

  5. 5.Why does a sign that ranks well still need such a wide line?

  6. 6.A "helpful" version of the assistant made every sign score higher (search 65 → 90). Did the signs improve?

Check your understanding

Try each question before opening its answer.

What are the four warning signs, and which is free?

How close search came (free: search computes it anyway), the assistant rating its own answer ($0.09 per 1,000), a bigger model rating it ($0.35), and asking twice more to see whether the answers agree ($0.29).

What does a ranking score of 83 mean?

Of every pair of one answer that needed a person and one that was fine, 83 in 100 had the bad one looking riskier, counting ties as half (76 right way round, 14.7 tied). A coin flip scores 50.

The self-check ranked best. Why not conclude a model should grade itself?

There were only 34 bad answers, and the intervals overlap: 0.76–0.89 for the self-check, 0.66–0.81 for the bigger model. It's no evidence the bigger checker is better here, not proof the self-check is. Measure on your own answers.

How much had to go to a person to keep the AI's own answers under 1 in 100 needing one?

56% with the self-check (everything 98% sure or less), 68% with the bigger model, 84% with search, 100% with asking again. A perfect sign would send the 34 that needed a person: 3%.

Why can a sign rank well and still need such a wide line?

Its confidence was bunched near 100%: very sure of 953 of 954 right answers and 19 of 25 wrong ones. Wrong answers are less sure on average, which ranks them, but many sit among hundreds of right ones at 98–99%.

Every sign scored higher on the "helpful" assistant. What happened?

The assistant got worse: 107 of 400 answers needed a person, 102 of them made-up answers to questions no article covers. Those are easy to spot. Without them only 5 bad answers were left, too few to show the self-check improved.

Next up: Chapter 59, regression tests and flaky alarms: a QA agent runs the test suite every night. How often does it cry wolf, and what happens when you remove the flaky tests?

Learning something useful?

New labs, articles, and videos on evaluating and testing AI systems come out regularly. Follow along so you don't miss the next one.