LIVE · Thursday 3 December

Which Custom Model Fixes Invoice Line Items: Textract Adapters, Bedrock Blueprints, Azure or Google?

A buyer's guide for teams that still hand-key invoices after Textract. Pick by why your invoices fail, test on your own corrections, and run the costly model only on the invoices that need it.

By Nick9 min read

For a team pushing 200,000 invoices a month through Textract and still hand-keying 15% of them, the right custom model depends on why those invoices fail. If the failures are multi-page tables and totals that don't reconcile, add a sum check and table joining before buying anything. If they are scattered across supplier layouts, test Bedrock Data Automation blueprints (if you want to stay on AWS), then Azure Document Intelligence custom neural models or Google Document AI's Custom Extractor. A small model post-trained on your own hand-keyed corrections is the route when none of those clears enough of the queue. No provider publishes line-level accuracy, so every choice below ends with the same test on your own invoices.

First, find out why your 15% fails

Textract already extracts line items. AWS's AnalyzeExpense documentation lists ITEM, QUANTITY, UNIT_PRICE, PRICE and PRODUCT_CODE as standard fields, returned per row with a confidence score and page number. It does not mention checking those rows against the TOTAL it also returns, or joining a table that continues onto the next page.

That gap gives you a free diagnostic. Take a few hundred invoices from the hand-keying queue and sort them into four failure types: multi-page tables, unfamiliar supplier layouts, totals that don't reconcile, and scanned or handwritten pages. The mix decides which situation below is yours. It also tells you how to judge results, because overall accuracy hides the problem: in an October 2025 arXiv evaluation of 102 invoices, an LLM-based extractor scored 94% overall but 91% on line items, and a layout pipeline 63% overall but 58% on line items.

Score every option the same way. A line counts only if description, quantity, unit price and amount are all correct, the lines must add up to the invoice total, and header accuracy is reported on its own.

The options side by side

Option How it adapts to your invoices Documented minimum to start List price per 1,000 pages
Bedrock Data Automation blueprint Rewrites field instructions from examples; no model training 3 to 10 labelled documents $40 (30 fields or fewer)
Textract Custom Queries adapter Trains an adapter for AnalyzeDocument Queries 5 training and 5 test documents $25 (first 1M pages)
Azure custom neural Trains a custom model; cross-page tables supported 5 labelled samples per layout variation $30
Google Custom Extractor Generative version from labels, or a trained custom model 1 document (generative); 10 train and 10 test instances per field (custom) $30 (first 1M pages)
Claude Sonnet 5.5, Batch API No training; schema in the prompt None about $9.28 on the assumptions below

Two prices sit outside the table. Adapters are charged on AnalyzeDocument calls, so running one alongside AnalyzeExpense brings the combined rate to $35 per 1,000 pages. Google's Invoice Parser, the pretrained option, is billed per document at $0.10 for up to ten pages, or $20,000 a month at 200,000 invoices.

None of these minimums tells you where accuracy stops improving. No provider publishes how many labelled invoices its option needs before line-level accuracy plateaus, so that has to be measured on your own data.

If your failures are multi-page tables and totals that don't add up

Start with code, not a vendor. A sum check compares the extracted line amounts with the total Textract already returns and sends only failing invoices to a person; page-aware joining stitches split tables back together using the page number on each field. How much of a typical queue these two fixes recover has not been measured publicly. The arXiv paper reports how often each tool's output passed its arithmetic consistency check: 93% of invoices for the LLM extractor and 80% for the layout pipeline. An invoice that fails the check is one you know to send to a person. One that passes can still be wrong, which is why the line-level test above matters.

If a model change is still needed, Azure is the one whose documentation addresses this case directly. Microsoft says custom neural tabular fields "support cross page tables by default," with table, row and cell confidence. It also notes the model "doesn't recognize values split across page boundaries," so a single row broken mid-text still needs your joining logic.

If you want to stay on AWS

Bedrock Data Automation is the first test. You define a blueprint whose fields include an array of line items, then run instruction optimization, which AWS introduced in a June 11, 2026 blog post. It takes three to ten documents with correct answers, compares BDA's output with them and rewrites each field's instruction; "No separate model fine-tuning is required." In AWS's example, four purchase orders with SKU, quantity, unit price and line total per item, aggregate exact match rose from 90% to 92%. It is quick to try, but at $0.04 a page it costs four times AnalyzeExpense's $0.01.

Textract's Custom Queries adapters are the part of AWS that actually trains on your documents, from as few as five training and five test documents annotated in the console. They plug into the AnalyzeDocument Queries feature rather than AnalyzeExpense and are built around answering questions you define. AWS's documentation shows no line-item example and AWS publishes no line-item accuracy for adapters. On the documentation as it stands, they suit a few stubborn header fields better than tables.

If your failures are spread across many supplier layouts

This is the case the trainable cloud models are aimed at. Microsoft describes custom neural models as fitting documents "that have the same information, but different page structures," and recommends at least five labelled samples per layout variation, with the first ten hours of training free and $3 an hour after that. Google's Invoice Parser returns line_item/description, quantity, unit_price and amount and supports uptraining. Its Custom Extractor can create a generative version after one labelled document, or train a conventional model from at least ten training and ten test instances of each field.

Test both on the same held-out invoices. Neither Microsoft nor Google publishes line-item accuracy for its trainable option.

If you want a vendor to own the result

Rossum and Hyperscience both sell document capture that learns from customer data, and both quote accuracy without saying how it was measured. Rossum's site claims "98% average extraction accuracy" and does not say whether that includes line items. Its own 2018 research post called template-free table extraction from invoices "still an unsolved problem across all data capture software." Hyperscience claims "Accuracy rates of 99.5%" and does not mention line items. Make a scored proof of concept on your held-out set a condition of any contract. A vendor that won't be measured on your documents has given you its answer.

If you have the volume to train your own model

Your queue produces about 30,000 corrected invoices a month: page images paired with the exact answer a person keyed. That is a ready-made fine-tuning set. Hugging Face's TRL library "fully supports training Vision-Language Models," with an example on Qwen2.5-VL-3B. Qwen2.5-VL-7B carries an Apache 2.0 licence, and its model card lists structured output from "scans of invoices, forms, tables." Serving is a fixed cost: one H100 on a Together dedicated endpoint lists at $5.49 an hour, about $3,950 for a 30-day month. Whether one GPU keeps up with your volume has not been measured.

Doing this yourself means owning training, evaluation and serving. Parsec offers a managed version of that loop: it traces requests, builds datasets and evaluations the customer approves, trains with SFT or LoRA, serves the model and sends low-confidence requests to a closed frontier model. Its inference page says "Weights: Yours. Download them." Parsec says a first post-trained model takes about four weeks, a figure it gives without a baseline. It publishes no price for the service, its pages do not mention VPC hosting for it, and they do not mention document or image inputs.

To find the plateau, hold out 500 to 1,000 corrected invoices that cover every failure type and never train on them. Train on growing batches (50, 200, 1,000 and more) and score each step against the held-out set.

Worked example: what it costs, and what it has to save

Assumptions, each one stated so you can swap in your own: 200,000 invoices a month at two pages each (400,000 pages); 30,000 invoices hand-keyed; five minutes to key one; labour at the Bureau of Labor Statistics' May 2025 median of $19.88 an hour for data-entry keyers. That puts each hand-keyed invoice at about $1.66 and the queue at about $49,700 a month in wages. The LLM rate assumes one page image at the model's 4,784-visual-token ceiling, 500 prompt tokens and 800 output tokens, at Sonnet 5.5's batch price of $1 and $5 per million tokens.

If you replace AnalyzeExpense ($4,000 a month at Oregon list price) on every page, each option has to pay for its extra spend in hand-keying removed. A BDA blueprint at $16,000 a month costs $12,000 more, so it has to take about 7,240 invoices out of the queue, 24% of it, to break even. An Azure custom neural model at $12,000 pay-as-you-go costs $8,000 more and needs about 4,830 (16%); Azure's 500,000-page custom commitment tier at $10,500 a month lowers that to about 3,920 (13%). Google's Custom Extractor at $12,000 plus about $36 of hosting needs about 4,850 (16%).

The cheaper design is a cascade. Keep AnalyzeExpense for every invoice, let the sum check flag the ones that fail, and send only those to the second model. Assuming the check flags roughly the 30,000 invoices now keyed by hand, that is about 60,000 pages a month. Then the extra cost falls to about $2,400 for BDA, $1,800 for Azure custom neural, about $1,840 for Google with hosting, and $560 for Sonnet 5.5 in batch. Break-even falls with it: about 1,450, 1,090, 1,110 and 340 invoices removed from the queue respectively, between 1% and 5% of it. The trade-off is that a cascade only catches errors the sum check detects. An invoice whose lines are wrong but still add up passes straight through.

Whether any option clears these thresholds has not been measured, by the providers or anyone else, on line-level accuracy. The arithmetic shows the bar is low enough that a test on your own corrections is worth more than any vendor's headline figure.

Bottom line

If multi-page tables and totals that don't reconcile dominate your queue, build the sum check and table joining first. If you want to stay on AWS, test BDA instruction optimization and use Textract adapters only for header fields. If varied supplier layouts are the problem, score Azure custom neural and Google's Custom Extractor side by side. If you buy from a specialist, make a scored proof of concept the price of entry. If your volume justifies it, fine-tune a small vision-language model on your corrections. Whatever you pick, run it behind the sum check on the invoices that fail rather than on every page, and keep the option that takes the most invoices out of the hand-keying queue per dollar.

Sources

More in Products

All Products →