# How Do You Evaluate Summaries?

> How to judge an AI summary for faithfulness, coverage and clarity, with code checks, a model judge and people, explained for your AI interview.

**In short:** Start by saying what a good summary must do, then check it in layers: cheap code checks, a rubric-based model judge and people on a sample. The key test is faithfulness, so every claim must be backed by the source document itself.

AI and LLM interview question Q266, Evaluation and observability. Intermediate, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/how-do-you-evaluate-summaries

## Say it in 30 seconds

A good summary keeps the facts from the source, covers the points that matter, and reads clearly. The most important test is faithfulness: is every claim backed by the original document? I check that in layers. Cheap code checks come first, for numbers and names. Then a model judge grades the rules. Then people review a sample, to make sure the judge agrees with them.

## Say it in 2 minutes

Summaries are hard to score because there is no single right answer. So I start by saying what good means for this job: the facts must come from the source, the key points must be covered, and it must be short and clear enough to use. Faithfulness matters most, because a fluent summary with one wrong dose is worse than a plain one that is correct.

The old word-overlap scores, such as ROUGE, count shared words with a reference summary. They are fast, but they miss a changed number, and researchers have found they correlate weakly with people's judgments on creative tasks.

My method has four layers. Code checks numbers and length, because those are cheap and certain. Names need a looser match, since a plain string match misses spelling variants. A model judge grades the rules against a clear rubric, with the source in view. Experts review a sample every week, and I check the judge's scores against theirs before I trust it.

Interviewers listen for this: I check faithfulness against the source document itself, which a reference summary cannot replace. I also say honestly that a judge can be biased or fooled, so people must keep checking it.

## What is summary evaluation, in plain words?

A summary has three jobs. It keeps the facts from the original, it covers the points that matter, and it reads clearly. Evaluating a summary means checking all three, and deciding how much each one counts for the job.

Think of a ward nurse checking a discharge note against the patient's chart. She checks every dose and every test in the note against the chart, and makes sure nothing important is missing.

- **Faithfulness:** Every claim in the summary is backed by the source document.
- **Coverage:** The summary includes the points that matter for the job.
- **Reference summary:** A summary a person wrote as an answer key, to compare against.
- **Rubric:** A written list of rules a grader checks, one at a time.
- **Model judge:** A second AI model that grades a summary against a rubric.

## Why does a word-overlap score miss a wrong dose?

Overlap scores, such as ROUGE, count how many words a summary shares with a reference. They are cheap and easy to run, but they mostly count matching words. A changed number barely moves the score, because most of the other words stay the same.

Take a made-up clinic note. The doctor raises metformin to 1000 mg twice a day. Two AI summaries follow. The first says 500 mg, and it reads almost the same as the note. The second is a fair rewrite in new words, with the right dose.

```python
# Made-up clinic note and two AI summaries. Overlap counts shared words (a simple word-overlap score, in the spirit of ROUGE);
# the number check flags any number the summary states that the note does not contain.
import re

note = "Increase metformin to 1000 mg twice a day. Kidney blood test in 3 months."
wrong = "Increase metformin to 500 mg twice a day. Kidney blood test in 3 months."
fair = "The dose goes up to 1000 mg, taken twice a day, with a kidney blood test in 3 months."

def overlap(summary, source):
    words, source_words = summary.lower().split(), set(source.lower().split())
    return round(sum(w in source_words for w in words) / len(words), 2)

def numbers(text):
    return set(re.findall(r"\d+", text))

for name, summary in [("wrong dose", wrong), ("faithful rewrite", fair)]:
    print(f"{name}: overlap {overlap(summary, note)}, numbers not in note: {sorted(numbers(summary) - numbers(note))}")
```

Output:

```text
wrong dose: overlap 0.93, numbers not in note: ['500']
faithful rewrite: overlap 0.58, numbers not in note: []
```

The wrong summary scores 0.93 on overlap, and the fair rewrite scores 0.58. The score ranks them the wrong way round. A number check finds the 500, the kind of error that could hurt a patient.

## What do researchers say about overlap scores?

Researchers have compared these scores with human judgments, and found them weak, especially for creative tasks. The G-Eval paper of 2023 says it plainly. A 2020 study of summaries also found a related problem, made-up content called hallucination, in all the model summaries it checked:

> "Conventional reference-based metrics, such as BLEU and ROUGE, have been shown to have relatively low correlation with human judgments, especially for tasks that require creativity and diversity." (G-Eval, 2023)
>
> "Our human annotators found substantial amounts of hallucinated content in all model generated summaries." (Maynez and colleagues, 2020)

BERTScore, a 2019 metric, compares the meaning of words instead of exact matches. It uses number patterns that an AI model builds for each word in its context, called embeddings. Its authors report that it correlates better with human judgments than existing metrics. They tested it on the outputs of 363 machine translation and image captioning systems.

## How do you layer the graders?

Anthropic's guide to building evaluations lists the ways to grade an answer, each with its trade-offs. Code is the fastest and most reliable, but it lacks nuance. A model judge is fast and flexible. Human grading is the most flexible and high quality, but slow and expensive. So I layer them, cheapest first.

*Diagram, Layers that score a summary: Cheap code checks run first, and a failure stops the summary there. Then a model judge grades the rules, then experts check a sample. Only when the judge agrees with the experts do its scores count.*
1. The summary goes to the cheap checks first.
2. The same summary also gets the length and format check.
3. Numbers and dates that pass go on to the judge.
4. Format results go on to the judge too.
5. The judge's scores go to an expert for a sample.
6. If the judge matches the experts, its scores can be trusted.

