LIVE · Thursday 3 December

Fine-Tune a Small Model to Replace a Frontier Model in an Agent Workflow: Examples Needed Per Step, Costs

For a six-step claims agent at 30,000 runs a day, structured steps can likely move to a small fine-tuned model after a pilot of 500 to 2,000 checked traces each. The decision step probably stays put, and a cheap hosted model may beat both on cost.

By Surya8 min read

Yes, a small open model fine-tuned on your own traces can probably take over most steps of a repetitive agent workflow, but not necessarily all of them, and not necessarily at the lowest cost. For each structured step (extraction, classification, routing, formatting), plan a pilot of about 500 to 2,000 outcome-checked traces and scale to 5,000 to 20,000 only if accuracy is still rising; keep the judgment-heavy decision step on the frontier model until a test set says otherwise. The published rules of thumb, from OpenAI's 50 to 100 examples to NVIDIA's 10k to 100k, were not measured step by step inside an agent workflow, so your own learning curve is the real answer.

This guide takes a claims-processing agent that runs the same six steps 30,000 times a day and works through the choice step by step: what each option is, which steps it fits, how much data it needs and what it costs.

The four options for each step

Every step in the workflow has the same four choices, and they can be mixed.

Keep the frontier model. No data work, highest per-call cost. It is the reference every other option is scored against, and the fallback for calls the others cannot handle.

Prompt a cheap hosted model. No training. Anthropic's pricing page lists Claude Haiku 5.5 at $0.10 per million input tokens and $0.50 per million output (for prompts up to 100,000 tokens), a twentieth of Claude Sonnet 5.5's $2 and $10. Its accuracy on claims steps has not been measured, which is why it belongs in the first round of testing rather than in the plan by default.

Fine-tune a small open model and serve it yourself. This is the option the question is about. You own the weights and can keep the data in your own environment; you take on training, evaluation, serving and retraining. Together's fine-tuning, for example, lets you download a merged model or just the LoRA adapter, so the result is not tied to one host.

Buy the loop as a managed service. A vendor traces production traffic, builds the datasets and evaluations, trains, serves and routes uncertain calls to a frontier model. The trade is less work for less control, and the service described below publishes no price.

Which steps a small model is likely to win

The research does not measure claims workflows, but it is consistent about task types.

Predibase's LoRA Land report, from April 2024, fine-tuned 310 models of 7B parameters or smaller on 31 tasks. The report's abstract says they beat GPT-4 by 10 points on average, and 224 of the 310 beat it outright; GPT-4 held the lead on six tasks, most widely on coding and on broad-knowledge questions. Predibase sells fine-tuning, so the margins are vendor-reported. Anyscale's August 2023 case study found fine-tuned Llama-2-13B going from 58% to 98% on a structured-output task and from 42% to 89% on SQL, beating GPT-4 on both, while on grade-school math it rose from 28% to 47% and still trailed GPT-4.

Mapped onto the claims workflow, intake extraction and output formatting look most like the structured-output and SQL tasks small models won, so they are the place to start. Classification and routing to a policy lookup are narrow, fixed-label tasks, closer to what small fine-tunes won in LoRA Land and Anyscale's study than to what they lost. Rule checking is structured but depends on edge cases, so it needs a test set weighted toward exceptions. The decision on a disputed or unusual claim looks like the reasoning tasks where GPT-4 kept its lead; expect it to stay on the frontier model, or to move only for routine claims with a strict fallback.

That mapping is an inference from other tasks. Per-step learning curves for a workflow like this, showing accuracy at 100 through 50,000 examples and where each step reaches parity or never does, have not been published.

How many examples each step needs

Three published results set the range.

At the low end, OpenAI's supervised fine-tuning guide says "We see improvements from fine-tuning on 50–100 examples." That advice concerns OpenAI's own hosted models, whose fine-tuning platform OpenAI "is winding down," with job creation ending January 6, 2027 for eligible existing customers. Its distillation guide adds a useful stop rule: "If 50 examples have no impact, rethink your task or prompt before adding training data."

In the middle, FireAct, first posted in October 2023, fine-tuned Llama-2-7B on 500 GPT-4 agent traces and lifted its HotpotQA score from 14.8 to 26.2. At 100 or 200 traces, "Llama models cannot even learn the ReAct format"; scores became meaningful at 500 and most improved again at 1,000. Llama-2-13B needed 1,000 traces to match what GPT-3.5 reached with 100. The weaker the base model, the more data it needs, which matters when choosing between a 1B and an 8B model. Even with that data, FireAct's fine-tuned 13B scored 34.4 against 42.0 for GPT-4 with the same ReAct prompting: on a multi-hop reasoning task, 500 traces closed part of the gap, not all of it.

At the high end, NVIDIA Research's September 2025 position paper calls "10k-100k examples" sufficient "as a rule of thumb." It is guidance, not a measurement.

