Skip to content
LogoSamir Sawarkar

Jul 11, 2026 / 12 min read

Why "I Don't Know" Is Becoming an API Call

The deepest question in AI — can a model recognize its own ignorance? — is quietly being reduced to infrastructure. Here's what's shipping, what's still hard, and where practitioners should focus.

AIReliabilityInfrastructureLLMs

The deepest question in AI — can a model recognize its own ignorance? — is quietly being reduced to infrastructure. Here's what's shipping, what's still hard, and where practitioners should focus.


There is a question that sounds like philosophy but is actually engineering: does the model know that it doesn't know?

Ask it casually and you get a dinner party debate. Ask it inside a production pipeline that just fabricated a legal citation, invented a drug interaction, or confidently quoted a regulation that doesn't exist — and it becomes a P&L problem.

AI hallucinations cost businesses an estimated $67.4 billion globally in 2024. The EY 2025 Responsible AI Pulse survey of 975 C-suite leaders found that 99% of organizations reported AI-related financial losses, with an average of $4.4 million per affected company. Knowledge workers now spend roughly 4.3 hours per week just verifying whether AI outputs are true — approximately $14,200 per employee per year in pure overhead.

The philosophical question hasn't been answered. But the market isn't waiting for the philosophy. It's building infrastructure around it.

"I don't know" is becoming an API call.


The Confidence Paradox: The Wronger It Is, the More Certain It Sounds

To understand why this problem requires infrastructure, you first need to understand what makes it structurally different from every other software bug.

MIT researchers found in January 2025 that AI models use 34% more confident language when generating incorrect information than when generating correct information. The model doesn't hedge when it's guessing. It doubles down. Phrases like "definitely," "certainly," and "without a doubt" appear more frequently in hallucinated outputs than in factual ones.

This is not a personality flaw that can be prompted away. It's an architectural consequence. Large language models are prediction engines: they generate the most statistically probable next token based on patterns in training data. When the model encounters a gap, it fills it with something plausible rather than admitting uncertainty. The architecture has no native mechanism for "I'm not sure." It just picks the next most probable word.

And here's the compounding problem: newer reasoning models make this worse, not better. An ICLR 2026 paper titled "The Reasoning Trap," by researchers from Penn State and Nanjing University of Science and Technology, demonstrated a clean causal chain — training models to reason harder amplifies hallucination in lockstep with task performance. OpenAI's own system card data confirmed the pattern: the o3 reasoning model hallucinated on 33% of PersonQA prompts, more than double the 16% rate of its predecessor o1. The smaller o4-mini hit 48%.

The mechanism is intuitive once you absorb it: a reasoning model makes more claims per response, so it generates more correct claims and more incorrect ones. Chain-of-thought compounds confidence, not accuracy. Reinforcement learning focused on reasoning, the researchers found, "disproportionately collapses tool-reliability representations" inside the model's internals.

The industry's most expensive bet — that smarter models will hallucinate less — has a math problem. Which is precisely why "I don't know" can't come from inside the model. It has to be engineered around it.


The Three Layers of Engineered Doubt

What's emerging is not a single solution but a stack — three layers of infrastructure, each attacking the problem from a different angle. Together, they're turning "uncertainty" from a research concept into a deployable capability.

Layer 1: Semantic Entropy — Measuring Meaning-Level Disagreement

The foundational research came from the University of Oxford's Applied and Theoretical Machine Learning group. Their paper, published in Nature in 2024, introduced semantic entropy: instead of measuring token-level randomness (which is unreliable because the same idea can be expressed in many different phrasings), they compute uncertainty at the level of meaning.

The method works by asking the model the same question multiple times, then clustering the responses by semantic equivalence. If the model gives the same meaning consistently — even in different words — confidence is high. If meanings scatter, the model is likely confabulating. This approach outperformed all previous detection methods when tested against six open-source LLMs, including GPT-4 and LLaMA 2, across datasets ranging from Google searches to biomedical questions to mathematical word problems.

But the original method had a cost problem: generating 5 to 10 responses per query multiplied compute costs proportionally. A follow-up from the same Oxford group, Semantic Entropy Probes (SEPs), addressed this by training lightweight probes that approximate semantic entropy directly from a model's hidden states on a single generation. Same signal, fraction of the cost.

This is the pattern: research becomes infrastructure becomes API.

Layer 2: Confidence Scoring as a Service

If semantic entropy is the science, the second layer is the productization.

