Why exhaustive search is impractical in scored inference
Question: Consider a system that assigns a score to every candidate output sequence for a given input, such as a captioning model that ranks possible word sequences for an image. Explain why checking every possible output is not realistic, and describe the main drawback of relying on an approximate search method.
Sample answer: A complete search is not practical because the number of possible output sequences grows extremely quickly as the sequence length increases. If the system uses a vocabulary of 30,000 words and the output length is N, the number of possible sequences is on the order of (30,000)^N, which becomes far too large to evaluate exactly. For that reason, the system must use an approximate search procedure to find a high-scoring candidate. The limitation is that approximate search can miss the true best sequence, so it may return a good answer without guaranteeing the highest possible score.
Key points:
- The candidate space expands exponentially with sequence length.
- Exact enumeration becomes computationally impossible very quickly.
- Approximate search makes the problem manageable.
- Approximate search does not guarantee the top-scoring sequence.
Rubric: A strong response should explain both why exhaustive evaluation is infeasible and why approximate search is used, while also stating that the approximate method may fail to find the actual score-maximizing output.
0
1
Tags
Data Science
Machine Learning
Deep Learning
Supervised Learning
Dive into Deep Learning @ D2L
Machine Learning Strategy
Machine Learning Yearning @ DeepLearning.AI
Related
Beam Search as an Approximate Search Method
Why is it usually impractical to score every possible output sequence and choose the best one exactly?
True or False: Approximate search methods used during scored inference are guaranteed to return the highest-scoring result.
Because checking every possible output is impractical, a scored inference system must use a(n) _____ method to locate a high-scoring result.
Why is exact search impractical in a scored sentence-generation system?
Approximate search methods in scored inference are guaranteed to return the candidate S with the highest value of Score_A(S).
Search target in scored decoding
Match each inference term to its role in a scored output system.
Order the steps a speech transcription system uses to convert a recorded message into text.
Meaning of a Conditional Score in Classification
If each of N positions can be filled by any one of 50,000 words, then the number of distinct sequences of length N is (50,000)^N.
Approximate Search and Score Maximization
Match each search challenge to the concept that best describes it.
Order the reasoning steps that explain why approximate search is needed in scored inference.
Why exhaustive search is impractical in scored inference
Find out why an approximate decoder missed a better-scoring output.
State the cost of approximate search in large-scale scoring problems.