Practice
1. For evaluating an LLM's ability to generate coherent text, which metric is most appropriate?
easy
Solution
Step 1: Identify metrics for text generation
BLEU score measures text generation quality by comparing n-grams.Step 2: Eliminate wrong options
Accuracy, precision, and recall are more suited for classification tasks, not text coherence.Final Answer:
Option C -> Option CQuick Check:
BLEU for text coherence, not classification. [OK]
Hint: BLEU for text coherence, not classification. [OK]
Common Mistakes:
2. Which metric is most appropriate for evaluating the performance of a Two-Tower Model for Retrieval?
easy
Solution
Step 1: Identify the goal of the retrieval model
The goal is to rank items effectively for users, making ranking metrics like Precision at K suitable.Step 2: Eliminate wrong options
Mean Squared Error (MSE) (MSE) is for regression tasks. F1 Score (F1 Score) is for classification tasks. Log Loss (Log Loss) is also for classification tasks.Final Answer:
Option D -> Option DQuick Check:
Use ranking metrics like Precision at K. [OK]
Hint: Use ranking metrics like Precision at K. [OK]
Common Mistakes:
3. In an LLM serving system, what is a likely failure mode if the KV Cache is not properly managed?
medium
Solution
Step 1: Identify the role of KV Cache.
KV Cache prevents redundant computations, reducing latency.Step 2: Eliminate wrong options.
Batching inefficiencies affect throughput, not KV Cache. Memory issues are possible but less direct. Speculative decoding affects accuracy, not KV Cache.Final Answer:
Option D -> Option DQuick Check:
KV Cache mismanagement leads to redundant computations. [OK]
Hint: KV Cache mismanagement leads to redundant computations. [OK]
Common Mistakes:
4. What is a common failure mode when lineage tracking is not implemented in a model registry?
medium
Solution
Step 1: Understand lineage tracking purpose
Lineage tracking ensures that all steps and data leading to a model's creation are documented, aiding reproducibility.Step 2: Eliminate wrong options
Increased model training time is incorrect as lineage doesn't affect training time. Higher model deployment costs is wrong because deployment costs aren't directly related to lineage. Decreased model accuracy is incorrect as accuracy isn't directly impacted by lineage tracking.Final Answer:
Option A -> Option AQuick Check:
Lineage = Reproducibility [OK]
Hint: Lineage = Reproducibility [OK]
Common Mistakes:
5. As a content-based filtering system scales to 10x more items, which component is most likely to become a bottleneck?
hard
Solution
Step 1: Analyze scaling impact
Scaling to more items increases the demand for computing and updating item embeddings, making it a potential bottleneck.Step 2: Eliminate wrong options
A: User profile storage scales with users, not items. C: Recommendation generation is more affected by user scale. D: Interaction logging is more about user activity than item count.Final Answer:
Option A -> Option AQuick Check:
More items strain embedding computation. [OK]
Hint: More items strain embedding computation. [OK]
Common Mistakes:
