Generalizing Consistent Multi-Class Classification with Rejection to be Compatible with Arbitrary Losses

Yuzhou Cao, Tianchi Cai, Lei Feng, Lihong Gu, Jinjie Gu, Bo An, Gang Niu, Masashi SugiyamaNeurIPS 2022

Classification with Rejection (CwR) is a crucial safety mechanism in high-stakes machine learning applications, such as medical diagnosis or autonomous driving. It allows a model to abstain from making a prediction when uncertain, incurring a small "rejection cost" ($c$) rather than a potentially catastrophic "misclassification cost."

While the gold standard for evaluating these models is the zero-one-$c$ loss, this metric is discontinuous and impossible to optimize directly. Historically, researchers have developed surrogate losses, but existing methods are often "locked" to specific loss functions (like hinge or exponential losses). This lack of flexibility means a loss function optimized for image recognition might fail on tabular medical data.

This paper introduces a flexible framework that allows CwR to work with almost any standard multi-class loss function while maintaining strict theoretical guarantees.

Comparison of CwR methods highlighting the proposed framework's unique support for arbitrary losses.

Methodology: A Plug-and-Play Framework

The core contribution of this work is bridging the gap between theoretical safety and practical flexibility. The authors establish a framework where any "classification-calibrated" loss can be used for CwR without losing the guarantee that minimizing the surrogate risk actually minimizes the real-world rejection risk.

This is built on several key pillars:

  1. The Equivalence Principle: The authors prove that a $K$-class CwR problem is mathematically equivalent to a standard $(K+1)$-class classification problem on a "self-augmented" data distribution. The $(K+1)$-th class explicitly represents the "rejection" option.
  2. Surrogate Construction: Based on this equivalence, they propose a general formulation for CwR surrogate losses ($L^\Phi_c$): $$L^\Phi_c(\mathbf{u}, y) = \Phi(\mathbf{u}, y) + (1 - c)\Phi(\mathbf{u}, K + 1)$$ Here, $\Phi$ can be any multi-class loss function. This formula combines the loss of the true label with a weighted loss of the rejection class.

  3. Consistency Guarantees: The paper outlines the necessary and sufficient conditions for this formulation to be $\ell_{01c}$-consistent. If the chosen loss $\Phi$ is calibrated for standard classification, it is automatically consistent for CwR under this framework.

  4. Generalized Cross Entropy (GCE) Analysis: The authors provide the first-ever calibration analysis for GCE—a loss blending the fast convergence of Cross Entropy with the robustness of Mean Absolute Error—proving it fits perfectly into their CwR framework.
Theoretical framework illustrating the path from empirical minimization to target risk consistency.

Experimental Validation

The authors validated their approach using three standard computer vision benchmarks (Fashion-MNIST, SVHN, and CIFAR-10) across a range of rejection costs ($c$), from cheap (0.05) to expensive (0.30).

Key Results: * Superior Performance: In almost all tests on SVHN and CIFAR-10, the proposed GCE-based and Sigmoid-based CwR methods achieved lower total risk (zero-one-$c$ loss) than state-of-the-art baselines like DEFER or standard confidence-based rejection. * Stability Against Overconfidence: Standard Cross Entropy (CE) often makes models overconfident, causing them to predict rather than reject uncertain samples. The authors showed that their framework, particularly when paired with GCE, produces much more stable and reliable rejection behavior in deep neural networks like ResNets. * Empirical Validation of Theory: The experiments confirmed that minimizing the proposed surrogate losses directly leads to a reduction in the target zero-one-$c$ risk, validating the theoretical consistency proofs.

Key Insights and Future Directions

The most profound insight from this work is that CwR does not require a unique set of complex, isolated algorithms. By viewing it through the lens of an augmented $(K+1)$ class, it becomes a standard classification problem. This "power of choice" allows practitioners to custom-fit loss functions (e.g., using Focal Loss for imbalanced datasets) while keeping theoretical safety nets intact.

Limitations and Future Work: * Identifiability Assumption: The error bounds rely on an assumption that the model class is expressive enough to contain the optimal classifier. This may not always hold for very small or poorly designed models. * Permutation Invariance: The proof for the necessity of calibration assumes the loss function treats all classes equally (permutation-invariant). Niche, non-invariant losses might require further study. * Instance-Dependent Costs: While the paper provides a theoretical extension for cases where the rejection cost $c$ changes per sample (e.g., rejecting a cancer screen is more expensive than a cat photo), the experimental work focused on constant costs. Further empirical study into complex, cost-sensitive scenarios is a natural next step.

Summary updated

BibTeX
@inproceedings{cao2022generalizing,
  author = {Yuzhou Cao and Tianchi Cai and Lei Feng and Lihong Gu and Jinjie Gu and Bo An and Gang Niu and Masashi Sugiyama},
  title = {{Generalizing Consistent Multi-Class Classification with Rejection to be Compatible with Arbitrary Losses}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=dew7EE5SB_m},
}
Figure