Cleanlab's Trustworthy Language Model (TLM) now wraps any LLM — open-source or proprietary — with a real-time trustworthiness score between 0 and 1. You send a prompt, you get a response and a confidence number. The API distinguishes between aleatoric uncertainty (the question itself is ambiguous) and epistemic uncertainty (the model hasn't seen enough relevant data). If the score falls below your threshold, you can trigger fallback logic: escalate to a human, append a disclaimer, request more information, or substitute a safer response.

It works as a drop-in replacement for your existing LLM, or as a scoring layer wrapped around it. Integration with LlamaIndex means it slots into existing RAG pipelines without architectural changes.

CVS Health open-sourced UQLM, a Python package providing a suite of uncertainty quantification scorers — black-box, white-box, LLM-as-a-judge, and ensemble methods — with response-level confidence scores. Published in both TMLR and JMLR, it represents the research community's own packaging of uncertainty into pip-installable infrastructure.

The pattern again: what was a research paper becomes a library. What was a library becomes an API endpoint. What was an endpoint becomes a line item on a cloud bill.

Layer 3: Conformal Abstention — Statistical Guarantees on "I Don't Know"

The third layer is the most mathematically rigorous and the least understood by practitioners — which makes it the most important to know about now, before it becomes table stakes.

Conformal prediction is a statistical framework that provides finite-sample validity guarantees: you specify a maximum acceptable error rate (say, 10%), and the framework calibrates the model's abstention threshold on a holdout set to provably meet that bound — without distributional assumptions. Researchers have adapted this specifically for LLM hallucination control. The key innovation is "conformal abstention": instead of the model deciding whether to answer, a mathematically calibrated layer decides. The model doesn't learn to doubt itself. A statistical wrapper learns when to mute it.

Work from Google DeepMind on "Mitigating LLM Hallucinations via Conformal Abstention" showed that conformal calibration can satisfy a pre-specified upper bound on hallucination risk while minimizing the rate of unnecessary abstentions — a lightweight method based on prompting alone, no fine-tuning required. A 2026 paper on "Geometry-Calibrated Conformal Abstention" pushed further, using model internal representations rather than surface-level signals for more reliable uncertainty estimation. Both consistently outperformed traditional likelihood and consistency baselines.

For enterprise teams, conformal abstention is the most significant development in this space. Not because it's flashy, but because it's auditable. You can tell a regulator: "Our system is calibrated to hallucinate on fewer than X% of accepted outputs, with statistical guarantees." That sentence didn't exist as an engineering deliverable two years ago. Now it's a configuration parameter.


The Guardrails Stack: Where Abstention Meets Production

None of these layers operate in isolation. In production, they plug into guardrail frameworks that orchestrate the entire safety pipeline — input validation, output filtering, and now, uncertainty-aware routing.

Interactive: Conformal Abstention Gate

Adjust the confidence threshold. See how the orchestration layer intercepts high-risk hallucinations before they reach the user or agentic downstream tools.

0.70

Scores below this threshold will trigger a fallback ("I don't know") instead of returning the hallucinated response.

User Prompt

What is the capital of France?

Generation & Scoring Layer
"The capital of France is Paris."
Trustworthiness Score:0.98
Passed to User

The capital of France is Paris.

NVIDIA's NeMo Guardrails provides programmable conversation flows using Colang, a domain-specific language for defining when the model should refuse, defer, or escalate. It covers input, output, dialog, retrieval, execution, and fact-checking rails. Guardrails AI focuses on structured output enforcement — ensuring the model's response conforms to a defined schema before reaching the user. LLM Guard provides fast scanning for PII leakage, toxicity, and prompt injection.

What's new is the integration of uncertainty scoring into these orchestration layers. The pipeline isn't just: "Did the model say something toxic?" It's now: "Is the model confident enough in what it said to let the output through?"

This is the operational shift. Guardrails were binary: pass or block. They're becoming probabilistic: pass, block, or flag-and-route.


What This Means for Agentic AI

If this were only about chatbots, it would be a nuisance. For agentic AI, it's existential.

McKinsey's 2025 State of AI found that 23% of enterprises are scaling agentic AI in at least one business function, with another 39% experimenting. In an agentic workflow, a single user request triggers multiple model calls, each call's output feeding the next call's input, with tool invocations along the way. Microsoft Research's VeriTrail paper (early 2026) was direct: hallucination detection in agentic workflows requires per-step provenance, because a single upstream planning hallucination propagates into downstream tool calls, corrupting the final answer.

