How a perfect intermediate result pinpoints where a two-stage system fails
Question: In a two-stage workflow where a receipt image is first converted to text and then a classifier decides whether the expense is reimbursable, explain why replacing the first stage’s output with a manually verified perfect transcript can localize an error to one stage. Describe what each outcome tells you.
Sample answer: By feeding the second stage a perfect transcript, you change only the quality of the input coming from the first stage while leaving the second stage itself unchanged. If the classifier still gives the wrong result, then the mistake cannot be explained by a bad transcription, so the failure must be in the classifier. If the classifier now gives the correct result, then it was capable of solving the task all along and the original error came from the transcription stage. This experiment is useful because it holds one part of the pipeline fixed and changes only the suspected upstream source of error.
Key points:
- The second stage is tested with an ideal input from the first stage
- A failure that remains points to the second stage
- A success after substitution points to the first stage as the original cause
- The comparison isolates the effect of the upstream stage
Rubric: Full credit: explains that substituting a perfect upstream output isolates the upstream stage’s influence, and correctly interprets both possible outcomes as evidence for either the downstream stage or the upstream stage. Partial credit: describes the procedure but not the causal logic. No credit: does not connect the substitution to error attribution.
0
1
Tags
Machine Learning
Deep Learning
Supervised Learning
Dive into Deep Learning @ D2L
Data Science
Machine Learning Strategy
Machine Learning Yearning @ DeepLearning.AI
Related
Using Component Errors to Focus Improvement
What should replace the first stage output in a perfect-input check for a bird detector and species classifier pipeline?
True or False: If a crop classifier still mislabels an image even after the fruit region has been perfectly marked and isolated, the crop-detection stage is the cause of the remaining error.
In the perfect input test, if the traffic-sign classifier now correctly outputs y=1 when given a hand-labeled box, the original mistake is attributed to the _____.
Match each outcome of a perfect-input check to the component that should be held responsible for the pipeline error.
Order the steps in the perfect-input check for isolating an error between a traffic sign detector and a sign-type classifier.
How a perfect intermediate result pinpoints where a two-stage system fails
Apply a perfect-input check to isolate the source of a two-stage vision failure.
What must an engineer prepare to run the perfect input test, and why must it be exact?
Attributing Error After a Perfect Input Check
True or False: The perfect input test can help isolate which stage in a pipeline is responsible for an error.