Taxonomy Aware Evaluation for Hierarchical Classification

This direction is split into other directions: hierarchical error weighting. Its last version stays readable and citable here.

Version 1 of 192 papers125 conceptsfrozen 2026-10-04

In traditional machine learning, evaluation is often a binary affair: a model is either right or wrong. If a classifier is asked to identify a "Golden Retriever" and instead predicts "Labrador," it receives the same zero score as if it had predicted "Toaster." This "flat" approach to evaluation ignores the rich, structured relationships inherent in the real world, where some mistakes are "smarter" than others.

Recent research argues that by incorporating taxonomic hierarchies into evaluation, we can better measure a model's conceptual alignment, reliability, and practical utility.

The Failure of Flat Metrics

Standard metrics like Top-1 Accuracy or Micro-F1 treat all classes as equidistant. However, as Konstantinos Thomas and Giorgos Stamou demonstrate in Fine-Grained ImageNet Classification in the Wild, a model might maintain high "semantic reasonableness" even when its exact-match accuracy drops. For instance, a model that confuses two closely related cat breeds is fundamentally more robust than one that violates basic biological hierarchies by confusing an animal with an inanimate object.

When we ignore these relationships, we lose the ability to distinguish between:

  1. Near-misses: Misclassifying a leaf node as its sibling (e.g., "Siamese" vs. "Persian").
  2. Generalization errors: Predicting a parent category instead of a specific leaf (e.g., "Bird" vs. "California Gull").
  3. Catastrophic errors: Predicting a category from a completely unrelated branch (e.g., "Mammal" vs. "Vehicle").

Measuring Hierarchical Distance

To fix this, researchers have proposed various ways to quantify the "distance" between a prediction and the truth within a taxonomy. Roman Plaud and Matthieu Labeau suggest using Hierarchical F1-scores in Revisiting Hierarchical Text Classification: Inference and Metrics. This metric utilizes ancestor overlap—if a model correctly identifies that a "Golden Retriever" is a "Dog" and a "Vertebrate," it receives partial credit for those shared higher-level nodes, even if it misses the specific breed.

Other frameworks, such as the TAME metric introduced by Mirantha Jayathilaka and Uli Sattler, or the OmAP metric for audio tagging, use the shortest-path distance within an ontology graph to reweight errors. By penalizing errors based on how many "steps" away they are in the tree, these metrics reward models that stay within the correct semantic neighborhood.

Information Theory and Error Severity

Not all nodes in a hierarchy are equally informative. Predicting "Animal" is technically correct for almost any pet, but it provides very little information. Enrique Amigó and Agustín D. Delgado address this in Evaluating Extreme Hierarchical Multi-label Classification by using the Information Contrast Model (ICM). This approach uses information theory to reward systems for identifying rare, specific labels while scaling penalties based on the information distance between the prediction and the ground truth.

Similarly, Pedro Morgado and Nuno Vasconcelos introduced the Correctly Predicted Bits (CPB) metric in Solving Long-Tailed Recognition with Deep Realistic Taxonomic Classifier. This metric treats classification as a process of recovering information; a model that correctly identifies a coarse category still recovers some "bits" of the truth, whereas a flat metric would record a total loss of information.

Accurate but Imprecise: The Safety Trade-off

In high-stakes domains like medicine, being "accurate but imprecise" is often safer than being "precise but wrong." Seungseop Lim and colleagues argue in H-DDx: A Hierarchical Evaluation Framework for Differential Diagnosis that flat metrics fail to capture the clinical utility of an AI that suggests a broad but correct disease family (e.g., "Viral Respiratory Infection") when it cannot be sure of the specific strain.

This leads to the concept of Hierarchical Selective Classification. As explored by Shani Goren, models can be designed to "retreat" up the taxonomic tree when uncertainty is high. Instead of guessing a specific leaf node and risking a catastrophic error, the model predicts a confident ancestor node. Evaluation then becomes a trade-off between risk (the probability the predicted node is not an ancestor of the truth) and coverage (how much information or specificity the model provides).

Aligning Models with Human Logic

Ultimately, taxonomy-aware evaluation is about Abstraction Alignment. Angie Boggust and Arvind Satyanarayan suggest that by mapping model uncertainty onto hierarchical graphs, we can visualize whether a model’s internal logic matches structured human knowledge.

When we evaluate models through the lens of a hierarchy, we stop asking "Did the model get the exact label?" and start asking "Does the model understand the world?" This shift reveals that many models are more capable than flat metrics suggest, while also highlighting the specific, nonsensical failures that need to be addressed to make AI truly robust for real-world deployment.

Papers in this version

Showing 60 of 92 papers.

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_taxonomy_aware_evaluation_for_hierarchic_c45194d4,
  title = {Taxonomy Aware Evaluation for Hierarchical Classification},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/taxonomy-aware-evaluation-for-hierarchical-classification/rdr_c45194d455cc43cdbf9cf437c814fe35},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-01},
}

This exact version (version 1, frozen text):

@misc{lacuna_taxonomy_aware_evaluation_for_hierarchic_c45194d4_v1,
  title = {Taxonomy Aware Evaluation for Hierarchical Classification},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/taxonomy-aware-evaluation-for-hierarchical-classification/rdr_c45194d455cc43cdbf9cf437c814fe35/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-01},
}