Fine-tuned model vs Claude Opus on intent classification
Can a fine-tuned small model beat Claude Opus 5.5 at classification? On 1,000 banking customer messages it scored 93.3% to Opus 87.6%. Method, cost per message and limits.
Updated
Yes, on a narrow, repeated task. On the public Banking77 test, a small model we fine-tuned put 93.3% of 1,000 customer banking messages into the right one of 77 intents. Claude Opus 5.5 scored 87.6%, Claude Sonnet 5.5 83.8% and Claude Haiku 5.5 81.2%. Every model got the same instructions and the same answer format. The Claude models got no examples and no training. This page gives the method, the numbers with confidence intervals, what Claude costs per message, and the limits of the test.
The result in one table
| Model | Accuracy | 95% CI | Macro F1 | Claude list price per message |
|---|---|---|---|---|
| Our fine-tuned small model | 0.933 | 0.918–0.948 | 0.932 | n/a |
| Claude Opus 5.5 | 0.876 | 0.856–0.897 | 0.872 | $0.0024 |
| Claude Sonnet 5.5 | 0.838 | 0.816–0.860 | 0.830 | $0.00078 |
| Claude Haiku 5.5 | 0.812 | 0.789–0.836 | 0.806 | $0.000074 |
Accuracy is the share of the 1,000 test messages given the correct intent. Macro F1 averages the score over all 77 intents, so rare intents count as much as common ones. The two measures agree on the order.
How big is the lead over Claude Opus?
The fine-tuned model was 5.7 points ahead of Claude Opus 5.5, with a 95% confidence interval of 3.8 to 7.6 points. It was 9.5 points ahead of Sonnet 5.5 (7.5 to 11.6) and 12.1 points ahead of Haiku 5.5 (9.9 to 14.3). Every interval excludes zero, so none of the leads is likely to be luck in which messages were tested.
The intervals come from a paired bootstrap. We resampled the 1,000 test messages 1,000 times, and in each resample scored both models on exactly the same messages. Pairing matters: it compares the models on the same hard and easy cases, instead of comparing two separate averages. In every one of the 1,000 resamples, the fine-tuned model came out ahead of each Claude model.
What intent classification is
Intent classification reads a short message and assigns one label from a fixed list. In customer support it decides where a message goes: a lost card to the card team, a failed transfer to payments, a refund question to billing. It runs on every incoming message, so it is often one of the highest-volume AI calls a company makes.
Banking77 is a standard public test of this job. It holds 13,083 online-banking customer questions, each labeled by people with one of 77 intents. Many intents are close neighbours. “Card arrival” and “card delivery estimate” are separate labels, as are “pending transfer” and “transfer not received by recipient”. Telling those apart is what makes the test hard.
How the test was run
- Data. Banking77 (Casanueva et al., 2020, PolyAI, CC BY 4.0), official train and test split. The 1,000 test messages were drawn evenly across the 77 intents, 12 or 13 each, from the official test set.
- No overlap. Exact duplicate messages were removed. Training messages that also appeared in the test set were dropped from training, so the model never saw a test message.
- Training. One pass over 9,692 human-labeled training messages. No output from Claude or any other model was used as training data.
- Claude. Opus 5.5, Sonnet 5.5 and Haiku 5.5 through the Anthropic API, zero-shot. Each got the same system prompt listing all 77 intent names, the user’s message, and the same JSON answer format. Every answer from every model was valid JSON, so no model lost points to formatting.
- Scoring. Exact label match against the human label. Random seed 42 throughout.
Why the fine-tuned model wins here
A prompted model sees 77 label names and has to guess where one ends and the next begins. “Card arrival” and “card delivery estimate” sound alike. The people who labeled the data drew the line in a specific place, and that line is not written in the label name.
A fine-tuned model learns the line from examples. It saw about 125 labeled messages per intent, so the boundaries the labelers used are built into the model. The same small model scored 64.1% before training and 93.3% after, a gain of about 29 points (95% CI 26.2 to 32.4). The training data did the work, not the model’s size.
This is why the result says more about your support queue than about Claude in general. If your labels encode decisions your team made, such as which queue owns which kind of complaint, a model trained on your team’s past decisions has information a prompt does not.
What Claude costs per message
Claude cost per message is Anthropic’s list price for the tokens each model used, with prompt caching on the shared instructions:
| Model | Per message | Per 1,000 messages | Per 1,000,000 messages |
|---|---|---|---|
| Claude Opus 5.5 | $0.0024 | $2.40 | about $2,400 |
| Claude Sonnet 5.5 | $0.00078 | $0.78 | about $780 |
| Claude Haiku 5.5 | $0.000074 | $0.074 | about $74 |
The per-1,000 and per-million columns are the per-message price multiplied out. Longer messages or a longer label list cost more. Haiku is cheap enough that cost alone rarely justifies replacing it. The case for a trained model against Haiku is accuracy: 12 points on this test. Against Opus, the case is accuracy and cost together: on our contract test, the trained model’s price per document was a fraction of Opus’s. Either way, you own the trained model.
What this test does not show
- It is zero-shot Claude. Claude got no examples in the prompt. A prompt with examples might narrow the gap. We did not test that on Banking77. On our separate contract test, three worked examples helped Claude Haiku but left it well short of the trained model.
- It is one dataset. Banking77 is public and well studied. Your messages, labels and edge cases will move the numbers. Score your own data before relying on this result or any other.
- A trained model is a specialist. It is trained for one label set. On a general-knowledge exam, the banking model scored about 5 points lower than it did before training. Keep a general model for open-ended work.
- Labels change. A new intent needs new examples and a retraining run. A prompt change takes a minute. If your label list changes every week, a prompt is the better tool.
When to stay with Claude
Stay with a prompted Claude model when:
- volume is low, so the per-message cost does not matter;
- your labels change often;
- you do not yet have a few thousand messages labeled by people;
- the task needs open-ended judgement rather than one label from a fixed list.
Move the task to a trained model when the labels have held steady, the volume is high, and you can measure the gap on your own messages.
How to run this test on your own messages
- Export a few thousand past messages with the label your team gave each one. Labels must come from people, not from an AI model.
- Hold out a test set, at least a few hundred messages spread across your labels, and never train on it.
- Score your current model on the test set first, with the best prompt you can write.
- Train a model on the rest and score it on the same test set.
- Compare with a paired bootstrap so you know whether the gap is real, and check accuracy per label, not just overall.
- Price both at your real volume. Use the LLM cost calculator for the API side.
Own Weights runs this process for companies: build the test from your own cases, score your current model, train, and deploy the trained model on your servers only if it wins. The full numbers for this test and our contract extraction test are on the benchmark page. For the general approach to classification at volume, read using a trained model for classification.
Questions
Can a fine-tuned small model beat Claude Opus 5.5 at classification?
On one task, yes. On the public Banking77 test, a small model fine-tuned by Own Weights put 93.3% of 1,000 customer banking messages into the right one of 77 intents. Claude Opus 5.5 scored 87.6%, Claude Sonnet 5.5 83.8% and Claude Haiku 5.5 81.2%, with the same prompt, the same answer format and no examples. The lead over Opus was 5.7 points, with a 95% confidence interval of 3.8 to 7.6 points.
Which Claude model is most accurate for intent classification?
On the Banking77 test with 77 intents and no examples in the prompt, Claude Opus 5.5 was the most accurate Claude model at 87.6%, followed by Sonnet 5.5 at 83.8% and Haiku 5.5 at 81.2%. Opus also cost the most per message: about $0.0024, against $0.00078 for Sonnet and $0.000074 for Haiku at list price.
How much does Claude cost per message for classification?
On the Banking77 test, at Anthropic's list price with prompt caching on the shared instructions, Claude Opus 5.5 cost about $0.0024 per message, Sonnet 5.5 about $0.00078 and Haiku 5.5 about $0.000074. At one million messages a month that is roughly $2,400, $780 and $74. Your cost depends on message length and on how long your label list is.
Why does a fine-tuned model beat a larger model at classification?
A prompted model sees only the label names and has to guess where one label ends and the next begins. A fine-tuned model has seen thousands of real messages with the correct label, so it learns those boundaries from examples. On Banking77, training on 9,692 labeled messages moved the same small model from 64.1% to 93.3%.
Would Claude do better with examples in the prompt?
Possibly. This test gave Claude no examples, and we did not run a few-shot version on Banking77. On a separate contract extraction test, three worked examples improved Claude Haiku but left it well short of the fine-tuned model. Test your own best prompt, examples included, before deciding.
How many labeled examples do I need to fine-tune a classifier?
The Banking77 model trained on 9,692 messages, about 125 per intent. Fewer can work for fewer labels. The reliable way to know is to hold out a test set, train on what you have, and check whether the trained model beats your current one on that test.