Evaluate a Multi-Label Topic Tagger for YouTube Videos

Last updated: November 29, 2026

Quick Overview

A model assigns zero or more topic labels (gaming, cooking, music, and about 3,000 others) to each YouTube video. Explain which metrics you would use to evaluate it, how they behave on rare topics, and how thresholds interact with them.

Google
Machine Learning
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Medium

0

0

0 solved


A model assigns zero or more topic labels (gaming, cooking, music, and about 3,000 others) to each YouTube video. Explain which metrics you would use to evaluate it, how they behave on rare topics, and how thresholds interact with them.

Topic labels feed YouTube search, recommendations, and advertiser brand-safety controls, each with different tolerance for errors. The interviewer checks whether you can evaluate multi-label output both per label and per video, handle a long tail, and separate ranking quality from threshold choice.

What the Interviewer Expects
  • Distinguishes label-centric and example-centric views of multi-label evaluation
  • Uses per-label average precision and its macro and micro means
  • Explains Hamming loss and subset accuracy and why they are weak here
  • Handles long-tail labels with few positives and confidence intervals
  • Connects per-label thresholds to downstream use cases
Key Topics to Cover
multi-label classification
average precision
Hamming loss
long-tail labels
threshold selection
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How do you evaluate when ground truth labels are incomplete (missing tags are not negatives)?
  • Advertisers care about brand-safety labels much more than others. How does that change evaluation?
  • How would you exploit the label hierarchy, such as Sports then Basketball, in the metric?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Ask how labels were collected (creator tags, rater annotations), whether missing labels mean negative or unknown, how many positives the rarest labels have, and who consumes each label. Brand safety a...

Approach

Separate two questions. Ranking quality: for each label, does the model score positive videos above negative ones? Measure with per-label average precision (area under the PR curve), which is threshol...


Submit Your Answer
Markdown supported