Learn the art of finance engineering →
← All posts

Finance ]

Why LLMs Hallucinate Financial Numbers: A Two-System Control Pattern

LLMs can generate plausible numbers without a controlled calculation. This two-system pattern is designed to keep material figures computed, traceable, and reviewable.

Vanessa Galarneau

6 min read
Share
An older East Asian finance director lifts a translucent narrative overlay above governed source sheets on a home-office light table as violet interference patterns reveal aligned evidence beside an approval lever.
On this page

An LLM can hallucinate financial numbers because it predicts tokens and may be rewarded for guessing. On the arithmetic subset of TAT-QA, a tool-augmented Llama 2 system reached 56.7% exact-match accuracy; the base model was near 2%. Supervised fine-tuning contributed, so architecture alone did not cause the gain. The control lesson: let language and arithmetic run in different systems.

Why do LLMs produce numbers that sound right but are wrong?

An LLM produces a number the same way it produces a sentence: by predicting the next token from learned patterns and the supplied context. OpenAI's 2025 research on hallucination explains that pretraining contains fluent examples, not a true-or-false label beside every statement. Low-frequency facts invite plausible guesses, and accuracy-only evaluations can reward guessing rather than abstention.

The National Institute of Standards and Technology calls the failure confabulation: a generative system confidently presents false or internally inconsistent content. NIST ties the risk to the statistical design of generative models and warns that fabricated logic or citations can make an incorrect answer look more defensible than it is.

Finance adds a trap. The next token may be a dollar amount, a margin, an account number, or a period label. Fluency hides the category change. The model has not turned into a calculator because the output contains digits.

Is bad arithmetic the same as a hallucinated number?

Bad arithmetic is only one numeric failure. A system can calculate perfectly and still return the wrong financial answer because it selected the wrong source, period, entity, currency, account mapping, or metric definition. A correct formula applied to booked revenue when the CFO asked for recognized revenue is a precise mistake.

This article groups numeric failures into four classes: an invented input, the wrong records, a broken calculation, or the wrong business meaning. A calculator addresses arithmetic execution within the third class; it cannot validate the formula, source, period, or business meaning. Finance teams need controls around the full path from question to source records to reported figure.

Four ways an AI-assisted financial number can fail
FailureWhat happenedExampleControl
Invented inputThe model supplied a fact that was absentA vendor balance appears without a ledger recordReject unsupported values; require source IDs
Wrong retrievalThe system fetched the wrong records or contextJune actuals are mixed with May budgetBind entity, period, version, and source
Wrong computationThe formula, join, sign, or FX logic is wrongA credit is added instead of subtractedRun deterministic code plus reconciliation tests
Wrong interpretationThe math is right but the business meaning is wrongBooked revenue answers a recognized-revenue questionUse approved definitions and a named finance reviewer

Why can't better prompting make the number safe?

Better prompts can improve instructions, elicit uncertainty, and reduce some errors. Better prompts cannot create a control that the surrounding system does not possess. Peer-reviewed research on intrinsic self-correction found that asking models to inspect their own reasoning without external feedback often failed to improve the answer and sometimes made it worse.

Retrieval-augmented generation helps with a different problem. The original RAG research found more factual and specific language than a parametric-only baseline. Retrieval can put the right policy, contract, or filing in view. Retrieval does not prove that the system selected the right rows, applied the right definition, or reconciled the result. Grounding supplies evidence. Computation and controls turn evidence into a figure.

Some newer models report lower hallucination rates, and tool-enabled systems can invoke calculators or execute code. The finance question is still architectural: which component produced the number, which inputs it used, which rules ran, and whether another operator can reproduce the result.

What architecture keeps generated prose away from calculated figures?

The control boundary has a deliberately blunt shorthand: LLMs predict text; they don't compute. A bare LLM is not a controlled calculation engine, although tool-enabled systems can execute code or call calculators. The two-system control pattern routes every material figure through approved data, versioned business logic, controlled execution, validation, and lineage before language is allowed to describe it.

The two-system pattern for financial analysis
StagePrimary jobSystem of recordEvidence retained
1. InterpretResolve the question, metric, period, entity, and requested outputLLM with constrained schemaParsed request and uncertainty
2. RetrieveFetch approved records and governed definitionsERP, warehouse, contracts, ontologyRecord IDs, versions, access path
3. ComputeApply formulas, joins, allocations, signs, and FX rulesSQL, code, calculation serviceLogic version and execution log
4. ValidateTie out totals, test tolerances, and surface exceptionsReconciliation and test layerTest results and unresolved items
5. ExplainDraft the narrative from computed outputs onlyLLMCitations to figures and drivers
6. ApproveReview meaning, materiality, and distributionNamed finance ownerDecision, timestamp, and changes

Deterministic does not mean infallible. With the inputs, logic version, runtime, and configuration held fixed, deterministic execution produces the same output. Reproducibility makes errors easier to isolate, correct, and rerun. The design standard here is deliberately unforgiving: A number that's 95% right is 100% useless. That is a quality bar, not a measured failure threshold.

The Committee of Sponsoring Organizations of the Treadway Commission makes the operating point explicit in its current guidance on internal control over generative AI. Rapid adoption compresses workflows. Opaque reasoning, model drift, and frequent configuration changes can threaten reporting integrity unless internal controls travel with the system.

What can AI not own in a finance workflow?

AI cannot be the accountable owner of a revenue definition, materiality threshold, policy exception, control conclusion, or board recommendation. A model can surface evidence and propose language. A named finance professional must decide whether the number answers the business question and whether it is fit to distribute.

Human review is not automatically a control. A reviewer who sees only a polished paragraph cannot verify the source, logic, or exceptions. The review surface must expose the records, definitions, calculation path, test results, and changes since the prior run. Otherwise the human is approving typography.

A finance AI system also needs permission to stop. Missing records, conflicting definitions, failed reconciliations, and out-of-tolerance results should produce an exception or an abstention, not a more eloquent guess.

How should a finance system handle each kind of number?

Use the Pluvo Number-Handling Contract before a figure enters a close pack, forecast, control file, or board deck. The contract applies Pluvo's four-class editorial taxonomy, labels what may create each value, specifies the evidence that must travel, and defines when the system must stop. It is an editorial control aid, not an audit standard.

Pluvo Number-Handling Contract
Output classAllowed creatorEvidence that must travelStop condition
Sourced factApproved retrieval layerRecord ID, source system, timestamp, period, entity, and versionNo approved record or conflicting records
Computed figureDeterministic calculation serviceInput record IDs, metric definition, formula or query version, run log, and reconciliationFailed tie-out, tolerance breach, missing input, or unapproved logic
Estimate or scenarioControlled model or simulation using human-approved assumptionsMethod, assumption set, model version, range, sensitivity, owner, approval date, and random seed when applicableUnlabeled estimate, stale assumption, or no sensitivity view
Business assumptionNamed finance ownerRationale, effective date, scope, version, and approverNo owner, contradictory definitions, or unresolved policy question
Narrative statementLLM or human writerReferences to the approved facts, figures, drivers, and exceptions it describesThe prose introduces a new material number or outruns the evidence

A pilot that drops record IDs, metric definitions, calculation versions, or named approval on the way to production is still a demo. The post-mortem on failed AI pilots in finance shows how that trail disappears.

How does Pluvo apply the two-system pattern?

A finance question enters Pluvo in plain language. The ontology resolves the entities and governed definitions for the question; the deterministic compute layer produces the figure from connected records. The language model can then explain a number it did not invent.

Each figure retains its source records, applied definitions, and transformations. Separate controls govern who may view, run, edit, or approve the work. The model remains useful for language. It does not become the ledger because it writes a convincing sentence.

That boundary keeps probabilistic text generation from becoming the source of record. It cannot repair bad source data or disputed definitions, and faulty deterministic logic remains faulty. The gain is inspectability: finance can rerun the calculation, find the break, and correct it.

What evidence should travel with each financial number?

Ask for six artifacts: source records, the metric definition, the logic version, test results, unresolved exceptions, and a named approver. Then ask the vendor to rerun the figure with the same inputs, logic version, runtime, and configuration. A polished answer without those artifacts leaves finance to rebuild the control trail.

For one practical finance-AI control pattern each week, subscribe to the AI Finance Playbook.

When the board asks where the number came from, "the AI said so" is not an answer. It is the missing control.

Frequently asked questions

Why do LLMs hallucinate financial numbers?

A bare LLM generates likely tokens from patterns and context rather than executing a controlled financial calculation. A plausible amount can therefore appear even when the source, period, metric definition, or arithmetic is absent or wrong.

Can prompt engineering stop numeric hallucinations?

Prompt engineering can improve instructions and elicit uncertainty, but it cannot create missing source controls, deterministic calculations, reconciliations, lineage, or approval. Those protections must exist in the surrounding system.

Does RAG prevent financial hallucinations?

Retrieval-augmented generation can supply relevant source material, but retrieval alone does not prove that the correct records were selected, the correct business definition was used, or the resulting figure was computed and reconciled correctly.

What is deterministic computation in finance AI?

With approved inputs, versioned logic, runtime, and configuration held fixed, deterministic execution produces the same figure. Controlled code, SQL, or a calculation service performs the calculation while the LLM interprets requests and explains verified outputs.

Can deterministic finance software still be wrong?

Yes. Source data, definitions, formulas, mappings, and human decisions can all be wrong. Reproducible execution makes the failure easier to inspect so the team can isolate the cause, correct it, and rerun the result.

What must remain human-owned in AI financial analysis?

A named finance professional should own metric definitions, materiality, policy exceptions, unresolved reconciliations, control conclusions, and material recommendations. Human review is meaningful only when the reviewer can inspect the evidence and logic.

About the author

Vanessa Galarneau

CFO & COO

Get new articles in your inbox

FP&A, close automation, and finance-ops writing — no spam, unsubscribe anytime.

Turn your data into a system for real decisions

Book a demo