top of page

Why Do Macro and Micro F1 Give Different Pictures of an AI Classifier?

Oct 26
3 min read

Two reviewers evaluate the same classifier and report different F1 scores. Neither has necessarily made an arithmetic mistake. One may be averaging the label-level results, while the other combines prediction counts across labels before calculating the score.


The distinction matters when a business queue contains many routine requests and a small number of important exceptions. A summary can emphasize the common category or give each category equal influence. Neither weighting choice should remain hidden behind a dashboard label that says only “F1”.


Name the averaging method


Scikit-learn's F1 documentation defines macro averaging as an unweighted mean of label-level scores. Micro averaging pools true-positive, false-positive and false-negative counts. Weighted averaging uses each label's support, meaning its number of true examples.


These are different summaries of the same predictions. A higher number from one method does not mean the classifier improved. First verify that the dataset, labels and predictions are identical, then compare the aggregation definitions.


Specify whether the task is single-label or multilabel. The example below uses exactly one true category and one predicted category per record.


Check a small confusion table


Illustrative example: routine and exception requests


Consider one hundred records: ninety routine requests and ten exceptions. The classifier labels every record routine. For the routine class, there are ninety true positives, ten false positives and no false negatives. Its F1 is 180 divided by 190, approximately 0.9474.


For the exception class, there are no true positives, no false positives and ten false negatives. Its F1 is zero. Macro F1 is the average of 0.9474 and zero, approximately 0.4737.


Pooling across both labels gives ninety true positives, ten false positives and ten false negatives. Micro F1 is 180 divided by 200, or 0.90. The substantial gap is not contradictory: the calculations emphasize different things.


Keep the missed exception visible


The headline micro score hides a practically decisive fact: none of the ten exceptions was recognized. A team responsible for routing exceptions should see that failure directly, regardless of which overall metric it chooses.


Use the example to ask a business question: which category errors require a separate acceptance rule? A single aggregate cannot define the consequences of every mistake.


Specify the label set and empty cases


Record every label included in the calculation. A report that excludes a difficult category should not be compared casually with one that includes it. Also document what happens when a category is absent from both actual and predicted records.


Software options for undefined scores can affect the average. Preserve the chosen behavior and any warnings in the evaluation record. Do not silently drop inconvenient categories simply to keep the report free of missing values.


Include the number of actual examples per label. An excellent score on two examples supports a narrower conclusion than the same score on a broad, representative collection.


Use multiple views for a release decision


Start with a confusion table and a few representative errors. Add per-label precision, recall and F1 where appropriate. Then use the chosen aggregate to summarize a clearly stated objective.


Macro F1 can expose poor performance on less common categories, but it does not itself encode business impact. Equal category weighting is not automatically equal consequence. Establish any critical-category requirements separately, with the people who own the workflow.


When comparing model versions, hold the evaluation set and calculation options constant. If either changes, explain the change before presenting a score difference as progress.


Publish a metric contract beside the result


The contract should contain the task type, label set, averaging method, handling of undefined cases, dataset version and per-label support. Preserve the underlying predictions so another reviewer can reproduce the counts.


The guide on precision and recall for AI triage provides related error interpretation. For a FutureOS pilot, bring the confusion table and the decision each metric is meant to inform. That is more actionable than asking whether one unexplained score is “good enough”.


Editorial note


Editorial note: This article was prepared with AI assistance. Primary sources and the linked FutureOS article inventory were checked on October 26, 2026. Examples are illustrative and are not customer results. The current FutureOS introduction describes the project as being in prelaunch; this guide does not assert that a particular product feature, integration or service is available. The procedures are practical proposals to adapt and test in your own setting. No independent expert review is claimed. Start with a specific question, your relevant constraints and a small example of the result you need.


Comments


Commenting on this post isn't available anymore. Contact the site owner for more info.
bottom of page