LIVE · Thursday 3 December

How to Evaluate a Decision Model Before Production: Thresholds, DMN Tests, Calibration and Release Gates

A decision model is ready for production only when thresholds that were set in advance pass on held-out, deployment-like data, the production path matches training, and rollback is tested. This protocol includes a runnable rule-table test and a release-report template.

By Thomas12 min read

To evaluate a decision model before production deployment, write down the allowed decisions, the cost of each error and the release thresholds before you look at any results. Then test the logic, validate on later and unseen cases, measure calibration and consequential errors separately, and test the full production path for training-serving skew. Release through a shadow or canary stage with a named owner, monitoring and a rollback that has been tested. NIST's AI RMF, Google's production ML guidance and the banking model-risk guidance share one principle: offline accuracy alone is never the release decision.

A decision model chooses among allowed actions, so evaluation starts with the action list and the cost of each error

A decision model, in the sense used here, receives a state and a set of allowed options and returns a choice. The options might be refund outcomes, routing targets or the next tool call in an assistant. Hugging Face described this interface on November 10, 2026, when it added a pipeline("decision", ...) task to Transformers. A request carries a state and named questions, and each choice question lists its allowed answers as criteria. The post states that the model "returns the probability parameter itself, leaving the application to decide how to act on it."

That last point shapes the whole evaluation. The model produces probabilities, and your system turns them into actions. So the evaluation has to cover the model, the threshold that the system applies and the action that follows. Before any test runs, a release plan should record five things:

  1. The intended decisions that the model makes, and the decisions that remain with people.
  2. The eligible inputs, meaning the fields, ranges and sources that the model is allowed to receive.
  3. The allowed actions, as a versioned list, so that a test can prove that the model never returns anything else.
  4. The cost of each error type, such as a wrong approval against a wrong refusal, stated in money or in harm.
  5. The release thresholds, written down and signed before final results exist.

Google Cloud's architecture guidelines ask teams to "have predefined and fixed thresholds for optimizing metrics and for satisficing metrics." NIST's AI RMF asks the same thing in governance terms. MEASURE 1.1 says that the metrics are selected in advance and that risks that cannot be measured are documented. Fixing thresholds early stops a team from moving the pass mark after seeing a disappointing number.

Rules and learned models need different tests, and rules or an unmodified model are often enough

A rules engine and a learned model fail in different ways. A rule table fails through logic errors: two rules that fire on the same input, or an input that no rule covers. A learned model fails statistically: it can be wrong on cases that look unlike its training data, and its probabilities can be overconfident.

Google's Rules of Machine Learning starts from the cheaper option. Rule #1 reads, "Don't be afraid to launch a product without machine learning." Rule #3 sets the limit on that advice: "Choose machine learning over a complex heuristic," because "a complex heuristic is unmaintainable." A practical reading follows from the two rules together:

  • Use rules alone when the policy fits in a small table and every input is a structured field.
  • Use an unmodified decision model when inputs are free text or images and the option set changes often.
  • Consider a custom-tuned model only after a frozen model fails a threshold on held-out data, and only if the tuned model passes on the same data.

The comparison has to run on the same held-out set for all three. Rule #4 states the reason: "Your simple model provides you with baseline metrics and a baseline behavior." Tuning does not win by default, and one vendor's own figures show it. Parsec, a small language model lab, sells TOD, a tuned decision model that ranks the next action from a list of allowed actions. It sits in front of an existing assistant and passes low-confidence turns unchanged to the parent model. Parsec's TOD page reports 84.4% accuracy on the public JevBench set of 231 decisions, against 86.2% for the untrained base model. The page says that recovering those decisions is planned for the next release. These are Parsec's own figures, not an independent measurement. They show why a tuned candidate must beat the frozen baseline on your data before anyone assumes that it does.

A rule table is tested for gaps and overlaps by enumerating boundary and missing inputs

The analysis of rule tables has formal foundations. Calvanese and co-authors, in a 2016 arXiv paper on the semantics of DMN decision tables, define two core checks: "detection of overlapping rules" and "detection of missing rules." DMN hit policies decide what an overlap means. Camunda's reference states that under the Unique policy "only a single rule can be satisfied or no rule at all," and that if more than one rule is satisfied, the policy is violated.

The test below runs a four-rule refund table under the Unique policy. It enumerates values on each side of every boundary, plus a missing value for each input.

from itertools import product

