Technical Whitepaper · April 2026

The Engineering Behind 99% Extraction Accuracy

Why template-based OCR breaks on real-world invoices, and how NexosIQ's three-pass adaptive pipeline outperforms traditional systems — measured against production data from multi-location restaurant and retail operators.

By Mike Del Giorno, Founder & CEO, Titan Innovations LLC · ~6 min read

The problem with template-based OCR

Most invoice OCR systems on the market — including the engines powering Restaurant365, MarginEdge, and legacy AP automation tools — rely on template matching. For each vendor, an engineer (or the tool's "onboarding team") builds a template: "The invoice number is in a box at coordinates (x, y). The vendor name sits above the line-items table. The subtotal lives three rows above the tax line."

This works great until it doesn't. Sysco redesigns their invoice layout? Template breaks. US Foods switches to a new format in April? Template breaks. A regional distributor you've never seen before sends their first PDF? No template exists at all — the invoice sits in a manual review queue for hours.

In our production data across real multi-location clients, about 15% of invoices break template-based systems in a given month — either because the vendor changed format, the scan quality is poor, or it's a vendor the system has never seen.

The NexosIQ approach: three-pass adaptive extraction

NexosIQ doesn't use templates. It uses a three-pass adaptive pipelinethat gets more aggressive as needed. Every invoice, no matter how poorly scanned or how novel the vendor, goes through the same flow:

Pass 1

Standard extraction

NexosIQ's vision model with our domain-tuned prompt. We send the invoice image + a structured JSON schema and ask for the fields we need. This handles ~92% of invoices on the first pass at 99%+ accuracy.

Pass 2

High-contrast retry

When confidence drops below threshold, we run the image through a preprocessing pass — binary high-contrast, then extreme enhancement — to deal with faded thermal receipts, poor lighting, or low-resolution scans. Same model, same prompt, different image. Another 5% resolves here.

Pass 3

Extended reasoning mode

For the final holdouts, NexosIQ escalates to an extended reasoning mode with 8,000 reasoning tokens. The pass takes longer, but it reasons through ambiguous fields (is that smudge a 6 or an 8? is this a line item or a subtotal?) and returns a more considered answer. This catches nearly every remaining case.

The pipeline is cost-aware. Pass 1 is the cheapest; Pass 3 uses 3–5× the tokens. We only escalate when needed, so 92% of invoices cost the same as a single first-pass call, and only the hard 3% pay the extended reasoning premium.

The accuracy numbers — and how we measure them

Accuracy in invoice extraction is slippery. "99% accuracy" can mean field-level (vendor name matched the source) or invoice-level (every field on the invoice was right). We measure invoice-level accuracy, which is the harder standard.

An invoice is "correct" when all six primary fields — vendor, invoice number, date, subtotal, tax, and total — match a human-reviewed ground truth, and the line-items reconcile to the total within a cent.

ScenarioNexosIQ (3-pass)Template OCR
Clean PDF, known vendor99.2%96%
Phone photo, decent lighting98.1%78%
Faded thermal receipt94%42%
New vendor, no prior template97%0% (manual queue)
Multi-vendor PDF (auto-split)96%Not supported

Numbers based on 50,000+ production invoices across multi-location restaurant and retail clients, April 2026. "Template OCR" figures estimated from published competitor benchmarks + customer reports.

Per-tenant learning (NexosIQ Learn)

Beyond the three-pass extraction pipeline, NexosIQ Learn sits on top. Every invoice from a given vendor gets embedded into a high-dimension vector space and indexed per-tenant. When a new invoice from that vendor arrives, NexosIQ retrieves the most similar past invoices and injects them into the extraction prompt as few-shot context.

The practical effect: your 10th invoice from a vendor extracts more accurately than your 1st, because the model has seen your specific vendor's quirks. And because each tenant has an isolated vector store, a Korean restaurant's NexosIQ gets sharp at Korean food distributors; a construction company's gets sharp at lumber suppliers. No cross-contamination.

When NexosIQ is not the right tool

Honest section. NexosIQ is not the best choice if:

  • You only need offline, on-premise processing. NexosIQ is a cloud SaaS — documents are uploaded to our cloud infrastructure for extraction. If regulatory constraints require invoice data to never leave your network, we're not the right fit (yet).
  • You process fewer than 10 invoices a month. Our pricing starts at $49/location/month. For a single freelancer, a consumer receipt app is cheaper.
  • Your invoices are extremely adversarial (handwritten, multi-language, degraded to near-unreadable). We handle these better than template OCR does, but "handle" still means occasional human review. Nobody's perfect at those.

The trade-offs we're open about

Every engineering decision has a cost. Here's where ours sit:

  • Latency: Pass 3 (extended reasoning) takes 15–30 seconds for a single invoice. Most of our throughput is under 60s end-to-end, but the tail can hit 2 minutes for the 1% of documents that need the deepest reasoning pass.
  • Compute cost: We spend more per invoice than a template-based system because we're running a full vision-language model instead of matching coordinates. We offset this with a Batch API path for enterprise bulk historical imports (50% discount, 24h turnaround).
  • Vendor-library assumption: NexosIQ Learn works best when a tenant scans a vendor multiple times. For truly one-off invoices with no prior context, we're essentially relying on the 3-pass pipeline alone — which still beats templates, but without the per-vendor lift.

For engineers: the architecture

NexosIQ runs on a proprietary vision pipeline with adaptive model escalation across three passes. Embeddings use a dedicated vector API backing a per-tenant vector index. Orchestration runs on autoscaling container compute. The full Partner API spec is published at nexosscan.com/openapi.yaml (OpenAPI 3.1) if you want to integrate.

Corrections welcome

This is a technical paper. If the numbers in the comparison table don't match your own benchmarks, we want to know. Email mike@nexosscan.com with your data and we'll update the paper with attribution.

Try the pipeline on your own invoices

Sign up, upload an invoice that breaks your current OCR, and see what NexosIQ does with it.

Get started