Research
Jaanavi Thanamala

TL;DR
The short answer: escalate when confidence falls below a cutoff set by what a mistake costs. A confidence score tells you which option is best, not whether any option is right, so test requests with no right answer separately. And recheck them after every retrain: in our tests, retraining made the model confidently wrong on the kinds of request its training data left out.
Agents need a way to say "not sure"
Every agent has to make the same decision thousands of times a day: act on its own, or hand off. An agent that acts on everything might make expensive mistakes, and an agent that asks about everything saves nobody any time. The useful agent has to sit in between.
A common way to settle when to escalate is a gate. A decision model like Fastino's GLiDE doesn't write text. It is given a fixed set of options, such as "refund", "cancel" and "where's my order", and returns a confidence score for each. If the top score clears a cutoff, the agent acts. If not, the request goes to a person and their answer is used to retrain the model.
Many agent stacks run some version of this loop, and its failures are silent. A confident wrong answer clears the gate, and nobody reviews what the agent was sure about. After a retrain, scoring only shows how much more the agent automates, not whether the extra automation is right.
In our tests, most failures traced back to one gap. The model always has to pick an option, even when none are right or more than one is.
For example:
A customer writes, "What's my balance? Also, I want to order checks." That's two requests, but the model can only choose one, so the other goes unanswered.
An agent is given a list of tools, and none of them can handle the request. The model still picks one, and about half the time it's at least 90% sure.
In both cases, acting on the option would be wrong.
Here's the recipe we tested, mostly on routing support requests:
Check that confidence is honest.
Set the cutoff by what a mistake costs.
Test the requests that have no right answer.
Check whether a second model pass helps.
After you retrain, check what got more confident.
Steps 1 and 2 work when a request has one right answer. Steps 3 to 5 cover what they miss.

