BlogNovember 1, 2026

Doing More with Smaller Models

Andre Borzzatto
Doing More with Smaller Models
When I joined my current team, the document-AI pipeline worked. It read invoices and other finance documents, worked out which company they belonged to, identified the vendor, and extracted the fields an accounting team needs. The results were good. They were also expensive. Every step ran on large, top-tier models. The thinking behind it was reasonable: hard problem, best model, good results. Nobody had a strong reason to change it, because the output was fine. I had a different instinct. When a large model does well on a task, it is often making up for a task that is not clearly defined. It is guessing what you meant, filling gaps in the context, and coping with instructions that ask for five things at once. That costs money, and the cost shows up on every single document. So I asked a simple question: if we understood each step properly, how small a model could we get away with? I did not start by swapping models. I started by reading. I went through the prompts one by one and wrote down what each step was really being asked to do. Some prompts mixed several decisions into one. Some sent the model everything available "just in case". Some relied on the model to know things that could simply have been given to it. Three families of tasks stood out:
  • Company-code prediction: deciding which legal entity a document belongs to.
  • Vendor identification: matching the sender to the right supplier record.
  • Field extraction: pulling out the values a finance team needs, in a reliable shape.
Each looked like one problem from a distance. Up close, each was a short chain of smaller, clearer decisions. I will keep this high level, but the ideas carry over to almost any LLM workflow. Break the task down. One prompt that does one thing well beats one prompt that does four things well enough. Smaller models are surprisingly capable when the question is narrow. Give the model reference data as structured tables. Instead of hoping the model infers the right company or vendor, give it the candidates in a compact, consistent table and ask it to choose and justify. Choosing is easier than recalling. Be deliberate about context. This turned out to be the biggest lever. The raw OCR text of a document is useful, but not always, and not all of it. I worked out when to include it, which pages actually matter for each decision, and when to leave it out entirely. Less noise meant better answers and fewer tokens. Shape the output. Clear, strict output formats remove a whole class of errors and make results easy to check. Measure everything. Every change ran against the same test documents, so "this feels better" was always backed by a number. With the prompts redesigned around these patterns, smaller and much cheaper models matched the original results, and on several steps beat them. The cost per document came down by around 80%. What I am proudest of is not the number itself. It is that the saving came from understanding the process better, not from accepting worse results. The cheaper pipeline is also easier to reason about, easier to debug, and easier to improve, because every step now has one clear job.
  • A bigger model is not a strategy. It can hide a vague process for a while, but you pay for that vagueness on every request.
  • Context is a design decision. What you leave out matters as much as what you put in.
  • Prove it with data. Changing a working system needs evidence, not enthusiasm.
It is the same lesson I keep learning while building ScratchSplit and this site: AI is a great collaborator, but the value comes from knowing exactly what you are asking it to do. If you want the more structured version, I wrote it up as a case study.
Share this post:
On this page