Abstract
This paper introduces a theoretically grounded framework for two-stage learning to defer (L2D). In this setup, an AI system decides whether to use its own prediction or hand the task over to one of several experts. Unlike previous methods that require retraining the entire system simultaneously, this approach works with fixed, pre-trained models. The authors provide new surrogate loss functions with strong mathematical guarantees on consistency and performance, making it highly practical for modern, large-scale AI deployments.
Introduction
In "Learning to Defer," an AI system doesn't just predict an answer; it predicts whether it should answer or defer to a more capable expert (human or machine). Most existing research assumes a "single-stage" approach where the predictor and the deferral logic are trained simultaneously.
However, in the era of Large Language Models (LLMs) and massive foundation models, retraining a system just to teach it when to "quit" is prohibitively expensive. We often have a fixed, high-quality model and want to build a "wrapper" around it that knows when to call in a specialized expert. This paper tackles this two-stage scenario:
- Stage 1: A predictor is already trained (e.g., using standard cross-entropy) and its weights are frozen.
- Stage 2: A deferral function is learned to assign each input to the most suitable expert or to rely on the original model.
The primary challenge is ensuring that the "surrogate" loss functions used to train this second stage are mathematically consistent—meaning that as the system processes more data, it converges to the optimal deferral strategy.
Methodology
The authors propose a new family of surrogate loss functions designed specifically for this two-stage setup. They explore two primary settings for structuring the deferral mechanism:
1. Score-based Setting In this approach, the deferral mechanism is treated as additional "classes" or scores added to the existing model's output.
2. Predictor-Rejector Setting Here, the deferral mechanism is a completely separate function that acts as a gatekeeper, choosing between the base predictor and the available experts.
The Mathematical Secret Sauce: $\mathcal{H}$-Consistency Bounds The core theoretical contribution of this work is the proof of $\mathcal{H}$-consistency bounds. While "Bayes-consistency" is a common theoretical goal (which assumes infinite data and infinite model capacity), $\mathcal{H}$-consistency is much more practical. It provides guarantees for the specific "hypothesis set" $\mathcal{H}$ being used (such as a specific neural network architecture). This ensures that minimizing the surrogate loss effectively minimizes the true deferral error in real-world, finite-capacity scenarios. Furthermore, the authors prove that for a constant cost function, their two-stage surrogate losses are realizable $\mathcal{H}$-consistent, meaning they can reach zero error if a perfect solution exists within the model's reach.
Experiments and Results
The authors validated their theoretical findings using two standard computer vision benchmarks: CIFAR-10 (60,000 small images across 10 classes) and SVHN (Street View House Numbers).
In their experiments, they used a ResNet-4 as the base model and a variety of larger ResNets (ResNet-10, 16, and 28) to act as the "experts," each with increasing capacity and accuracy. The experiments confirmed that the proposed surrogate losses effectively improve system accuracy as more experts are added:
| Dataset | Base Model Acc. | With 1 Expert | With 3 Experts |
|---|---|---|---|
| SVHN | 91.12% | 91.85% | 93.30% |
| CIFAR-10 | 70.56% | 72.63% | 77.68% |
(Note: These results reflect a "zero base cost" scenario, where the system is purely optimizing for accuracy without penalizing expert usage.)
The two-stage surrogate losses—based on common functions like Multinomial Logistic or Sum Exponential loss—successfully learned to identify which instances the base model would fail on and correctly routed them to the appropriate expert.
Discussion and Limitations
- The "Fixed Predictor" Reality: By focusing on the two-stage approach, the authors align AI research with the industrial reality where models are often "frozen" assets.
- Multi-Expert Scalability: The framework seamlessly handles $n$ experts, each with different "costs" (representing human hourly rates, API latency, or computational expense).
- Cost Function Selection: A current limitation is that the "cost" of deferring to an expert is a hyperparameter that must be tuned via cross-validation. There isn't yet a principled, automated way to determine these costs for every application.
- Future Work: While the paper provides a massive leap in the theoretical understanding of two-stage deferral, the experimental section focuses primarily on image classification. Applying this framework to more complex domains, such as LLM hallucination detection or utilizing "complementary" experts (who might be worse overall but better at specific sub-tasks), remains an exciting open area for empirical exploration.
Summary updated