What's known, and what's new
Acting only when confidence clears a cost-based cutoff goes back to Chow (1970) [ref: Chow 1970], and it relies on honest confidence scores, which neural networks often don't give [ref: Guo et al. 2017]. Fastino's looped-transformer post showed that a second pass makes GLiDE-27B slightly more accurate [ref: Allahyar 2026]. What's new here is testing whether the two common upgrades, a second pass and retraining on escalations, make the gate itself better (Steps 4 and 5).
How we tested it
Task | Data | Held-out test set |
|---|---|---|
Support routing | Built from CLINC150 [ref: Larson et al. 2019]: 30 banking and card intents, some inside long emails, plus off-topic, outside-banking and two-in-one messages | 2,100 requests: 1,200 with a clear answer, 900 that should go to a person |
Tool selection | BFCL v3 [ref: Patil et al. 2025]: lists of at least four tools | 600 requests: 300 a tool can handle, 300 none can |
Terms: The gate acts when confidence clears the cutoff, and escalates to a person otherwise. Error when acting is the share of acted-on requests that were wrong.
Models: GLiDE-27B, with Steps 3 and 4 re-run on the smaller GLiDE-9B to check the results held. Step 5's retraining used GLiDE-9B only.
Cost: We assumed a wrong action costs 20 times an escalation (and checked 5 and 50). Sending everything to a person costs 1,000 per 1,000 requests.
Method: Each step compares two settings on the same model, on data not used to choose its cutoff. Ranges are 95% intervals.
Step 1: Check that confidence is honest
The agent decides using one number: how confident the model is in its top answer. That number is honest, or calibrated, when it matches how often the model is right. Of the answers it gives at 90% confidence, about 90% should be correct. This is what makes a cutoff work.
Set the cutoff at 0.98 and you expect the agent to be wrong about 2% of the time when it acts. If the model is overconfident, and its 0.98 answers are really right only 85% of the time, the same cutoff lets through seven times as many mistakes, and the confidence scores won't show it.
Don't assume a model is calibrated. To check, compare the model's confidence with how often it was actually right, on a labeled sample of your own traffic.
On 1,200 banking requests with a clear answer, GLiDE-27B's confidence was off by less than one point on average. So on ordinary requests, its confidence can be taken at face value and used to decide when to act. One catch: every request in this sample had a right answer. Step 3 tests the ones that don't.
Step 2: Set the cutoff by what a mistake costs
Once the confidence is honest, the rule is simple: act if the top answer clears a cutoff, otherwise send the request to a person. The hard part is choosing the cutoff. While 0.5 feels natural, it ignores what a mistake costs. Instead, put a price on mistakes and pick the cutoff that costs least on labeled data.
We assumed a wrong action costs 20 times an escalation and compared three cutoffs on the 2,100 support requests.
Cutoff | Agent acted on | Wrong actions | Sent to a person | Cost per 1,000 |
|---|---|---|---|---|
0.5 (default) | 1,622 | 454 | 478 | 4,551 |
0.95 (Chow's rule) | 1,099 | 26 | 1,001 | 724 |
0.98 (fitted) | 1,021 | 10 | 1,079 | 609 (95% CI 550 to 677) |

The default cost 7.5 times as much as the fitted cutoff. It also cost more than sending everything to a person, whether a mistake cost 5, 20 or 50 escalations. The fitted cutoff still let the agent handle 85% of the clear requests on its own.
Our test set has far more requests that should go to a person than real traffic (900 of 2,100). Re-weighted as if they were only 5% of traffic, a share we picked for illustration, the default still cost 848 per 1,000, against 246 for the fitted cutoff.
Two-in-one messages show why 0.5 fails. When asked "what's my balance? Also, I want to order checks," the model has no single right answer, so it splits its confidence between the two halves (median 0.71). At 0.5 it acted on 97% of them, all wrongly; at 0.98, it acted on just 1.3%.
Chow's rule, 1 − 1/(cost ratio), is a good starting cutoff. On our test set, fitting did better, because the labeled data includes requests with no right answer, which the formula doesn't account for. On the 5% mix, the two were nearly equal (246 vs 248).
Step 3: Test the requests that have no right answer
Step 1 checked the model's confidence on requests that have a right answer. The risky requests don't have one: off-topic messages, messages that ask for two things at once, and tool calls where no tool can handle the request. They're a small share of traffic, so an average over all requests hides how the model handles them. Test each kind separately.
Off-topic and outside-banking messages went to a person. GLiDE-27B's median confidence on them was 0.20–0.27, well below any sensible cutoff.
Two-in-one messages often cleared the cutoff. Median confidence was 0.71; a 0.5 cutoff acted on 97% of them (Step 2).
Requests that no tool could handle often got a confident pick. Given a BFCL request and a list of at least four tools, GLiDE picked the right tool 96–100% of the time when one could handle it. When none could, it still picked one, and 49–62% of those picks came with at least 90% confidence.
The model isn't broken. It's answering the question it was asked, "which of these options?", and "none" isn't one of them, so it picks the closest.
The fix is to add "none of these" as an option. On the support task, without retraining, GLiDE-9B chose it for 98% of off-topic and 75% of two-in-one messages. Cost fell slightly (639 → 625 per 1,000), with a small drop in accuracy on clear requests (96.8% → 95.8%).
Step 4: Check whether a second model pass helps
Step 3 showed that confidence can be high on a wrong answer. Another possible fix is a second signal that catches what confidence misses.
Here we tested an extra rule. GLiDE has an optional loop that runs two groups of its middle layers a second time. For each request, we compared GLiDE's top answer with and without the loop. If they differed, we sent the request to a person, even when confidence cleared the cutoff. Does this catch wrong answers that the confidence score misses?
How often the answer changed:
Clear banking requests: 0.4% of the time
Two-in-one, outside-banking and off-topic messages: 12–28% of the time
Tool requests no tool could handle: 3–4% of the time
The requests where the answer changed were mostly low-confidence requests that the cutoff already sent to a person, so the extra rule rarely changed what the agent did.
We tested support routing and tool selection, each with GLiDE-9B and GLiDE-27B. Across all four comparisons, we found no clear cost advantage from adding the extra rule. Every 95% interval for the cost difference included zero.
To test a second check on your own traffic:
Look only at the requests your current cutoff would act on.
Count how many wrong actions the new check would stop.
Count how many correct actions it would send to a person for no reason.
Add the check if the wrong actions it stops are worth more than the cost of the unnecessary reviews and the extra compute.
Step 5: After you retrain, check what got more confident
Every escalation comes back with a human-verified answer, so a natural next step is to retrain on those answers. But the gate only escalates requests the model was unsure about, so retraining raises its confidence on exactly those requests.
More requests then clear the old cutoff and automation goes up, but some of that gain may just be the model sounding surer. This is a version of the selective labels problem: the model only learns from the cases the gate chose to send to a person [ref: Lakkaraju et al. 2017]. Does retraining make the gate better, or just make the model more confident?
Setup. We retrained GLiDE-9B on the Fastino training API for three cycles, each on a fresh batch of CLINC150 traffic, and scored every model on Step 2's held-out set, which no model trained on. We tracked two numbers:
Error when acting at the original cutoff. We kept the cutoff chosen before retraining, as a team that doesn't re-tune would. This shows the mistakes that would go unnoticed.
Cost at a re-fitted cutoff. We picked a new best cutoff for each retrained model. This shows whether the model actually got better.
Round 1: retrain on escalations. Each cycle, we trained on the 400 requests the model was least sure about, labeled with the right intent. Off-topic messages have no right intent, so we left them out.
Held-out set | Before retraining | After 3 cycles |
|---|---|---|
Accuracy on requests with a clear answer | 96.75% | 96.42% |
Share acted on, original cutoff | 45% | 83% |
Error when acting, original cutoff | 1.0% | 34.4% |
Cost per 1,000, re-fitted cutoff (1,000 = escalate everything) | 639 | 1,000 |
Accuracy barely moved, because it only counts requests that have a right answer. The share the agent handled on its own jumped from 45% to 83%, which looks like progress. But only 57% of the test set has a right answer, so the agent was now acting on many it should have handed off, and a third of its actions were wrong (+33.5 points, 95% CI +31.3 to +35.7). Picking a new cutoff didn't help: the retrained model's best option was to send everything to a person.
Retraining on 400 random requests instead also raised error when acting (+19.1 points), so the problem isn't mainly which requests we picked. It's what the training data left out. Requests with no right answer were dropped, so the model never saw an example of saying no.
Rounds 2 and 3: patch the gap. In Round 2, we added Step 3's "none of these" option and trained escalated off-topic messages as "none". In Round 3, we also trained on two-in-one messages labeled "none". Each round fixed the kind of request it added, and the errors moved to a kind that never appeared in our training traffic. Error when acting rose less each round (+33.5, +18.5, then +10.5 points), but it still rose, and re-fitting the cutoff never beat the model before retraining.
Wrong automatic actions at the original cutoff, after three cycles of each round:
Request type | Before retraining | Round 1: trained on escalations | Round 2: + off-topic as "none" | Round 3: + two-in-one as "none" |
|---|---|---|---|---|
Off-topic (of 300) | 2 | 191 | 2 | 26 |
Services outside banking (of 300) | 0 | 180 | 5 | 83 |
Two-in-one (of 300) | 4 | 204 | 239 | 1 |
Clear requests (of 1,200) | 10 | 28 | 36 | 43 |
"Before retraining" includes the "none of these" option; without it, the numbers were nearly the same (1, 0, 4 and 4).
What to check after every retrain
Keep a fixed set of requests that should be escalated, covering each kind you know about, and measure error when acting on them at the original cutoff.
Re-fit the cutoff and compare the cost with the model before retraining.
Label escalations with no single right answer as "none", instead of dropping them.
Check after every retrain, not just once: in Round 1, error when acting went from 37% to 19% to 34% after three retrains.
The checklist
Check that the model’s confidence is honest, on a labeled sample of your own traffic.
Set the cutoff by what a mistake costs: fit it on labeled data, or start with Chow's rule if you have none. Don't default to 0.5.
Test requests with no right answer separately, and add a "none of these" option.
Don't count on a second pass to tell you when to escalate.
After every retrain, measure error when acting on every kind of request that should go to a person, at the original cutoff, and re-fit the cutoff.
A confident agent isn't the same as a correct one. The gap between them is where your escalations should go.
Limitations
Mostly one task. Most results come from support routing on CLINC150, written by crowd workers; we built the long-email and two-in-one messages. Our test sets also have far more requests that should go to a person than real traffic (43% on support, half on tools), which makes a low cutoff look worse.
Assumed costs. We assumed a wrong action costs 20 times an escalation (and checked 5 and 50). Your ratio will differ, and the best cutoff moves with it.
Easy tasks for a second pass. Ours were already 97–99% accurate, leaving little for a second pass to fix.
"None of these" untested on tools. We tried the option on support only.
One retraining setup. One model (GLiDE-9B), each cycle run once, and heavy training on each batch. Gentler training might keep confidence steadier. No round trained on every kind of request that should go to a person, so whether that fixes the problem is still open.
References
Chow, C. K. 1970. "On optimum recognition error and reject tradeoff." IEEE Transactions on Information Theory.
Guo et al. 2017. "On calibration of modern neural networks." ICML.
Lakkaraju et al. 2017. "The selective labels problem: evaluating algorithmic predictions in the presence of unobservables." KDD.
Larson et al. 2019. "An evaluation dataset for intent classification and out-of-scope prediction." EMNLP. CLINC150 dataset, CC BY 3.0.
Patil et al. 2025. "The Berkeley Function Calling Leaderboard (BFCL): From tool use to agentic evaluation of large language models." ICML. Apache-2.0.
Allahyar 2026. "Recurrent looped transformers: pushing the frontier in decision models and scaling reasoning in latent space." Fastino blog.