LIVE · Thursday 3 December

Fine-Tuned Small Vision Model vs GPT-4o for Document Extraction: Accuracy Is a Tie, Cost Now Favors the API

Benchmarks show 8B open models match GPT-4o on forms, but GPT-4o retires January 14, 2027 and its replacement costs about $0.60 per 1,000 pages. Fine-tune for privacy or latency, not price.

By Thomas9 min read

For most teams, fine-tuning a small vision model is not worth it on cost alone. On the one neutral benchmark that compares them, VAREX, an untuned Qwen3-VL 8B extracted fields from government forms as accurately as GPT-4o (96.6% versus 94.8% exact match), and a 2B model fine-tuned for extraction reached 90.8%. But GPT-4o shuts down on January 14, 2027, and OpenAI's recommended replacement, gpt-6-luna, lists at prices that put a typical page at roughly $0.60 per 1,000. At that price a self-hosted model on the cheapest common GPU breaks even only above about 27,600 pages a day, so the case for fine-tuning now rests on data residency, latency, or a narrow layout the API keeps getting wrong.

How the two approaches actually differ

Document extraction asks a model to read a page image and return a fixed set of fields, usually as JSON against a schema. A frontier API such as GPT-4o does this with no training: you send the page, the schema and instructions, and pay per token. A small vision-language model, typically 2 to 8 billion parameters, can do the same job on hardware you rent or own, and fine-tuning teaches it your documents and your output format with a few hundred to a few thousand labelled examples.

The trade is between a variable cost that scales with every page and a fixed cost that does not: a GPU billed by the hour, plus the labelling, training and upkeep that a fine-tune needs. Which wins depends on three numbers: how accurate each option is on your pages, what each page costs on the API, and how many pages a day you push through.

What the benchmarks say about accuracy

The most neutral evidence is VAREX, a benchmark posted to arXiv in March 2026 and revised in April. It contains 1,777 single-page U.S. government fillable forms with 21,084 scored fields, and it reports bootstrap 95% confidence intervals with document-level resampling. On page images alone, Gemini 2.5 Pro scored 98.0% exact match, Qwen3-VL 8B 96.6%, GPT-4o 94.8% and Llama 4 Scout 94.3%. The authors found GPT-4o, Ministral 14B and Llama 4 Scout statistically indistinguishable at 94.3 to 94.8%. On forms, then, an open 8B model with no fine-tuning sits at or above GPT-4o.

The more useful finding is about why very small models fail. VAREX reports that models at or below 4B parameters often return the schema itself instead of filling it in, a failure it calls schema echo, which cost them 45 to 65 points. Qwen3-VL 2B scored 34.2% overall but 91.5% on the documents where its output format held. The paper traces the failure to $defs references in the JSON schema: inlining them lifted Qwen3-VL 2B from 27.4% to 91.8% on the affected subset. Fine-tuning fixes the same problem the expensive way. NuExtract 2.0 2B, an extraction-tuned model, scored 90.8%, about 81 points above the 9.7% of the untuned Qwen2-VL 2B it was built on. In other words, much of what fine-tuning buys a 2B model is format discipline, and a flatter schema buys a lot of it for free.

VAREX also found that giving models layout-preserving text, not just plain OCR text, added 3 to 8 points for strong models and up to 18 points for smaller ones, while adding the image on top of that brought diminishing returns.

Forms are the easy case. Microsoft's own evaluation, posted to its Tech Community site in June 2024, tested a complex invoice and a 10-plus-page vehicle insurance policy, each on 10 document variants scored by exact match. GPT-4o with vision reached 98.99% on the invoice and 97.04% on the policy. Phi-3.5 MoE, a small model used without fine-tuning, held up on the invoice at 96.11% and collapsed to 64.99% on the policy. NuMind, which sells the NuExtract models, reports its 8B open model slightly ahead of non-reasoning frontier models on its own 21-task benchmark, but it is the vendor's benchmark, and NuMind itself says "a fine-tuning step is still required to teach domain-specific knowledge" for hard cases such as handwritten prescriptions. In its long-list test, GPT-4o found 80 of about 129 cities on a page, against 116 for NuExtract.

The evidence stops short in several places. No published benchmark runs GPT-4o, a GPT-6-generation model, a GPT-4o vision fine-tune and fine-tuned 2B and 8B models on the same invoices, receipts, forms and long policies. No one has published how accuracy climbs from 200 to 1,000 to 2,000 labelled examples, or whether labels generated by GPT-4o train a small model as well as human labels. And gpt-6-luna has not been scored on VAREX or Microsoft's set.

Why "just use GPT-4o" now has an end date

The question as usually asked assumes GPT-4o stays available. It does not. OpenAI's deprecations page lists gpt-4o-2024-08-06 and gpt-4o-2024-11-20 for shutdown on January 14, 2027, with gpt-6-luna as the recommended replacement, and says fine-tuned versions "follow the same shutdown schedule as their underlying base models."

That also closes the middle option, fine-tuning GPT-4o itself on page images. OpenAI's vision fine-tuning guide now opens with "OpenAI is winding down the fine-tuning platform," its pricing page says fine-tuning "is closed to new users," and the gpt-6-luna model page lists the fine-tuning endpoint as not supported. A GPT-4o vision fine-tune started today, by an existing customer still allowed to create jobs, would be served for under two months.

So the real comparison is between gpt-6-luna (or another current frontier model) and a small model you fine-tune. Luna accepts image input and supports structured outputs, and OpenAI describes it as its "most efficient model for focused, high-volume tasks." It reasons by default at medium effort, which adds billed output tokens unless you set effort to none.

What a page costs

API cost per page follows from OpenAI's token rules. Take a US letter page scanned at 200 dpi, sent at high detail, with 1,000 tokens of instructions and schema and 400 tokens of JSON back. OpenAI's vision guide says GPT-4o fits the image within 2048 pixels, scales the short side to 768 and charges 85 tokens plus 170 per 512-pixel tile: four tiles, 765 tokens. At GPT-4o's list price of $2.50 per million input tokens and $10 per million output, that is $8.41 per 1,000 pages, or $4.21 through the Batch API. Microsoft's measured figure for GPT-4o vision on its invoice, $7.45 per 1,000 pages, is in the same range.

The vision guide does not list gpt-6-luna. If it bills like gpt-5.6-luna, at 1.2 tokens per 32-pixel patch with a 2,500-patch cap, a full page costs at most 3,000 image tokens. At Luna's $0.10 per million input and $0.50 per million output, with reasoning effort set to none, the same page is $0.60 per 1,000, or $0.30 on Batch. That is about 14 times cheaper than GPT-4o at standard rates; reasoning tokens would add to it.

Where the break-even lands

A self-hosted model costs the same whether it reads one page or a million, so the break-even is the GPU's daily cost divided by the API's cost per page. RunPod lists an NVIDIA L4 at $0.69 an hour and an H100 PCIe at $2.89 on its Secure Cloud, or $16.56 and $69.36 for a full day.

API option Cost per 1,000 pages Break-even, one L4 Break-even, one H100
GPT-4o, standard $8.41 1,969 pages/day 8,245 pages/day
GPT-4o, Batch $4.21 3,937 pages/day 16,490 pages/day
gpt-6-luna, standard $0.60 27,600 pages/day 115,600 pages/day
gpt-6-luna, Batch $0.30 55,200 pages/day 231,200 pages/day

Against GPT-4o, a few thousand pages a day paid for a GPU. Against Luna, an L4 needs more than 27,600 pages a day just to match the API on hardware, before labelling, engineering time and retraining. At 10,000 pages a day, for example, Luna comes to about $180 a month at standard rates, against $496.80 for one L4 running a 30-day month. Whether one L4 sustains that rate with a 2B or 8B vision model has not been measured publicly, and if it does not, the break-even moves up with the second GPU.

Shared managed serving changes the arithmetic only if it bills per token rather than per GPU. Together, which lists vision fine-tuning for Gemma 4 31B VLM and Llama 4 Scout VLM, says its dedicated endpoints bill "per minute per running replica, even when idle," at $5.49 an hour for an H100, so a fine-tune hosted there behaves like a GPU you rent. Training is the cheap part: 1,000 examples at about 2,165 tokens each over three epochs is 6.5 million tokens, or about $6.82 at Together's $1.05 per million for Gemma 4 31B VLM, assuming Together counts image tokens the way OpenAI does, which its pricing page does not state. Labelling is not: at five minutes of reviewer time per document, 1,000 documents is about 83 hours, and part of that recurs whenever layouts change.

Parsec, a small language model lab, offers a managed version of this loop: it traces production requests, builds datasets and evaluations the customer approves, trains with SFT or LoRA, and serves the model on a shared cluster where models "run alongside other teams'," sending low-confidence requests to a closed frontier model. Its inference page says "Weights: Yours. Download them." It says a first custom model takes about four weeks, without a stated baseline. It publishes no price, its pages do not mention VPC hosting for this service, and they do not mention vision or document-extraction models.

When a fine-tuned small model still wins

The cost case has narrowed, but four situations still favor owning the model. If pages cannot leave your infrastructure, an API is ruled out regardless of price, and an Apache 2.0 model such as Qwen3-VL 8B can run entirely inside it. If latency matters, a model on your own GPU puts capacity under your control; Microsoft measured GPT-4o vision at 22.8 seconds per invoice at the 95th percentile and 66.2 seconds per policy, while self-hosted per-page latency for Qwen3-VL has not been published. If your layouts are fixed and your volume is in the tens of thousands of pages a day, the arithmetic above can tip. And if a specific domain trips every general model, NuMind's own advice is that fine-tuning is still needed.

Frontier APIs still win on long, varied or unstructured documents, on schemas that keep changing, and anywhere you cannot staff model serving and retraining.

How to decide in practice

Build a test set before choosing. Label 200 to 500 of your own pages by hand, covering every layout you see. Run gpt-6-luna with reasoning off and on, untuned Qwen3-VL 8B and NuExtract 2.0 8B against it, with a flat schema and layout-preserving text. Score field-level exact match and split failures into format errors and reading errors, as VAREX does; its dataset and scoring code are public, so you can check your harness against its numbers first. Fine-tune only if an untuned small model misses your bar and your volume or residency rules justify running it. If you still depend on GPT-4o, run the same test before January 14, 2027, while you can still compare against it.

Bottom line

Below roughly 27,600 pages a day, with no data-residency rule, stay on an API and move from GPT-4o to gpt-6-luna or another current model before January 14, 2027. If pages must stay in your infrastructure, start with an untuned Qwen3-VL 8B and fine-tune only for the fields it misses. If you run tens of thousands of fixed-layout pages a day, measure your GPU's real throughput first, because the break-even depends on it. Fix your schema before you label anything: for small models, format failures are the biggest error and the cheapest to remove.

Sources

More in Research

All Research →