Practice
1. Which metric is most appropriate for evaluating the diversity of a recommendation feed?
easy
Solution
Step 1: Understand each metric's focus
Precision and recall focus on relevance, while diversity score measures content variety.Step 2: Eliminate wrong options
Precision (A), recall (B), and F1-score (D) do not measure diversity. They focus on relevance and balance between precision and recall.Final Answer:
Option C -> Option CQuick Check:
Diversity score measures content variety [OK]
Hint: Diversity score measures content variety [OK]
Common Mistakes:
2. In the context of learning to rank, which approach directly optimizes for the entire list of items?
easy
Solution
Step 1: Identify the approach that considers the entire list.
The listwise approach optimizes the ranking of the entire list of items.Step 2: Eliminate wrong options.
Pointwise and pairwise approaches focus on individual items or pairs, not the entire list. Regression is not specific to ranking.Final Answer:
Option D -> Option DQuick Check:
Listwise = entire list focus [OK]
Hint: Listwise = entire list focus [OK]
Common Mistakes:
3. In a multimodal system that integrates vision and language models, which component is responsible for aligning the semantic meaning between image features and text embeddings?
easy
Solution
Step 1: Identify the role of each component
The cross-modal attention layer is designed to align and integrate features from different modalities, such as images and text.Step 2: Eliminate wrong options
Image encoder and text encoder process their respective modalities independently. The output classifier is responsible for final predictions, not alignment.Final Answer:
Option A -> Option AQuick Check:
Cross-modal aligns semantics between modalities. [OK]
Hint: Cross-modal aligns semantics between modalities. [OK]
Common Mistakes:
4. For a vision-language model designed to generate image captions, which metric should be prioritized to evaluate the quality of the generated captions?
easy
Solution
Step 1: Understand the task requirements
Image captioning requires evaluating the quality of generated text against reference captions.Step 2: Choose the appropriate metric
BLEU score is specifically designed to evaluate the quality of text generation tasks like translation and captioning.Final Answer:
Option B -> Option BQuick Check:
BLEU evaluates text generation quality. [OK]
Hint: BLEU evaluates text generation quality. [OK]
Common Mistakes:
5. When implementing a Guardrails System for LLMs, should you prioritize precision over recall, and why?
medium
Solution
Step 1: Understand the trade-off
Prioritizing precision minimizes false positives, crucial for user experience.Step 2: Eliminate wrong options
Recall is important but can lead to over-blocking, efficiency isn't the main concern, and equal importance isn't practical in all cases.Final Answer:
Option C -> Option CQuick Check:
Prioritize precision to avoid blocking legitimate content. [OK]
Hint: Prioritize precision to avoid blocking legitimate content. [OK]
Common Mistakes:
