Practice
1. For a semantic search system using a Bi-Encoder, which metric is most appropriate to evaluate the retrieval performance?
easy
Solution
Step 1: Understand retrieval evaluation metrics
Precision@K measures the relevance of the top K retrieved documents, which is crucial for retrieval tasks.Step 2: Eliminate wrong options
Accuracy and F1 Score are more suited for classification tasks, Mean Squared Error is for regression.Final Answer:
Option B -> Option BQuick Check:
Precision@K = retrieval relevance [check]
Hint: Precision@K = retrieval relevance [check]
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. As a news feed system scales to 10x more users, which component is most likely to become a bottleneck first?
hard
Solution
Step 1: Analyze scaling challenges
The Recommendation Engine processes user data to generate personalized feeds, which becomes computationally intensive as user numbers grow.Step 2: Consider other components
B: Content Delivery Network scales well with caching. C: User Interface is less affected by user count. D: Data Storage can be expanded more easily than processing power.Final Answer:
Option B -> Option BQuick Check:
Recommendation Engine struggles first with user scale. [OK]
Hint: Recommendation Engine struggles first with user scale. [OK]
Common Mistakes:
4. As a recommendation system using neural collaborative filtering scales to 10x more users, which component is most likely to become a bottleneck?
hard
Solution
Step 1: Consider the impact of scaling on neural CF.
Increased data volume significantly affects model training time.Step 2: Eliminate wrong options.
Options A and D are less likely bottlenecks as storage and feature extraction can be optimized. Real-time recommendation latency. is affected but not as critically as training time.Final Answer:
Option A -> Option AQuick Check:
Scaling = training time bottleneck [OK]
Hint: Scaling = training time bottleneck [OK]
Common Mistakes:
5. As the number of users and items increases in a session-based recommendation system, which component is likely to become a bottleneck first?
hard
Solution
Step 1: Consider scaling impacts
Real-time inference latency often becomes a bottleneck as the system scales, due to increased computational demands.Step 2: Eliminate less likely bottlenecks
Model training time and data storage can be managed with batch processing and scalable storage solutions; feature extraction is typically pre-computed.Final Answer:
Option C -> Option CQuick Check:
Inference latency scales poorly. [OK]
Hint: Inference latency scales poorly. [OK]
Common Mistakes:
