Own Weights

LLM classification at volume with a trained model

LLM classification at volume: train on your labeled examples, test against your current model, and run the classifier in your own environment.

Updated

Use a trained model for LLM classification when the same label decision runs thousands or millions of times and the labels stay stable. You send each document to a model that has learned your label set from your own examples, instead of a long prompt that lists the labels on every call. The result is one label per document, a test score you can check and a cost you can predict. This is the work we do at Own Weights.

When a prompt stops being the right tool

A prompt is the fastest way to start. It gets expensive when the same decision runs all day. Every call re-sends the instructions, the label definitions and any examples, and the model returns a single word. A trained model keeps that behavior in its weights, so each call carries only the document.

Prompting still wins when the labels change every week, because retraining for each change costs more than editing a sentence. Move to a trained model when the labels have held steady across several review cycles and the volume makes the per-document cost show up on the invoice. If the backlog can wait, batch APIs vs real-time calls shows how that choice changes the cost.

Define the labels before you collect data

Most failed classifiers fail on the label set, not the model. Write one definition per label, with a short rule and one example, and say what a document looks like when it fits none of them. Teams that skip the “none of the above” label force the model to guess on documents it has never seen, and those guesses are what users complain about.

Next, have two people label the same sample without talking to each other, then count the disagreements. Each disagreement points to a rule the definition does not state. Fix the definition, relabel the disputed rows and repeat. No amount of training data fixes two labelers who disagree.

A worked example: routing support tickets

Take a support inbox with five labels: billing, outage, access, feature request and other. The ticket “I was charged twice for March and the card on file is the old one” is billing, even though it names a card, which a model that has seen few examples might read as an access problem. Write that case into the definition: a charge that is wrong is billing, even when a payment method appears in the text.

Overlap is where the hard cases live. “The export button has done nothing since yesterday’s update” could read as an outage or as a feature gap. Pick the rule that sends the ticket to the team that can act first, write it down, and label every past example the same way. Otherwise the test score measures agreement with an inconsistent history, not accuracy.

The pattern repeats in other back offices. An accounts payable team codes invoices to ledger accounts, and the hard cases are invoices that mix software and consulting on one line. A claims team tags incoming forms by type, and the hard cases are forms that describe two events. In each case the decision is which rule wins, so the test set needs enough of those cases to show whether the model applies it. Related: AI invoice processing and AI support ticket routing.

Score per label and read the errors

Split the data by source record, not by row. One customer can send a dozen tickets that differ by a few words, and if some land in training and others in test, the score flatters the model. Keep every row from one account, one invoice batch or one contract in the same split. For repeated splits, see cross-validation for LLMs.

Report the score for each label, not only the overall number. A model can score well overall and still miss the rare label that matters most, such as a security incident that appears twice a month. Read the wrong answers by hand. A failed run that keeps confusing two labels tells you which definition to tighten, and that is often more useful than the run that won.

For a public reference point, we ran Banking77: 1,000 test messages, each to be sorted into one of 77 banking intents. Accuracy was 93.3% for our fine-tuned model, 87.6% for Claude Opus 5.5, 83.8% for Claude Sonnet 5.5 and 81.2% for Claude Haiku 5.5. Your labels and your messages will differ from a bank’s, so the per-label scores on your own test set are the ones that decide. Full results.

Common mistakes and a checklist before you switch

Common mistakes that waste a retraining cycle:

  • Training on a sample that does not match production. If live traffic includes a language, product line or customer segment the sample lacks, the model fails there first.
  • Changing the labels mid-project. A score on the old labels cannot be compared with a score on the new ones. Freeze a label version and record it with each run.
  • Trusting one run. Fix the seed, record it, and rerun before you believe a gain.
  • Shipping every label with no fallback. Send low-confidence outputs to a person or to the old process.
  • Judging against an unmeasured baseline. If the current process is a keyword rule or a prompt nobody has scored, you do not know the bar. Score it on the same test first.

Checklist before you switch:

  1. Write a definition and one example for each label, including “other”.
  2. Get two labelers to agree on a sample, and fix the definitions until they do.
  3. Split by source record and freeze the test set.
  4. Score the current process on that test.
  5. Train, score per label and read the errors.
  6. Deploy only if the trained model beats the current process on the overall score and no critical label gets worse.
  7. Rescore a sample of live outputs every month, since the labels drift.

Running it in your own environment

The trained model can run in your cloud account or on your premises, behind your own network rules, access controls and logs. You decide who can call it and where its output goes. We do not claim compliance with any specific regulation for you. What we can say is that the model runs under your own controls.

If you have a classification job that runs at volume, start with a free audit. We map your AI calls from code and invoices, show which ones are classification, and tell you whether a trained model is worth testing. Use the “Book a free audit” button on this page to book a call.

Questions

Can a trained model replace a prompt for LLM classification?

Yes, when the labels are stable and the volume is high. The trained model learns the label set from your examples, so each call does not need the instructions and label definitions. Keep the prompt approach for low volume or for labels that change every week.

How do I know a classifier is accurate enough to deploy?

Score it on a held-out test built from real documents, and score your current model on the same test. Deploy only if the trained model beats the current one. Repeat the check after every retraining run.

Should a classification job run in real time or as a batch?

Use real-time calls when a person or system is waiting for the label. Use batch processing when the backlog can wait, since Anthropic's Batch API is half price. Compare the cost per document for each option before you choose.