Choosing an AI Model to Decide When to Escalate to a Human: Rules, Calibrated Thresholds or Learning to Defer
A buyer's guide to escalation policies by the data you hold, with a cost rule, a baseline suite and a worked example that compares total workflow cost rather than automation rate.
To decide when an AI should escalate to a human, pick the escalation method that matches the outcomes you can measure, not a particular foundation model. With few labels, use explicit rules. With scored AI outcomes only, use a classifier with calibrated probabilities and a cost-based threshold. With AI and human outcomes on similar cases, use learning to defer, the approach that Mozannar and Sontag set out at ICML 2020.
Whichever you choose, judge it by total workflow cost and final resolution quality on held-out conversations. A policy that keeps more cases away from humans can still cost more overall.
Each escalation method needs a different kind of outcome data.
The options differ mainly in what they can prove, and that depends on what they are trained on.
Explicit rules escalate on fixed triggers, such as a legal threat, a refund above a set amount, or a third failed attempt. They need no training data, and they are easy to audit. They also stay in place under every other method as mandatory overrides.
Calibrated selective prediction trains a model to predict whether the AI will fail, then escalates when the predicted failure probability is high. Geifman and El-Yaniv's NeurIPS 2017 paper showed that a classifier can reject inputs to hold its error below a target with high probability. Their ICML 2019 paper, SelectiveNet, trained the prediction and the reject option together and reported a better trade-off between risk and coverage. This approach shows how often the AI fails on the cases it keeps. It does not show whether a human would have done better on the cases it sends away.
Calibration makes the probabilities usable. Guo and co-authors found at ICML 2017 that "modern neural networks, unlike those from a decade ago, are poorly calibrated," and that temperature scaling was "surprisingly effective" on most datasets that they tested. The scikit-learn 1.9.1 documentation offers sigmoid, isotonic and temperature methods. It says that isotonic calibration does as well as or better than sigmoid with more than about 1,000 samples.
Learning to defer trains a classifier and a rejector together from samples of an expert's decisions. Mozannar and Sontag reduce the problem to cost-sensitive learning with a consistent surrogate loss. It is the only option here that learns where the human is stronger than the AI. Later work by Mozannar and co-authors at AISTATS 2023 showed that earlier surrogate losses can miss good solutions, and that finding the best linear classifier and rejector is NP-hard.
Vendor decision models are a fourth category. Parsec's TOD, for example, ranks a next action from a list of allowed actions, according to Parsec's TOD page. Its confidence gate passes a turn unchanged to the parent LLM when its confidence is low. The page dates the "TOD decision v1 release evaluation" to 29 September 2026 and lists a price of $0.30 per 1,000 decisions. Its predict function returns one probability per supplied option, so continue and escalate could be supplied as two options. That is documented option scoring, not a trained deferral objective, and Parsec's pages do not describe a human handoff or an escalation evaluation. The release consists of LoRA adapters on Gemma 4 12B, so results from small encoder models do not carry over to it.
Each option needs different outcome data and leaves a different gap in what it can prove.
| Option | Data it needs | What it can show | Main gap |
|---|---|---|---|
| Explicit rules | None to start | Predictable, auditable triggers | Misses new failure patterns |
| Calibrated classifier with threshold | Scored AI outcomes | AI error on the cases it keeps | Cannot show that a human does better |
| SelectiveNet-style trained rejection | Scored AI outcomes, more volume | A better risk-coverage trade-off | Same gap as the classifier |
| Learning to defer | AI and human outcomes on similar cases | Where a human improves the result | Needs unbiased human outcomes |
| TOD v1, untuned | Your list of allowed actions | Option scores from its release model | Fallback goes to an LLM, not a person |
No published study has compared these options as human-escalation policies on the same held-out conversations. The comparison has to be run on your own data.
Teams with little labeled data should start with rules and collect outcomes from the first day.
Rules give a working baseline while the dataset grows. The dataset should record the following fields for every decision:
- the conversation, account state and tool results that were visible at the moment of the decision;
- the AI's proposed response or action;
- failure and severity signals, such as repeated attempts, tool errors, missing information and the issue category;
- the AI outcome, scored by a reviewer, when the AI handled the case;
- the human outcome when a human handled the case, and an empty value when none did;
- the handoff time, queue wait and staff cost.
Past escalation logs need care. Human outcomes exist only for cases that an old rule escalated, so they are not a random sample. Lakkaraju and co-authors called this the selective labels problem at KDD 2017. They found that evaluating only labeled cases, or imputing the missing ones, tends to overstate model performance. Audit a random sample of non-escalated cases, and send a small random share to humans regardless of score. Never score a missing human outcome as a success.
Teams with scored AI outcomes should train a simple classifier and calibrate it on separate data.
Logistic regression or gradient-boosted trees over text features and failure signals are a sensible first model. The scikit-learn documentation says that the calibrator should be fit on data that is independent of the classifier's training data. It suggests wrapping a pre-fitted model in FrozenEstimator for that purpose. A minimal version of the baseline is shown in this sketch:
from sklearn.pipeline import make_pipeline
from sklearn.feature_extraction.text import TfidfVectorizer
from sklearn.linear_model import LogisticRegression
from sklearn.calibration import CalibratedClassifierCV
from sklearn.frozen import FrozenEstimator
# label = 1 when a reviewer scored the AI's handling as a failure
base = make_pipeline(TfidfVectorizer(min_df=5), LogisticRegression(max_iter=1000))
base.fit(train_text, train_failed)
calibrated = CalibratedClassifierCV(FrozenEstimator(base), method="sigmoid")
calibrated.fit(calib_text, calib_failed) # data kept apart from training
p_fail = calibrated.predict_proba(test_text)[:, 1]
human_side = P_HUMAN_FAIL * COST_FAIL + COST_HANDOFF + COST_DELAY
escalate = must_escalate | (p_fail * COST_FAIL > human_side)
The last line holds three separate decisions. The must_escalate flag carries the mandatory overrides. The calibrated p_fail is the probability estimate. The comparison with human_side is the business threshold. A confidence number that a language model writes in its own reply should not replace p_fail, because it has not been checked against outcomes.
The threshold follows directly from the costs. Suppose that a wrong resolution costs $50, that humans fail on 5% of escalated cases, and that a handoff costs $4 in staff time plus $1 in delay. The human side then costs $2.50 plus $5, or $7.50. The AI should keep a case when its calibrated failure probability is below 15%, because $50 times 0.15 equals $7.50. These figures are assumptions for illustration, not measured costs.
Teams with human outcomes on comparable cases can train a learning-to-defer model.
Learning to defer is worth the effort when human performance varies by case type. A billing specialist may fail less often on billing cases than a general agent does. The human failure probability then differs per team, and the model can learn it. Mozannar and Sontag's code, published under the MIT licence, includes experiments on CIFAR, CheXpert and hate speech detection, and its README points to an updated repository for newer work.
Queue capacity should enter the rule through the delay cost. When the queue is long, each handoff waits longer, so the threshold for escalation should rise.
A worked example shows that a higher automation rate can raise total cost.
Consider a support team that handles 100,000 conversations a month. Every figure below is an assumption for illustration, not a measured rate. A wrong resolution costs $50. A handoff costs $5, made up of $4 in staff time and $1 in delay. Humans fail on 5% of the cases that they receive.
Policy 1 escalates 20% of conversations, and the AI fails on 6% of the cases that it keeps. Policy 2 escalates 12%, and the AI fails on 7% of the larger set that it keeps.
| Cost item | Policy 1, 20% escalated | Policy 2, 12% escalated |
|---|---|---|
| AI failures | 4,800 × $50 = $240,000 | 6,160 × $50 = $308,000 |
| Handoffs | 20,000 × $5 = $100,000 | 12,000 × $5 = $60,000 |
| Human failures | 1,000 × $50 = $50,000 | 600 × $50 = $30,000 |
| Total | $390,000 | $398,000 |
Policy 2 automates 8,000 more conversations a month, yet it costs $8,000 more in total. The gain in automation coverage is real, but the task success rate falls. This is why the two results should be reported separately.
The cost of the escalation model itself is small next to these figures. At TOD's list price of $0.30 per 1,000 decisions, one decision per conversation would cost $30 a month, and six decisions per conversation would cost $180. Parent-model costs are billed separately.
Any policy should pass a held-out evaluation and a tested handoff before launch.
The evaluation should run on conversations from a later period than the training data. It should report the following measures, with uncertainty intervals, by customer cohort and by month:
- risk-coverage curves and reliability diagrams;
- missed necessary escalations and unnecessary handoffs, counted separately;
- human workload, queue delay and final resolution quality;
- latency and total workflow cost, with the model and hardware versions named.
Include every vendor model in its untuned form first, and tune only when held-out results support it.
The handoff itself should be owned by the application, not by the model. The application should write a handoff record with the conversation, the proposed action and the reason for escalation. It should wait for the queue to acknowledge the record. When no acknowledgement arrives in time, it should send a safe holding reply and retry. It should log the outcome of every handoff, so that the human outcome field fills in over time. A fallback to another model is not a substitute for this path, because no person sees the case. Each of these paths needs a test, including one in which the human queue is down. Audits of escalated and non-escalated cases should continue after launch, so that the human outcome data keeps growing and missed escalations come to light.
Sources
- Mozannar and Sontag, Consistent Estimators for Learning to Defer to an Expert (ICML 2020): https://proceedings.mlr.press/v119/mozannar20b.html
- clinicalml, learn-to-defer code repository: https://github.com/clinicalml/learn-to-defer
- Mozannar et al., Who Should Predict? (AISTATS 2023): https://arxiv.org/abs/2301.06197
- Geifman and El-Yaniv, Selective Classification for Deep Neural Networks (NeurIPS 2017): https://proceedings.neurips.cc/paper/2017/hash/4a8423d5e91fda00bb7e46540e2b0cf1-Abstract.html
- Geifman and El-Yaniv, SelectiveNet (ICML 2019): https://proceedings.mlr.press/v97/geifman19a.html
- Guo et al., On Calibration of Modern Neural Networks (ICML 2017): https://proceedings.mlr.press/v70/guo17a.html
- scikit-learn 1.9.1, Probability calibration: https://scikit-learn.org/stable/modules/calibration.html
- Lakkaraju et al., The Selective Labels Problem (KDD 2017): https://pmc.ncbi.nlm.nih.gov/articles/PMC5958915/
- Parsec, TOD: https://parseclab.ai/tod/
- Parsec, TOD model card: https://huggingface.co/parsecai/tod
- Parsec, TOD repository: https://github.com/daseinlabs/tod