When Can You Trust AI with Invoices and Contracts?

Extraction, calculation, cross-reference and applying conditions: where a human check is needed

When Can You Trust AI with Invoices and Contracts?

10/14/202610 min read

You can trust AI with invoices and contracts when it extracts a single piece of information from a document. In our test, the best models did that with 98-100 percent accuracy. When the AI had to apply a condition, such as deciding whether a payment is late, the best model answered 83 percent of questions correctly and mid-tier models at most one in five. That is why the human check should follow the type of task, not the type of document.

This article continues our test in which six locally run language models read 50 Finnish invoices, calls for tender, contracts and meeting minutes. The first article compared the models. Here we break the results down by task and by document type. When you plan automation, the key question is not which model is best, but which steps you can hand to AI and where you need a person. When AI extracts and processes information from documents automatically, it is called intelligent document processing (IDP).

The four tasks at a glance

Extraction:
Finding a single value, such as a business ID or a deadline. Best models 98-100%.
Calculation:
Line totals, VAT amounts and date differences. Best models 70-96%.
Cross-reference:
Combining two parts of a document. Best models 76-98%.
Applying a condition:
Applying a rule to a given situation. Best models 66-83%, mid-tier 4-20%.
Data:
50 Finnish-language documents, 250 questions, six models on CPU only.

Which tasks can AI handle reliably?

AI handles extraction almost without error, and the best models also calculate and combine information reliably. Applying a condition is the only task where no model reached 90 percent.

TaskWhat it requiresGemma 4 12BQwen 3.8 27BPhi-4Mid-tier models
ExtractionFinding one value100%100%98%58-98%
CalculationArithmetic on figures in the document96%87%70%2-48%
Cross-referenceCombining two parts of a document98%76%84%6-43%
Applying a conditionApplying a rule to a situation83%71%66%4-20%

Extraction does not separate the models. Of the mid-tier models (Qwen3 8B, Mistral 7B and Llama 3.2 3B), the 7-billion-parameter Mistral found single values 94 percent of the time, almost as well as Qwen, which is four times its size. The differences appear only when the information has to be processed.

Each model answered 41-50 questions of each task type, so individual figures are indicative: the margin of error on an 83 percent result is about ±11 percentage points. The ranking is still clear. Applying a condition was the weakest task for five models out of six, and the second weakest for the sixth.

Why is applying a condition the hardest task?

Applying a condition involves three steps in a row, and each one can fail. The question "The buyer pays the invoice on 10 June 2026. Is the payment late, and what interest rate applies?" requires finding the due date, counting the days and choosing the right condition.

A chain erodes the result quickly. As a worked example: if each of three steps succeeds 95 percent of the time, the whole answer succeeds about 86 percent of the time. That is why a model that is flawless at extraction can still fail one reasoning question in six, as the best model in our test did.

The same pattern shows up across document types. Short invoices were harder for the best models than long contracts:

DocumentGemma 4 12BQwen 3.8 27BPhi-4
Contracts98%97%89%
Calls for tender98%94%87%
Meeting minutes92%78%84%
Invoices93%83%75%

The explanation is in the questions. Invoice questions required calculation, such as line totals, VAT amounts and late-payment interest. Minutes required combining times and agenda items. The figures for contracts and calls for tender may be slightly optimistic, because some models could not process the longest documents in time. The practical conclusion: a document's length does not tell you how hard it is for AI. The type of question does.

AI and human review in invoice and contract processing

What mistakes does AI make with invoices and contracts?

The best models' mistakes were not invented facts but unfinished or overly cautious conclusions. The type of mistake tells you what your check needs to look for.

MistakeExample from the testWhat the check looks for
Right rule, missing conclusionAsked for the earliest acceptable date for certificates, Gemma replied that certificates must not be older than three months and did not calculate the date (24 May 2026).Does the model answer the question or just repeat the rule
Needless refusal"Left at 16:34, the meeting ended at 19:08. Was the member present at the end?" Qwen 27B: "Information not found in the document."Refusals where the answer can be calculated
Wrong formulaPhi-4 calculated the VAT rate by dividing the net amount by the gross total.The intermediate steps of the calculation
Calendar errorQwen3 8B: the offer is valid "until 31 November 2026".Whether dates are valid
Right total, wrong conclusionMistral added up the invoice lines correctly but stated that the total did not match the net amount.The conclusion against the calculation

What these have in common is that the wrong answer looks careful. Gemma's answer about the certificates is true, but it does not answer the question. A simple format check catches this kind of error: if you asked for a date, the answer must contain a date.

Needless refusal was the most common mistake among the best models. We covered its link to invented answers separately in our article on AI hallucination in business documents.

How should you split invoice and contract review between AI and people?

Split the work by task: extraction to AI, calculation to AI with a programmatic check, and applying conditions to a person for approval. That way a person does not review everything, only the points where the likelihood and the cost of an error are highest.

ProcessAI handlesA person approves
Purchase invoicesSupplier, business ID, totals, VAT and due dateInvoices whose total does not match the order
Accounts receivableDue dates, payment dates and open balanceThe late-payment decision and interest before a reminder goes out
Calls for tenderDeadlines, requirements and references to attachmentsEligibility conditions, such as how old certificates may be
ContractsParties, term and notice periodApplying a condition to a situation, such as whether the contract can still be terminated
Meeting minutesDecisions, attendees and agenda itemsConclusions based on times and attendance

The test did not measure the following practices, but they follow directly from the mistakes we observed:

  1. Calculate days, interest and taxes in code. Let the model extract the figures and let ordinary code do the arithmetic. Calendar errors and wrong formulas are then impossible.
  2. Ask for the answer as fields, not free text. When the answer takes the form "late: yes, days: 6", missing information is caught automatically and a contradictory answer cannot mislead the reader.
  3. Test again when the model changes. Phi-4 added the payment term on top of the due date in the same way in five questions. A new model version can bring a new systematic error in its place, which is why AI automation degrades without ongoing monitoring.

If you are wondering where to start, pick a process with a lot of extraction and little applying of conditions. You can find a suitable candidate with the same scoring used to choose your first automation target.

The results apply to six locally run models, quantised and run on CPU only with the same instruction. The invoices were created for the test, and the comparison covers short and medium-length documents. The test did not measure cloud-hosted models.

If you want to know which steps of your invoice and contract processing AI can handle on its own and where approval is needed, a fixed-price Automation Assessment reviews your processes and calculates the value in euros for each opportunity.

Where can AI work on its own, and where is approval needed?

The Automation Assessment reviews your document processes and separates the steps you can automate from those where a person needs to check.

Book an Automation Assessment

Empirica Finland is a Finnish provider of operational AI and automation that builds automations from the data produced by a company's systems as well as its devices and sensors, and is responsible for keeping those automations running. Empirica is a Claude Partner Network member and a Microsoft partner.

← Back to homepage

CategoryResearch & Original Data