AI hallucination in production is not primarily a model quality problem. It is an architectural one. Every large language model, by design, produces an answer, regardless of whether it has sufficient information to produce a correct one. The decoding mechanism that generates output does not distinguish between confident knowledge and confident-sounding confabulation. If you are running LLMs in a live process and relying on guardrails to catch the difference, you are solving for the symptom rather than the structure. As described in the compound error analysis, even a small per-step hallucination rate multiplies across a multi-step workflow until end-to-end reliability decreases significantly. The solution is not to let the model answer and hope a guardrail catches it. The solution is to build a system that knows when not to answer.
Why the model always answers, and why that is the problem
Gabriel De Dominicis, Kapto's MD & Head of AI, puts the core architectural constraint plainly: "The decoding architecture, that is one part of the AI model, is in any case spitting out an answer. So you can't avoid it."
And this is not a bug. It is how language models work. The next-token prediction mechanism produces a probability distribution over possible tokens and samples from it. There is no output class for "I don't have enough information to answer this reliably." The model fills the space with something, and that something is grammatically fluent and often plausible, which is precisely what makes it dangerous in production.
The standard response to this problem is to add a guardrail: a secondary model, a confidence score derived from the primary model's own output, or a validation layer that checks the first model's answer. This approach is intuitive. It is also, structurally, a form of circular reasoning.
Using an LLM to validate another LLM's output does not give you an independent check. This pattern, which appears across major IDP and enterprise AI platforms in various forms, gives you a system whose error rates are correlated. If the primary model hallucinates because it has compressed a domain poorly, because that topic appears sparsely or inconsistently in its training data, the secondary model operating on the same training distribution will tend to make similar errors on similar inputs. De Dominicis describes this as "lifting yourself by your bootstraps." This phrase is a description of what happens probabilistically when you use a non-independent source to verify a claim. You are not adding new information. You are recycling the same uncertain estimate and calling it a check.
This matters because it violates basic probability theory. A genuine accuracy improvement requires an independent source of truth, something that does not share the primary model's failure modes.
Why "always abstain" is not the answer either
Before describing what a confidence system does, it is worth understanding what it is not.
Gabriel frames the abstention argument with deliberate provocation: "I have another method that is even more precise; I always do not answer." The point is that abstention, taken as a blanket policy, is pseudoscience. A system that refuses to answer 90% of inputs achieves high precision on the cases it does process, but it has eliminated recall. As Gabriel puts it: "If you eliminate 90% of the response, basically I can do better, I eliminate 100%, I have wonderful precision. That's pseudoscience."
The metric you care about is not precision in isolation. It is precision at a given recall, which means: what fraction of inputs are correctly resolved, and at what accuracy rate? A system that abstains when uncertain is only useful if it abstains on the right cases, processes enough of the remainder autonomously to justify the architecture, and routes the abstained cases to human review rather than discarding them.
This is the constraint that makes confidence-based abstention an engineering problem, not just a policy decision. The threshold at which you abstain has to be calibrated. The routing of uncertain outputs has to be real. And the coverage, the fraction of inputs that clear the confidence threshold, has to be high enough to create actual operational value. A system that sends 60% of documents to human review has not automated a process, rather it has created a triage layer.

The confidence system architecture
A functional confidence system does three things that are architecturally distinct from a guardrail.
First, it assigns a calibrated confidence score to every output, not a self-reported probability from the primary model, but an independently derived signal. Calibration matters here: a model that says "95% confident" on every output regardless of actual correctness is not calibrated, and its confidence scores carry no information. A calibrated confidence score means that when the model reports 90% confidence, it is correct approximately 90% of the time across a representative population of inputs. Achieving this requires validation against known-correct outcomes, not just output from the model itself.
Second, it implements a three-zone routing decision based on that score:
Third, and this is the part that standard guardrail architectures miss, the human corrections in the medium and low zones feed back into the model's training signal. The system does not just route uncertain cases to humans. It learns from what the humans decide.
The operational implication of this architecture is that the automation rate is not a fixed property of the model. It is a function of the confidence threshold, which can be adjusted to meet a target accuracy SLA. If you need 98% accuracy on auto-executed outputs, you set the threshold high enough that only cases meeting that bar are processed autonomously, and route everything else. The human workload is concentrated at the edge, the uncertain cases, rather than distributed across all outputs.
Gabriel's framing on the role of human review is precise here: "You have to please be aware that we don't want human sign-off because that point is decide and human sign-off [is for the] residual situation where we are not sure. So we have also to put it in this way because if you are doing all that just to put things in the end of the user, there is no business case."
The business case for automation disappears if human review becomes the de facto primary processing path. The confidence system is only useful when it routes the majority of inputs to auto-execution. At Kapto's insurance deployments, 70% of claims are handled automatically and over 95% of communications are routed without human intervention, with humans concentrated on the genuinely ambiguous cases. This is the architecture that makes the business case viable.
Bayesian cross-referencing: the independent accuracy multiplier
The confidence score itself has to come from somewhere that is not the primary model. This is where Bayesian cross-referencing enters the architecture.
The mechanism is conceptually straightforward: at each processing step, the extracted data is verified against an independent external source. Not another LLM. An independent reference: a structured database, a regulatory registry, a policy system, a known-correct prior record. The verification check converts a probabilistic extraction into something that can be compared against a ground truth signal.
The accuracy effect of this is not additive; it is multiplicative, in the favorable direction. Gabriel: "You are avoiding a rapid collapse of accuracy… because a priori, the conditional probability is based on many, many, many of those information. Even some of them, if you do some calculation, dramatically increase the outcome of the precision of the next step."
The Bayesian framing is not decorative. At each step, the system starts with a prior probability that an extracted value is correct, derived from the model's calibrated confidence score. It then observes whether that value matches the independent source. If it does, the posterior probability that the extraction is correct increases substantially. If it does not, the posterior falls and the output routes to the medium or low zone. This posterior then serves as the prior for the next step, which means that accurate extractions in early steps improve the confidence baseline for later steps, and catch errors before they compound.
As Gabriel notes: "It's not fancy because you are saying: if your model is doing a prediction, and you have a way to give an independent source of truth how good his prediction is, try to check if it is true, then it's okay, you can use better for the next step. It's a very basic, but people tend not to think about this."
The reason people do not think about it is the same reason most people get the Monty Hall problem wrong: the brain resists updating on new information when the original estimate feels confident. In the Monty Hall problem, most people refuse to switch doors because their initial choice "feels right", even though the new information (a door being opened) has changed the posterior probability. The same applies to LLM output: it reads correctly, is grammatically fluent, and matches the expected format. It feels like a checked result. The intuition that it needs an independent external verification, that the output's plausibility is not itself evidence of correctness, is counterintuitive but probabilistically necessary.
Comparing AI hallucination mitigation architectures
The comparison below maps the three common approaches to AI hallucination in production against the dimensions that matter for enterprise use:
RAG improves grounding by providing retrieved context at generation time. It reduces hallucination relative to pure generation because the model has more relevant information to work with. But it does not solve the fundamental problem: the model still produces a fluent output, and that output still requires verification. RAG is an input improvement; a confidence system is an output verification mechanism. The two are not alternatives. RAG can be an input to a system that also uses confidence scoring and Bayesian cross-referencing.
The competitive moat this creates is measurable. Because each cross-referencing step improves accuracy for subsequent steps, the compounding works in the correct direction: accuracy increases with process length rather than degrading. In one production deployment, Gabriel estimated the precision gain from cross-referencing at "another forty percent" on that specific document type. A figure that reflects the particular density of available cross-referencing sources, not a universal guarantee. The broader point is architectural: Bayesian cross-referencing produces mathematically traceable accuracy rather than model-reported confidence. When Kapto publishes 98%+ accuracy, it is an outcome of this verification chain, not a model-level claim. The definition of what execution-grade AI means in full is covered in the execution-grade AI framework.
Frequently asked questions
What is an AI confidence threshold for automation?
A confidence threshold is the minimum calibrated probability score an AI system must assign to an output before that output is auto-executed without human review. Setting a threshold requires two things: a calibrated confidence score (meaning the score accurately predicts correctness rates across a representative population of inputs) and a defined accuracy SLA for the auto-executed population.
For enterprise process automation, the practical implication is that the threshold is not a fixed parameter, it is a function of the accuracy requirement. If the downstream process requires 98% accuracy on auto-executed outputs, the confidence threshold must be set high enough that only outputs meeting that bar pass through. The remaining outputs route to human review (medium confidence) or exception handling (low confidence). The straight-through automation rate, the fraction of inputs that clear the threshold, is the output of this calibration, not an input to it.
The reason confidence thresholds matter is directly connected to the compound error problem: a 98% per-step accuracy on a five-step process yields 90% end-to-end reliability. A 95% per-step accuracy on the same process yields 77%. The threshold is the mechanism by which you control the per-step accuracy rate.
How is confidence scoring different from RAG?
Retrieval-augmented generation (RAG) improves LLM accuracy by providing relevant retrieved content at generation time, so the model has better information to work with. Confidence scoring is an output verification mechanism; it evaluates the output after generation against an independent signal.
They address different failure modes. RAG reduces hallucination by improving the input; it does not catch hallucinations that occur despite good inputs, and it does not provide an independent check on whether the generated output is actually correct. Confidence scoring provides that check, but it does not improve the quality of what the model generates.
In a production accuracy architecture, the two are complementary rather than competing. RAG improves the probability that the model generates a correct output. Confidence scoring and Bayesian cross-referencing then verify that output against an independent external source, provide a calibrated accuracy signal, and route uncertain cases to human review. RAG without confidence scoring still sends unverified outputs into the process chain. Confidence scoring without retrieval improvements operates on whatever the model generates. Combined, they address both the input and output sides of the hallucination problem.
How do you make an AI say "I don't know"?
The short answer is: you cannot make the language model itself say "I don't know" in a reliable way, because the decoding architecture does not have a natural output class for epistemic uncertainty. The model will produce an answer. What you can do is build a confidence evaluation layer around the model's output that determines, independently of the model, whether that output is reliable enough to pass through.
This requires three elements: a calibrated confidence score derived from an independent source (not the model's self-reported probability), a threshold policy that defines what confidence level triggers auto-execution versus human review, and a routing mechanism that actually handles the low-confidence outputs, sending them to analysts rather than discarding or propagating them.
The result is a system that behaves as if it knows when not to answer, as the architecture around the model implements a decision function that the model itself cannot implement. The distinction matters because it determines where you invest engineering effort. Adding more fine-tuning or prompt engineering to make the model "more honest" is operating on the wrong layer. The model's epistemic humility is an architectural property of the surrounding system, not a model property.
Kapto's confidence system has processed over 10,000,000 pages at 98%+ accuracy with confidence-calibrated uncertainty. Per-page pricing, six-week deployment. If your current AI system answers everything but you trust nothing, the architecture is the problem.