1. **Cheap code checks first:** Every number and date in the summary must appear in the source. Names need a looser match for spelling variants. Length and format are plain code too. A failure stops the summary before any model scores it.
2. **A rubric-based judge next:** A model grades each rule separately, with the source in view. Keep the rubric concrete, and test the judge before you rely on it.
3. **Calibrate against people:** Have experts score a sample of summaries, then measure how often the judge agrees with them. A judge can favour text written by a model like itself, so this check matters.
4. **Keep people in the loop:** Experts review a random sample each week, plus every summary that fails a check. New documents change the mix, so the sample keeps the scores honest.

## Why check faithfulness against the source?

Faithfulness is the hardest and most important test. Maynez and colleagues found that the AI summarisers they studied were highly prone to making up content, called hallucination, that the input document does not support.

For faithfulness, the source document is the right reference. A reference summary is one good summary out of many, so a faithful summary can still score low against it. So I check each claim against the source itself.

The same paper found that a textual entailment check, which asks whether the source supports a claim, tracks faithfulness better than standard metrics do. That idea sits behind the claim checker in the chart.

*Diagram, Checking claims against the source: Each claim in the summary is checked against the source document, never only against a reference summary. Claims the source does not back go to a reviewer.*
1. The checker reads the source document.
2. It also reads each claim from the summary.
3. A claim the source does not back is flagged.
4. A backed claim is kept, with its source line.

### How would you evaluate a claims summariser?

An insurer wants AI summaries of long claim files for its adjusters.

- **Define good:** Every amount and date matches the file, and the cause of loss is stated as the file states it.
- **Build a test set:** Use anonymised past files, each with an adjuster's own summary as the reference.
- **Run the code checks:** Every output is checked first. Any amount missing from the file fails at once.
- **Score the rest:** A judge calibrated against adjusters scores the rest, and failures are tracked each week.
- **Treat one wrong payout as a stop:** Fix it before the next release, however good the average looks.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] What good means for this job: faithful, covered and clear.
- [ ] Faithfulness as the top test, checked against the source.
- [ ] Why overlap scores like ROUGE miss a changed number.
- [ ] The layers: code checks, a rubric judge, people on a sample.
- [ ] Calibrating the judge against people before you trust it.
- [ ] No score proves a summary is safe, so keep reviewing.

**Common traps**

- Trap: "\"ROUGE went up, so the summary is better.\"" Better: Overlap is a weak signal. It barely notices a changed number, so check the facts against the source.
- Trap: "\"Our model judge says 9 out of 10, so we are done.\"" Better: Check the judge against people first. It can favour text written by models like itself.
- Trap: "\"We only need a reference summary to test it.\"" Better: A reference is one good summary among many. Check faithfulness against the source document.

## Can you spot the wrong number?

**Spot the wrong number:** The clinic note says: raise metformin to 1000 mg twice a day, with a kidney blood test in 3 months, and the patient reports no side effects. Which summary line is unfaithful?

A. Metformin goes up to 1000 mg, taken twice a day.
B. A kidney blood test is due in 3 months.
C. Metformin goes up to 500 mg, taken twice a day.
D. The patient reports no side effects.

**Answer:** C. The note says 1000 mg, so 500 mg is a changed number. Word-overlap scores barely separate it from the right line, because most of its words still match. Check each number and name against the source, line by line.

**Quick check:** A summariser is live for claims adjusters. Which check catches a wrong amount before a person reads it?

A. A longer prompt that asks for accuracy
B. A code check that every amount in the summary appears in the claim file
C. A higher temperature for more variety
D. A bigger model with the same prompt

**Answer:** B. Code compares every amount with the file, every time. A prompt or a bigger model can still make mistakes, so a check against the source catches a wrong amount far more reliably.

## Can you answer these from memory?

**Flash cards**

- **What is faithfulness?** Every claim in the summary is backed by the source document.
- **Why is ROUGE not enough?** It counts shared words, so one changed number can still score high.
- **Where do you check faithfulness?** Against the source document itself, since a reference is one good answer.
- **Which grader is fastest and most reliable?** Code: numbers, dates, length and format. Fast and certain, but narrow.
- **What calibrates a judge?** People score a sample, then you measure how often the judge agrees.
- **What bias should you watch for?** A judge can favour text written by a model like itself.

## Likely follow-up questions

- Q252 BLEU and ROUGE, and their limits? https://designervenkat.online/interview/ai/bleu-and-rouge-and-their-limits
- Q249 What is LLM-as-a-judge? https://designervenkat.online/interview/ai/what-is-llm-as-a-judge
- Q251 How do you calibrate a judge against humans? https://designervenkat.online/interview/ai/how-do-you-calibrate-a-judge-against-humans
- Q254 Faithfulness vs relevance? https://designervenkat.online/interview/ai/faithfulness-vs-relevance
- Q264 When do you need human evaluation? https://designervenkat.online/interview/ai/when-do-you-need-human-evaluation
- Q270 Code vs model vs human graders? https://designervenkat.online/interview/ai/code-vs-model-vs-human-graders

## Learn it in depth

- [Evaluation Metrics](https://designervenkat.online/learn/ai-engineering/evaluation-metrics)
- [A model as the judge](https://designervenkat.online/learn/ai-engineering/model-based-evals)
