Practice
1. For a multimodal embedding pipeline, which metric is most appropriate to evaluate the alignment between text and image embeddings?
easy
Solution
Step 1: Understand the evaluation goal.
We need to evaluate the alignment between embeddings, which is best measured by similarity metrics.Step 2: Eliminate wrong options.
Accuracy and Precision are classification metrics, and Mean Squared Error is for regression, not similarity.Final Answer:
Option D -> Option DQuick Check:
Cosine Similarity measures alignment. [OK]
Hint: Cosine Similarity measures alignment. [OK]
Common Mistakes:
2. 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:
3. In session-based recommendation systems, which model is most suitable for capturing sequential dependencies in user behavior?
easy
Solution
Step 1: Identify models that capture sequences
RNNs are designed to handle sequential data by maintaining a hidden state that captures information from previous inputs.Step 2: Eliminate non-sequential models
Random Forest, SVM, and KNN do not inherently capture sequential dependencies.Final Answer:
Option B -> Option BQuick Check:
RNNs remember sequences. [OK]
Hint: RNNs remember sequences. [OK]
Common Mistakes:
4. When transitioning from traditional collaborative filtering to neural collaborative filtering, which trade-off is most significant?
medium
Solution
Step 1: Understand neural collaborative filtering.
Neural CF models are more flexible but require more data to train effectively.Step 2: Eliminate wrong options.
Options A and D are incorrect as neural models are less interpretable and more complex. Increased computational cost vs. improved scalability is incorrect as neural models are computationally expensive and not necessarily more scalable.Final Answer:
Option B -> Option BQuick Check:
Neural CF = more data, more flexibility [OK]
Hint: Neural CF = more data, more flexibility [OK]
Common Mistakes:
5. A search ranking system suddenly shows irrelevant results at the top. What is the most likely failure mode?
medium
Solution
Step 1: Analyze the symptom
Irrelevant results suggest a mismatch in understanding query-document relevance.Step 2: Identify the most likely cause
Feature mismatch can lead to poor relevance scoring.Final Answer:
Option A -> Option AQuick Check:
Feature mismatch leads to poor relevance. [OK]
Hint: Feature mismatch leads to poor relevance. [OK]
Common Mistakes:
