Enforcing Consistency and Fairness in Multi-level Hierarchical Classification with a Mask-based Output Layer

Shijing Chen, Shoaib Jameel, Mohamed Reda Bouadjenek, Feilong Tang, Usman Naseem +4 more
3/19/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Traditional Multi-level Hierarchical Classification (MLHC) classifiers often rely on backbone models with $n$ independent output layers. This structure tends to overlook the hierarchical relationships between classes, leading to inconsistent predictions that violate the underlying taxonomy. Additionally, once a backbone architecture for an MLHC classifier is selected, adapting the model to accommodate new tasks can be challenging. For example, incorporating fairness to protect sensitive attributes within a hierarchical classifier necessitates complex adjustments to maintain the class hierarchy while enforcing fairness constraints. In this paper, we extend this concept to hierarchical classification by introducing a fair, model-agnostic layer designed to enforce taxonomy and optimize specific objectives, including consistency, fairness, and exact match. Our evaluations demonstrate that the proposed layer not only improves the fairness of predictions but also enforces the taxonomy, resulting in consistent predictions and superior performance. Compared to Large Language Models (LLMs) employing in-processing de-biasing techniques and models without any bias correction, our approach achieves better outcomes in both fairness and accuracy, making it particularly valuable in sectors like e-commerce, healthcare, and education, where predictive reliability is crucial.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2025enforcing,
  title  = {Enforcing Consistency and Fairness in Multi-level Hierarchical Classification with a Mask-based Output Layer},
  author = {Shijing Chen and Shoaib Jameel and Mohamed Reda Bouadjenek and Feilong Tang and Usman Naseem and Basem Suleiman and Hakim Hacid and Flora D. Salim and Imran Razzak},
  year   = {2025},
  eprint = {2503.15566},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.15566v1}
}

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/2503.15566.svg)](https://codeofpaper.com/paper/2503.15566)

Discussion