For a pilot, that points to 500 to 2,000 checked traces per step on two base sizes, and 5,000 to 20,000 for steps that are still improving. Two quality choices can cut the number. Google Research's Distilling step-by-step trained small models on a large model's rationales as well as its answers; a 770M model beat few-shot 540B PaLM on the ANLI benchmark using 80% of the full dataset. Those are academic benchmarks, not agent traces. If your traces contain the frontier model's reasoning, keep it. FireAct's authors also report that "more diverse fine-tuning data can further improve agents," so sample across claim types rather than taking 10,000 routine ones. How much near-duplicate removal, stratified sampling or outcome filtering changes the count inside a claims workflow has not been measured.

Volume is not the problem at 30,000 runs a day. Correct examples are. Raw frontier traces include the frontier model's mistakes, so keep traces whose result was later confirmed, and strip personal data first; NVIDIA's paper says to "remove any PII, PHI, or any other application-specific sensitive data" before training.

Options compared

The cost column uses the worked example in the next section: six calls per run, 3,000 input and 300 output tokens per call, list prices.

Option Best fit Data to start Cost per 1,000 runs
Claude Sonnet 5.5 on all six steps Reference and fallback None $54.00
Claude Opus 5.5 on all six steps Hardest decision steps None $108.00
Claude Haiku 5.5 prompted, all steps Steps it passes on your test set Test set only $2.70
Fine-tuned 8B on four steps, Sonnet on two plus 10% fallback Structured steps that fail cheaper options 500 to 2,000 per step $30.38

A worked cost example at 30,000 runs a day

On Claude Sonnet 5.5, each call costs 3,000 × $2 plus 300 × $10 per million tokens, or $0.009. Six calls make $0.054 per run, $54 per 1,000 runs and $1,620 a day.

For the hybrid, move extraction, classification, routing and formatting to a fine-tuned 8B model and assume 10% of those calls fall back to Sonnet. Each run then makes two Sonnet calls for rule checking and the decision plus 0.4 fallback calls, 2.4 in all: $0.0216 per run, or $21.60 per 1,000 runs. Serve the small model on two Together H100 dedicated replicas for redundancy, at $5.49 per GPU-hour: $263.52 a day, billed per running replica "even when idle." Spread over 30,000 runs, that is $8.78 per 1,000 runs. The hybrid totals $30.38 per 1,000 runs, about $911 a day against $1,620, a saving of roughly $709 a day or 44%. With Opus 5.5 as the frontier model, the baseline is $108 per 1,000 runs and the same hybrid about $52.

Training adds little. At Together's $0.34 per million tokens for models up to about 9B, 5,000 examples of 3,300 tokens over three epochs (an assumption) is about 49.5 million tokens, or $16.83 per step. Labelling outcomes and building test sets cost far more, and no source prices them.

Three assumptions carry the result. The 10% fallback rate has not been measured; the share of calls a small model can take at a fixed quality bar is the number your pilot has to produce. Whether two H100s can carry 120,000 calls a day of this shape has not been measured either. And Haiku 5.5 at $2.70 per 1,000 runs undercuts the hybrid on cost if it meets the bar, which is why it is tested first.

Situations

Your structured steps fail a cheap hosted model but your volume is steady. Fine-tune per step. Freeze a test set of one to two thousand hard-weighted cases per step, train at 500, 1,000 and 2,000 examples, and plot against the frontier score. Retrain after every policy or schema change; NVIDIA's paper calls for periodic retraining "with new data" but gives no interval, and how fast accuracy decays after a change has not been measured.

A cheap hosted model passes most steps. Use it for those steps, keep the frontier model for the rest, and skip fine-tuning unless you need to own the weights or keep data in your environment.

You are a regulated insurer. Whatever you choose, keep dated test results. The NAIC's model bulletin on AI use by insurers, adopted December 4, 2023, applies to claim management and lists "model drift" and "validating, testing, and retesting as necessary" among the controls insurers should address, including for third-party AI systems.

You do not want to build the pipeline. Managed services exist. Parsec, a small language model lab, describes a loop of tracing production requests, building datasets and evaluations the customer approves, SFT or LoRA training and serving, with low-confidence requests sent to a closed frontier model, and its inference page says "Weights: Yours. Download them." Parsec says a first post-trained model takes about four weeks, without a stated baseline. It publishes no price for this service, its pages do not mention VPC or on-premises hosting for it, and it has published no per-step sample-size results; a claims team should ask about data handling before sending traces.

Bottom line

Test the frontier model and a cheap hosted model against a frozen, hard-weighted test set per step before training anything. For structured steps that the cheap model fails, fine-tune a small open model starting at 500 to 2,000 outcome-checked traces and scale only while the curve rises; at 30,000 runs a day, moving four of six steps cuts list-price spend by roughly 44% under the assumptions shown. Keep the judgment-heavy decision step on the frontier model, and retrain whenever policies or schemas change.

Sources

More in Research

All Research →