All Articles

Small Models for the Boring Steps: How to Find Them and Prove They Work

If your prototype sends every call to the same large model, the first cost experiment is to split the call log by task. But pipelines are made of steps, and many steps are simple: classify this ticket into one of eight labels, extract the invoice number and amount, decide which tool to route to. A smaller model may meet the same task-specific accuracy target with lower cost or latency. Measure both rather than predicting from parameter count.

“Small model” can mean a smaller tier from the same provider, an open-weight model on a managed service such as Bedrock or Vertex, or a model you run yourself. The method for deciding is the same in each case.

Step 1: find the candidate steps

From your call logs, group model calls by step (the prompt template or feature that made them) and rank the groups by total spend. For each of the top groups, ask:

  • Is the output constrained? A label from a fixed set, a JSON object with a schema, a yes/no. Constrained outputs are the best candidates, because correctness is easy to check.
  • Is the reasoning shallow? Does the step need to combine many facts or plan several moves ahead, or is it recognising a pattern in the input?
  • Is there a lot of volume? A step called ten times a day isn’t worth optimising, however expensive each call is.

Classification, extraction, routing, formatting and short summarisation usually qualify. The agent’s main planning and reasoning loop usually doesn’t.

Step 2: build the test set from real traffic

Take a few hundred real inputs for the step from your logs, stratified so rare categories are represented, not just the common ones. Label them with the correct output. The large model’s outputs make a good first draft of the labels, but a person must check them. Otherwise you’re measuring how well the small model imitates the large one, mistakes included.

Hold back a slice you don’t look at while tuning prompts, and use it only for the final comparison.

Step 3: test smallest first

Run the test set against candidate models from smallest to largest, with the prompt adjusted for each. Small models often need more explicit instructions and a few examples. Record, per model:

  • accuracy overall and per category. Small models often fail on the rare categories while doing fine on average, and the rare categories are often the ones that matter;
  • the p50 and p95 latency;
  • cost per 1,000 calls at your real input and output sizes.

Stop at the smallest model that meets the accuracy bar you set before running anything. If none pass, keep the current model for this workload. That result applies to the candidates, prompts and cases tested; it does not prove no smaller model could work.

Step 4: fall back when unsure

A cascade is another candidate: send inputs that fail a validated routing rule to the larger model, then compare the combined system with either model alone:

The following is pseudocode: the model clients and calibrated routing score are application-specific.

def classify(ticket: str) -> str:
    small = small_model.classify(ticket)          # returns label + confidence
    if small.label in ALLOWED_LABELS and small.confidence >= THRESHOLD:
        log_route("small", small)
        return small.label
    large = large_model.classify(ticket)
    log_route("large", large, small_guess=small.label)
    return large.label

A self-reported confidence number, token probability or agreement between calls is a routing feature, not a calibrated probability of correctness. Fit the threshold on a validation split, then measure accepted-case error and escalation on the untouched holdout. Repeated calls can share the same mistake. Include the first small call, fallback calls and any agreement calls in the cost comparison; accepted share times the price difference omits that overhead.

Log both routes. The cases escalated to the large model are also your best source of new training and test examples.

Step 5: consider fine-tuning only after all that

If a small model is close but not quite there, fine-tuning it on a few thousand labelled examples from your own traffic can close the gap. Managed fine-tuning is available for some models on Bedrock and Vertex AI, and open-weight models can be fine-tuned with standard tooling. It adds work: a training pipeline, versioned datasets, and re-evaluation whenever the base model changes. Do it when volume justifies it, not as the first step.

What to watch after switching

  • Accuracy drift. Your inputs change over time, new product names appear, and users phrase things differently. Re-run the held-out test set monthly, and sample live traffic for human review.
  • Escalation rate. A rising share of calls falling back to the large model is an early sign the small model is falling behind.
  • Downstream effects. A misclassified ticket costs more than one wrong label. It goes to the wrong queue and waits. Track the metrics that care about the outcome, like time to resolution, not only label accuracy.

Where this stops

This works for steps with checkable outputs and enough volume to matter. It doesn’t make a small model good at open-ended reasoning, and cascades add a code path that has to be tested and monitored. The cost also includes your time: a 60% saving on a step that costs $40 a month isn’t worth a week of work. Start with whatever step the spend ranking puts at the top.