Why can macro-F1 paint an overly pessimistic or noisy picture in the presence of long-tail rare classes?

Quick Overview

Asks why macro-F1 can look too low or swing between runs when a classification problem has many rare classes. Tests understanding of macro averaging, small-sample variance in per-class F1, degenerate cases, and better ways to report long-tail performance.

Why can macro-F1 paint an overly pessimistic or noisy picture in the presence of long-tail rare classes?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why can macro-F1 paint an overly pessimistic or noisy picture in the presence of long-tail rare classes? ```hint Look at the weights Compare how much a class with 5 test examples and a class with 50,000 contribute to the average. ``` ```hint Count the examples Work out how much one more correct prediction changes recall for a class with only a few positives in the test set. ``` ### What a Strong Answer Covers - How macro averaging weights classes, and what that means with a long tail - Why per-class F1 on small support has high variance, and how that shows up in model comparisons - The degenerate cases that push per-class F1 to zero or leave it undefined - How to report class-level performance more honestly than with a single macro-F1 number ### Follow-up Questions - Product says the rare classes matter most, for example safety categories. Does that change your view of macro-F1, and what would you report? - How would you build a confidence interval for macro-F1 when some classes have only a handful of test examples? - Under argmax, your model almost never predicts the low-prior classes. What would you change before judging its tail performance? - When is micro-F1 equal to accuracy, and what does that imply about using it as the alternative?

Overview: Asks why macro-F1 can look too low or swing between runs when a classification problem has many rare classes. Tests understanding of macro averaging, small-sample variance in per-class F1, degenerate cases, and better ways to report long-tail performance.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why can macro-F1 paint an overly pessimistic or noisy picture in the presence of long-tail rare classes?

What a Strong Answer Covers Guidance

  • How macro averaging weights classes, and what that means with a long tail
  • Why per-class F1 on small support has high variance, and how that shows up in model comparisons
  • The degenerate cases that push per-class F1 to zero or leave it undefined
  • How to report class-level performance more honestly than with a single macro-F1 number

Follow-up Questions Guidance

  • Product says the rare classes matter most, for example safety categories. Does that change your view of macro-F1, and what would you report?
  • How would you build a confidence interval for macro-F1 when some classes have only a handful of test examples?
  • Under argmax, your model almost never predicts the low-prior classes. What would you change before judging its tail performance?
  • When is micro-F1 equal to accuracy, and what does that imply about using it as the alternative?