Practice
1. When choosing between pairwise and listwise approaches for a ranking task, which scenario favors the listwise approach?
medium
Solution
Step 1: Identify the scenario where listwise is beneficial.
Listwise approaches are best when optimizing the entire list's order is crucial.Step 2: Eliminate wrong options.
Pairwise is better for individual relevance, and listwise can be resource-intensive, making A and B incorrect.Final Answer:
Option A -> Option AQuick Check:
Listwise = full list optimization [OK]
Hint: Listwise = full list optimization [OK]
Common Mistakes:
2. In a multimodal system, if the model's performance suddenly drops after integrating a new dataset, what is the most likely failure mode?
medium
Solution
Step 1: Analyze the impact of new data
Integrating a new dataset can introduce domain differences that the model isn't trained to handle.Step 2: Identify the most likely cause
Domain mismatch is a common issue when adding new datasets, leading to performance drops.Final Answer:
Option A -> Option AQuick Check:
New data can cause domain mismatch issues. [OK]
Hint: New data can cause domain mismatch issues. [OK]
Common Mistakes:
3. In a RAG system, when should you prefer a dense retriever over a sparse retriever?
medium
Solution
Step 1: Understand retriever types.
Dense retrievers are better for large, diverse corpora as they can capture semantic meaning more effectively.Step 2: Eliminate wrong options.
Sparse retrievers are more interpretable and efficient for small, domain-specific corpora.Final Answer:
Option D -> Option DQuick Check:
Dense for large, diverse data. [OK]
Hint: Dense for large, diverse data. [OK]
Common Mistakes:
4. As the number of transactions increases tenfold, which component of a real-time fraud detection system is most likely to fail first?
hard
Solution
Step 1: Consider the impact of increased transaction volume.
Increased volume stresses components handling real-time processing.Step 2: Identify the bottleneck.
The real-time scoring engine is most likely to struggle with increased load.Final Answer:
Option A -> Option AQuick Check:
Real-time engine struggles with high load. [OK]
Hint: Real-time engine struggles with high load. [OK]
Common Mistakes:
5. As the dataset size increases 10x in a FAISS-based vector search system, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Consider the impact of dataset size increase.
Index storage will grow significantly, potentially becoming a bottleneck.Step 2: Eliminate wrong options.
Search algorithm, dimensionality reduction, and quantization are less affected by size increase compared to storage.Final Answer:
Option A -> Option AQuick Check:
Index storage grows with dataset size. [OK]
Hint: Index storage grows with dataset size. [OK]
Common Mistakes:
