When would you add an explicit 'other' class instead of confidence-based rejection for unknown inputs?

Quick Overview

Asks when a classifier should get an explicit other or background class and when it should reject unknown inputs by a confidence or distance score. It tests open-set reasoning, the limits of sampled negatives, and how the two approaches combine in production.

When would you add an explicit 'other' class instead of confidence-based rejection for unknown inputs?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

A classifier in production will see inputs that belong to none of its target classes. When would you add an explicit "other" or background class instead of relying on confidence-based rejection for unknown inputs? ```hint Can you sample them? Ask whether you can collect labeled examples that look like the unknowns the system will really see in production, and whether that set stays stable over time. ``` ```hint Something truly new Think about what each approach does with an input unlike anything in the training data, including the negatives you collected. ``` ### What a Strong Answer Covers - The conditions under which an explicit background class works well. - The conditions under which score-based rejection is the better fit. - The failure modes of a background class. - How the two approaches can be combined, and which scores a rejection threshold can use. ### Follow-up Questions - How would you choose the rejection threshold, and on what data? - How would you evaluate an open-set classifier before launch? - Why can a softmax classifier be highly confident on an input unlike anything it was trained on? - What would you do if the background class made up most of the training data?

Overview: Asks when a classifier should get an explicit other or background class and when it should reject unknown inputs by a confidence or distance score. It tests open-set reasoning, the limits of sampled negatives, and how the two approaches combine in production.

General logo
General
Nov 25, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

A classifier in production will see inputs that belong to none of its target classes. When would you add an explicit "other" or background class instead of relying on confidence-based rejection for unknown inputs?

What a Strong Answer Covers Guidance

  • The conditions under which an explicit background class works well.
  • The conditions under which score-based rejection is the better fit.
  • The failure modes of a background class.
  • How the two approaches can be combined, and which scores a rejection threshold can use.

Follow-up Questions Guidance

  • How would you choose the rejection threshold, and on what data?
  • How would you evaluate an open-set classifier before launch?
  • Why can a softmax classifier be highly confident on an input unlike anything it was trained on?
  • What would you do if the background class made up most of the training data?