$H$-Consistency Bounds: Characterization and Extensions

Anqi Mao, Mehryar Mohri, Yutao Zhong

Introduction

A fundamental challenge in machine learning classification is minimizing the 0-1 error (the percentage of incorrect predictions). Because the 0-1 error is mathematically non-convex and difficult to optimize directly, practitioners rely on smooth surrogate losses like cross-entropy.

While classic theoretical guarantees like Bayes-consistency ensure that minimizing the surrogate loss eventually minimizes the 0-1 error, they rely on unrealistic assumptions: infinite data and a model capable of representing any possible function. In practice, we use restricted models from a specific "hypothesis set" (denoted as $\mathcal{H}$), such as linear classifiers or specific neural network architectures.

$\mathcal{H}$-consistency bounds address this gap by providing non-asymptotic guarantees specific to the actual model class being used. They establish a strict upper limit on a model's 0-1 error based on its surrogate loss error. Historically, deriving these bounds was a tedious process requiring custom, ad-hoc proofs for every single loss function. Moreover, previous proofs only applied to "complete" (unbounded) hypothesis sets, ignoring the reality that practical models use regularization and have bounded outputs.

A Generalized Framework for Consistency Bounds

This paper introduces a generalized mathematical framework for deriving tight $\mathcal{H}$-consistency bounds in multi-class classification. The authors tackle the problem by introducing a universal mathematical tool called an error transformation function ($\mathcal{T}$).

Instead of starting from scratch for every loss function, the authors prove that for two massive families of multi-class surrogate losses—comp-sum losses (which includes the familiar cross-entropy/logistic loss) and constrained losses—deriving an $\mathcal{H}$-consistency bound reduces to simply calculating this $\mathcal{T}$ function. If $\mathcal{T}$ is convex, a tight bound is guaranteed.

Examples of auxiliary functions and their corresponding error transformations.

Crucially, the authors extend this method to bounded hypothesis sets. They modify the transformation function to incorporate a parameter ($\Lambda$) that represents the maximum score a model can output for a given input, perfectly mirroring how weight regularization works in practice.

Key Insights and Results

  • A Plug-and-Play Formula: The introduction of the error transformation function $\mathcal{T}$ is a major quality-of-life improvement for ML theory. Researchers can now take a new surrogate loss, plug its underlying mathematical definition into $\mathcal{T}$, and immediately extract a tight consistency bound.
  • Behavior of Bounded Models: By analyzing bounded hypothesis sets, the authors discovered that the consistency bounds often take a piecewise form. Depending on the strictness of the model's bounds ($\Lambda$), the relationship between the surrogate loss and the 0-1 error shifts between linear convergence and square-root convergence.
  • Correcting the Record on Cross-Entropy: The authors point out a flaw in a recently published multi-class bound for the logistic (cross-entropy) loss by another research group. They show that the previous bound relied on assumptions that collapsed it into a weaker, generic excess error bound. Using their new framework, the authors provide a much stronger, genuinely model-specific guarantee for cross-entropy.
  • Comprehensive Bounds Derived: The authors derived explicit, tight $\mathcal{H}$-consistency bounds for a wide array of comp-sum losses (including multinomial logistic, sum exponential, generalized cross-entropy, and mean absolute error) and constrained losses (improving upon previous bounds for hinge and exponential constrained losses, and deriving a novel bound for a squared constrained loss).
  • Guarantees for Linear Models and Neural Nets: They successfully applied their bounded framework to linear models ($\mathcal{H}_{\text{lin}}$), proving exactly how the number of classes ($n$) and the weight boundaries ($B, W$) impact the theoretical safety of the model.

Limitations and Future Work

  • Distribution Independence: The bounds derived in this paper are distribution-independent. While this makes them robust (they hold in the worst-case scenario), it also means they might be overly pessimistic. They do not capture tighter guarantees that might exist for specific, "easy" real-world data distributions.
  • Lack of Empirical Validation: As a purely theoretical work, the paper does not empirically demonstrate how these tighter bounds might guide practical model selection or hyperparameter tuning on real datasets.
  • Future Directions: The authors suggest that their general tools will open up new avenues for deriving bounds for an even wider variety of loss functions. They also point toward applying these techniques to more complex paradigms, such as structured prediction and learning with abstention (models that can choose to output "I don't know").

Summary updated

BibTeX
@inproceedings{mao2023h,
  author = {Anqi Mao and Mehryar Mohri and Yutao Zhong},
  title = {{$H$-Consistency Bounds: Characterization and Extensions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=nI7EmXq2PL},
}
Figure