Practice
1. For an ML monitoring platform focused on drift detection, which metric is most appropriate to measure the effectiveness of the drift detection module?
easy
Solution
Step 1: Understand the purpose of drift detection
Drift detection aims to identify changes in data distribution.Step 2: Match metrics to purpose
KL Divergence measures the difference between two probability distributions, making it suitable for drift detection.Final Answer:
Option B -> Option BQuick Check:
Distribution change = KL Divergence [OK]
Hint: Distribution change = KL Divergence [OK]
Common Mistakes:
2. 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:
3. When transitioning from traditional collaborative filtering to neural collaborative filtering, which trade-off is most significant?
medium
Solution
Step 1: Understand neural collaborative filtering.
Neural CF models are more flexible but require more data to train effectively.Step 2: Eliminate wrong options.
Options A and D are incorrect as neural models are less interpretable and more complex. Increased computational cost vs. improved scalability is incorrect as neural models are computationally expensive and not necessarily more scalable.Final Answer:
Option B -> Option BQuick Check:
Neural CF = more data, more flexibility [OK]
Hint: Neural CF = more data, more flexibility [OK]
Common Mistakes:
4. As the number of concurrent users increases tenfold, which component of the LLM serving infrastructure is most likely to become a bottleneck first?
hard
Solution
Step 1: Consider the impact of scaling.
Network bandwidth is often the first bottleneck as user requests increase.Step 2: Eliminate wrong options.
Batching can handle more requests efficiently. KV Cache scales with memory, not users. Speculative Decoding affects processing, not network.Final Answer:
Option A -> Option AQuick Check:
Network bandwidth limits scale first. [OK]
Hint: Network bandwidth limits scale first. [OK]
Common Mistakes:
5. As a recommendation system using neural collaborative filtering scales to 10x more users, which component is most likely to become a bottleneck?
hard
Solution
Step 1: Consider the impact of scaling on neural CF.
Increased data volume significantly affects model training time.Step 2: Eliminate wrong options.
Options A and D are less likely bottlenecks as storage and feature extraction can be optimized. Real-time recommendation latency. is affected but not as critically as training time.Final Answer:
Option A -> Option AQuick Check:
Scaling = training time bottleneck [OK]
Hint: Scaling = training time bottleneck [OK]
Common Mistakes:
