Practice
1. For a real-time recommendation system, which metric should the ML platform optimize to ensure timely and relevant suggestions?
easy
Solution
Step 1: Understand the system's requirement.
Real-time systems need to provide timely responses, making latency crucial.Step 2: Eliminate wrong options.
MAE measures error, Precision and Recall focus on accuracy, not speed.Final Answer:
Option A -> Option AQuick Check:
Real-time needs low latency. [OK]
Hint: Real-time systems prioritize low latency. [OK]
Common Mistakes:
2. For a vision-language model designed to generate image captions, which metric should be prioritized to evaluate the quality of the generated captions?
easy
Solution
Step 1: Understand the task requirements
Image captioning requires evaluating the quality of generated text against reference captions.Step 2: Choose the appropriate metric
BLEU score is specifically designed to evaluate the quality of text generation tasks like translation and captioning.Final Answer:
Option B -> Option BQuick Check:
BLEU evaluates text generation quality. [OK]
Hint: BLEU evaluates text generation quality. [OK]
Common Mistakes:
3. In a fine-tuning pipeline using RLHF, what is a likely failure mode if the reward model is not properly calibrated?
medium
Solution
Step 1: Identify the role of the reward model
The reward model in RLHF is crucial for aligning model outputs with human preferences.Step 2: Eliminate wrong options
A: Overfitting is not directly related to reward model calibration. C: Latency is unrelated to reward model calibration. D: Computational resources are not directly affected by reward model calibration.Final Answer:
Option C -> Option CQuick Check:
Misalignment if reward model is off. [OK]
Hint: Misalignment if reward model is off. [OK]
Common Mistakes:
4. As the number of queries increases tenfold, which component of a search ranking system is most likely to become a bottleneck first?
hard
Solution
Step 1: Consider the impact of scaling queries
Ranking computation is resource-intensive and scales with query volume.Step 2: Evaluate other components
Query parsing and document retrieval are less computationally intensive, and index updating is not query-dependent.Final Answer:
Option A -> Option AQuick Check:
Ranking computation scales with query volume. [OK]
Hint: Ranking computation scales with query volume. [OK]
Common Mistakes:
5. As the dataset size increases 10x in a FAISS-based vector search system, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Consider the impact of dataset size increase.
Index storage will grow significantly, potentially becoming a bottleneck.Step 2: Eliminate wrong options.
Search algorithm, dimensionality reduction, and quantization are less affected by size increase compared to storage.Final Answer:
Option A -> Option AQuick Check:
Index storage grows with dataset size. [OK]
Hint: Index storage grows with dataset size. [OK]
Common Mistakes:
