Fine-Tuned Small Model vs GPT-4.1 for Invoice Extraction: Which Way to Use User Corrections, by Situation
At 200,000 invoices a month with 3% corrected, you have four realistic routes after OpenAI's fine-tuning wind-down. Here is which fits when, what each costs at list prices, and the test that decides.
Human-in-the-loop corrections can train a fine-tuned small model for invoice extraction that may outperform GPT-4.1 on your own documents, but only an open-weight student you can download will keep getting better, because OpenAI ends new fine-tuning jobs on January 6, 2027 and shuts GPT-4.1 down on January 14. For many teams the cheaper first move is not training at all: test gpt-6-luna or Gemini Flash-Lite with past corrections retrieved into the prompt against a frozen test set. Train a student only if that falls short, retrain it from base each month, and judge every round on the same frozen set.
First, the constraint every option shares
Whatever you pick, GPT-4.1 is leaving. OpenAI's deprecations page lists January 14, 2027 for GPT-4.1 and GPT-4.1 mini, with gpt-6-luna as the recommended replacement, and says fine-tunes "follow the same shutdown schedule as their underlying base models." Self-serve fine-tuning closed in May to organisations that had never used it, and closes to everyone for new jobs on January 6. Luna's model page lists fine-tuning as "Not supported," and gpt-4.1-nano, the obvious small OpenAI student, shut down on October 23.
So the question is not whether to leave GPT-4.1 but where the corrections go once you do. A loop that "keeps getting better" needs three things on any route: a frozen test set labelled by careful review rather than taken from accepted outputs, a monthly audit of a random sample of uncorrected invoices to catch errors nobody noticed, and corrections logged per field with who made them and when. Those are the parts you own regardless of vendor.
How the options compare
The figures assume 200,000 invoices a month sent as OCR text, at 2,000 input tokens (document plus instructions) and 400 output tokens each, at list prices. The worked example below shows the arithmetic.
| Option | How corrections are used | Weights you keep | Monthly cost |
|---|---|---|---|
| GPT-4.1 (until Jan 14, 2027) | Not used | No | $1,440 |
| gpt-6-luna, prompt only | Not used | No | $80 plus reasoning |
| gpt-6-luna with retrieved corrections | As prompt examples | None to keep | $140 plus reasoning |
| Gemini 3.5 Flash-Lite, prompt only | Not used | No | $320 |
| Open-weight student on one dedicated H100 | Monthly retraining | Yes | About $4,050 with retraining |
Two options are left out of the table because their prices aren't published in a comparable form: supervised tuning on Vertex AI, and Parsec's managed service. Both are covered below.
If a cheaper base model is already good enough
Start here, because the migration is forced anyway. gpt-6-luna lists at $0.10 per million input tokens and $0.50 output, a twentieth and a sixteenth of GPT-4.1's $2.00 and $8.00. It accepts images and supports structured outputs. Its default reasoning effort is medium, and how many reasoning tokens it spends per invoice has not been measured; if they bill at the output rate, each 1,000 per invoice adds $100 a month. Gemini 3.5 Flash-Lite, at $0.30 input and $2.50 output including thinking, is the Google equivalent, with a retirement date Google lists as "July 21, 2027 or later."
The evidence on prompted models is mixed rather than discouraging. Microsoft's June 2024 evaluation, on invoices with simple and complex layouts and handwritten notes, found GPT-4o reading page images the most accurate option at 98.99%, while GPT-4o Mini reading images scored 79.31% and the small Phi-3.5 MoE reached 96.11% on Markdown text. A small prompted model can come close to a large one or fall well short of it on the same invoices, which is why the frozen test set has to decide, not the price list.
Choose this route if the new model's field-level scores on your frozen set are within the margin your users tolerate. You own nothing, but you also maintain nothing.
If corrections fix recurring templates
Many invoice errors repeat: the same supplier, the same layout, the same misread field. For those, corrections work best as examples in the prompt. The MADP pipeline, described by Gosmar and Zenezini in a May 2026 arXiv paper, stores each correction with its field name, document type and supplier category, updates the extraction prompt with new examples and refined instructions "without requiring model retraining," and applies the fix to similar documents still in the queue. It reported a 97.0% automation rate on 955 production documents, and notes that new suppliers show higher error rates until feedback builds up.
This improves every day rather than every month, and because nothing is trained, nothing is forgotten. The cost is a longer prompt on every invoice. How much of a fine-tuned student's gain this approach captures on invoices has not been measured.
Choose this if your errors cluster by supplier or template and the cheaper base model is close but not quite there.
If you want a student that keeps improving
This is the route the corrections were made for. The case rests on distillation research: in Distilling Step-by-Step (Hsieh et al., Findings of ACL 2023), a fine-tuned 770-million-parameter T5 beat a few-shot 540-billion-parameter PaLM on one benchmark using 80% of the training data. Invoice-specific claims come from model cards. A LoRA on Qwen3-VL-4B-Instruct for Spanish invoices reports 93.39% accuracy against 54.4% for its base, without stating its training or test set sizes; a Qwen3.5-4B receipts LoRA reports field-level F1 of 89.17 against 84.17 for gpt-4o-mini with an optimised prompt, on 60 held-out rows. Each is a single training run. No published test has retrained an invoice student across several rounds of corrections and measured whether it keeps improving.
The recipe matters more than the base model. Train on accepted outputs plus corrections, with corrections weighted up, because corrections over-represent hard templates and the fields users look at. Include the audited sample, because treating unreviewed outputs as truth teaches the student the teacher's unnoticed errors. Retrain from the base model each round rather than fine-tuning last month's model on this month's batch: Jakubik and colleagues, in 2023 work on image classification, wrote that a model cannot "simply fine-tune ... incrementally based on acquired human expert knowledge without facing catastrophic forgetting." And score on the frozen set, never on the student's own corrected outputs. Sculley and colleagues' 2015 NeurIPS paper warned that "a model may directly influence the selection of its own future training data," which is exactly what happens once users start correcting the student.
For the base, Qwen3-VL-4B and 8B are Apache 2.0 vision-language models suited to page images; a text model on OCR output is the alternative. Together's docs say finished LoRA jobs download as "self-contained weights" that load in Hugging Face Transformers, at an SFT rate of $0.34 per million tokens for models up to 16B. Fireworks documents firectl model download and vision fine-tuning, but says its managed SFT "no longer accept[s] new jobs." To sanity-check a training and scoring harness before your own data is ready, the CORD v2 receipt dataset on Hugging Face has 800 training, 100 validation and 100 test images under CC BY 4.0, though receipts are not your invoices.
Choose this if prompted models miss your bar on the frozen set and the gap is spread across templates rather than concentrated in a few.
If you want a managed tuning service instead
Vertex AI lists supervised tuning for Gemini 3.5 Flash-Lite, 3.5 Flash and 3.1 Flash-Lite. Its docs don't mention exporting tuned weights, and they don't say what happens to a tuned endpoint when its base model retires. That question is live: the Gemini 2.5 models on the same tuning list retired on October 20, 2026, and a developer who asked about tuned 2.5 Pro endpoints on Google's forum in April got no official answer. For a model retrained monthly, that is a dependency to get in writing.
Parsec, a small language model lab, sells the whole loop as a service. Its inference page describes tracing requests, building datasets, evals the customer approves, SFT or LoRA training and serving, with low-confidence requests sent to a closed frontier model, and says "Weights: Yours. Download them." It says a first post-trained model takes about four weeks, without giving a baseline. It publishes no price and no invoice-extraction results for this service, does not mention VPC hosting for it, and its only code example uses the Anthropic SDK.
Worked example: 200,000 invoices a month
The assumptions, stated once: 200,000 invoices; OCR text input of 1,500 document tokens plus 500 instruction and schema tokens; 400 output tokens; for the retrieval option, three past corrected examples adding 3,000 input tokens; for the student, a retraining set of 60,000 examples of 2,400 tokens, trained for two epochs; list prices as published by each provider.
- GPT-4.1: 400 million input tokens at $2.00 is $800; 80 million output at $8.00 is $640; total $1,440, or $720 through the Batch API. Sent as page images instead, a single 1700x2200 scan costs 765 tokens at high detail under OpenAI's tile rule; with the 500 instruction tokens, the month comes to about $1,146.
- gpt-6-luna, prompt only: $40 input plus $40 output, $80 before reasoning. OpenAI's vision guide gives no image token rule for this model, so only the text case can be priced.
- gpt-6-luna with retrieved corrections: 1 billion input tokens at $0.10 is $100, plus $40 output, $140 before reasoning.
- Gemini 3.5 Flash-Lite: $120 input plus $200 output, $320.
- Open-weight student: one Together H100 dedicated endpoint at $5.49 an hour for a 30-day month is about $3,953. Retraining from base on 60,000 examples of 2,400 tokens for two epochs is 288 million tokens, about $98. Together lists its base Qwen3.5 9B serverless at $0.17 input and $0.25 output, which would be $88 a month, but doesn't say a fine-tuned version runs at that rate. Whether 200,000 invoices a month need a whole GPU has not been measured.
- Audit, every route that learns: 1,000 uncorrected invoices a month at about 120 seconds each, MADP's figure for manual processing, is roughly 33 reviewer hours.
The surprise is the last serving line. At this volume an always-on GPU costs more than GPT-4.1 does today. A student pays off on cost only if it shares hardware, runs on per-token hosting, or replaces a pricier model than Luna. Its stronger case is accuracy you control and a loop no vendor can switch off.
Bottom line
If gpt-6-luna or Flash-Lite meets your bar on a frozen test set, migrate and stop. If errors repeat by supplier or template, add retrieved corrections to the prompt before training anything. If prompted models still miss across the board, train an open-weight student you can download, retrain it from base monthly on corrections plus an audited sample, and promote a round only when it beats the last on the frozen set. Build that test set before January 14, while GPT-4.1 still runs to be measured against.
Sources
- OpenAI, Deprecations: https://developers.openai.com/api/docs/deprecations
- OpenAI, Supervised fine-tuning guide: https://developers.openai.com/api/docs/guides/supervised-fine-tuning
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- OpenAI, GPT-6 Luna model page: https://developers.openai.com/api/docs/models/gpt-6-luna
- OpenAI, Images and vision guide: https://developers.openai.com/api/docs/guides/images-vision
- Google Cloud, Tune Gemini models by using supervised fine-tuning: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini-use-supervised-tuning
- Google Cloud, Model versions and lifecycle: https://docs.cloud.google.com/vertex-ai/generative-ai/docs/learn/model-versions
- Google AI Developers Forum, Supervised fine-tuned Gemini 2.5 Pro endpoints: https://discuss.ai.google.dev/t/supervised-fine-tuned-gemini-2-5-pro-endpoints-what-happens-after-oct-17-2026-shutdown/137946
- Google AI Studio, Pricing: https://aistudio.google.com/docs/pricing
- Hsieh et al., Distilling Step-by-Step: https://arxiv.org/abs/2305.02301
- Jakubik et al., Improving the Efficiency of Human-in-the-Loop Systems: https://arxiv.org/pdf/2307.03003
- Sculley et al., Hidden Technical Debt in Machine Learning Systems: https://proceedings.neurips.cc/paper/2015/file/86df7dcfd896fcaf2674f757a2463eba-Paper.pdf
- Gosmar and Zenezini, MADP: https://arxiv.org/pdf/2605.17159
- Microsoft Tech Community, Evaluating AI document data extraction with small and large language models: https://techcommunity.microsoft.com/discussions/azurepartners/evaluating-the-quality-of-ai-document-data-extraction-with-small-and-large-langu/4157719
- Hugging Face, diffu-0.2-adapter model card: https://huggingface.co/V10LabsAI/diffu-0.2-adapter/blob/main/README.md
- Friendli, apprentice-qwen35-4b-lora-receipts: https://friendli.ai/models/singhabhishekkk/apprentice-qwen35-4b-lora-receipts
- Hugging Face, Qwen3-VL-4B-Instruct: https://huggingface.co/Qwen/Qwen3-VL-4B-Instruct
- Hugging Face, Qwen3-VL-8B-Instruct: https://huggingface.co/Qwen/Qwen3-VL-8B-Instruct
- Hugging Face, CORD v2 dataset: https://huggingface.co/datasets/naver-clova-ix/cord-v2
- Together, Pricing: https://www.together.ai/pricing
- Together, Deploying and downloading fine-tuned models: https://docs.together.ai/docs/fine-tuning/deployment.md
- Fireworks, Fine-tuning models: https://docs.fireworks.ai/fine-tuning/fine-tuning-models
- Fireworks, firectl model download: https://docs.fireworks.ai/tools-sdks/firectl/commands/model-download.md
- Parsec, Inference: https://parseclab.ai/inference/
- Parsec vs routers: https://parseclab.ai/compare/routers/