Practice
1. 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:
2. In a pairwise learning to rank system, what is a common failure mode if the model is not performing well?
medium
Solution
Step 1: Identify the failure mode specific to pairwise ranking.
Pairwise models can fail if they don't capture the relative order of item pairs.Step 2: Eliminate wrong options.
Overfitting and inappropriate loss functions are generic issues, and pairwise doesn't consider the entire list, making C incorrect.Final Answer:
Option B -> Option BQuick Check:
Pairwise = focus on item pairs [OK]
Hint: Pairwise = focus on item pairs [OK]
Common Mistakes:
3. At 10x data scale in a fine-tuning pipeline using SFT, RLHF, and DPO, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Analyze the impact of scaling on each component
DPO involves handling and optimizing large volumes of data, which can become a bottleneck as data scales.Step 2: Eliminate wrong options
B: SFT scales with model size, not data volume. C: RLHF is more about feedback processing, not data volume. D: Deployment infrastructure is affected by model size, not data volume.Final Answer:
Option A -> Option AQuick Check:
DPO bottlenecks with data scale. [OK]
Hint: DPO bottlenecks with data scale. [OK]
Common Mistakes:
4. As the user base of an ML platform grows 10x, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Consider the impact of scaling on each component.
Serving Infrastructure is directly impacted by increased user requests, making it a likely bottleneck.Step 2: Eliminate wrong options.
Model Training and Data Ingestion are less affected by user growth, and Feature Store scales with data, not users.Final Answer:
Option C -> Option CQuick Check:
Serving scales with user requests. [OK]
Hint: Serving scales with user requests. [OK]
Common Mistakes:
5. As the volume of emails increases 10x, which component of a spam detection system is most likely to fail first?
hard
Solution
Step 1: Consider scalability of components
Real-time inference engines often struggle with increased load due to latency constraints.Step 2: Eliminate components less affected by scale
Feature extraction (A) and data storage (D) can be scaled horizontally. Model training (B) is not real-time.Final Answer:
Option C -> Option CQuick Check:
Inference engines struggle with scale. [OK]
Hint: Inference engines struggle with scale. [OK]
Common Mistakes:
