When would you formulate a classification problem as multi-label rather than multi-class?

Quick Overview

Explain when a classification task should be framed as multi-label instead of multi-class. Tests whether you can recognize overlapping categories, judge the cost of forcing one label per input, and describe how the output layer, loss, thresholds and evaluation metrics change.

When would you formulate a classification problem as multi-label rather than multi-class?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When would you formulate a classification problem as multi-label rather than multi-class? ```hint Output layer Think about what a softmax output layer assumes about how the categories relate to each other. ``` ```hint Forcing one label Consider what you would have to do to the training labels to make an overlapping problem fit a single-label model, and what that costs. ``` ### What a Strong Answer Covers - The property of the categories that decides between the two formulations - Why forcing the problem into multi-class (one class per label combination, or keeping a single primary label) causes trouble - Cases where multi-class is still the right formulation - How the output layer, loss and decision thresholds change for multi-label - Metrics suited to multi-label evaluation ### Follow-up Questions - How would you choose a decision threshold for each label, and on what data? - Some labels appear in under 1% of examples. How does that affect training and the choice between micro-F1 and macro-F1? - How would you model correlations between labels, for example two tags that almost always appear together? - How do you build a stratified train/test split when each example can have several labels?

Overview: Explain when a classification task should be framed as multi-label instead of multi-class. Tests whether you can recognize overlapping categories, judge the cost of forcing one label per input, and describe how the output layer, loss, thresholds and evaluation metrics change.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

When would you formulate a classification problem as multi-label rather than multi-class?

What a Strong Answer Covers Guidance

  • The property of the categories that decides between the two formulations
  • Why forcing the problem into multi-class (one class per label combination, or keeping a single primary label) causes trouble
  • Cases where multi-class is still the right formulation
  • How the output layer, loss and decision thresholds change for multi-label
  • Metrics suited to multi-label evaluation

Follow-up Questions Guidance

  • How would you choose a decision threshold for each label, and on what data?
  • Some labels appear in under 1% of examples. How does that affect training and the choice between micro-F1 and macro-F1?
  • How would you model correlations between labels, for example two tags that almost always appear together?
  • How do you build a stratified train/test split when each example can have several labels?