Loss Functions for Classification using Structured Entropy

Brian Lucena
6/14/2022
stat.MLcs.CVcs.IT

Official code: numeristical/resources (100 stars, Jupyter Notebook, MIT, last commit 2025-05-13).

Abstract

Cross-entropy loss is the standard metric used to train classification models in deep learning and gradient boosting. It is well-known that this loss function fails to account for similarities between the different values of the target.

Show full abstract

We propose a generalization of entropy called {\em structured entropy} which uses a random partition to incorporate the structure of the target variable in a manner which retains many theoretical properties of standard entropy. We show that a structured cross-entropy loss yields better results on several classification problems where the target variable has an a priori known structure. The approach is simple, flexible, easily computable, and does not rely on a hierarchically defined notion of structure.

View on arXivView PDF

Code Implementations(1)

MIT

A collection of resources for learning and research.

10076Jupyter NotebookJul 28, 20201 years agoMIT

Similar Papers

Cite this paper

@article{lucena2022loss,
  title  = {Loss Functions for Classification using Structured Entropy},
  author = {Brian Lucena},
  year   = {2022},
  eprint = {2206.07122},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.07122}
}

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

Discussion