Fine-tuned vs frontier model (GPT or Claude) on one task
Can a fine-tuned model beat GPT or Claude? On one narrow task, often. Accuracy, cost per document and speed compared, plus how to test both on your own data before you switch.
Updated
On one high-volume task, a fine-tuned open-weight model can beat a frontier model such as GPT or Claude on accuracy and on cost per document. A frontier model still wins when the task changes often, when you have few examples, or when the work spans many unrelated jobs. Whether a trained model wins for you is an empirical question, and the only reliable way to answer it is to test both on your own data before you switch.
What each option is
A frontier model, such as GPT, Claude Opus or Claude Haiku, is a large general model. You reach it through an API and steer it with a prompt. You pay per token, you do not control the weights, and the provider can retire a model on its own schedule.
A fine-tuned model starts from an open-weight model and trains further on examples of one job. Training changes the weights, so the model learns your output format, your labels and your edge cases. It does one job well and runs in an environment you control. For each Claude model on its own, see the Claude Opus comparison and the Claude Haiku comparison.
Why general models struggle with narrow work
General models handle almost any request. That breadth is their strength for chat, drafting and one-off questions. Extraction, classification and routing need something narrower: the same field, pulled the same way, from every document. Three problems come up again and again:
- The output format drifts from call to call, so a parser that worked last week starts failing.
- The edges of each passage get picked loosely. A governing-law clause may come back with its heading, or cut off before the last sentence.
- The bill grows with every document, because each call repeats the same long instructions.
Prompt caching can cut part of that repeated cost. It does not change how well the model finds the right text, so it is not a fix for accuracy problems.
Where a fine-tuned model usually wins
Three things tend to decide it. The first is accuracy on a narrow task. A general model guesses what you want from the prompt each time, while a trained model has seen many examples of the answer you accept. The second is cost per unit of work. Frontier APIs bill by the token, and long documents carry many tokens. The third is consistency. A trained model returns the same structure every time, which means less cleanup code downstream.
Fine-tuning is a good bet when the task has four traits:
- It repeats. The same kind of input arrives again and again, so the training effort is spread across many calls.
- The answer can be checked. Extraction, classification and routing have right and wrong outputs that a script or reviewer can score.
- You have examples of correct output, from past human work, closed tickets or your own labels.
- Quality depends on your definitions and house style. Whether a clause counts as an indemnity depends on how your company uses the word, not on broad reasoning.
Here is a worked example. A team pulls the termination and assignment clauses out of vendor agreements, and the downstream system needs each clause quoted word for word. With a general prompt, the model sometimes paraphrases, and the checker that matches quotes against the source rejects those answers. A model trained on past extractions that a reviewer approved returns the exact text. Cost then decides the rest. At the exam’s per-document prices below, a hypothetical 10,000 agreements a month would cost about $45 on the trained model and $1,550 on Claude Opus. Those figures come from the exam documents, so your average length will change them.
Where the frontier model still wins
Be honest about the limits. If the prompt and the rules change every few weeks, retraining becomes a chore, and a frontier model with a good prompt is the better fit. If you have only a handful of labeled examples, there is little to train on, and the data guide explains how to size the set. If your volume is low, the engineering time to train, test and host a model can cost more than the API bill saves. If the work needs open-ended reasoning across many domains, or nobody can score the output, a frontier model’s breadth is worth its price. If your problem is missing knowledge rather than a repeated task, read fine-tuning vs RAG first.
Mixed work is another weak spot. An inbox that holds contracts, letters and email threads needs a trained model for each type you have covered and a frontier model for the rest. Many teams send only the trained types to the narrow model and route everything else to the frontier model. A frontier model is also the right yardstick for deciding whether a task is hard at all. The frontier model overkill guide covers that check.
What the public exam showed
We scored both on CUAD, a public set of 510 commercial contracts with clauses marked by lawyers. The task is to find 10 kinds of clause and quote each one exactly. Scores cover all 510 contracts under 5-fold cross-validation, so every document was scored by a model that never trained on it. A score is the share of exactly-right quotes, where 1.0 is perfect. Prices were measured on 102 held-out contracts at list price and are stated per 1,000 documents.
| Model | Score (510 contracts, 5-fold) | Price per 1,000 documents (102 held-out contracts) |
|---|---|---|
| Our Accuracy tier | 0.717 | $4.50 |
| Our Standard (fast) tier | 0.650 | $3.54 |
| Claude Opus | 0.635 | $154.49 |
| Claude Haiku | 0.584 | $4.95 |
Our Accuracy tier led Claude Opus by 0.082 and Claude Haiku by 0.133, finished ahead of both in every group of documents, and the gap was larger than the margin of error. The Claude Opus price is at list price for the tokens it used: $0.155 per document, against $0.0045 for the Accuracy tier. Full results cover the method.
Read the setup before the score. Claude took the exam with one prompt, no examples and no task training, while our models were trained for this exam. That shows what training on one task can do. It does not show that a fine-tuned model beats a frontier model at everything, and the exam is not legal advice. The exam did not run GPT, so those numbers are not a GPT price or score. Check OpenAI’s pricing page for current GPT prices, since prices and model names change, and test GPT on your own documents.
How to price the comparison
Price the job per document, not per token on a generic prompt, because a per-token ranking can differ from a per-document ranking. The formula is documents per month, times input tokens per document, times the input price, plus output tokens per document times the output price. Use the LLM cost calculator to run the arithmetic, and feed it counts from your real documents, because document length and answer length drive the bill.
A trained model can need a shorter instruction block, since it has learned the task. Measure that instead of assuming it. Throughput matters too when a backlog has to clear overnight. Measure documents per hour at the concurrency you would really run, since that depends on your setup.
Settle the rules before you score
Take a legal operations team that receives vendor agreements every week and must pull four answers from each one: the governing law, the termination notice period, whether the contract renews automatically, and the liability cap. Every answer must be a quote, because a reviewer checks the quote before anyone relies on it.
Start by writing down what counts. Does a renewal that needs a written opt-out count as automatic? Does a cap that excludes data breaches still count as a cap? Two reviewers often disagree on these, and a model cannot learn a rule the team has not agreed on. Settle the edge cases in writing before any training and keep that list next to the test set.
The scoring rule needs the same care. A reviewer marks the sentence “Either party may terminate on ninety days written notice.” Under an exact-quote rule, a model that returns only “ninety days written notice” scores zero, while one that returns the full sentence scores one. Agree on that rule with the people who use the output before you score anything, because it can change which model looks better.
Then collect past agreements the team has already marked, and include the awkward ones: scanned signatures, amendments that change a clause, and terms that sit in an appendix. A test built only from clean, short contracts will flatter every model. If the current model already quotes the right passage almost every time, a better prompt may be the cheaper fix. If it misses the subtle cases, that gap is what training can target.
Common mistakes
- Trusting a public exam or leaderboard for your task. Public tests measure other work, so use them to pick candidates, not to decide. Your test decides for your work.
- Giving the frontier model a weak prompt. Test it with the prompt it runs in production, including its best instructions, a few good examples and its output format. A careless baseline makes the trained model look better than it is. The fine-tuning vs prompt engineering guide covers the prompt side.
- Splitting by chunk. When one contract is cut into pieces, near-copies of its text can land in both the training and test sets, and the score rises for the wrong reason. Split by document.
- Scoring on documents the model trained on. A model that memorized its examples looks perfect and fails in production.
- Changing the correctness rule halfway through the test. Every earlier score stops being comparable.
- Ignoring label quality. Wrong labels produce a confident wrong model, and the scores can look good because the model learned the same mistakes.
- Scoring accuracy alone. Count malformed output, missed items and the cleanup code you could delete. A model that returns the right text in the wrong format still breaks your pipeline.
- Ignoring running cost. Training runs, hosting, monitoring and retraining when the documents drift all count against the savings. When clause types or forms change, the trained model needs retraining and the frontier prompt needs an update. Count both.
- Forgetting the review step. Fine-tuning helps people who check the output. It does not replace their judgment.
How to run the comparison on your data
- Pull a sample of real inputs, with the answers your team accepts as right. Run five of them end to end first to check the pipeline.
- Split by document, so no document appears in both the training and the test data. Hold the test set back before any training starts.
- Score the current frontier model with the prompt it runs in production. This is the bar.
- Train a candidate on the training split only, and record the random seeds so the run can be repeated.
- Compare both on the same held-out set, counting wrong answers, malformed output, missed items and cost per document. The cross-validation guide shows how to keep one lucky split from deciding the result.
- Deploy only if the trained model beats the current one on that test, and keep the frontier path ready to roll back to. The full method is in the LLM evaluation guide.
Before you switch, confirm that:
- the test set was never used in training or prompt tuning
- the baseline ran with the production prompt
- results hold across several groups of documents, not one average
- someone reviewed the failures, not only the score
One benchmark covers one task, so your contracts, invoices or tickets may behave differently. Training also means owning the outcome. You own the weights, and the model can run in your cloud account or on-prem. You also own its test set and its retraining schedule. If you only need a cheaper general model, see a cheaper alternative to GPT for one task.
Our free audit is the first step if you want to see where your tokens go before running any test. It maps your AI spend by task from your code and invoices, and it shows which task is worth testing against a fine-tuned model. Start on the homepage to see how the process runs, or read what a custom fine-tuning service does, then book the audit below.
Questions
Is a fine-tuned model better than GPT or Claude?
Often, on a narrow task with enough labeled examples. A general model is built to do everything, so it rarely tops a model trained on one job. Whether that holds for your work depends on a test built from your own data, not on a public benchmark.
Can an open model beat GPT on one specific task?
It can, when the task has a clear right answer and you have enough labeled examples to train on. The only fair proof is a test on your own data, scored against the model you use now. General leaderboards do not predict how a model handles your documents.
Is a fine-tuned model better than GPT for extraction?
It can be, on the one task you trained it for. A general model gets one prompt and has to guess what your team means by each field. A trained model learns the exact passages you want back, and you can check that on your own documents before you switch.
Is a fine-tuned model cheaper than GPT?
It can be, but the answer depends on your volume, your prompts and the current prices on each vendor's pricing page. Compare cost per document on the same test set, because that is what your monthly bill reflects.
How do I compare GPT with a fine-tuned model fairly?
Use the same documents, the same scoring rule and the same production prompt for the current model. Hold back a test set that the trained model never sees during training. Score the current model first, so you know the bar the new model has to clear.
How do I know a fine-tuned model is actually better?
Hold the test set out of training and score both models on exactly the same documents. Check the result across several groups of documents, not one average, so a lucky split does not decide it. Only deploy the trained model if it wins on that test.
How much training data does a fine-tuned model need?
There is no fixed number. It depends on the task and on how clean the labels are. Start with the examples you already have, such as past outputs that a person reviewed, and check whether the trained model beats the current one on a held-out set.
Can I run a fine-tuned model in my own cloud account?
Yes. The model can run in your cloud account or on-prem, under your own access controls and logging. The customer owns the weights, so the model stays usable if you change providers later.