Learn Before
Debugging a Translation Decoder
Situation: You are building a machine translation system. For one input sentence, the reference translation is "The parcel arrived on Tuesday" (), but your system produces "The parcel arrived on Monday" (). The model assigns each candidate sentence a value with , and a separate approximate search procedure tries to find the sentence with the best value.
Task: Apply the optimization verification test to determine why the system returned "The parcel arrived on Monday." What values would you compare, and how would those comparisons tell you whether the problem is in the search procedure or in the scoring rule?
Sample answer: First, I would evaluate and . Next, I would compare them.
- If is greater than , then the scoring rule is favoring the correct translation. In that case, the approximate search procedure is likely at fault because it failed to return the highest-scoring candidate.
- If is not greater than , then the scoring rule is giving the wrong answer a score that is too high, so the scoring rule should be corrected.
Key points:
- Measure and .
- Compare with .
- If the correct sentence scores higher, investigate the search procedure.
- If it does not, investigate the scoring rule.
Rubric: A strong answer will name the two candidate sentences, state that both scores should be computed, and explain how the comparison identifies whether the fault lies in search or in scoring.
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
Classifying development-set mistakes with optimization verification
Approximate Scoring Followed by Approximate Search
Checking Whether a Translation Error Comes from Search or Scoring
Checking Reward Quality in Reinforcement Learning
A useful human output for optimization verification
What does this optimization check suggest when the reference candidate scores higher than the algorithm’s output?
Using the Optimization Verification Test
Optimization Check Symbols
How to carry out an optimization verification check
Using the Optimization Verification Check
Debugging a Translation Decoder
When to Attribute an Error to Optimization
When Is an Optimization Check Useful?
Checking the Source of a Performance Problem
Optimization checks can isolate the source of a training problem