Constructing Multiclass Classifiers using Binary Classifiers Under Log-Loss

Assaf Ben-Yishai, Or Ordentlich

Abstract

The construction of multiclass classifiers from binary classifiers is studied in this paper, and performance is quantified by the regret, defined with respect to the Bayes optimal log-loss. We start by proving that the regret of the well known One vs. All (OVA) method is upper bounded by the sum of the regrets of its constituent binary classifiers. We then present a new method called Conditional OVA (COVA), and prove that its regret is given by the weighted sum of the regrets corresponding to the constituent binary classifiers. Lastly, we present a method termed Leveraged COVA (LCOVA), designated to reduce the regret of a multiclass classifier by breaking it down to independently optimized binary classifiers.

Introduction

In machine learning, binary classification—the task of distinguishing between two categories—is a well-understood problem with a vast array of effective "black-box" tools. However, many real-world applications involve multiclass problems ($K > 2$ options). While some models, like Logistic Regression, generalize naturally to multiclass settings via the Softmax function, others do not.

Traditional approaches to building multiclass systems from binary components, such as One-vs-All (OVA), have primarily focused on "hard classification" (zero-one loss). However, "soft classification," where models output a probability distribution over classes, is crucial for well-calibrated decision-making. This paper addresses the theoretical and practical challenges of constructing multiclass classifiers specifically optimized for log-loss, a metric that rewards accurate probability estimation.

Methodology: Decomposing Multiclass Regret

The core contribution of this work is the mathematical decomposition of multiclass "regret"—the difference between a model's performance and the theoretical Bayes optimum—into a sum of regrets from simpler binary classifiers.

Hierarchical Classification and COVA

The authors propose organizing classes into a binary tree structure. Each internal node represents a binary classifier that determines which branch to follow.

Hierarchical tree structure for a 5-class problem, showing how binary decisions (1/0) lead to specific class labels.

In this framework, the multiclass probability is the product of binary probabilities along the path from the root to a leaf. The authors prove that the total multiclass regret is exactly the weighted sum of the binary regrets at each node. This method is termed Conditional OVA (COVA).

Probabilistic decomposition in a hierarchical classifier, where each node $p_B$ represents an independent binary probability estimator.

Leveraged Hierarchical Classification (LCOVA)

Building on COVA, the authors introduce Leveraged COVA (LCOVA). While standard hierarchical models often share parameters across the entire tree, LCOVA allows the binary classifier at each node to have its own independent set of parameters. This "leveraging" increases the model's parametric richness, enabling it to capture complex local boundaries that a single global Softmax model might miss.

Experimental Evaluation

The researchers tested these architectures on two distinct datasets:

  1. Synthetic Gaussian Data: 10 classes in a 100-dimensional space. Two scenarios were tested: Scenario A, where a standard Softmax is theoretically optimal, and Scenario B, where the data distribution is more complex.
  2. MNIST Database: A benchmark of 60,000 training and 10,000 test images of handwritten digits (0-9), processed into 20x20 cropped versions.

Key Results and Insights

  • Superior Performance on MNIST: The LCOVA model significantly outperformed the standard Softmax baseline on the MNIST dataset. LCOVA achieved a test error of 5.6% and a log-loss of 0.207, compared to Softmax's 7.9% error and 0.290 log-loss.
  • Handling Complex Distributions: In synthetic Scenario B, where Softmax is sub-optimal, LCOVA reduced the regret from 0.7039 to 0.6606.
  • The Importance of Tree Structure: The performance of hierarchical models is highly sensitive to the tree's topology. For MNIST, a "judicious" tree designed to separate digits based on visual features (e.g., curved vs. straight lines) performed much better than random or sequential trees.
  • The Overfitting Trade-off: The increased flexibility of LCOVA comes with a risk of overfitting. In Scenario A, where Softmax was already optimal, LCOVA performed better on training data but slightly worse on test data.

Conclusion and Future Directions

This research provides a rigorous theoretical foundation for modular multiclass classification under log-loss. By breaking a complex problem into independent binary tasks, LCOVA offers a path toward more powerful and flexible classifiers.

Future work will focus on incorporating regularization to mitigate overfitting and developing algorithms to automatically learn the optimal tree structure from data, rather than relying on domain expertise.

Summary updated

BibTeX
@inproceedings{benyishai2021constructing,
  author = {Assaf Ben-Yishai and Or Ordentlich},
  title = {{Constructing Multiclass Classifiers using Binary Classifiers Under Log-Loss}},
  booktitle = {ISIT},
  year = {2021},
  doi = {10.1109/isit45174.2021.9518152},
}
Figure