Abstract
Learning to Defer (L2D) systems aim to optimize decision-making by intelligently routing tasks between an automated predictor and a set of experts. While existing research has focused on Bayes-consistency, these approaches often fail in practical settings where the model class (hypothesis set $\mathcal{H}$) is restricted. This paper introduces a novel family of surrogate loss functions that achieve realizable $\mathcal{H}$-consistency, providing the first strong theoretical guarantees for both single-stage and two-stage L2D. Our proposed losses ensure that optimization identifies the optimal routing strategy within a given hypothesis set, significantly improving performance on synthetic and real-world benchmarks.
Introduction
In modern machine learning deployments, the ability of a system to "know what it doesn't know" is critical for safety and efficiency. Learning to Defer (L2D) addresses this by training a model to either make a prediction or hand off the task to a specialist—such as a human expert or a high-capacity LLM. The core challenge lies in routing: determining when to defer and to whom, while balancing expert accuracy against the cost of invocation.
Mathematically, the objective is to minimize a discrete, non-differentiable loss function. To enable training via gradient descent, researchers typically employ surrogate losses. However, traditional surrogates often lack consistency under realizability. That is, even if a perfect routing function exists within the model's architecture, the surrogate's mathematical properties may prevent the optimization algorithm from converging to it. This paper bridges this gap by introducing $\mathcal{H}$-consistent surrogate losses.
Methodology
The $L_\Psi$ Surrogate Family
The authors propose a new family of surrogate losses, denoted as $L_\Psi$, derived from comp-sum losses (a generalization of logistic and cross-entropy losses). This framework is designed to handle two primary L2D scenarios:
- Single-Stage Deferral: The system jointly learns a predictor and a deferral function. This is ideal for training new models from scratch to work alongside human experts.
- Two-Stage Deferral: The system learns only the routing function for a set of pre-existing, fixed experts. This is increasingly relevant for "LLM Cascading," where queries are routed between various frozen models (e.g., routing between Llama-3 and GPT-4o).
Realizable $\mathcal{H}$-Consistency
Unlike previous work that focused on Bayes-consistency—which assumes infinite data and infinite model capacity—this work proves $\mathcal{H}$-consistency. This guarantee ensures that if the optimal solution lies within the hypothesis set $\mathcal{H}$ (the specific neural network architecture being used), the surrogate loss will find it. This is a more practical and robust guarantee for real-world applications where models are inherently constrained.
Theoretical Extensions
The paper further extends the Tsybakov noise condition to the deferral setting. This provides theoretical evidence that the proposed $L_\Psi$ losses perform exceptionally well when there is a clear "margin" or distinction between the performance of the best expert and the alternatives.
Experimental Results
Synthetic Validation
To test the theory of realizability, the researchers utilized a Synthetic Mixture-of-Gaussians dataset where a perfect linear routing strategy was known to exist. While previous state-of-the-art (SOTA) baselines stalled at 85-90% accuracy, the proposed $L_\Psi$ losses achieved near 100% system accuracy, effectively closing the realizability gap.
Benchmark Performance
The method was evaluated on standard computer vision benchmarks, including CIFAR-10, CIFAR-100, SVHN, and Tiny ImageNet.
- Single-Stage: On CIFAR-10, the proposed method achieved 92.21% system accuracy, outperforming the nearest baseline (91.85%).
- Two-Stage: The gains were even more pronounced when routing between fixed experts. On Tiny ImageNet, the $L_\Psi$ loss provided a +0.8% accuracy improvement over existing SOTA methods, demonstrating its effectiveness in complex, large-scale classification tasks.
Discussion and Future Work
The findings suggest that achieving $\mathcal{H}$-consistency is vital for the practical success of L2D systems. By ensuring the optimization process is aligned with the model's capacity, the $L_\Psi$ losses allow for more precise identification of an expert's "domain of expertise."
Future research directions include:
- Co-learning: Exploring scenarios where experts and the routing function evolve simultaneously.
- Expert Availability: Adapting the framework for settings where expert labels are sparse or unavailable during training.
- LLM Cascading: Applying these guarantees to optimize the trade-off between cost and performance in production LLM environments, ensuring queries are only sent to expensive models when a smaller model is guaranteed to be insufficient.
Conclusion
This work provides a rigorous theoretical foundation for multiple-expert routing. By introducing the first $\mathcal{H}$-consistent surrogate losses for L2D, the authors offer a robust framework that translates theoretical guarantees into tangible performance gains across both synthetic and real-world datasets.
Summary updated