Module 3 · Evaluation/Lesson 26 of 33

Per-Stage Evaluation

End-to-end accuracy tells you THAT the system fails. Per-stage metrics tell you WHERE.

Mastery—
Quiz
—
Exercises
—
Challenge
—

Why this matters

Your pipeline is 76% accurate end to end. Is the problem speaker attribution, entity extraction, the classifier, evidence selection or verification? The end-to-end number can't say — and three very different pipelines can produce the same one.

gives each stage its own gold labels and metrics, measured both in isolation (with correct inputs) and in the pipeline (with real upstream outputs). Oracle ablations then answer the engineering question directly: which stage, if fixed, buys the most?

Core concept

Technical explanation + simple intuition + example

Isolated, in-pipeline and oracle metrics

  • Isolated: give the stage perfect inputs — how good is the stage itself?
  • In-pipeline: give it real upstream outputs — how good is it in practice?
  • Oracle ablation: replace one stage with perfect (gold) outputs — how much would end-to-end improve if that stage were perfect?

The 10 questions

Every important concept should answer all of these

1What is it?

Measuring each pipeline component against its own gold labels, in isolation and in context, plus oracle ablations.

2Why does it exist?

End-to-end metrics can't localize failures; many stage configurations give the same aggregate.

3What problem does it solve?

It directs engineering effort to the stage with the largest end-to-end impact.

4How does it work internally?

Label per-stage gold outputs on a sample, compute isolated and in-pipeline metrics, run oracle ablations, attribute each error to its first failing stage.

5What does it look like on real transcript data?

Noisy calls hurt several stages at once; diarization errors look like classifier errors downstream.

6What can go wrong?

Only labelling final outputs; comparing stages evaluated on different samples; ignoring correlated errors; optimizing a stage whose improvement doesn't reach the output.

7How do I evaluate it?

A per-stage table (isolated, in-pipeline, oracle-gain) sliced by transcript quality and language.

8When should I use it?

Any multi-stage pipeline, before deciding what to improve.

9When should I NOT use it?

Single-call systems still benefit from decomposed labels (e.g., evidence quality separate from label accuracy).

10How does it affect downstream systems?

It determines roadmap priorities and prevents 'improving' stages that don't matter.

Interactive lab: End-to-end evaluation dashboard

Three mystery pipelines with similar end-to-end accuracy. Guess which stage to fix from the headline number, then reveal per-stage metrics, oracle ablations, error attribution and failure traces.

SIMULATED MODEL
Loading lab…

Try it yourself

Conceptual (A), applied (B) and engineering (C) exercises

Q1Type A · ConceptualIntermediate
End-to-end accuracy is 0.76. What additional information tells you where to invest?
Q2Type B · AppliedIntermediate
Oracle ablation results (end-to-end if stage made perfect): Speaker 0.86, NER 0.79, Classification 0.81, Evidence 0.78. Baseline 0.76. Fix first?
Q3Type C · EngineeringAdvanced
Describe the minimum labelling you need to run per-stage evaluation on a 5-stage transcript pipeline, and how you'd compute error attribution.

Graded by a transparent keyword rubric (not an LLM) — it checks for the key ideas, then shows a model answer for self-assessment.

Real-world application

A team spent a month improving their intent prompt (+4 points isolated accuracy) and saw almost no end-to-end gain. Per-stage labelling on 300 calls showed 60% of end-to-end errors originated in speaker attribution on mono recordings. An oracle ablation confirmed it: perfect speakers would add 11 points end to end. Switching to stereo recording where available and adding a text-based role check delivered +8 points in two weeks.

Common mistakes

Only labelling the final output

You can't attribute errors to stages.

Fix: Label intermediate outputs on a shared sample.

Optimizing the stage you know best

Its gains may not reach the output.

Fix: Run oracle ablations; fix the largest gain first.

Measuring stages on different samples

Differences reflect data, not stages.

Fix: Use one sample with all stage labels.

Engineering decision

What should you fix first?

Use it when
  • The stage with the largest oracle-ablation gain
  • The stage where most errors originate (first failing stage)
  • Especially on the slices that matter most
Avoid it when
  • Choosing by isolated accuracy alone — a mediocre stage whose errors are absorbed downstream may matter little
Trade-offs
Per-stage labelling cost vs Diagnostic power
Labelling every stage is more expensive, but a few hundred calls usually suffices to find the bottleneck.

Quiz

Pass mark 60%. Missed questions go to your mistake log and spaced review.

0/5 answered
Q1Beginner
Why can't end-to-end accuracy locate the failing stage?
Q2Intermediate
A stage's in-pipeline accuracy is much lower than its isolated accuracy. This indicates…
Q3Intermediate
An 'oracle ablation' for NER means…
Q4Intermediate
Error attribution usually assigns an end-to-end error to…
Q5Advanced
Pipelines A, B, C all have 0.76 end-to-end accuracy. What can differ?

Advanced challenge

Type B · AppliedAdvanced
Of 120 end-to-end errors, first failing stages are: speaker 54, NER 18, classification 30, evidence 12, verification 6. What percentage of errors originate in speaker attribution?
%
Key terms in this lesson