LIVE · Thursday 3 December

How to Benchmark Decision Models on Your Own Data Before You Buy: A Proof-of-Concept Protocol

Build a hidden test set from your own logs, cut an out-of-time slice, fix the pass mark in advance, and score every vendor on the same file before a shadow trial and a contract tied to the result.

By Thomas10 min read

To benchmark a decision model on your own data before buying, build a hidden test set of 100 to 500 logged decisions and cut an out-of-time slice after a date that no vendor sees. Then run every vendor and your current baseline on that same file in your own environment. Score accuracy, calibration, coverage at a confidence threshold, and cost per 1,000 decisions, with thresholds fixed in advance. Finish with a shadow trial on live traffic and a contract that names the pass mark and the exit terms.

A decision model picks from a fixed list of actions, so it needs different metrics than a chatbot

A decision model takes a case, such as a support ticket or a loan file, and chooses one action from a list that you define. It also reports a confidence for that choice. A well-built deployment lets the model act when its confidence is high and sends the case elsewhere when it is low. The fallback can be a frontier LLM call, a rules engine or a person.

That design changes what you need to measure. Overall accuracy still matters, but the buyer's real question is narrower. You want to know how accurate the model is on the cases it accepts, and how many cases it accepts at each confidence level. Researchers call this selective classification, or the reject option. Geifman and El-Yaniv describe it in a 2017 paper as trading coverage, the share of cases the model handles, for lower risk on the cases it keeps.

The approach only works if the confidence numbers mean something. scikit-learn's documentation defines a well-calibrated classifier with a simple test. Among cases given a probability near 0.8, about 80% should turn out to be correct. Guo and colleagues found in 2017 that modern neural networks "are poorly calibrated," so calibration cannot be assumed. It has to be measured on your data.

You define the decision and the pass mark before you contact any vendor

NayaOne's vendor-evaluation guide, published in April 2026 and updated in July, asks buyers to fix the use case and the success metric before stage one. Writing these down first stops a vendor from proposing the metric that flatters its product.

Write down four things before the first sales call:

  1. Name the decision in one sentence, such as "route each inbound ticket to one of 12 queues."
  2. List the allowed actions exactly, including a "defer" or "escalate" action if your process has one.
  3. Choose the business metric that the decision affects, such as correct first routing or approved loans that later default.
  4. Set the pass threshold as a number, such as "at least 93% accuracy on accepted cases while handling at least 70% of volume."

You build a hidden test set from your own logs and keep it away from every vendor

The test set should come from your own logged decisions, sampled in the same mix as production. A set of 100 to 500 cases is a practical size for a first comparison. Include edge cases in roughly the share that they appear in real traffic. Drew Breunig argued in January 2025 that "your eval is the most valuable AI asset you own, not your model or your prompts." A held-out set that only you control is the reason.

Sample size limits what the test can tell you. With 300 cases, a vendor that gets 252 right scores 84.0%, and the 95% Wilson interval runs from 79.4% to 87.7%. A second vendor at 87.0% has an interval from 82.7% to 90.3%. The two ranges overlap, so a three-point gap on 300 cases does not prove that one model is better. Use 500 cases or more if the finalists are close.

Cut a separate out-of-time slice as well. Pick a cutoff date, give vendors nothing after it, and keep the later cases for the final score. The reason comes from credit scoring. A Cornell working paper from 2007 by Glennon, Kiefer, Larson and Choi found that within-period validation was useful, "but out-of-time validation shows a substantial loss of accuracy." The models still ranked borrowers well, but their predicted default rates drifted. A random split from a single period cannot show that kind of drift.

Check every input field for leakage before any vendor sees the file. scikit-learn's guide defines leakage as using "information that would not be available at prediction time." Its toy example shows how large the effect can be. With random labels, a mistake in the order of steps lifted test accuracy from the expected 0.5 to 0.76. In logged decisions, fields such as "final status," "resolved by" or "days to close" are typical examples to check.

Your labels may also be biased by your own past decisions. If you only approved some cases, you only know outcomes for those cases. RiskSpan notes that repayment information "is only available for accepted applications." Kozodoi and colleagues wrote in 2024 that evaluating on accepted cases alone "produces biased performance estimates." The standard correction is called reject inference, but RiskSpan warns that scoring with inferred outcomes "risks overstating the model's performance." If you cannot correct for the bias, compare models at matched approval rates. RiskSpan's rule is that, at similar accept rates, the model with the lowest bad rate is best.

Every vendor and your baseline run the same file through an API in your environment

NayaOne puts the core rule plainly: "The moment the vendor controls the test environment, you are back to evaluating the demo." The fix is to send identical inputs from your side and to record the outputs yourself.

These rules keep the comparison fair:

  • Run the same input file through each vendor's API and through your baseline, which may be your current frontier LLM prompt, your rules engine or your existing classifier.
  • Choose each vendor's confidence threshold on one slice of the data, then report the results on a separate held-out slice.
  • Forbid vendor labeling or tuning on the test set, because a model that labels its own test data is graded on agreement with itself.
  • Log the ranked action list and the confidence for every decision, so that you can audit any single case later.

A short script is enough to run this. It reads each case, calls each system, and writes one row per case and system to a results file.

import csv, time

def run(systems, cases_path, out_path):
    with open(cases_path) as f, open(out_path, "w", newline="") as out:
        w = csv.writer(out)
        w.writerow(["case_id", "system", "action", "confidence", "label", "latency_ms"])
        for case in csv.DictReader(f):
            for name, call in systems.items():
                t0 = time.perf_counter()
                action, conf = call(case["input"], case["allowed_actions"].split("|"))
                ms = (time.perf_counter() - t0) * 1000
                w.writerow([case["id"], name, action, conf, case["label"], round(ms)])

