Practice
1. For an ad auction system aiming to maximize revenue, which metric should be optimized?
easy
Solution
Step 1: Align metric with objective
To maximize revenue, the system should optimize for Expected Revenue, which considers both CTR and bid amounts.Step 2: Eliminate wrong options
- Click-through Rate (CTR): Measures engagement, not directly linked to revenue.
- Conversion Rate: Focuses on post-click actions, not directly on revenue.
- Ad Impressions: Measures visibility, not revenue.
Final Answer:
Option D -> Option DQuick Check:
Optimize Expected Revenue for revenue goals. [OK]
Hint: Optimize Expected Revenue for revenue goals. [OK]
Common Mistakes:
2. In the context of a fine-tuning pipeline using SFT, RLHF, and DPO, which component is primarily responsible for aligning the model's outputs with human preferences?
easy
Solution
Step 1: Identify the role of each component
SFT is used for initial model training, RLHF aligns outputs with human preferences, DPO optimizes data preprocessing, and hyperparameter tuning adjusts model parameters.Step 2: Eliminate wrong options
A: SFT is for initial training, not alignment. C: DPO is unrelated to output alignment. D: Hyperparameter tuning is for model performance, not alignment.Final Answer:
Option A -> Option AQuick Check:
RLHF aligns with human feedback. [OK]
Hint: RLHF aligns with human feedback. [OK]
Common Mistakes:
3. In the context of a Two-Tower Model for Retrieval, what is the primary role of the user tower?
easy
Solution
Step 1: Understand the user tower's role
The user tower is responsible for generating embeddings that represent users based on their features.Step 2: Eliminate wrong options
To generate item embeddings based on user interactions. is incorrect because item embeddings are generated by the item tower. To compute similarity scores between users and items. is incorrect because similarity scores are computed after embeddings are generated. To directly predict user-item interaction scores. is incorrect because the model predicts interaction scores using both towers' outputs.Final Answer:
Option B -> Option BQuick Check:
User tower generates user embeddings. [OK]
Hint: User tower generates user embeddings. [OK]
Common Mistakes:
4. For a visual search system, which metric is most appropriate to evaluate the quality of the image embeddings?
easy
Solution
Step 1: Understand the evaluation context
Precision at K measures how many of the top K retrieved items are relevant, which is crucial for search systems.Step 2: Eliminate wrong options
Mean Squared Error is for regression, Accuracy and F1 Score are for classification, not retrieval quality.Final Answer:
Option D -> Option DQuick Check:
Search quality = Precision at K. [OK]
Hint: Search quality = Precision at K. [OK]
Common Mistakes:
5. When designing an intent classification system, should you prioritize using a deep learning model or a simpler model like logistic regression?
medium
Solution
Step 1: Consider dataset size and complexity.
Deep learning models require large datasets to perform well, while simpler models can suffice for smaller datasets.Step 2: Evaluate the trade-offs.
Always use deep learning for better accuracy: Deep learning isn't always better, especially with small datasets. Use logistic regression for faster training times: Logistic regression is faster but may not capture complex patterns. Use logistic regression if interpretability is crucial: Logistic regression is interpretable but may lack accuracy on complex tasks. Use deep learning if you have a large labeled dataset: Deep learning is suitable for large datasets where complex patterns exist.Final Answer:
Option B -> Option BQuick Check:
Deep learning needs large datasets. [OK]
Hint: Deep learning needs large datasets. [OK]
Common Mistakes:
