Small Local Models for Accounting Document Classification
A small local model can help classify document types before a workflow sends each one to the right review queue. Before buying one, separate text recognition, page grouping, classification, and routing. Running a model on company hardware alone does not establish accuracy, privacy across the full workflow, or performance under peak load.
Syntalith
A supplier's PDF may contain several documents even though it arrived as one file. If the system assigns one label to the entire file, every page can end up in the same queue. A finance IT lead considering a local model should first ask whether the task is identifying document types or also splitting bundled files and routing each document to the right team.
Where classification ends
In this use case, the model identifies document types and the workflow sends each one to a queue the company has already defined. An output might label a document as an invoice and send it for accounting review, or identify another attachment and route it to its assigned queue. The work stops before tax treatment, account coding, or posting entries.
The company needs to define the categories, routing rules, and person who handles uncertain cases before testing. The model should not invent a category when it cannot identify an attachment. An unknown type or unclear boundary between documents should go to a designated manual review queue.
One file, two document types
Suppose a supplier emails a four-page scanned PDF. Page 1 carries an “Invoice” heading and the supplier's details; page 2 continues the invoice. Pages 3 and 4 are titled “Delivery Confirmation” and show delivered items and the recipient's signature. The company's routing map sends invoices to accounting review and delivery confirmations to the purchasing queue.
If the system labels the entire file “invoice,” the delivery confirmation pages will also go to accounting. The person checking deliveries may never see them in the purchasing queue. A useful result preserves the boundary between pages two and three, labels the first two pages as the invoice and the next two as the delivery confirmation, then routes each document according to the company's approved map.
If the title on page three is hard to read or cut off in the scan, the system should flag its uncertainty and send the affected pages for manual review. The reviewer should be able to see which pages need attention.
Evaluate each step separately
Optical character recognition (OCR) turns an image of a page into text. With a poor scan, OCR may miss a title or other text even when the later classification step works as intended. During a trial, track text readability, page grouping, document type recognition, and queue assignment as separate outcomes.
The acceptance test should include examples from each agreed category, mixed files, unknown attachments, and pages with unreadable sections. Summarize errors by incorrect label, wrong page boundary, wrong queue, or referral for manual review. An overall accuracy figure can hide recurring errors on one document type.
If a delivery confirmation lands in accounting during the test, the reviewer should identify whether the problem came from reading the heading, grouping the pages, assigning the type, or mapping the queue. Keep the workflow at its current scope until it passes the agreed test. The team should also decide who handles exceptions and how much manual routing remains.
Check what “local” means for the data path
Running a model locally does not establish that every part of the workflow stays on the device. Microsoft's Foundry Local documentation says prompts and outputs are processed on the device. The runtime downloads model files on first use and may also download execution-provider components; users can optionally share diagnostic logs. Microsoft describes Foundry Local for one user at a time on a device and points teams with concurrent users to server inference frameworks.
For a proposed solution, trace the full flow: where OCR runs, where temporary files are stored, what the logs retain, where model files come from, and which connected systems receive the document or result. Processing prompts on the device does not establish classification accuracy, privacy across the full workflow, or a server's ability to handle concurrent work.
When a simpler option is enough
If each PDF contains one document with a consistent layout, fixed rules or a document management system's built-in classifier may be enough. Check whether the ERP or document management system the company already uses can identify document types and route them to the right people. A local model is worth comparing when changing layouts or document text make stable rules unreliable.
If company policy permits a hosted service, compare it with the local option using the same documents and access rules. Test the local option on the hardware expected to run it. Include startup before the model has been loaded into memory, ordinary traffic, and a larger batch at month-end. Record wait time, queue behavior, and how many cases people still need to route. The results describe the workload tested; model size alone says little about the capacity needed for it.
What to agree before buying
Syntalith develops AI applications for business. A proposed scope for this task could connect document recognition with the workflow already in use. Agree on scope with both the queue owner, who can define where each type should go, and the environment administrator, who can identify constraints around OCR, storage, and hardware. An agreed trial could specify the approved sample materials, options to compare, errors to report, and workload conditions. Its findings can help the buyer decide whether a local model fits this task.
For an inquiry, prepare a mixed PDF you are allowed to share, a list of document types and their destination queues, typical and peak volumes, and requirements for where data is processed and what logs retain. The sample can show whether the difficulty lies in reading, splitting pages, or assigning a type. Workload and data requirements help define a useful test. See the local AI workstation and shared server comparison if the team is also deciding how to make a model available to more than one person. Current service details are on Syntalith's pricing page.
Evaluate private AI for your organization
We help businesses and individuals select hardware, deploy a model and test it on their own tasks. Start with a computer you already own or ask us before buying one.
Private LLMs and fine-tuning