Who Should Predict? Exact Algorithms For Learning to Defer to Humans

Hussein Mozannar, Hunter Lang, Dennis Wei, Prasanna Sattigeri, Subhro Das, David A. Sontag

Abstract

Learning to Defer (L2D) systems aim to optimize human-AI collaboration by deciding when an AI should predict and when it should defer to a human expert. This paper identifies a critical failure in existing L2D surrogates: their inability to find optimal solutions even in simple, realizable settings. We prove that finding an optimal linear classifier-rejector pair is NP-hard and propose two solutions: a Mixed-Integer Linear Programming (MILP) formulation for exact solutions and a novel RealizableSurrogate ($L_{RS}$) loss function. Our methods demonstrate significant performance gains across synthetic and real-world benchmarks, including medical imaging and natural language processing.

Introduction

In high-stakes fields like medicine and criminal justice, AI is increasingly viewed as a complement to human expertise rather than a replacement. The Learning to Defer (L2D) framework formalizes this by training a system composed of two parts: a classifier (the AI predictor) and a rejector (the decision-maker that chooses between the AI and a human expert). The objective is to minimize the total system error of the human-AI team.

However, current L2D algorithms often fail to find optimal solutions even when they are mathematically possible. The authors identify that existing surrogate loss functions—used because the true "0-1" error is non-differentiable—are frequently inconsistent in the realizable setting. This refers to scenarios where a perfect solution exists within the chosen model class (e.g., a simple linear boundary).

The Realizability Trap and NP-Hardness

A significant contribution of this work is the proof that finding an optimal linear classifier-rejector pair is NP-hard, even in the realizable case. This computational bottleneck explains why previous heuristic approaches often result in AI systems that perform worse than the human or the AI acting alone.

A realizable linear setting where a perfect classifier-rejector pair exists.

As illustrated in Figure 2, even when a clear linear separation exists that could yield zero system error, standard surrogate losses often fail to converge to it. This "realizability trap" highlights a fundamental flaw in the design of prior L2D loss functions.

Proposed Methodology

To address these hurdles, the authors propose two distinct approaches:

1. Mixed-Integer Linear Programming (MILP)

For linear models on moderately sized datasets, the authors developed a MILP formulation. By utilizing "big-M" constraints and clever variable transformations, this approach finds the exact optimal linear classifier and rejector. While computationally intensive, it serves as a gold standard for performance benchmarks.

2. RealizableSurrogate ($L_{RS}$)

To scale to deep learning and massive datasets, the authors introduced $L_{RS}$, a new differentiable loss function that is realizable-consistent. If a perfect solution exists within the hypothesis class (such as a specific neural network architecture), minimizing $L_{RS}$ is guaranteed to find it.

The L2D framework using the proposed RealizableSurrogate loss.

The core innovation of $L_{RS}$ lies in its handling of human correctness. If the human expert is incorrect, the loss forces the AI to be correct. Conversely, if the human is correct, the AI can either learn to predict the label itself or learn to defer. This flexibility allows the AI to specialize in areas where the human is weak, fostering true human-AI complementarity.

Experimental Evaluation

The methods were evaluated across a diverse range of benchmarks, including synthetic data, image classification (CIFAR-10H, ImageNet-16H), natural language processing (HateSpeech), and medical imaging (NIH Chest X-ray).

  • Synthetic Data: On realizable synthetic data, both MILP and $L_{RS}$ achieved near-zero error, while prior baselines plateaued at significantly higher error rates.
  • Real-World Performance: On the CIFAR-K benchmark, $L_{RS}$ outperformed the next best method by an average of 0.8%, with improvements up to 2.8% in specific expert scenarios.
  • Medical Impact: In the Chest X-ray task, the $L_{RS}$ system achieved higher accuracy than either the AI or the radiologist alone, demonstrating the practical utility of the framework in clinical settings.

Conclusion

This research highlights a critical theoretical and practical gap in the Learning to Defer literature. By proving the NP-hardness of the task and introducing the realizable-consistent $L_{RS}$ loss, the authors provide a more robust foundation for building collaborative human-AI systems. While challenges remain regarding the non-convexity of the loss and the computational cost of MILP, this work represents a significant step toward AI systems that truly complement human expertise.

Summary updated

BibTeX
@inproceedings{mozannar2023who,
  author = {Hussein Mozannar and Hunter Lang and Dennis Wei and Prasanna Sattigeri and Subhro Das and David A. Sontag},
  title = {{Who Should Predict? Exact Algorithms For Learning to Defer to Humans}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=JYo1P8KLqtF},
}
Figure