RULES = {
    "R1": lambda d, a: d <= 30 and a < 100,           # approve
    "R2": lambda d, a: d <= 30 and 100 < a <= 500,    # review
    "R3": lambda d, a: d > 30,                        # deny
    "R4": lambda d, a: a > 500,                       # escalate
}
DAYS = [0, 30, 31, 365, None]
AMOUNTS = [0, 99.99, 100, 500, 500.01, None]

def matches(d, a):
    if d is None or a is None:
        return []
    return [n for n, rule in RULES.items() if rule(d, a)]

gaps, overlaps = [], []
for d, a in product(DAYS, AMOUNTS):
    hit = matches(d, a)
    if not hit:
        gaps.append((d, a))
    elif len(hit) > 1:
        overlaps.append((d, a, hit))
print(f"cases={len(DAYS) * len(AMOUNTS)} gaps={len(gaps)} overlaps={len(overlaps)}")

The script prints cases=30 gaps=12 overlaps=2. Two gaps come from the boundary: a refund of exactly 100 within 30 days matches no rule, because R1 stops below 100 and R2 starts above it. The other ten gaps are cases with a missing input, which need an explicit rule or a refusal path. The two overlaps are refunds above 500 that are more than 30 days old, where R3 and R4 both fire. Each finding becomes a test that must pass before release. The real table needs the same enumeration over every input and every boundary that it defines.

A learned model is validated on a versioned dataset with later and unseen scenarios held out

For a learned decision model, the unit of evaluation is a record of the state, the question, the offered options and the correct option. The dataset contract should version all four. It should also record the version of the option list, because the same state can have a different correct answer when the options change.

Two kinds of held-out split matter. A temporal split tests the model on data that arrived after its training data. Google's Rule #33 states it directly: "If you produce a model based on the data until January 5th, test the model on the data from January 6th and after." A scenario split holds out whole case types, such as a product line or a new policy, so that the test shows how the model handles situations that it has not seen.

NIST's MEASURE 2.3 asks that performance be "demonstrated for conditions similar to deployment setting(s)." MEASURE 2.5 adds that "limitations of the generalizability beyond the conditions under which the technology was developed are documented." In practice, every result in the release report should name the split that it came from.

Option-selection models need tests for missing correct candidates and for changing option sets

Decision models that pick from a list have failure modes that ordinary classifiers lack. The model cannot choose a correct option that never reached it. Many systems first retrieve a shortlist of candidates and then score them. A retrieval failure looks like a model error in the final numbers, so it has to be measured as its own stage.

The acceptance suite should include these tests:

  • A missing correct candidate test removes the right option from the list and checks that the system defers instead of choosing the best wrong answer.
  • A retrieval recall test measures how often the correct option appears in the shortlist, separately from how often the scorer picks it.
  • A changing option set test adds, removes and reorders options and checks that the choice depends on the options, not on their position.
  • A closed action set test confirms that the system never returns an action outside the versioned list.
  • An argument and execution test checks the parameters of a chosen action and the result of running it, because choosing "issue refund" is not the same as refunding the right amount.

The last test matters most for assistants. Selecting the right tool is one step. Filling its arguments correctly and running it successfully are two more steps, and each one can fail on its own.

Accuracy, calibration, selective error, consequential errors and whole-task success need five separate measurements

A single accuracy figure hides most of what a release decision needs. The report should give each of the following measurements separately.

Decision accuracy is the share of held-out cases where the model chose the correct option. It needs an interval, not a point. With the Wilson interval that the NIST/SEMATECH e-Handbook describes, 368 correct out of 400 is 92%, with a 95% interval from 88.9% to 94.3%. A subgroup with 36 correct out of 40 is 90%, but its interval runs from 76.9% to 96.0%. A threshold of 90% cannot be declared met for that subgroup on 40 cases. The report should print the sample size next to every subgroup figure.

Calibration asks whether the probabilities mean what they say. The scikit-learn documentation explains that among cases given a probability near 0.8, about 80% should turn out correct. A reliability diagram plots this by bin. The same documentation warns that "a lower Brier loss, for instance, does not necessarily mean a better calibrated model," so calibration needs its own plot. Guo and co-authors found in 2017 that "modern neural networks, unlike those from a decade ago, are poorly calibrated." Calibrate on data that was not used for training, as scikit-learn advises.

