Semantic F1 Scores: Fair Evaluation Under Fuzzy Class Boundaries

Georgios Chochlakis, Jackson Trager, Vedant Jhaveri, Nikhil Ravichandran, Alexandros Potamianos +1 more
9/25/2025
cs.AI

No official code found. Best implementation: gchochla/semantic-f1-score (6 stars, MIT, last commit 2025-11-20).

Abstract

We propose Semantic F1 Scores, novel evaluation metrics for subjective or fuzzy multi-label classification that quantify semantic relatedness between predicted and gold labels. Unlike the conventional F1 metrics that treat semantically related predictions as complete failures, Semantic F1 incorporates a label similarity matrix to compute soft precision-like and recall-like scores, from which the Semantic F1 scores are derived. Unlike existing similarity-based metrics, our novel two-step precision-recall formulation enables the comparison of label sets of arbitrary sizes without discarding labels or forcing matches between dissimilar labels. By granting partial credit for semantically related but nonidentical labels, Semantic F1 better reflects the realities of domains marked by human disagreement or fuzzy category boundaries. In this way, it provides fairer evaluations: it recognizes that categories overlap, that annotators disagree, and that downstream decisions based on similar predictions lead to similar outcomes. Through theoretical justification and extensive empirical validation on synthetic and real data, we show that Semantic F1 demonstrates greater interpretability and ecological validity. Because it requires only a domain-appropriate similarity matrix, which is robust to misspecification, and not a rigid ontology, it is applicable across tasks and modalities.

View on arXivView PDF

Code Implementations(1)

MIT

Semantic F1 Score: Fair Evaluation Under Fuzzy Class Boundaries

60PythonSep 25, 202511 months agoMIT
f1-scoremultilabel-classificationmultilabel-regressionsemantic

Similar Papers

Cite this paper

@article{chochlakis2025semantic,
  title  = {Semantic F1 Scores: Fair Evaluation Under Fuzzy Class Boundaries},
  author = {Georgios Chochlakis and Jackson Trager and Vedant Jhaveri and Nikhil Ravichandran and Alexandros Potamianos and Shrikanth Narayanan},
  year   = {2025},
  eprint = {2509.21633},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.21633v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.21633.svg)](https://codeofpaper.com/paper/2509.21633)

Discussion