Best Model for Classifying Business Documents: Start With Google's Gemini 2.5 Flash Classifier, Then Test It
No public benchmark ranks models on invoices, purchase orders, contracts and statements from vendors you have never seen. Start with Google's stable classifier and decide on your own held-out test.
The best starting model for classifying business documents is Google Document AI's stable Custom Classifier, pretrained-classifier-v1.5-2025-08-05, which is built on Gemini 2.5 Flash. It sorts invoices, purchase orders, contracts and statements without training, returns confidence scores, and can be fine-tuned on your own examples. No public document classification benchmark shows which model wins on your categories and your vendors' layouts, so the final choice should come from a held-out test on documents from unseen vendors. Pick the cheapest option that meets your error tolerance at an acceptable human-review rate.
Classifying a document is a different job from extracting fields from it
Document classification assigns one label to a whole document, such as "invoice" or "contract." Field extraction pulls values out of the document, such as an invoice total or a due date. OCR turns page images into text, and splitting cuts one file that holds several documents into separate documents. A model can be strong at one of these jobs and weak at another.
This distinction matters when you read leaderboards. Document AI leaderboards that rank extraction or parsing do not measure the choice of label. A model that reads every field on an invoice correctly can still confuse an invoice with a purchase order, because the two often share vendor names, line items and totals.
Google treats these jobs as separate products. Its processor list describes the Custom Classifier as a way to "classify a document type from a set of classes," and it lists a separate Custom Splitter for files that contain several documents. If your scanner produces one PDF per batch of mail, you need splitting before classification, or the splitter in place of the classifier.
A label policy has to be written down before any model is tested
Before comparing models, define what each label means and what happens at the edges. A workable policy for a finance or procurement team covers five points:
- Write a one-sentence definition for each label, such as "an invoice requests payment for goods or services already supplied," so that reviewers and models are scored against the same rule.
- Name the fine-grained distinctions that matter to the business, for example a sales invoice versus a purchase invoice, or a purchase order versus an order confirmation.
- Define an unknown or catch-all class for documents that fit no label, so that the model has an allowed answer other than a wrong guess.
- Set a page rule for multipage files, such as classifying on the first two pages or on the whole file, because a contract and its attached invoice can sit in one PDF.
- Decide how ambiguous documents are scored, for example a statement that also requests payment, so that one reviewer's choice does not become the answer key by accident.
Google's classifier fits this policy with one limit. Its documentation says that classifier labels are flat and do not support child entities. A hierarchy such as Invoice, then Sales Invoice, has to be flattened into separate labels. The same page says that the label description field can hold a prompt to help separate similar labels, and that labels cannot be deleted once a processor is trained, only disabled. Settle the label list before you train.
Public benchmark numbers do not transfer to your categories
RVL-CDIP is a public document classification benchmark of 400,000 scanned document images in 16 categories. Microsoft's LayoutLMv3 paper reports 95.44% accuracy for the base model and 95.93% for the large model on it, after fine-tuning on 320,000 training images.
Those numbers do not show how a model will handle your invoices. In an EACL 2023 paper, Stefan Larson, Gordon Lim and Kevin Leach estimated that 8.1% of RVL-CDIP's test labels are wrong, ranging from 1.6% to 16.9% by category. They also found many ambiguous or multi-label documents, and a large overlap between training and test documents, including near-duplicates and shared templates. A test set that shares templates with the training set cannot show what happens when a new vendor's invoice arrives.
Newer research points the same way. MMM-Bench, a benchmark of 5,990 real business documents posted to arXiv in May 2026, uses a five-level taxonomy with labels such as Invoice and Contract at the top and Purchase Order further down. In zero-shot tests, Gemini 3.1 Pro Preview reached 95.80% accuracy at the top level, but its hierarchical F1 score across all levels was 64.98%. Claude Opus 4.6 scored 95.11% and 64.01%. The authors report that models do better on the broad levels than on the fine-grained ones.
MMM-Bench also shows how rare classes behave. For a fine-tuned Qwen3.5-9B, macro-F1 was 92.1% on common classes and 60.2% on rare ones. Construction and marketing documents were the hardest domains, and the authors link the marketing results to variable layouts and sparse text. Because 95.3% of MMM-Bench's documents are in Chinese, its figures describe a pattern rather than a score that applies to English invoices.
Three kinds of model can do the job, and each has a different constraint
The options fall into three groups, and the constraint that matters differs for each.
Google's managed classifier is the easiest place to start. According to Google's documentation, the stable v1.5 version works without prior training, supports zero-shot classification and "provides better support for the catch-all class." It supports confidence scores and fine-tuning, with fine-tuning in Preview in the US and EU. Google says that confidence scores work best with fine-tuned models. The processor is listed as English only, with limits of 15 pages per online request and 200 pages per batch request.
Google also offers two release candidates dated March 9, 2026, built on Gemini 3.1 Flash and Gemini 3.1 Pro. Google's documentation says that they support neither fine-tuning nor confidence scores, and its processor list says that they do not support data residency. They are worth testing on hard distinctions, but they cannot yet drive a confidence-based review queue.
A fine-tuned document model such as LayoutLMv3 suits teams that need local serving and have labeled data. It takes text, layout and the page image as input, and its base model has 133 million parameters. The constraint is the licence. Microsoft's published microsoft/layoutlmv3-base checkpoint is licensed CC BY-NC-SA 4.0, which is non-commercial. A business using it in production needs a different checkpoint or a different licence. LayoutLMv3 also needs an OCR step, because the paper's results used Microsoft's Read API to extract text and word positions.
A prompted general model is the third route: you give a large model the label list and the document and ask for one label. MMM-Bench's zero-shot results show that frontier models handle broad labels well and fine-grained ones much less well. The same paper found that, after fine-tuning, text-only input beat input that added images and layout. Qwen3-VL-8B reached 94.17% hierarchical F1 on text alone against 86.80% with all inputs. Raw text from good OCR may be enough for many business documents.
Parsec's TOD is an option-scoring model that can be used like a prompted model without generating text. It takes text and images and returns one probability for each option that it is given, so a list of document labels can serve as the options. Its public release is a set of LoRA adapters on Google's Gemma 4 12B, licensed Apache-2.0, while the base model stays under Gemma 4 terms. Parsec's TOD page lists a price of $0.30 per 1,000 decisions. Parsec's TOD page is inconsistent about the model's size, and its latency figures differ by hardware, so size and speed should be checked for the variant that you would run. Parsec has published no document classification result for TOD, and its page does not mention PDF input. On the public JevBench evaluation that its page reports, TOD scored below its untrained base model.
A held-out test on unseen vendors decides between them
Nobody has published a comparison of these options on invoices, purchase orders, contracts and statements from vendors that were absent from training. That test is the one that decides the choice, and it can be built from your own archive.
The test set needs to look like next quarter's mail, not last quarter's. Split by vendor, so that no vendor in the test set appears in training. Add a time split, so that the newest documents are held out. Keep the real class balance, include scans and multipage files, and add a set of documents that belong to no label.
Then report the numbers that match the decision:
- Report macro-F1 across labels, because a weighted average lets common invoices hide poor results on rare classes. Document AI's evaluation page says that its "All labels" figures are weighted by how often each label appears.
- Report recall on critical classes, such as contracts that need legal review, because a missed contract costs more than a misfiled statement.
- Report precision for each label, so that you know which wrong labels land in which queues.
- Report a risk-versus-coverage curve, which shows the error rate among accepted documents at each confidence cut-off. Read from it the share of documents that can be accepted automatically at your error tolerance, for example 1% wrong.
- Report unknown-class detection, meaning the share of out-of-scope documents that the model sends to the catch-all class or to review instead of a wrong label.
Keep raw model scores separate from calibrated confidence. A score of 0.9 does not mean a 90% chance of being right until you have checked it against held-out results. Document AI's evaluation sets the default threshold to the value that maximizes F1, which is not the same as the threshold that keeps errors under your tolerance.
Treat zero-shot and fine-tuned runs as separate entries. Record the version string, the prompt or label descriptions, the OCR engine and the number of training examples for each run. Google recommends at least 10 documents per label for training and 10 for testing, which is a floor for a pilot rather than a size that produces reliable per-label numbers.
Cost per document depends on pages and review more than on the model
The model's price is often the smallest line. Take 50,000 documents a month that average three pages, or 150,000 pages.
Google's pricing page lists the Custom Classifier at $5.00 per 1,000 pages up to one million pages a month. Classifying every page costs $750 a month. A fine-tuned version is a custom processor, and Google's training page says that training is free but hosting and prediction are billed. Hosting is $0.05 an hour, which Google's own example puts at $438 for a year, or $36.50 a month. The total is about $786.50 a month.
Sending only each document's first page would cut the page count to 50,000 and the bill to $250. Whether first-page classification stays accurate for your contracts and statements has not been measured.
An option-scoring model changes the split between OCR and inference. Enterprise Document OCR costs $1.50 per 1,000 pages after the first 1,000 free pages, so OCR for 150,000 pages is $223.50. Scoring 50,000 documents with TOD at $0.30 per 1,000 decisions adds $15, for $238.50 before any fallback model handles low-confidence documents. Latency for this pipeline has not been measured on any named hardware.
Human review is the line that grows fastest. At a 10% review rate, 5,000 documents a month go to a person. At 2%, 1,000 do. The risk-versus-coverage curve from your test shows which of those rates each model reaches at your error tolerance, and that number usually matters more than a few hundred dollars of processing.
The right choice follows from your data, deployment and error pattern
With little or no labeled data, start with Google's stable v1.5 classifier in zero-shot mode, write clear label descriptions and measure it on your vendor-disjoint test. With a few hundred labeled documents and a need for a review queue, fine-tune v1.5 and set its threshold from your risk-versus-coverage curve rather than from the F1 default.
If documents cannot leave your network, test a locally served model. Check the licence first, because the published LayoutLMv3 base checkpoint is non-commercial.
If one or two fine-grained distinctions keep failing, such as purchase invoices filed as sales invoices, add those pairs to the label descriptions and to the training set before you switch models. Test the Gemini 3.1 release candidates on that subset, while keeping production on v1.5 until the candidates offer confidence scores.
If a simple rule, such as a purchase-order number pattern or a vendor's sender address, already reaches your error tolerance for a label, keep the rule for that label. A model only needs to handle the documents that the rules cannot place.
Sources
- Google Cloud, Document AI processor list: https://docs.cloud.google.com/document-ai/docs/processors-list
- Google Cloud, Create, use and manage a custom document classifier: https://docs.cloud.google.com/document-ai/docs/custom-classifier
- Google Cloud, Document AI train and evaluate: https://docs.cloud.google.com/document-ai/docs/training-overview
- Google Cloud, Evaluate processor performance: https://docs.cloud.google.com/document-ai/docs/evaluate
- Google Cloud, Document AI pricing: https://cloud.google.com/document-ai/pricing
- Microsoft, layoutlmv3-base model card: https://huggingface.co/microsoft/layoutlmv3-base
- Huang et al., LayoutLMv3: Pre-training for Document AI with Unified Text and Image Masking: https://arxiv.org/abs/2204.08387
- Larson, Lim and Leach, On Evaluation of Document Classification with RVL-CDIP (EACL 2023): https://aclanthology.org/2023.eacl-main.195/
- Ma et al., Multi-domain Multi-modal Document Classification Benchmark with a Multi-level Taxonomy: https://arxiv.org/html/2605.10550v2
- Parsec, TOD: https://parseclab.ai/tod/
- Parsec, TOD model card: https://huggingface.co/parsecai/tod
- Parsec, TOD repository: https://github.com/daseinlabs/tod