Should fraud detection be framed as binary fraud-versus-legitimate or as multi-class over fraud types?

Quick Overview

Asks whether a fraud detection model should predict fraud versus legitimate or classify transactions into fraud types. Tests reasoning about class imbalance, the quality of fraud-type labels, cost-based thresholds and two-stage or multi-task model designs.

Should fraud detection be framed as binary fraud-versus-legitimate or as multi-class over fraud types?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

You are building a fraud model for a payments product. Should fraud detection be framed as binary fraud-versus-legitimate or as multi-class over fraud types? Explain what would make you pick one framing over the other. ```hint Start from the decision Look at what the system does with each transaction and how many distinct actions there really are. ``` ```hint Count the labels Estimate how many labeled positives each fraud type would get, and ask how trustworthy the type labels are. ``` ### What a Strong Answer Covers - The business action the model drives and whether that action is binary - Class imbalance and what splitting the positives by type does to each class's sample size - The quality of fraud-type labels and where they come from - The conditions under which per-type modeling pays off - Hybrid designs and how the framing handles fraud types nobody has labeled yet ### Follow-up Questions - A transaction shows signs of both account takeover and card testing. How does that change the output layer and the loss? - In a two-stage design, how would you set the threshold of the fraud gate and how would you evaluate the type classifier behind it? - How would you catch a new fraud pattern that none of your labeled types covers? - In a multi-task model with auxiliary type heads, which metrics decide whether the type heads are worth keeping?

Overview: Asks whether a fraud detection model should predict fraud versus legitimate or classify transactions into fraud types. Tests reasoning about class imbalance, the quality of fraud-type labels, cost-based thresholds and two-stage or multi-task model designs.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

You are building a fraud model for a payments product. Should fraud detection be framed as binary fraud-versus-legitimate or as multi-class over fraud types? Explain what would make you pick one framing over the other.

What a Strong Answer Covers Guidance

  • The business action the model drives and whether that action is binary
  • Class imbalance and what splitting the positives by type does to each class's sample size
  • The quality of fraud-type labels and where they come from
  • The conditions under which per-type modeling pays off
  • Hybrid designs and how the framing handles fraud types nobody has labeled yet

Follow-up Questions Guidance

  • A transaction shows signs of both account takeover and card testing. How does that change the output layer and the loss?
  • In a two-stage design, how would you set the threshold of the fraud gate and how would you evaluate the type classifier behind it?
  • How would you catch a new fraud pattern that none of your labeled types covers?
  • In a multi-task model with auxiliary type heads, which metrics decide whether the type heads are worth keeping?