Evaluating Extreme Hierarchical Multi-label Classification

Enrique Amigó, Agustín D. DelgadoACL 2022

Abstract

Evaluating Extreme Hierarchical Multi-label Classification (XHMC) presents significant challenges due to the vast number of unbalanced labels and complex hierarchical structures. Standard metrics often fail to capture the nuances of these tasks, such as the value of identifying rare labels or the proximity of errors within a tree. This paper proposes a new evaluation metric based on the Information Contrast Model (ICM), which leverages information theory to reward specificity and penalize errors based on hierarchical distance.

Introduction: The XHMC Challenge

Modern Natural Language Processing tasks, such as medical coding or automated social media tagging, increasingly involve Extreme Hierarchical Multi-label Classification. These tasks are characterized by:

  1. Extreme Scale: Thousands of potential labels.
  2. Hierarchical Organization: Labels exist within a tree structure (e.g., "Mitral Valve Prolapse" as a child of "Heart Disease").
  3. Multi-labeling: Single items often require multiple tags.
  4. Data Imbalance: A small subset of labels is frequent, while the vast majority are rare.

Traditional metrics like Accuracy or F-measure are inadequate in this context. In sparse datasets, a "lazy" model that predicts no labels can achieve high accuracy while providing zero utility. Furthermore, standard hierarchical metrics often fail to distinguish between common and rare categories, treating all errors with equal weight regardless of their informational value.

Methodology: The Information Contrast Model (ICM)

To address these shortcomings, we propose a metric based on the Information Contrast Model (ICM). The core principle is the measurement of "Information Content" (IC), defined as the negative log-likelihood of a category's occurrence. This ensures that rarer labels—which carry more information—are weighted more heavily.

The ICM metric incorporates several key technical features:

  • Information Additivity: Similarity is calculated by comparing the IC of the union and intersection of predicted and gold-standard label sets.
  • Hierarchical Integration: The intersection of two categories is determined by their Lowest Shared Occupant (LSO), their most specific common ancestor in the hierarchy.
  • Formal Property Adherence: The authors identified six desirable properties for XHMC metrics, including True Category Specificity and Hierarchical Proximity. As shown in the table below, ICM is uniquely positioned in its ability to satisfy nearly all these theoretical constraints.
Comparison of evaluation metrics against theoretical constraints for XHMC.

Evaluation and Results

The metric was validated using both synthetic and real-world datasets. The synthetic tests utilized a hierarchy of 700 categories to stress-test the metric's response to specific error types, such as substituting rare labels for common ones. The real-world case study involved the CIE-10-ES corpus, consisting of over 36,000 Spanish medical discharge reports with a 6-level hierarchy of 4,816 possible codes.

Key Findings

The experimental results highlight ICM's superior sensitivity and distinguishing power:

  • Sensitivity to Specificity: In synthetic trials, ICM demonstrated 100% sensitivity to True Category Specificity and Hierarchical Proximity. In contrast, standard metrics like Accuracy or Jaccard similarity performed no better than chance (approx. 50%).
  • Error Rate Robustness: ICM achieved a 96.10% sensitivity to error rates, significantly outperforming Example-Based F-measure (79.43%) and Hierarchical F-measure (81.03%).
  • Overcoming the "Safety Trap": In the medical dataset, where 84% of reports have no adverse events, standard metrics often favored an "ALL NONE" baseline. ICM effectively penalized this "safe" but useless strategy, highlighting the superior performance of complex SVM-based models in capturing rare, critical events.
Quantitative comparison of metric sensitivity across various testing scenarios.

Conclusion and Future Work

The Information Contrast Model provides a robust framework for evaluating XHMC systems by prioritizing rare, specific labels and accounting for hierarchical relationships. While ICM currently treats label hits as roughly additive—not yet strictly satisfying the "Label vs. Item Quantity" property—it represents a significant advancement over traditional metrics. Future research will focus on refining the formula to address this final property and exploring the integration of ICM as a loss function for training deep learning models.

Summary updated

BibTeX
@inproceedings{amigo2022evaluating,
  author = {Enrique Amigó and Agustín D. Delgado},
  title = {{Evaluating Extreme Hierarchical Multi-label Classification}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.acl-long.399},
}
Figure