The February 2026 paper "Uncertainty Quantification in LLM Agents" from researchers across multiple institutions argued that UQ research must fundamentally shift from single-turn question-answering to interactive, multi-step agent settings — and that existing methods are insufficient for the task. Agent uncertainty isn't just about whether one answer is right. It's about whether the model is confident enough at each step to warrant autonomous action versus human escalation.

This is where conformal abstention meets production routing. An agent pipeline with calibrated confidence thresholds at each step can autonomously decide: "I'm confident enough to call this API," versus "I need a human to verify before I execute this transaction." That decision — confident enough to act or not — is the boundary between a demo and a deployment.


The Tooling Landscape: What's Shipping Today

For practitioners evaluating this space right now, here is the current map:

Research-to-production tools: Cleanlab TLM (real-time trustworthiness scoring, any LLM), UQLM by CVS Health (open-source UQ scorer suite, pip-installable), LM-Polygraph (Hugging Face ecosystem UQ benchmarking), UncertaintyZoo (unified deep learning uncertainty toolkit).

Guardrail frameworks with uncertainty integration: NVIDIA NeMo Guardrails (programmable dialog rails, Colang DSL, Apache 2.0), Guardrails AI (structured output validation), LLM Guard (fast input/output scanning), Amazon Bedrock Guardrails (managed service).

Research at the production boundary: Semantic Entropy Probes from Oxford (cheap single-generation uncertainty from hidden states), conformal abstention frameworks (statistical guarantees on error rates), and the emerging work on per-step UQ for agentic pipelines.

The hallucination detection tools market grew 318% from 2023 to 2025, with $12.8 billion invested in dedicated solutions. This isn't a research curiosity. It's a procurement category.


What Stays Hard

It would be dishonest to present this as a solved problem. Three things remain genuinely difficult.

Consistent errors are invisible to uncertainty methods. Semantic entropy catches confabulations — the model making things up arbitrarily. But if the model is consistently wrong because it was trained on erroneous data, uncertainty will be low and the output will still be false. As Oxford's Dr. Farquhar put it: "The most dangerous failures of AI come when a system does something bad but is confident and systematic."

The reliability-capability trade-off. The ICLR 2026 "Reasoning Trap" paper demonstrated that every mitigation strategy they tested — prompt engineering, DPO — reduced hallucination at the direct expense of reasoning performance. Making the model more cautious makes it less capable. No current training objective jointly optimizes for both.

Calibration degrades under distribution shift. A model calibrated on medical questions doesn't stay calibrated when deployed on legal queries. Conformal prediction helps with finite-sample guarantees, but the calibration set must match the deployment distribution — an operational challenge most teams underestimate.


Where Practitioners Should Focus

If you're building production AI systems today, three priorities emerge from this landscape:

First, treat confidence scoring as infrastructure, not optional monitoring. Just as you wouldn't deploy a web service without error handling, don't deploy an LLM pipeline without uncertainty quantification. Cleanlab TLM or UQLM can be integrated in a few lines of code. The marginal cost is minimal. The marginal risk reduction is significant.

Second, design your agent architectures with abstention checkpoints. Every step in an agentic workflow where the model's output triggers an action — an API call, a database write, a customer communication — should have a confidence gate. The threshold is a business decision, not a model decision.

Third, learn conformal prediction. It's the one technique in this space that provides statistical guarantees rather than heuristic scores. It will become a compliance requirement before it becomes an engineering norm. The teams that adopt it now build audit trails. The teams that adopt it later build remediation plans.


The Bottom Line

The question "does the model know that it doesn't know?" remains philosophically unresolved. The model doesn't introspect. It doesn't experience doubt. It doesn't know anything at all, in the human sense.

But that turned out not to matter. The market didn't need the model to understand its own ignorance. It needed infrastructure to detect, measure, and act on uncertainty — externally, cheaply, and with statistical rigor. And that infrastructure is shipping.

The model never learned to doubt itself. We just gave doubt an endpoint.


Sources: Oxford OATML semantic entropy research (Nature, 2024); "The Reasoning Trap" (ICLR 2026); Cleanlab TLM documentation; UQLM (JMLR/TMLR, CVS Health); EY 2025 Responsible AI Pulse Survey; MIT CSAIL confidence-hallucination correlation study (2025); Microsoft Research VeriTrail (2026); "Mitigating LLM Hallucinations via Conformal Abstention" (Google DeepMind); Gartner Hallucination Detection Tools Market Report (2025); McKinsey State of AI (2025); OpenAI o3/o4-mini system cards; "Uncertainty Quantification in LLM Agents" (arXiv, Feb 2026).