{"slug": "teaching-financial-ai-to-say-i-dont-know", "title": "Teaching Financial AI to Say “I Don’t Know”", "summary": "A new blog post proposes wrapping financial-document extraction models in a confidence layer — independent signals, a small scorer, a calibration step and a statistically guaranteed threshold — so systems can abstain on uncertain values instead of guessing. The author built a simulation of 24,000 synthetic compliance packs with 12 values each (288,000 values total) to illustrate the mechanics, noting the figures are illustrative rather than a benchmark. The post argues abstention matters because at 99.5% per-value accuracy across 40 values, only about 82% of packs are fully correct, forcing full review unless pipelines can flag which values need checking.", "body_md": "In my [previous post](https://www.cesarsotovalero.net/blog/reading-financial-documents-with-ai), I described three ways to build pipelines that read financial documents with AI.\nThe figure I care most about in that post is a stack of trust layers: a schema, grounding on the page, a blind cross-read by a second model, accounting rules, and, at the very bottom, a confidence threshold.\nI gave that last layer a single line: *“necessary, never sufficient”*.\nThis post is about that line.\n\nThink about the best junior credit analyst you have worked with. It was probably not the one who never made mistakes. It was the one who knocked on your door and said: “I’m not sure about this number. The scan is blurry, and it doesn’t match last quarter.” That sentence is worth a lot. It tells you exactly where to spend your attention. An analyst who is right 98% of the time but never tells you which 2% are wrong forces you to re-check everything they hand in.\n\nLarge language models are not good at saying “I don’t know.”\nPart of the reason is how they are trained and graded: most benchmarks give zero points for an honest abstention and some points for a lucky guess, so guessing wins.<sup>[1](#fn:1)</sup>\nAsking the model nicely to admit uncertainty helps a little, but it doesn’t fix the incentive.\nWhat does work is building a *confidence layer* around the model: a set of independent signals, a small scorer that combines them, a calibration step that turns the score into a real probability, and a threshold that comes with a statistical guarantee.\nPlus the part most teams forget: a review process designed for the moments when the answer is “I don’t know.”\n\nI’ll keep the running example from the last post: covenant monitoring. Every quarter, a corporate borrower sends a compliance pack. The system extracts a dozen values from it (EBITDA, net debt, interest expense, and so on), code computes the ratios, and the ratios are tested against the covenants in the loan agreement. Some of those values are covenant inputs, where an error can hide a breach. Others feed analytics, where an error is annoying but cheap.\n\nTo make every claim in this post checkable, I built a simulation: 24,000 synthetic compliance packs with 12 values each (288,000 values in total), with realistic error types, and the signals a real pipeline would produce for each value. Every chart and number marked as simulated comes from it. The numbers are illustrative, not a benchmark. The mechanics are exactly what I would run on real data.\n\nIn this post, I’ll cover:\n\n1. Why abstention is a feature, and how to measure a system that is allowed to say “I don’t know.”\n2. How extraction fails *confidently* , and which signals catch which failures.\n3. How to turn those signals into a calibrated probability, and how to choose a threshold you can make a promise about.\n4. How to design the human side: review modes, canaries, and random audits.\n5. How to keep the promise in production, and what supervisors will ask about it.\n\n## Why “I Don’t Know” Is a Feature\n\nMost document pipelines in banks start their life with 100% review.\nThe model pre-fills the values, and a person checks every one of them.\nThat is safe.\nIt is also where most projects stall, because the bank now pays for a model *and* for the same amount of checking as before.\n\nAutomation only pays off when you can skip checks. And to skip a check, you need to know which values don’t need one. That is a different question from “how accurate is the model?”, and it’s the question this post is about.\n\n### The Arithmetic of Many Fields\n\nStart with a simple calculation.\nSuppose the extractor gets each value right 99.5% of the time, which is excellent.\nA full set of financial statements easily has 40 values that matter.\nIf errors are independent, the chance that *every* value in the pack is right is 0.995 to the power of 40, or about 82%.\n\nSo roughly one pack in five has at least one wrong number somewhere.\nIf the only choice is to trust or review a *whole document*, you are stuck: trusting the pack means letting that wrong number through, and reviewing it means checking 40 values to find one.\nThe decision has to happen at the level of individual values.\nFor each value, the system must answer one question: *can this go into the database without a person looking at it?*\n\n### A Vocabulary for Abstention\n\nA system that may decline to answer needs its own metrics. Accuracy alone won’t do, because accuracy doesn’t care which answers you chose to trust. These are the terms I’ll use for the rest of the post:\n\n- **Coverage.** The share of values the system auto-approves. The rest are routed to people. Coverage is your automation rate.\n- **Wrong auto-approval rate (WAR).** The share of auto-approved values that are wrong. In the literature, this is called*selective risk* . In the last post, I called it the bank’s real risk metric.\n- **Abstention.** The system’s “I don’t know”: a value is routed to review (or the document is sent back) instead of being trusted. In the literature, you’ll also see*rejection* or*deferral* .\n- **Straight-through processing (STP).** The share of*documents* that flow through with no human touch. It is always lower than coverage, for the reason in Figure 2.\n- **Risk–coverage curve.** Sort all values from most to least confident. For every cut-off, plot coverage against WAR. This curve is the most useful single picture of a confidence layer.<sup>[2](#fn:2)</sup><sup>[3](#fn:3)</sup>\n\nTwo numbers summarize the curve.\nThe area under it compares scorers across all thresholds at once.\nBut a bank doesn’t operate at all thresholds.\nIt operates at one.\nSo the number I look at first is *coverage at risk*: at the risk I can accept, how much can I automate?\n\n### Ranking Beats Accuracy\n\nHere is a result that surprises people. Take two extractors. Extractor A is right 98% of the time, but its confidence scores barely separate its right answers from its wrong ones. Extractor B is right only 95% of the time, but its confidence scores separate right from wrong very well. Which one should the bank use?\n\nExtractor B, by a mile.\nAt a target of 0.5% wrong auto-approvals, A can automate 14% of the values and B can automate 86%.\nWhat separates them is *ranking*: the probability that a random correct value gets a higher score than a random wrong one.\nThat probability is the AUROC, which I covered for fraud models in [an earlier post](https://www.cesarsotovalero.net/blog/evaluation-metrics-for-real-time-financial-fraud-detection-ml-models).\nFor a confidence layer, it matters more than accuracy, because the whole job is to put the wrong values at the bottom of the list.\n\nThis is why “how accurate is your extractor?” is the wrong question to ask a vendor. A better one is “what coverage do you get at 0.5% WAR on my documents?” Answering it requires a confidence score worth ranking by, and that is exactly the part many products don’t have.\n\n### Chow’s Rule: Abstaining Has a Price, and So Does Guessing\n\nThe decision to abstain is an economic one, and it has a clean answer that is older than most of us.\nIn 1970, C. K. Chow derived the optimal rule for a recognition system that is allowed to refuse.<sup>[4](#fn:4)</sup>\nTranslated to our setting: let $c_r$ be the cost of a human review and $c_e$ the cost of a wrong value that nobody catches.\nIf $p$ is the probability that the value is correct, trusting it costs $(1 - p) \\cdot c_e$ on average, and reviewing it costs $c_r$.\nSo you should auto-approve when:\n\nWith a review that costs €4 and an undetected error that costs €1,000, the bar is 0.996: the value must be right at least 996 times out of 1,000 before it is cheaper to trust it than to look at it. If an error costs €200, the bar drops to 0.98. If it costs €5,000, it rises to 0.9992.\n\nNotice what the rule assumes: that $p$ is a *real probability*.\nIf the system says 0.999 for values that are right 99% of the time, the rule silently approves values it was supposed to send to people.\nThat’s why calibration, which I cover later, is not a nice-to-have.\nIt’s what makes the threshold mean anything.\n\nPilots have a useful habit here. On every approach, a go-around is a normal, trained, and blameless option. Nobody gets in trouble for aborting a landing that didn’t look right; people get in trouble for landing anyway. An abstention should feel the same way inside your system: routine, cheap, logged, and never treated as a failure. The failure is the confident wrong number that nobody looked at.\n\n## A Short History of Knowing What You Don’t Know\n\nNone of the ideas in this post are new. That is good news: it means they are well understood, and that a model validator can find textbooks about them.\n\nThe story starts with the weather.\nIn 1950, Glenn Brier proposed a score for probability forecasts: the average squared difference between the forecast probability and what actually happened.<sup>[5](#fn:5)</sup>\nA forecaster who says 90% and is wrong pays far more than one who said 60%.\nWeather services have verified their forecasts this way for decades, and studies of US precipitation forecasts found that forecasters could state probabilities reliably: on days with a 70% forecast, it rained about 70% of the time.\nStatisticians later formalized that property as *calibration*, and the reliability diagram I use later in this post comes from the same tradition of forecast verification.\n\nThe reject option itself was invented for the exact problem of this post.\nIn 1957, Chow described a character recognition system that refuses to classify a character when it isn’t sure enough, and in 1970 he worked out the optimal trade-off between errors and rejections.<sup>[4](#fn:4)</sup>\nMachines reading printed text and declining to guess: that was the original use case.\n\nAround 2000, machine learning learned to turn arbitrary classifier scores into probabilities.\nPlatt scaling fits a sigmoid to the scores; isotonic regression fits any monotone step function.<sup>[6](#fn:6)</sup>\nBoth are still the workhorses of calibration in production.\n\nThen came the guarantees.\nConformal prediction showed how to wrap any model with error guarantees that hold without assumptions about the model, as long as the future looks like the calibration data in a precise sense.<sup>[7](#fn:7)</sup>\nSelective classification formalized the trade-off between coverage and risk,<sup>[2](#fn:2)</sup> and in 2017 Geifman and El-Yaniv showed how to pick a threshold for a deep network so that the risk of the accepted predictions stays below a target with high probability.<sup>[3](#fn:3)</sup>\nThe certification code in this post follows that recipe.\nIn 2021, *Learn then Test* generalized it to almost any tunable parameter.[8](#fn:8)\n\nThe same year as Geifman and El-Yaniv’s paper, Guo and colleagues showed that modern neural networks are much more overconfident than older, smaller ones, and that a one-parameter fix (temperature scaling) recovers most of the calibration.<sup>[9](#fn:9)</sup>\nThe pattern repeated with language models.\nLarge pretrained models turned out to be reasonably calibrated on multiple-choice questions when asked in the right format,<sup>[10](#fn:10)</sup> but post-training for chat made calibration worse, and the confidence that models *state in words* tends to be overconfident.[11](#fn:11)\n\nThe latest results pull in two directions.\nReasoning models tend to express better-calibrated confidence, yet reasoning fine-tuning can make models *worse* at abstaining on questions that have no answer.\nAnd OpenAI researchers argued that hallucinations persist largely because training and evaluation reward guessing over admitting uncertainty.[1](#fn:1)\n\nPut together, the state of the art in one sentence is this: newer models describe their uncertainty better, but they are not more willing to act on it. That’s why I don’t leave the decision to abstain to the model. It belongs to a layer you own, test, and version.\n\n## How Extraction Fails Confidently\n\nBefore choosing signals, it helps to be precise about how extraction goes wrong.\nAlmost every wrong value falls into one of four buckets.\nWhat they have in common is that the model is usually *sure* of what it wrote.\n\n**1. Wrong cell.**\nThe number is printed on the page, and every digit is copied correctly, but it came from the wrong place: last year’s column, the parent company instead of the group, the quarter instead of the year to date.\nThis is the most common error on clean digital documents, and the most dangerous one for naive grounding, because “is this number on the page?” returns yes.\nWhat catches it is a check of the *layout*: the column header above the value, the row label next to it, and a rule that flags a current value equal to the prior one.\n\n**2. Misread.**\nA blurry 3 becomes an 8; a 1 loses its serif and becomes a 7.\nThis dominates on scanned pages.\nHere, the model’s internals sometimes help: the probability of the token that spells the uncertain digit is often lower than the rest.\nBut the overall answer still reads fluently, so a confidence number for the whole answer stays high.\nA second reader, OCR-based grounding, and arithmetic (net debt = gross debt − cash) catch most of these.\n\n**3. Sign or scale.**\nThe model copies `(486)` as `486`, or misses the “EUR thousands” line at the top of the table and stores 486 instead of 486,000.\nThe digits are right, so every token-level signal says “very sure.”\nThe meaning is wrong.\nThe fix from the last post still applies: let the model read values *as printed* and let code apply sign and scale.\nRules and history catch what slips through: EBITDA must equal operating profit plus depreciation and amortization, and a value that jumps by a factor of 1,000 from last quarter is not a business event.\n\n**4. Not printed.**\nThe pack doesn’t contain the value (capital expenditure lives in a note that wasn’t included), and the model produces a plausible number anyway.\nThis is the classic hallucination, and it is the most dangerous case because there is nothing on the page to point at.\nIt is also the easiest to catch *if* you look: grounding finds no match anywhere, a blind cross-read returns null or a different number, and a schema that explicitly allows “not found” gives the model a way out.\n\nIn the simulation, I mirrored this mix. About 35% of wrong values come from the wrong cell, 32% are misreads, 19% are sign or scale errors, and 15% are not printed at all. Scanned packs (a quarter of the total) have an error rate of about 15%, against 3% for digital ones.\n\n### Is It the Page or the Reader?\n\nThe four buckets hide a distinction that matters for what you do next.\nSome doubt comes from the *page*: the scan is blurry, the table is cut off, the pack is incomplete.\nStatisticians call this *aleatoric* uncertainty.\nNo amount of modeling will remove it.\nThe right response is often to reject the document and ask for a better copy.\n\nOther doubt comes from the *reader*: the template has never been seen, the layout is unusual, the language is unfamiliar.\nThis is *epistemic* uncertainty, and it shrinks with data.\nThe right response is to route the value to review and make sure the reviewed result ends up in the training and calibration data.\n\nA good confidence layer keeps the two apart. A low score caused by a terrible scan and a low score caused by a new template should not end up in the same queue with the same reason, because the fixes are different.\n\n### Why the Model’s Own Confidence Misses These\n\nThere is a simple reason why the model’s self-assessment fails on exactly these errors.\nToken-level confidence measures how sure the model is about *the characters it wrote*, given what it saw.\nExtraction errors are mostly about *where it looked* and *what the characters mean*.\nA model can be perfectly certain that it is copying “486”, and perfectly wrong that “486” is this year’s EBITDA in euros.\n\nThis doesn’t mean the model’s confidence is useless.\nIt means it is *one* signal among several, and a weak one for the errors that matter most.\nThe confidence layer is built from signals that look at the value from different angles.\n\n## Let the Model Say It First\n\nThe confidence layer doesn’t replace asking the model to abstain. It complements it. A few changes to the extraction call make “I don’t know” cheap for the model to say, and they turn its abstentions into signals that code can act on.\n\n**Give it a way out in the schema.**\nIf the output schema demands a number for every field, the model will produce a number for every field.\nStructured outputs are very good at enforcing shapes, including the shape that leaves no room for doubt.\nSo make every value optional, and give each one a status with a small, fixed set of reasons: *found*, *not found* (the pack doesn’t contain it), *illegible* (printed, but can’t be read reliably), or *ambiguous* (more than one plausible candidate, such as an original and a restated figure).\nA found value must come with the value exactly as printed, say `(486)`, and the page it came from; sign and scale are applied later in code.\nA value that isn’t found must not have a value at all.\nThe schema validator enforces both rules.\nEach status leads somewhere different.\n*Not found* triggers a completeness check on the pack (is a page missing, or does this borrower not report capital expenditure?).\n*Illegible* is a page problem, so the document is a candidate for rejection.\n*Ambiguous* goes to review with all the candidates on screen, which is exactly what a reviewer needs when a pack contains both the original and the restated figure.\n\n**Say that abstaining is acceptable, and that guessing costs more.**\nState it in the instructions: a missing value is better than a guessed one.\nKalai and colleagues propose that evaluations state an explicit confidence target in their instructions: a wrong answer costs points, “I don’t know” costs nothing, so guessing only pays above the stated confidence.<sup>[1](#fn:1)</sup>\nThe same wording works in an extraction prompt.\nPrompting helps, but it isn’t a cure.\n\n**Ask for evidence, so absence becomes visible.**\nIn the last post, every value came with a page and a quote or a box.\nThat requirement does double duty here: a value without evidence is something code can detect, and an invented value usually comes with evidence that doesn’t check out.\nA hallucination is hard to catch when there is nothing to verify.\nRequiring evidence creates something to verify.\n\n**Believe abstentions; don’t trust their absence.**\nTreat the model’s abstentions asymmetrically.\nWhen it says a value is illegible or not found, take it at its word: that value should not be auto-approved, whatever the other signals say.\nWhen it *doesn’t* abstain, that tells you much less, for all the reasons in the previous section.\nIn the routing policy, an abstention is a hard stop; in the scorer, the lack of one is just another weak feature.\n\n**Put unanswerable cases in your gold set.**\nThis one is easy to miss.\nIf every field in your evaluation set exists and is legible, then every prompt change that makes the model abstain *less* will look like an improvement, because it gets a few more values right and is never penalized for guessing.\nThat’s the benchmark problem Kalai and colleagues describe, reproduced inside your own team.\nInclude packs where values are genuinely missing, pages that are illegible, and tables with a restated column, and score a correct “not found” as a correct answer.\n\n## Where Confidence Comes From\n\nA confidence layer is only as good as the evidence it combines. The useful mental model is a panel of imperfect witnesses: each one sees part of the scene, each one has blind spots, and the blind spots are in different places. Figure 6 is the map I use.\n\n### The Model’s Own View\n\n**Self-reported confidence.**\nYou can ask the model for a confidence between 0 and 1 next to every value, and in the last post I did.\nIt is free, and it is better than nothing.\nBut studies of verbalized confidence find that the numbers models state in words tend to be overconfident,<sup>[11](#fn:11)</sup> and in practice they cluster at a few round values (0.9, 0.95, 1.0).\nPost-trained models and reasoning models do somewhat better, but not well enough to decide on their own.\nI treat it as a weak feature and never as a decision.\n\n**Token log-probabilities.**\nSome APIs return the log-probability of every generated token.\nFor extraction, the interesting tokens are the ones that spell the value, not the JSON around it, and the most informative statistic is the *minimum*: one uncertain digit is enough to make the whole number wrong.\nTwo details matter.\nFirst, a value spread over several tokens (`(`, `48`, `6`, `)`) must be located by character offsets, not token by token.\nSecond, when log-probabilities are not available, the feature must be recorded as *missing*, not as zero.\nA missing signal is information, and it must never be confused with a confident one.\nThis happens more than you’d think: not every API exposes log-probabilities, and some providers don’t offer them for their reasoning models.\nSo the scorer must work with and without this feature, and the decision to auto-approve must not quietly depend on it.\n\n**Self-consistency.**\nAsk the same question several times with sampling and measure agreement.\nFor open-ended answers this is a powerful idea,<sup>[12](#fn:12)</sup> and its refined version (clustering answers by meaning, “semantic entropy”) is one of the better hallucination detectors in the literature.<sup>[13](#fn:13)</sup>\nFor number extraction, I find it disappointing for the cost.\nIf the model misreads a blurry digit, it tends to misread it the same way five times.\nAgreement among samples of one model measures stability, not correctness.\n\n### A Second Reader\n\n**Blind cross-read.**\nA *different* model reads the same row and column without seeing the first answer, and code compares the two values.\nIn the simulation, it is the strongest single signal, and it is especially good against misreads and invented values.\nIts weakness is that models share blind spots.\nA large study of more than 350 LLMs found that when two models are both wrong, they often give the *same* wrong answer (60% of the time on one leaderboard dataset), and that more accurate models have *more* correlated errors, even across providers.<sup>[14](#fn:14)</sup>\nAgreement between two strong models is good evidence, but it is not independence.\nA wrong-cell error, where both models are drawn to the same misleading column, is precisely the case where they tend to agree.\n\n### Evidence on the Page\n\n**Layout and grounding.**\nThis is the code from archetype C in the last post: is the value printed inside the box the model pointed to, is its row label next to it, and is the column header the right period?\nGrounding (printed in the box) is strong against misreads and invented values.\nThe layout check (right row, right column) is what catches wrong-cell errors, the one failure that grounding alone waves through.\nBoth are deterministic, cheap, and easy to explain to an auditor.\n\n### The Rules of Accounting\n\nFinancial statements are full of identities, and identities are free error detectors.\nAssets equal liabilities plus equity.\nSubtotals equal the sum of their lines.\nNet debt equals gross debt minus cash.\nEBITDA equals operating profit plus depreciation and amortization.\nSigns follow conventions: interest expense is a cost, and revenue is not negative.\nA value that breaks an identity is not necessarily wrong (the *other* value in the identity may be the wrong one), but the pair deserves a look.\nThe limitation is coverage: in the simulation, 8 of the 12 fields take part in at least one rule, and the other 4 get no help from this signal at all.\n\n### History and Context\n\n**The borrower’s own history.**\nCompare each value with the same borrower’s previous quarters, as a z-score or a ratio.\nA thousand-fold jump is almost always a scale error.\nBut a legitimate business event (an acquisition, a write-down) also looks like an outlier, so history is a reason to review, never proof of an error.\nNew borrowers have no history, which is, again, a missing signal and not a reassuring one.\n\n**Document context.**\nWhether the page is scanned, the image quality, and whether the template has been seen before don’t point at a specific value.\nThey shift the *base rate*: on a blurry scan of an unfamiliar template, every value is more likely to be wrong.\nThe scorer should know that.\n\n**Process signals.**\nHow the answer was produced is evidence too.\nA value that needed two retries, a JSON repair, or a fallback model is not the same as one that came back cleanly on the first call.\nLog every one of these events and feed the useful ones to the scorer.\nThey also make great monitoring metrics later.\n\n### What Combining Buys You\n\nHere is what the simulation says when you use each signal alone, compared with all of them combined by the scorer of the next section. The coverage column is the share of values you could auto-approve while keeping the observed wrong auto-approval rate at or below 0.5% on the test set.\n\n| Signal (simulated, test set) | AUROC | Coverage at 0.5% WAR | \n|---|---|---|\n| Self-reported confidence | 0.77 | 0.2% | \n| Lowest token log-probability of the value | 0.62 | 0.6% | \n| Grounding tier | 0.79 | 0.1% | \n| Blind cross-read agrees | 0.82 | 0.0% | \n| All signals, learned scorer with calibration | 0.98 | 88% | \n\nNo single signal can isolate a group of values clean enough to meet a 0.5% target. Even when the cross-read agrees, a few percent of those values are still wrong (mostly wrong-cell errors where both readers fell into the same trap), and you can’t separate them further with that signal alone. The log-probability looks weak overall, but that is partly because it is missing for 40% of the simulated documents: where the model exposes it, its AUROC is 0.85. Combined, the signals cover each other’s blind spots, and the share of values you can automate jumps from almost nothing to 88%.\n\nThat is the main lesson of this section.\nDon’t look for the best signal.\nLook for signals that fail in *different* places.\n\n## From Signals to a Probability\n\nCombining signals sounds like a job for hand-written rules: “auto-approve if grounded and the cross-read agrees and no rule fails.” That works on day one, and I’d start there. It breaks down quickly, though, because the rules multiply, they interact, and nobody can say what probability of being right a given combination corresponds to. The cleaner design is a small learned model that turns the signals into one number, followed by a calibration step that makes the number mean something.\n\n### The Scorer\n\nI use gradient-boosted trees for the scorer. They handle missing values natively, they capture interactions (a failed rule matters more on a scanned page), they train in seconds, and they can be constrained to behave in ways a validator can check. The inputs are the signals from the previous section: the grounding tier, whether the blind cross-read agrees, the number of failed accounting rules, the minimum log-probability, the distance from the borrower’s history, the model’s own confidence, and a few document features (quality, scanned or digital, known template, tier). The target is whether the value was right.\n\nThree design choices deserve a comment.\n\n**Monotone constraints.**\nFor every signal, I declare the direction in which it is allowed to move the score.\nA better grounding tier can never *lower* the probability of being right, and a failed rule can never raise it.\nWithout constraints, a flexible model will happily learn spurious patterns from a few thousand labels, like “values with exact grounding *and* a failed rule are fine,” because that happened to be true in the training data.\nWith constraints, the scorer’s behavior matches what a domain expert would expect, and you can explain each signal’s role in one sentence.\nThe model’s self-reported confidence gets no direction: it can be used, but the scorer is not forced to trust it.\n\n**Grouped splits.**\nA borrower’s packs share a template, a layout, an accountant, and often the same mistakes.\nIf one quarter of a borrower is in training and the next quarter is in test, the test score measures memory, not generalization.\nSo the split is by borrower: every borrower lands in exactly one of training, calibration, or test.\nIn the simulation, that means about 5,900 borrowers with four packs each, divided into training (50%), calibration (25%), and test (25%).\nIn a real portfolio, I’d also split by *time*: train on older quarters, calibrate and test on newer ones, because that is how the system will be used.\n\n**Missing stays missing.**\nLog-probabilities and history arrive as missing values when they don’t exist.\nThe trees learn what “missing” means from data, which is much safer than filling with zeros (a “perfect” log-probability) or with averages.\n\n### What Calibration Means\n\nThe scorer outputs a number between 0 and 1.\nIt is not yet a probability you can put into Chow’s rule.\nA *calibrated* score is one where the number means what it says: among all values with a score of 0.99, about 99% are right; among all values with a score of 0.9, about 90% are right.\nIt’s the weather forecaster’s property from the history section, applied to numbers in a PDF.\n\nThe way to check it is a *reliability diagram*: bin the held-out values by predicted probability, and plot the observed share of correct values in each bin against the average prediction.\nA calibrated score sits on the diagonal.\n\nIn the simulation, the model’s self-reported confidence says “1.0” for 61% of all values, and those values are right 98% of the time. That sounds fine until you put it into Chow’s rule: a “certain” value that is wrong one time in fifty is far below the bar of 0.996 from the earlier example. The calibrated scorer, on the other hand, stays on the diagonal all the way into the tail. The usual summary statistic, the expected calibration error (ECE), is 0.032 for the self-reported confidence and 0.0011 for the calibrated scorer.\n\nThere are three standard ways to calibrate a score:\n\n- **Platt scaling** fits a sigmoid with two parameters. It is robust with little data, but it can only fix distortions that look like a sigmoid.\n- **Isotonic regression** fits any non-decreasing step function. It is more flexible but overfits small samples; scikit-learn’s guide recommends it once there are more than about a thousand calibration examples.<sup>[15](#fn:15)</sup>\n- **Temperature scaling** divides a neural network’s logits by one learned constant.<sup>[9](#fn:9)</sup> It is the right tool when you calibrate a network’s own outputs, not a separate scorer like mine.\n\nWith tens of thousands of labeled values per release, I use isotonic regression, fitted on the calibration split, separately for each segment that behaves differently.\n\nWhy per segment? Because a scanned page and a digital page with the same raw score are not equally likely to be right, and a single calibration curve averages them into something true for neither. In the simulation, I calibrate digital and scanned values separately. In a real system, I’d consider segments for document type, language, and template family, each with enough labeled values to fit a curve.\n\nOne rule matters here: a segment that was never seen during calibration gets a probability of zero. That’s not pessimism; it’s the system saying “I have no evidence about this kind of document,” which routes every value from it to review. This is the confidence layer failing closed.\n\nA word of honesty about the scorer itself. Gradient boosting trained with log-loss is often close to calibrated on data that looks like its training data, and in the simulation the raw scorer was already good (ECE 0.0015 before calibration). The calibration step earns its keep elsewhere: it is fitted on data the scorer never saw, it can be refitted without retraining the scorer, and it adapts to each segment.\n\n### Calibration in the Tail\n\nECE has a blind spot that matters here. It is an average over all values, and most values are easy. A scorer can have a tiny ECE and still be off exactly where you care: above 0.99, where the thresholds sit. Being off by half a percentage point at 0.5 is irrelevant; being off by half a percentage point at 0.996 doubles your error rate.\n\nSo I always look at the reliability diagram with narrow bins near 1, as in Figure 8, and I check the number of values in each of those bins. If the top bins have a few hundred values, the calibration there is a guess. That observation leads directly to the next question: if the probability itself is estimated from limited data, how do you choose a threshold you can stand behind?\n\n## Choosing the Threshold\n\nWith a calibrated probability for every value, one decision is left: where to draw the line. There are two ways to think about it, and a bank needs both. The first is economic: which threshold minimizes the total cost? The second is about risk: which threshold lets you make a promise about the error rate, and keep it?\n\n### Option 1: Price It\n\nChow’s rule from earlier gives the threshold directly from two costs. Figure 9 shows what it means for the whole portfolio of simulated values: the expected cost of every possible policy, relative to reviewing everything.\n\nThree things stand out.\nFirst, the optimal coverage moves a lot with the cost of an error: from 82% of values at €200 per error, to 64% at €1,000, to 23% at €5,000.\nSecond, the curves are flat near their minimum and very steep after it, so erring on the side of *less* automation is cheap, and erring on the side of more is expensive.\nThird, at high error costs, the whole exercise saves little; a confidence layer is not magic, and for some fields the honest answer is “review them all.”\n\nIn practice, the cost of an error is not one number.\nA wrong EBITDA in a covenant test can hide a breach and delay a conversation the bank needed to have; a wrong headcount in an analytics table costs almost nothing.\nThat’s why I group fields into *tiers* by the cost of an undetected error and give each tier its own threshold.\nIn the simulation, tier 1 holds the four covenant inputs, tier 2 four values used in credit memos, and tier 3 four values used for analytics.\nAsk the business for the cost of an error per tier.\nA range is fine; the shape of Figure 9 makes the answer robust to rough estimates.\n\n### Option 2: Promise It\n\nA risk officer will rarely ask what the threshold costs.\nThey will ask what you can *promise*.\nAnd “the scorer says 0.996” is not a promise; it’s an estimate from finite data.\nThe promise I want to be able to make sounds like this:\n\nWith 95% confidence, at most 0.3% of the tier-1 values we auto-approve are wrong.\n\nThat sentence has two numbers: the target error rate (0.3%) and the confidence that we meet it (95%).\nTo back it up, you need an *upper bound* on the error rate among the values a threshold accepts, not just the observed rate.\nThe classic tool is the Clopper–Pearson bound for a binomial proportion:<sup>[16](#fn:16)</sup> if you accepted $n$ values and found $k$ errors, the true error rate is below the bound with the confidence you chose.\n\nA useful special case is the *rule of three*: if you observe zero errors in $n$ values, the 95% upper bound is about $3/n$.\nZero errors in 3,000 values supports a claim of “below 0.1%.”\nZero errors in 300 supports only “below 1%,” however clean the sample looked.\n\nCertification checks a fixed grid of 25 candidate thresholds, from strict to lenient. For each one, it counts the accepted values and the errors among them on the calibration split, computes the upper bound, and keeps the most lenient threshold whose bound still meets the target. If no threshold qualifies, nothing is certified, and nothing in that tier is automated.\n\nTwo details make this correct rather than merely plausible.\n\n**The grid is fixed before looking at the data.**\nIf you scan every possible threshold and pick the best-looking one, you are testing hundreds of hypotheses and reporting the luckiest, and the 95% stops being 95%.\nCertification tests 25 candidates fixed in advance and splits the error budget among them (each test runs at 0.05/25, a Bonferroni correction), so the 95% holds simultaneously for all of them.\nThis is the recipe of *selection with guaranteed risk*,<sup>[3](#fn:3)</sup> and an instance of the more general *Learn then Test* framework, which also offers sharper procedures than Bonferroni.<sup>[8](#fn:8)</sup>\nI start with Bonferroni because it is the version I can explain to a validator on a whiteboard.\n\n**Certification uses its own data.**\nThe thresholds are certified on the calibration split, and the numbers I report come from the test split, which nothing else has touched.\nReusing the scorer’s training data for certification would make every bound optimistic.\n\nFigure 10 shows what the promise costs.\n\nWith a single global target of 0.2%, the observed error rate on the calibration data stays under the target up to 66% coverage. A naive threshold placed there would only be right on average: on the next batch of documents, the real rate would land above 0.2% about half the time, and probably more often, because the best-looking point on a noisy curve is an optimistic one. The certified threshold automates 43%: 30,398 accepted values with 36 errors (0.12%), whose upper bound is just under 0.2%. The 23 points of coverage between the two are not waste. They are the margin that turns an estimate into a commitment.\n\nWith one threshold per tier, the simulated system looks like this on the untouched test split:\n\n| Tier (simulated) | Target WAR | Certified threshold | Coverage on test | Observed WAR on test | \n|---|---|---|---|---|\n| 1: covenant inputs | 0.3% | 0.9955 | 70% | 0.13% | \n| 2: credit memo values | 0.5% | 0.9841 | 81% | 0.30% | \n| 3: analytics values | 1.0% | 0.9437 | 91% | 0.83% | \n\nOverall, 81% of the values are auto-approved, and every tier stays below its target, with room to spare in tiers 1 and 2. That room is not an accident: the bound is conservative by design, and the guarantee is only worth something if it holds on bad days too.\n\n### Where Conformal Prediction Fits\n\nIf you have read about conformal prediction, you may recognize the structure: hold out calibration data, compute a statistic on it, and set a threshold so that a guarantee holds for new data.<sup>[17](#fn:17)</sup>\nThe family has grown well beyond prediction sets.\nIts extensions bound the error rate among accepted values directly, and recent work applies the same idea to decide when a language model should answer or say “I don’t know.”\n\nAll of these rest on the same assumption: *exchangeability*.\nRoughly, the new documents must look like the calibration documents, in the statistical sense of being drawn from the same process.\nThat is the fine print of every guarantee in this post.\nA new template, a new model version, or a wave of documents from a new market breaks it.\nI’ll come back to that in the section on production.\n\n### Averages Hide Segments\n\nThere is a second piece of fine print, and it’s easy to miss.\nThe guarantee is about the *average* over everything in a tier.\nIn the simulation, tier 3 met its 1% target overall (0.83%).\nBut inside tier 3, the auto-approved values from scanned documents were wrong 1.9% of the time, almost double the target, while digital ones were at 0.55%.\nNothing was broken.\nThe math promised an average, and it delivered an average.\n\nIf scanned documents matter on their own (and in a bank, a segment often has its own owner, process, or regulatory angle), you must certify them on their own, with one threshold per tier *and* segment.\nIn the simulation, that has a sobering effect: with about 6,000 calibration values per tier for scans, no threshold can be certified for scanned documents at all.\nThe observed error rates are fine, but there isn’t enough data to prove it at 95% confidence.\nValue-level automation drops from 81% to 67%, and every scanned value goes to people.\n\nI like this result. It is the confidence layer saying “I don’t know” about an entire segment, and it is the right answer until you have labeled enough scans. It also turns a vague debate (“are we ready to automate scans?”) into a concrete plan: how many labeled scanned values do we need for a certificate, and how long will it take to collect them?\n\n## The “I Don’t Know” Path\n\nA threshold is just a number until something acts on it. The routing function is where the confidence layer meets the rest of the pipeline, and it is the part I’d want a validator to read first. It should be short, boring, and impossible to misread. Mine checks four things in order: are all the required signals present (grounding, cross-read, accounting rules)? Is the probability a valid number between 0 and 1? Does the value’s tier have a certified threshold? Does the probability clear it? A single “no” sends the value to review; four “yes” answers auto-approve it.\n\nThe design choices are the same ones I argued for in the last post, now applied to confidence.\n\n**Every decision comes with a reason.**\nThe router never returns a bare “no.”\nIt returns *why*: a missing signal, an invalid score, no certified threshold for the tier, or a probability below the bar (with both numbers).\nThe reason travels with the value into the review queue, into the audit log, and into the monitoring dashboards.\n“Why is this value here?” is the first question every reviewer asks, and the answer should be on the screen.\n\n**Anything unusual fails closed.**\nIf a required signal is missing (the cross-read timed out, the grounding step crashed), the value goes to review, whatever its score.\nIf the score is outside 0 to 1, it goes to review.\nIf a tier has no certified threshold, because the certification found nothing it could promise, every value in that tier goes to review.\nIn the simulation, a tier-1 value with a probability of 0.999 but no cross-read result is routed with the reason `missing signal: cross_read_agrees`.\nThe scorer may know how to handle missing features, but the *policy* shouldn’t auto-approve on evidence it was told to require.\n\n**The policy is a frozen, versioned object.**\nThe thresholds are immutable, and in production it is loaded from the same bundle as the scorer and the calibrator.\nA threshold without the scorer it was certified for is meaningless, and the code shouldn’t make it possible to mix them.\n\n**Documents are routed after values.**\nA pack flows straight through only if *every* tier-1 value was auto-approved.\nThis is where Figure 2 comes back: in the simulation, 81% of values are auto-approved, but only 43% of packs pass straight through, because each pack has four tier-1 values and all four must clear the strictest threshold.\nWhen someone asks why automation “only” reaches 43%, that is the answer, and the lever is the tier-1 threshold, not the average.\n\n### One Pack, End to End\n\nTo make this concrete, here is one pack from the simulated test set, followed through the layer. It is a clean digital document from a known template, the kind you would expect to sail through. I gave the twelve simulated fields realistic names.\n\n| Value | Tier | What the signals said | p | Decision | Truth | \n|---|---|---|---|---|---|\n| EBITDA | 1 | Grounded exactly, rules pass, but the blind cross-read *disagrees* | 0.966 | Review: below 0.9955 | Correct; the second reader erred | \n| Net debt | 1 | Every signal agrees | 0.998 | Auto-approve | Correct | \n| Interest expense | 1 | Every signal agrees | 0.999 | Auto-approve | Correct | \n| Total equity | 1 | Every signal agrees | 0.997 | Auto-approve | Correct | \n| Operating cash flow | 2 | Only a numeric match on the page, cross-read disagrees, a rule fails, 4.4 standard deviations from history; self-reported confidence 0.95 | 0.000 | Review: below 0.9841 | Wrong: sign dropped | \n| Dividends paid | 3 | Numeric match on the page, cross-read agrees, no rule covers it; self-reported confidence 1.0 | 0.966 | Auto-approve: above 0.9437 | Wrong: last year’s column | \n| Six other values | 2–3 | Every signal agrees | ≥0.996 | Auto-approve | Correct | \n\nThree things happen in this one pack, and together they summarize the post.\n\nThe operating cash flow error is caught easily. The model was 95% sure of itself, but three independent signals disagreed with it, and the scorer gave it essentially no chance of being right. That is the confidence layer working as intended.\n\nEBITDA goes to review even though it is correct, because the second reader got it wrong. That’s the price of caution: a reviewer will re-key it blind, the two readings will match, and the value goes through with a label that says the cross-reader erred, which is useful training data. And because EBITDA is a tier-1 value, the whole pack waits for that review instead of flowing straight through.\n\nThe dividends value is the interesting one.\nIt has *the same* calibrated probability as EBITDA, 0.966, and gets the opposite decision, because it sits in tier 3, where an error is cheap and the threshold is lower.\nAnd it is wrong: a wrong-cell error where both readers took last year’s figure, and no accounting rule covers the field.\nThis is not a bug.\nIt is what a 1% error budget looks like from the inside: about one auto-approved tier-3 value in a hundred will be wrong, and this is one of them.\nIf that is not acceptable for dividends, the answer is to move the field to a stricter tier, or to add a layout check that confirms the column header, not to hope the next pack is luckier.\n\n### Three Outcomes, Not Two\n\nIt is tempting to think of abstention as a binary: approve or review. In practice, I need three outcomes.\n\n1. **Auto-approve.** The value is stored with its full lineage: page, box, both readings, the probability, and the policy version.\n2. **Review.** A person decides, with the evidence and the reason on screen.\n3. **Reject.** The*document* is unusable (illegible, incomplete, the wrong period), and the right action is to ask the borrower for a better copy.\n\nThe third outcome matters because of the distinction between page problems and reader problems. Sending a blurry scan to a reviewer just moves the guessing from a model to a person. A reviewer facing an illegible number, with no easy way to escalate, is likely to type a best guess. So make rejection a first-class button.\n\n### The Queue Is a Product\n\nOnce abstention is routine, the review queue becomes a production system with its own design questions.\n\n**Priority.**\nNot all doubtful values are equally urgent.\nI sort by materiality times doubt: a covenant input with a probability of 0.9 comes before an analytics value with 0.5, and anything blocking a covenant test comes first.\n\n**Capacity.**\nQueues obey Little’s law: the average number of items waiting equals the arrival rate times the average time each one waits.\nSuppose (illustratively) the bank receives 400 packs a day with 12 values each.\nAt 81% coverage, about 900 values a day go to review.\nAt 20 seconds per value, that’s 5 reviewer-hours a day, and if each value should wait half a day on average, about 450 values sit in the queue at any time.\nCompliance packs arrive in waves after each reporting date, so plan for the peak, not the average.\n\n**Who reviews what.**\nNot every reviewer is equally good at every task.\nThe research on *learning to defer* treats the human as part of the model and decides whom to send each case to, taking their skills into account.\nThe practical version is simpler: route scans to people who are good with scans, route new templates to people who can update the template library, and measure each queue separately.\n\n**Never let the queue move the threshold.**\nWhen the queue overflows at quarter-end, someone will suggest lowering the threshold “just for this week.”\nDon’t.\nThe threshold is a risk decision with a certificate behind it; the queue length is an operations problem.\nIf capacity is short, the answers are more reviewers, a longer service level, or a smarter priority, not a weaker promise.\nI’d put this rule in writing before the first peak, because nobody makes good risk decisions at 6 p.m. on the last day of a reporting cycle.\n\n## Designing the Human Side\n\nEverything so far assumes that a value sent to review gets *reviewed*.\nThat assumption is the weakest link in most human-in-the-loop systems, and it fails in a predictable way.\n\nPeople who supervise automation tend to over-trust it.\nThe research literature calls this *automation bias*: the tendency to accept a machine’s suggestion without checking it properly, which gets stronger as the machine gets more reliable and the operator gets busier.<sup>[18](#fn:18)</sup>\nIt is well enough established that the EU AI Act names it explicitly: providers of high-risk systems must enable the people who oversee them to stay aware of their tendency to over-rely on the system’s output.<sup>[19](#fn:19)</sup>\nA review step that rubber-stamps whatever the model said provides the *appearance* of oversight with none of the substance.\nSo the review interface is not a detail; it’s a control.\n\n### Confirm or Re-Key\n\nThere are two basic ways to review an extracted value.\n\nIn *confirm mode*, the reviewer sees the model’s value next to the highlighted page and clicks “correct” or “edit.”\nIt is fast, and it is what most tools do by default.\nIts weakness is that the value on the screen anchors the reviewer.\nWhen the model is right 99% of the time, “correct” becomes a reflex.\n\nIn *blind mode*, the reviewer sees the page with the box highlighted, but not the model’s value, and types what they read.\nCode compares the two.\nA match is approved; a mismatch goes to a second reviewer or an adjudicator.\nIt is slower, because typing is work, but it turns the reviewer into a genuinely independent second reader.\n\nThis is not a new debate. It is the old question of how to check manually entered data, and it has been studied in controlled experiments. In one, 195 participants were randomly assigned to single entry, visual checking (comparing the entry against the paper), or double entry (typing everything twice and resolving mismatches). Double entry produced significantly fewer errors, and visual checking was not significantly better than doing no checking at all. Confirm mode is visual checking with a nicer interface.\n\nSo I use both modes, deliberately:\n\n- **Blind mode** for tier-1 values, for new templates, and for every random audit.\n- **Confirm mode** for low-tier values where speed matters more and an occasional miss is cheap.\n\n### The Prevalence Trap\n\nThere is a second, subtler effect.\nHumans are much worse at finding things that are rare.\nIn visual search experiments, observers looking for targets that appeared in only a small fraction of trials missed them far more often than when the same targets were common.<sup>[20](#fn:20)</sup>\nAirport security has known this for a long time: real threats are so rare that screeners would otherwise almost never see one.\n\nThe confidence layer helps here, and it’s an argument I rarely hear for it.\nBy routing only doubtful values to people, it *concentrates* errors in the review queue.\nIn the simulation, 5.7% of all values are wrong, but 27% of the values in the review queue are wrong, and those 19% of values that go to review contain 93% of all the errors.\nA reviewer who knows that one value in four is wrong looks differently from one who knows that one in twenty is.\n\nBut the same logic works against you in the random audits.\nAudited values are drawn from the *auto-approved* ones, where the error rate is a fraction of a percent.\nThat is the worst possible setting for human attention: a reviewer can audit hundreds of correct values in a row.\nAudits must therefore be blind, and they need canaries.\n\n### Canaries\n\nAirport security has a technique for exactly this problem.\n*Threat image projection* inserts pre-recorded images of threat items into the X-ray images of real bags, so that screeners regularly encounter targets and the system can measure whether they catch them.\nRegulators in many countries mandate it, and the data is used to assess the performance of individual screeners.\n\nThe same idea works for review queues.\nA *canary* is a value that the system knows is wrong, injected into the queue on purpose.\nTo make canaries useful:\n\n- **Make them realistic.** Generate them from values a person has already confirmed, using the failure modes of Figure 5: flip the sign, swap a digit, take last year’s column, scale by 1,000. A canary that looks like a canary only measures canary detection.\n- **Keep them rare but steady.** One or two percent of the items is enough to measure a catch rate per reviewer over a few weeks without wasting much time.\n- **Give feedback.** Tell the reviewer when they catch or miss a canary. Feedback is part of what keeps people engaged, and it turns the canary into training.\n- **Make them impossible to store.** A canary must never reach the database. Tag it at creation, filter it before every write, and test that filter like any other control. A canary that leaks into a covenant test is a self-inflicted incident.\n\nThe canary catch rate is the metric that tells you whether the human layer of your system is working. If it drops, the labels coming out of the review queue are no longer trustworthy, and neither is anything you trained or certified on them.\n\n### What the Reviewer Should See\n\nShould the reviewer see the model’s probability?\nMy answer is no.\nShow the *reason* and the *evidence* instead: “cross-read disagrees: 1,836 vs. 1,886,” “fails rule: net debt ≠ gross debt − cash,” “no text layer; value read from a scan.”\nA number invites anchoring (“0.97, probably fine”).\nA reason invites a check, because it tells the reviewer what to look at.\n\nFinally, attention is a finite resource, and checking long sequences of mostly correct items wears it down. Classic vigilance experiments found that people’s detection rates in monotonous monitoring tasks drop noticeably after about half an hour, and sustained attention is hard mental work, not a passive state. Short sessions, breaks, and mixing review modes are not perks. They are part of the error budget.\n\n## Where the Truth Comes From\n\nEvery number in this post (the calibration curves, the certified thresholds, the error rates) depends on labels: values that someone confirmed as right or wrong.\nIn a simulation, the truth is free.\nIn production, it has to be collected, and *how* it is collected decides what it can tell you.\n\n### Review Decisions Are Biased by Design\n\nThe review queue produces the most labels by far.\nIt’s tempting to use them for everything, including measuring how well the system performs.\nBut they only exist for values the scorer *doubted*.\nYou never see a review label for a value that was auto-approved, which is precisely the population whose error rate you need to know.\n\nThis is known as the *selective labels problem*: when a decision determines which outcomes get observed, the observed outcomes can’t evaluate the decision.<sup>[21](#fn:21)</sup>\nIt shows up in lending (you only see defaults for loans you approved), and it shows up here.\nReview labels are excellent for training the next scorer, because they are rich in hard cases.\nThey are useless for estimating the wrong auto-approval rate.\n\n### Random Audits Are the Only Meter\n\nTo measure the error rate among auto-approved values, you need to look at a *random sample* of them, re-keyed blind, with canaries mixed in.\nRandom means drawn with a known probability, independent of the score.\nIf you sample some strata more heavily than others (tier 1 at 2%, tier 3 at 0.5%, say), weight each audited value by the inverse of its sampling probability when you combine them; that’s the Horvitz–Thompson estimator, and it keeps the estimate unbiased.\nSimpler still: report each stratum separately and never pool them.\n\nHow many audits do you need? The same upper bound that certified the threshold answers this question in reverse. For a target rate and a number of errors you expect to find, it gives the smallest sample that still lets you claim the target with 95% confidence.\n\nThe numbers are sobering, and they are worth showing to stakeholders early. To claim “below 0.1%” with 95% confidence, you need about 3,000 audited values without a single error. Find one error, and you need about 4,700; find two, about 6,300. At a target of 1%, the same claims need about 300, 470, and 630. The required sample scales roughly with one over the target, so every halving of the target doubles the audit bill.\n\nThat makes audits a planning item, not an afterthought. I’d ask for audit capacity in the right currency: not “2% of volume,” but “3,000 tier-1 values per quarter,” because that is what the claim needs regardless of volume. And the claim you make in the model documentation should be the one your audit budget can support.\n\n### The Gold Set Has Errors Too\n\nThe gold set from the last post (reference documents whose values were confirmed by people) is the stable yardstick for comparing versions offline.\nTwo caveats.\nIt is curated, so it is not representative of production, and it should never be used to estimate production error rates.\nAnd it contains errors of its own.\nEven famous machine learning benchmarks do: one study found label errors in at least 3.3% of the test examples on average, across ten popular datasets.<sup>[22](#fn:22)</sup>\nIf your gold set was keyed once, by one person, in confirm mode, assume it has errors.\nKey it twice, blind, and adjudicate every disagreement.\n\n### Corrections From Downstream\n\nThe last source is the one that arrives on its own: a borrower restates last quarter, an analyst corrects a value in the credit memo, a covenant calculation gets challenged. Each of these is a free audit result. But they are late, and they are biased toward errors that someone happened to notice, which are usually the big ones. Treat them as a smoke alarm, not a meter: every hit deserves a root-cause analysis (which signal should have caught it, and why didn’t it?), but the count tells you little about the rate.\n\n## Keeping the Promise in Production\n\nA certified threshold is a promise about documents that look like the calibration data. Production is where that stops being true. New borrowers arrive, templates change, a provider updates the extraction model behind the same API name, and a market downturn changes what “normal” values look like. Keeping the promise is mostly about noticing when its assumptions break, and reacting in a way that fails closed.\n\n### Automation Is a Level, Not a Switch\n\nI find it useful to manage automation as a small state machine, like Figure 14, rather than as a switch that is on or off.\nA new pipeline starts in *shadow* mode: the model runs, people do all the work, and the system collects labels.\nIn *assist* mode, the model pre-fills and every value is reviewed (tier-1 values blind); this is where the scorer and calibrator are trained.\n*Partial* automation starts only when a threshold has been certified on held-out data and someone accountable has signed off.\n*Straight-through* processing of whole documents comes last, after audits have confirmed the error rate for long enough to trust it.\n\nThe asymmetry is the point. Moving up a level requires evidence, a person, and time. Moving down is automatic, immediate, and needs nobody’s permission. That is what failing closed looks like at the level of the whole system.\n\n### The Certificate Belongs to a Version\n\nThe threshold was certified for a specific scorer, a specific calibrator, a specific extraction model, and a specific prompt, on a specific population of documents. Change any of them and the certificate expires. This sounds pedantic until a provider ships a “minor” model update that changes how the model formats negative numbers, and your sign rules start firing on half the values.\n\nSo treat the bundle (extraction model and prompt versions, scorer, calibrator, thresholds) as one versioned artifact.\nA new bundle runs in *shadow* next to the current one, on the same documents, and goes through certification on fresh labels before it makes a single decision.\nThe comparison is also informative: if the new bundle auto-approves very different values than the old one at a similar coverage, you want to know why before switching.\n\n### What to Monitor\n\nThese are the monitors I’d put on the first dashboard, roughly in order of how early they warn you:\n\n- **Signal availability.** The share of values with each signal present. If log-probabilities suddenly go missing after a provider update, or the cross-read starts timing out, the policy fails closed, but you want to know before the review queue explodes.\n- **Score distribution.** Compare this week’s distribution of calibrated probabilities with the calibration data, per tier and segment. A shift doesn’t prove the calibration is broken, but it says the population has moved. Methods for detecting such dataset shift are well studied, and simple two-sample tests on the scores go a long way.\n- **Coverage.** A drop in coverage costs money. A*jump* in coverage without a release is more worrying: the documents got easier, or a signal got stuck on “everything is fine.” Treat an unexplained rise as an alarm, not as good news.\n- **Reasons mix.** The distribution of review reasons. A new top reason (“missing signal: grounding”) usually points to a broken component, not to harder documents.\n- **Audited WAR, with its bound.** Per tier and segment, the observed error rate in random audits*and* its upper bound. Alert on the bound crossing the target, not on a single bad week.\n- **Canary catch rate.** Per reviewer and per queue. If it falls, the labels coming out of review are suspect.\n- **Override rate.** How often reviewers change the value, per reason. A reason with a near-zero override rate is sending reviewers values that are almost always right; it may be miscalibrated, or the threshold for that segment may be too strict.\n\n### Should the Threshold Adapt by Itself?\n\nThere is an elegant line of research on thresholds that adjust online.\n*Adaptive conformal inference* nudges the threshold after each observed outcome so that the long-run error rate stays on target even when the data distribution shifts.<sup>[23](#fn:23)</sup>\nIt is a beautiful idea, and I’d use it as an *early warning*: if the adaptive threshold drifts away from the certified one, something has changed.\n\nI wouldn’t let it move the production threshold on its own. In a bank, a threshold is a documented risk decision with a certificate, a validator, and an owner. A threshold that silently retunes itself every day is a different kind of object, and it would need a different kind of governance. The state machine in Figure 14 gives the same protection with less novelty: when the evidence says the promise is at risk, the system drops a level and people take over until a new certificate exists.\n\n## What the Layer Costs\n\nA confidence layer is not free, and it is better to put the bill on the table before the first steering meeting than after. These are the line items I’d budget for:\n\n- **Model calls.** The blind cross-read is the most expensive signal: it roughly doubles the model calls for the values it covers. If that’s too much, run it on tier-1 values only and accept lower coverage elsewhere. Self-consistency multiplies calls further, which is one more reason to be selective about it for extraction.\n- **Labels for calibration and certification.** The certificate needs thousands of labeled values per tier, and per segment if segments matter on their own. In the simulation, 6,000 labeled scanned values per tier were not enough for a single certificate. Labeling is the long pole, so start collecting in shadow mode, on day one.\n- **Audits.** Roughly 3,000 blind re-keyed values per tier and period for a claim of “below 0.1%,” as in Figure 13. That’s a standing cost, not a project cost.\n- **Reviewers.** The queue from the routing section, sized for the peak with Little’s law, plus the time spent on canaries.\n- **Engineering.** Versioned bundles, shadow deployments, a review interface with blind mode, and the monitors from the previous section. None of it is hard, but all of it has to exist before the first auto-approval.\n\nAgainst that, put the savings. In the simulation, the layer auto-approves 81% of values with every tier inside its error target, and Figure 9 shows total costs falling to between 31% and 91% of full review, depending on what an error costs. The other benefit is harder to price, and I’d argue it matters more: for the first time, the bank can state an error rate for its automated data with a confidence level attached, and back it with evidence. That’s what turns an AI pilot into a system a risk function can sign off.\n\n## What Supervisors Will Ask\n\nA confidence layer is, among other things, a very good answer to the questions a supervisor or a model validator will ask about an AI system that reads documents. Three frameworks are worth knowing. (As usual, this is an engineer’s reading of them, not legal advice.)\n\n**The EU AI Act.**\nArticle 14 requires high-risk AI systems to be designed so that people can oversee them effectively.\nAmong other things, the people assigned to oversight must be able to understand the system’s capacities and limitations, stay aware of automation bias, interpret its output correctly, decide not to use it or override it, and stop it.<sup>[19](#fn:19)</sup>\nArticle 15 requires that the system’s levels of accuracy, and the metrics used to measure them, be declared in its instructions for use.<sup>[24](#fn:24)</sup>\nA certified wrong auto-approval rate per tier, with its confidence level and the period it was measured on, is exactly such a metric.\n\nIs document extraction high-risk under the Act?\nThe list in Annex III includes AI systems used to evaluate the creditworthiness of natural persons.<sup>[25](#fn:25)</sup>\nCovenant monitoring for corporate borrowers is generally not on it.\nAn extraction step that feeds a creditworthiness assessment of a person (income from payslips for a mortgage, for example) may well be part of a system that is.\nAfter the Digital Omnibus on AI, the obligations for these stand-alone high-risk systems apply from 2 December 2027.\nEven where the Act doesn’t apply, I find Article 14 a good design specification for any human-in-the-loop system.\n\n**BCBS 239.**\nThe Basel principles for risk data, which I cited in the last post for lineage, have a principle on accuracy and integrity: risk data should be accurate and reliable, and aggregated on a largely automated basis to minimize the probability of errors.<sup>[26](#fn:26)</sup>\nNote the tension in that sentence.\nAutomation is expected, *because* it reduces errors.\nA confidence layer is how you automate without giving up the ability to show that the automated part is accurate.\n\n**Model risk management.**\nIn the last post, I cited the Federal Reserve’s SR 11-7.\nIn April 2026, it was superseded by SR 26-2, issued jointly by the US banking agencies.<sup>[27](#fn:27)</sup>\nTwo details of the new guidance are directly relevant.\nFirst, it says explicitly that generative and agentic AI models are novel and rapidly evolving, and are therefore not within its scope.\nSecond, it defines a model as a complex quantitative method that applies statistical, economic, or financial theory to turn input data into quantitative estimates.\n\nPut those together and you get a nice irony. The LLM that reads the documents may sit outside the guidance. The confidence scorer, a gradient-boosted classifier that estimates the probability that a value is correct, fits the definition of a model squarely. The component that decides when to trust the AI is the one that looks most like a classic bank model, and it should be validated like one: conceptual soundness (monotone constraints help), ongoing monitoring, and outcomes analysis (the random audits). SR 26-2 is US guidance, but European banks’ model risk practices share the same vocabulary, and a validator anywhere will ask the same questions.\n\nHere is how the pieces of this post map to what these frameworks ask for:\n\n| What they ask for | Where it lives in the confidence layer | \n|---|---|\n| Declared accuracy levels and metrics | Certified WAR per tier and segment, with confidence and data period | \n| Oversight that resists automation bias | Blind review for tier 1, canary catch rates, reasons instead of scores | \n| The ability to override, reject, and stop | Reject outcome, stop button, automation levels that fail closed | \n| Accurate data, largely automated, with controls | Grounding, rules, lineage per value, random audits | \n| Ongoing monitoring and outcomes analysis | Drift monitors, audited WAR with bounds, recertification per version | \n\n## A Checklist\n\nBefore letting a confidence layer approve anything on its own, check it against this list:\n\n- The scorer combines several signals that fail in different places; the model’s self-reported confidence is, at most, one of them.\n- Missing signals stay missing, and the policy routes values with missing required signals to review.\n- Training, calibration, certification, and testing use separate data, split by borrower (and by time).\n- Calibration is checked in the tail, near the thresholds, per segment.\n- Each tier has a target error rate and a threshold certified with an upper bound on held-out data, and segments that matter on their own are certified on their own.\n- Every routing decision carries a reason, and a reject outcome exists for unusable documents.\n- Tier-1 values and random audits are reviewed blind, and canaries measure the reviewers.\n- The wrong auto-approval rate is measured on random audits, never on review decisions, and the audit size matches the claim.\n- Scorer, calibrator, thresholds, model, and prompt are versioned as one bundle, and any change sends the system back to certification.\n- Demotion to a lower automation level is automatic, and anyone accountable can stop automation entirely.\n\n## Conclusion\n\nLLMs made reading financial documents cheap.\nThey did not make *trusting* what they read any cheaper, and the instinct to fix that with a better model or a cleverer prompt misses where the problem lives.\nA system that cannot say “I don’t know” has to be checked every time it says anything, so all the value of automation hides in the values you can safely skip.\nFinding those values is a measurement problem, and it has a well-understood toolbox: signals, a scorer, calibration, certified thresholds, and humans in a loop that is designed rather than assumed.\n\nHere are the 5 core lessons from this post:\n\n1. **Rank before you threshold.** A model that knows when it is wrong beats a more accurate one that doesn’t. Measure coverage at your target risk, not accuracy.\n2. **Never trust a single signal, least of all the model’s own opinion.** Combine evidence that fails in different places: a second reader, grounding, layout, accounting rules, and history.\n3. **Make the probability honest, then make a promise.** Calibrate on held-out data per segment, and choose thresholds with an upper bound, not an average. When the data can’t support a promise, the honest answer is “review it all.”\n4. **Design the “I don’t know” path.** Reasons on screen, blind review where it matters, canaries to measure the reviewers, and a reject button for pages nobody can read.\n5. **Measure with random audits, and fail closed.** Only random audits tell you the error rate of what you automated. When the evidence weakens, automation should step down by itself.\n\nThe best junior analysts learn early that “I’m not sure about this one” is not an admission of weakness. It’s what makes everything else they say worth trusting. Our systems should learn the same thing.\n\n## Footnotes\n\n1. \nAdam Tauman Kalai et al., [*Why Language Models Hallucinate*](https://arxiv.org/abs/2509.04664) (arXiv, 2025).[↩](#fnref:1)[↩<sup>2</sup>](#fnref:1:1)[↩<sup>3</sup>](#fnref:1:2)\n2. \nRan El-Yaniv and Yair Wiener, [*On the Foundations of Noise-free Selective Classification*](https://jmlr.org/papers/v11/el-yaniv10a.html) (JMLR, 2010).[↩](#fnref:2)[↩<sup>2</sup>](#fnref:2:1)\n3. \nYonatan Geifman and Ran El-Yaniv, [*Selective Classification for Deep Neural Networks*](https://arxiv.org/abs/1705.08500) (NeurIPS, 2017).[↩](#fnref:3)[↩<sup>2</sup>](#fnref:3:1)[↩<sup>3</sup>](#fnref:3:2)\n4. \nC. K. Chow, [*On Optimum Recognition Error and Reject Tradeoff*](https://doi.org/10.1109/TIT.1970.1054406) (IEEE Transactions on Information Theory, 1970).[↩](#fnref:4)[↩<sup>2</sup>](#fnref:4:1)\n5. \nGlenn W. Brier, [*Verification of Forecasts Expressed in Terms of Probability*](https://doi.org/10.1175/1520-0493%281950%29078%3C0001%3AVOFEIT%3E2.0.CO%3B2) (Monthly Weather Review, 1950).[↩](#fnref:5)\n6. \nBianca Zadrozny and Charles Elkan, [*Transforming Classifier Scores into Accurate Multiclass Probability Estimates*](https://doi.org/10.1145/775047.775151) (KDD, 2002).[↩](#fnref:6)\n7. \nVladimir Vovk, Alexander Gammerman, and Glenn Shafer, [*Algorithmic Learning in a Random World*](https://doi.org/10.1007/b106715) (Springer, 2005).[↩](#fnref:7)\n8. \nAnastasios N. Angelopoulos et al., [*Learn then Test: Calibrating Predictive Algorithms to Achieve Risk Control*](https://arxiv.org/abs/2110.01052) (arXiv, 2021).[↩](#fnref:8)[↩<sup>2</sup>](#fnref:8:1)\n9. \nChuan Guo et al., [*On Calibration of Modern Neural Networks*](https://arxiv.org/abs/1706.04599) (ICML, 2017).[↩](#fnref:9)[↩<sup>2</sup>](#fnref:9:1)\n10. \nSaurav Kadavath et al., [*Language Models (Mostly) Know What They Know*](https://arxiv.org/abs/2207.05221) (arXiv, 2022).[↩](#fnref:10)\n11. \nMiao Xiong et al., [*Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMs*](https://arxiv.org/abs/2306.13063) (ICLR, 2024).[↩](#fnref:11)[↩<sup>2</sup>](#fnref:11:1)\n12. \nXuezhi Wang et al., [*Self-Consistency Improves Chain of Thought Reasoning in Language Models*](https://arxiv.org/abs/2203.11171) (ICLR, 2023).[↩](#fnref:12)\n13. \nSebastian Farquhar et al., [*Detecting Hallucinations in Large Language Models Using Semantic Entropy*](https://doi.org/10.1038/s41586-024-07421-0) (Nature, 2024).[↩](#fnref:13)\n14. \nElliot Kim et al., [*Correlated Errors in Large Language Models*](https://arxiv.org/abs/2506.07962) (ICML, 2025).[↩](#fnref:14)\n15. \nAlexandru Niculescu-Mizil and Rich Caruana, [*Predicting Good Probabilities with Supervised Learning*](https://doi.org/10.1145/1102351.1102430) (ICML, 2005).[↩](#fnref:15)\n16. \nC. J. Clopper and E. S. Pearson, [*The Use of Confidence or Fiducial Limits Illustrated in the Case of the Binomial*](https://doi.org/10.1093/biomet/26.4.404) (Biometrika, 1934).[↩](#fnref:16)\n17. \nAnastasios N. Angelopoulos and Stephen Bates, [*A Gentle Introduction to Conformal Prediction and Distribution-Free Uncertainty Quantification*](https://arxiv.org/abs/2107.07511) (arXiv, 2021).[↩](#fnref:17)\n18. \nRaja Parasuraman and Dietrich H. Manzey, [*Complacency and Bias in Human Use of Automation: An Attentional Integration*](https://doi.org/10.1177/0018720810376055) (Human Factors, 2010).[↩](#fnref:18)\n19. \nEuropean Union, [*Regulation (EU) 2024/1689 (Artificial Intelligence Act), Article 14: Human Oversight*](https://artificialintelligenceact.eu/article/14/) (2024).[↩](#fnref:19)[↩<sup>2</sup>](#fnref:19:1)\n20. \nJeremy M. Wolfe, Todd S. Horowitz, and Naomi M. Kenner, [*Rare Items Often Missed in Visual Searches*](https://doi.org/10.1038/435439a) (Nature, 2005).[↩](#fnref:20)\n21. \nHimabindu Lakkaraju et al., [*The Selective Labels Problem: Evaluating Algorithmic Predictions in the Presence of Unobservables*](https://doi.org/10.1145/3097983.3098066) (KDD, 2017).[↩](#fnref:21)\n22. \nCurtis G. Northcutt, Anish Athalye, and Jonas Mueller, [*Pervasive Label Errors in Test Sets Destabilize Machine Learning Benchmarks*](https://arxiv.org/abs/2103.14749) (NeurIPS Datasets and Benchmarks, 2021).[↩](#fnref:22)\n23. \nIsaac Gibbs and Emmanuel Candès, [*Adaptive Conformal Inference Under Distribution Shift*](https://arxiv.org/abs/2106.00170) (NeurIPS, 2021).[↩](#fnref:23)\n24. \nEuropean Union, [*Regulation (EU) 2024/1689 (Artificial Intelligence Act), Article 15: Accuracy, Robustness and Cybersecurity*](https://artificialintelligenceact.eu/article/15/) (2024).[↩](#fnref:24)\n25. \nEuropean Union, [*Regulation (EU) 2024/1689 (Artificial Intelligence Act), Annex III*](https://artificialintelligenceact.eu/annex/3/) (2024).[↩](#fnref:25)\n26. \nBasel Committee on Banking Supervision, [*Principles for effective risk data aggregation and risk reporting (BCBS 239)*](https://www.bis.org/publ/bcbs239.pdf) (BIS, 2013).[↩](#fnref:26)\n27. \nBoard of Governors of the Federal Reserve System, [*SR 26-2: Revised Guidance on Model Risk Management*](https://www.federalreserve.gov/supervisionreg/srletters/SR2602.htm) (2026).[↩](#fnref:27)", "url": "https://wpnews.pro/news/teaching-financial-ai-to-say-i-dont-know", "canonical_source": "https://www.cesarsotovalero.net/blog/teaching-financial-ai-to-say-i-dont-know.html", "published_at": "2026-11-23 23:00:00+00:00", "updated_at": "2026-11-24 14:48:01.173462+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-safety", "ai-agents"], "entities": ["EBITDA"], "also_reported_by": [], "takeaway": "Wrap extraction models in a confidence layer — independent signals combined by a small scorer, calibrated into a real probability, and cut at a threshold with a statistical guarantee — so the pipeline abstains on uncertain values rather than guessing.", "recommendation": {"advice": "Calibrate a combined confidence score and set an abstention threshold with a statistical guarantee so uncertain extractions route to human review instead of being silently accepted.", "playbook": "output-verification", "playbook_url": "https://wpnews.pro/playbooks/output-verification"}, "alternates": {"html": "https://wpnews.pro/news/teaching-financial-ai-to-say-i-dont-know", "markdown": "https://wpnews.pro/news/teaching-financial-ai-to-say-i-dont-know.md", "text": "https://wpnews.pro/news/teaching-financial-ai-to-say-i-dont-know.txt", "jsonld": "https://wpnews.pro/news/teaching-financial-ai-to-say-i-dont-know.jsonld"}}