Fine-tune a small model to beat GPT or Claude on one task
How to fine-tune a small model to beat GPT or Claude on one task: build the test first, train on checked examples, and switch only if it wins on unseen cases.
Updated
Part of: Cut your AI bill
To fine-tune a small model that beats GPT or Claude on one task, build a scored test from your own real cases first, then train a small open-weight model on checked examples of that one task, and switch only if it beats your current model on cases it never saw. This works for narrow, repeated jobs with a clear right answer, such as extraction, classification and routing; for open-ended reasoning or broad knowledge, keep the large model.
Our public tests compare against Claude; the method is the same for GPT. Size tells you what a model can attempt. It does not tell you how often it gets your task right.
Why a narrow model can win
A general model has to work out your rules from the prompt on every call. It may guess the output format, drop a field, or add a sentence you did not ask for. A model trained on examples of one task has seen the right answers many times, so the format and the rules become part of the model instead of instructions it must recall each time.
The trade-off is real. A small model knows less about everything else, and it does poorly on tasks it was never trained for. Most teams keep a large model for open-ended work and move only the repeated, high-volume task to a trained model.
A worked example: clause extraction
Suppose each vendor contract needs its governing-law clause copied out word for word. A general model may return a tidy summary when you wanted the exact text, or quote the clause and wrap it in a sentence of commentary. Both answers read well to someone skimming them, and both fail an exact-match check.
A trained model learns from examples that the answer is the verbatim span and nothing more. It also learns the cases your contracts actually contain: a clause split across two pages, a definition that sits before the clause, or a heading that looks like the clause but is not one. Those edge cases are where general models often slip, so they belong in your test set first.
What it looked like on two public tests
Banking messages. On Banking77, the task is to read a customer’s message to a bank and pick one of 77 intents. The same small model scored 64.1% before training. After one pass over 9,692 human-labeled training messages, it scored 93.3% on 1,000 test messages, against 87.6% for Claude Opus 5.5 and 83.8% for Sonnet 5.5. No output from Claude or any other model was used as training data.
Contracts. On CUAD, 510 commercial contracts with answers marked by lawyers, a model trained for one extraction task scored 0.717 against 0.635 for Claude Opus, checked with 5-fold cross-validation. A newer version scored 0.759 against 0.641 for Opus and 0.627 for Sonnet on 102 held-out contracts.
Claude took both tests with one prompt and no examples. We have not run these tests against GPT. The method is the same whatever model you use today: score it on your test, then score the trained model on the same test. Full method on the benchmark page.
The trade-off is measured too: on a general-knowledge exam, the banking model scored about 5 points lower than before training. A trained model is a specialist.
When a small model is the wrong choice
A trained model is not a universal upgrade. It fits best when:
- The same task repeats at high volume.
- You have real examples of correct answers from your own data.
- The job is narrow enough to write down as one clear set of rules.
It fits poorly when the task changes every few weeks, when one prompt asks for many unrelated jobs, or when you have no real examples to test against. Judge cost per finished task, not cost per token. A cheaper model that needs a retry or a human check on many outputs is not cheaper in practice. Our guide on when a frontier model is overkill covers the other side of that decision.
Mistakes to avoid when comparing models
- Testing on examples the model saw during training. The score then measures memory, not skill.
- Tuning a prompt for weeks and comparing it against a model tried once. Give both the same care, the same inputs and the same scoring rule.
- Accepting “close enough” for an extraction task. Write the exact scoring rule before you see any results.
- Scoring a correct answer in the wrong format as a pass. Your system still has to parse it, so it counts as a miss.
- Letting one document appear in both the training and the test group. The shared text inflates the score.
Where the training data should come from
Use your own records with answers a person has checked: past invoices your staff coded, tickets your team routed, contracts your lawyers marked. The banking result above used 9,692 of them.
Be careful with outputs from the model you want to beat. Many teams generate training data with a large model. Check the terms of the model you use before training on its outputs, and know that the small model then learns the large model’s mistakes. Our guide on training on frontier model outputs covers the risk.
Who this is for
Teams that run one task at high volume on a frontier API and can check the answers. If you have an engineer who has trained models before, you can follow the steps below yourself with open-source tools. If you want the test, the training and the serving done for you, that is what Own Weights does: you keep the weights, and hosted use costs $0.31 per 1M tokens on the Accuracy tier or $0.24 on the Standard tier (pricing).
How to check it on your own data
Do not decide from a public score alone. Your documents, your rules and your edge cases decide the result. Work through these steps in order:
- Collect real inputs that include the messy cases, not only the clean ones.
- Write the correct output for each input, along with the exact scoring rule.
- Split the set by source document, so no document appears in both training and testing.
- Score your current model first and record the number.
- Train the smaller model and score it on the same held-out test. It must beat the current model before you switch.
- Run a short trial on a slice of live traffic and compare the outputs side by side.
Our guide on testing an LLM on your own data goes through the details, and cross-validation for LLMs explains how to build the groups.
A small model beats a large one when the job is narrow, repeated and measured. Score the model you use today on a test built from your real work, then score the smaller model on the same test and let those scores decide. If you run a high-volume task on a frontier API, start with the free AI cost audit, which shows which calls are candidates, or book a call to talk through the test. Learn more at Own Weights.
Questions
Is a smaller model always cheaper to run?
Not always. A smaller model usually costs less per token, but the number that matters is cost per finished task, which includes retries and the time people spend checking output. Measure cost per document on your own inputs before you decide.
How do I know if a small model is good enough for my task?
Build a test set of real examples with correct answers, and score your current model on it first. Then train the smaller model and score it on the same test set, never on examples it saw during training.
Does a small model work on tasks outside its training?
Usually not as well. A model trained on one job tends to lose ground on jobs it was never trained for, so keep a general model for open-ended work and send only the repeated task to the trained one.