Each entry in systems is a small function that wraps one vendor's API and returns the chosen action and its confidence. Run the script twice on the same file to measure stability across reruns.

The scorecard combines accuracy, calibration and coverage, because one number hides the trade-off

This worked example uses illustrative numbers for one vendor on a 300-case held-out slice. Its top-1 accuracy, the share of cases where its first choice was correct, is 252 out of 300, or 84.0%.

Accuracy on accepted cases shows what happens when the vendor may defer. Raising the threshold makes the model handle fewer cases but get more of them right.

Confidence threshold Share accepted Accuracy on accepted
None 100% 84.0%
0.7 85% 91.4%
0.8 75% 93.8%
0.9 60% 96.7%

With a pass mark of 93% at 70% coverage, this vendor passes at a 0.8 threshold. The deferral rate is then 25%.

Expected calibration error, or ECE, measures whether "90% confident" means 90% correct. Guo and colleagues define it by grouping predictions into confidence bins. For each bin, you take the gap between accuracy and mean confidence and weight it by the bin's share of cases. In this example, the top bin holds 180 cases at a mean confidence of 0.95, and 174 of them are correct, or 96.7%. That gives a gap of 1.7 points. The bin below 0.7 holds 45 cases at a mean confidence of 0.55, but only 19 are correct, or 42.2%. That gap is 12.8 points. Across all four bins, the weighted ECE comes to 3.5%. Most of it comes from the low-confidence cases, which the threshold sends to the fallback anyway.

A reliability diagram plots the same data as a chart. It shows accuracy on the vertical axis against confidence on the horizontal axis, and a perfectly calibrated model falls on the diagonal. scikit-learn's calibration_curve function computes the points. Guo and colleagues add one caution: the diagram does not show how many cases fall in each bin. Print the bin counts next to it.

Report results for each action as well as the overall figure. scikit-learn's documentation notes that a weighted average "alters 'macro' to account for label imbalance." In practice, a weighted score can look strong while a rare but costly action is usually wrong. The macro average, the unweighted mean across actions, exposes that problem.

Cost per 1,000 decisions must include the deferred cases, because the fallback can cost more than the vendor's fee

Price the whole system, not only the vendor's fee. Assume that the vendor runs on every case and that deferred cases go to a frontier LLM. Anthropic lists Claude Sonnet 5.5 at $2 per million input tokens and $10 per million output tokens. A fallback call of 3,000 input tokens and 200 output tokens then costs $0.008, or $8.00 per 1,000 calls.

At the 0.8 threshold, 250 of every 1,000 cases go to the fallback, which costs $2.00. Add the vendor's own fee per 1,000 decisions to reach the total. If deferred cases go to a person instead, the arithmetic changes sharply. At an assumed $1.00 of staff time per case, the same 250 deferrals cost $250. The threshold you choose is therefore a cost decision as much as an accuracy decision.

Measure the fallback's accuracy on the deferred cases too. The system's real accuracy is the vendor's correct accepted cases plus the fallback's correct deferred cases, divided by the total.

Add these operating checks to the same scorecard:

  • Record median and p95 latency for each system from your own calls, since vendor figures are measured on the vendor's hardware.
  • Compare stability across reruns by counting how many decisions change between two identical runs.
  • Confirm data handling and self-hosting terms in writing, including whether the vendor keeps or trains on your test data.

A shared scorecard file keeps every candidate on the same rows

Copy these columns into a spreadsheet or CSV file, and fill in one row for each system and threshold:

system,threshold,share_accepted,top1_accuracy,accuracy_on_accepted,macro_accuracy,worst_action_accuracy,ece,deferral_rate,cost_per_1000_incl_deferrals,latency_p50_ms,latency_p95_ms,decisions_changed_on_rerun,ranked_list_logged,data_retention_terms,self_hosting_terms,pass

The results file that the harness script writes supplies the data for the accuracy, calibration, latency and rerun columns. The cost and contract columns come from each vendor's price list and terms.

Vendor-supplied results show why your own test set matters

Parsec's TOD, a decision model that ranks the next action from a list of allowed actions, is one example of how vendor figures need context. Its confidence gate passes a case unchanged to the parent LLM when it is not confident, so it fits this protocol. According to Parsec's TOD page, it costs $0.30 per 1,000 decisions, and that fee is separate from parent-model costs. The same page reports that TOD scored 84.4% on the public JevBench set, below its own untrained base model, and says the next release will fix this. These are Parsec's own figures, not independent results. Parsec also publishes MIT-licensed open-source code, openjev-sdk, for fine-tuning small decision models. Run TOD through the same file and harness as every other candidate.

A shadow trial on live traffic comes before champion/challenger rollout and a contract tied to the result

A historical test cannot show integration problems, late-arriving data or drift. Pega Academy describes shadow mode as the safe next step. In that mode, "the challenger model runs alongside the current model, receiving production data" without affecting business decisions. Run the finalist this way for a fixed period, such as four weeks, and score it with the same scorecard.

If it passes, move to champion/challenger. Pega describes routing "a small percentage of cases" to the challenger, raising that share gradually, and promoting it once it performs well. RiskSpan adds the comparison rule for approval decisions: at similar accept rates, the lower bad rate wins.

Write the result into the agreement. NayaOne's gate for the commercial stage is that the contract "reflects what testing proved, including exit terms." In practice, the contract should name the pass metric, the threshold, the measurement method and the scorecard file. It should also say what happens if production results fall below the pass mark, including how you exit and take your data with you.

Sources

More in Research

All Research →