Selective error against coverage matters whenever the system defers uncertain cases to a person or a larger model. Geifman and El-Yaniv describe this as selective classification, "also known as reject option," which trades coverage for lower error. The release report should show a curve: at each confidence threshold, the share of cases that the model handles and its error rate on those cases. The release threshold is a point on that curve.

Consequential errors are the errors that the cost table marks as expensive. Count them separately. On 300 high-risk cases, 3 harmful approvals is 1.0%, with a Wilson interval from 0.3% to 2.9%. Even zero errors in 300 cases leaves an upper bound of 1.3%, so a limit of "fewer than 1 in 1,000" cannot be shown with 300 cases. The e-Handbook recommends the exact binomial method when failures are very few.

Whole-task success measures whether the full job finished correctly, which a per-decision score does not capture. The τ²-Bench paper from June 2025 tests conversational agents in a setting where both the agent and the user act on a shared environment. Its authors report a significant drop when agents move into that setting. A decision model that scores well per step can still lower the task success rate, so the release report needs both figures.

Integration tests on the serving path expose failures that offline results do not show

Offline results apply only to the code path that produced them. Google's monitoring guide defines training-serving skew as the case where "your input data during training differs from your input data in serving." Rule #37 asks teams to measure it, and Rule #32 says to "re-use code between your training pipeline and your serving pipeline whenever possible." Rule #29 adds that the best way to train like you serve "is to save the set of features used at serving time."

A practical skew test replays a few hundred logged production requests through the serving stack and through the evaluation stack. It then compares the preprocessed inputs, the offered options and the output probabilities. Any difference is an engineering error until it is explained. The same run should record:

  • The versions of the model, the preprocessing code, the option list and the retriever.
  • The latency at the median and the 95th percentile, with the hardware, precision and batch size stated for each figure.
  • The throughput at expected peak load, and the behavior when a request times out.
  • The fallback path, tested by forcing timeouts and low-confidence results and checking that the case reaches the parent model or a person.
  • The total operating cost per month, including model fees, the parent-model calls on deferred cases and the expected cost of consequential errors.

Google's deployment-testing guide also asks teams to "ensure that the operations used by the model are present in the server" by testing in a sandboxed server. The test should therefore run on the serving configuration itself, not on a copy that only resembles it. A latency or accuracy figure is meaningful only with its architecture, hardware and workload attached.

The release report records the owner, the evidence, the limits and the rollback plan

The release decision should fit on one page that a reviewer who did not build the model can check. NIST's MEASURE 1.3 asks for assessors who "did not serve as front-line developers." The interagency model-risk guidance of April 17, 2026 describes "effective challenge" as "critical analysis conducted by objective experts." The report template below follows both.

Section What it records Pass condition
Scope Owner, decisions covered, eligible inputs, versions Signed by a named owner
Thresholds Metric, threshold and split for each gate Set before final results
Evidence Result, interval and sample size for each gate Every gate passes
Limits Untested scenarios, small subgroups, known regressions Each limit has a control
Release Shadow period, canary size, monitoring alerts Plan approved
Rollback Previous version, trigger, time to restore Tested in staging

The release itself should proceed in stages. In a shadow test, as AWS describes it for SageMaker, a copy of each request goes to the new model, and "only the responses of the production variant are returned to the calling application." A canary follows. Google's SRE workbook defines canarying as "a partial and time-limited deployment of a change in a service and its evaluation," compared against a control group. The canary should be large and long enough to be representative. Google Cloud's guidelines ask teams to test in staging that they can roll back "quickly and safely."

Monitoring continues after the release. Google's monitoring guide recommends checking input data against a schema and setting an alert on model age. NIST's MANAGE 2.4 asks for assigned mechanisms to "supersede, disengage" or deactivate a system whose outcomes are inconsistent with its intended use.

Banking model-risk guidance is a useful pattern, not a certification

The Federal Reserve's model-risk page now carries interagency guidance from the OCC, the Federal Reserve Board and the FDIC, dated April 17, 2026 and labeled SR-26-2. It names three validation elements: conceptual soundness, outcomes analysis against real-world results, and ongoing monitoring. It states that "validation generally occurs prior to a model's first use."

Its scope is narrow. The guidance states that it is most relevant to banking organizations with over $30 billion in assets. It also states that it "does not set forth enforceable standards." A footnote excludes generative and agentic AI models from its scope, which covers many decision models that run on language models. Following its structure is good practice, but it does not certify a model outside banking. NIST's AI RMF is also voluntary, and its page states that version 1.0 is being updated.

Sources

More in Research

All Research →