Practice
1. For a fine-tuning pipeline using RLHF, which metric is most appropriate to evaluate the alignment of model outputs with human preferences?
easy
Solution
Step 1: Understand the purpose of RLHF
RLHF aims to align model outputs with human preferences, which is best evaluated by a reward score reflecting human feedback.Step 2: Eliminate wrong options
A: Accuracy is too generic. B: Precision is for binary classification. D: F1 Score is for balance between precision and recall, not alignment.Final Answer:
Option B -> Option BQuick Check:
Reward Score reflects human feedback. [OK]
Hint: Reward Score reflects human feedback. [OK]
Common Mistakes:
2. When choosing between behavioral signals and device fingerprinting for bot detection, which is more suitable for detecting sophisticated bots and why?
medium
Solution
Step 1: Consider sophistication of bots.
Sophisticated bots can mimic device fingerprints but struggle with human-like behavior.Step 2: Eliminate wrong options.
Device fingerprinting is easier to spoof; implementation ease is irrelevant to detection capability.Final Answer:
Option A -> Option AQuick Check:
Sophisticated bots struggle with human behavior [OK]
Hint: Sophisticated bots struggle with human behavior [OK]
Common Mistakes:
3. In a two-stage retrieval system, when should you prioritize a simpler candidate generation model over a complex one?
medium
Solution
Step 1: Consider resource allocation
If the ranking stage is computationally expensive, a simpler candidate generation model can save resources for the ranking stage.Step 2: Eliminate wrong options
When the dataset is small and computation resources are abundant. is incorrect because a small dataset doesn't necessitate a simpler model. When precision is more important than recall in the candidate generation stage. is incorrect because recall is typically prioritized in candidate generation. When the ranking model is not capable of handling large candidate sets. is incorrect because the ranking model should handle the candidate set size.Final Answer:
Option A -> Option AQuick Check:
Save resources for ranking if it's costly. [OK]
Hint: Save resources for ranking if it's costly. [OK]
Common Mistakes:
4. As the user base scales 10x, which component of a DLRM-based CTR prediction system is most likely to become a bottleneck?
hard
Solution
Step 1: Consider scaling effects on components.
Embedding tables grow with user and feature diversity.Step 2: Eliminate wrong options.
Preprocessing (A) and inference (B) scale with compute resources. Storage (D) is less critical than real-time constraints.Final Answer:
Option D -> Option DQuick Check:
Embedding tables grow with scale. [OK]
Hint: Embedding tables grow with scale. [OK]
Common Mistakes:
5. As the scale of data increases in a semantic search system using Bi-Encoders, which component is likely to fail first and why?
hard
Solution
Step 1: Analyze the impact of data scale on components
As data scales, the computational load for embedding computation increases significantly.Step 2: Eliminate wrong options
Query processing and network bandwidth are affected but not as critically as embedding computation. Document storage is a concern but not a failure point.Final Answer:
Option D -> Option DQuick Check:
Scale = embedding load [check]
Hint: Scale = embedding load [check]
Common Mistakes:
