Small language models: when a smaller model is the better choice

On narrow, high-volume tasks with a clear definition of correct, a small model that you run yourself can beat a large hosted one on cost, latency and control, provided a test set shows that it does.

By Nabil Ahmed8 minute read

The lunar surface near 46°N, 1°W, lit by a low Sun with night falling across one side.
The Moon near 46°N, 1°W. Rendered by Farside from NASA Lunar Reconnaissance Orbiter elevation data.

Most teams building an AI feature start with the largest model their provider offers, since those models tolerate vague prompts and need no infrastructure. For many production tasks they cost more and respond more slowly than the work requires, and they run outside your network.

A small language model has far fewer parameters than the frontier models, few enough that it runs on a single graphics processor or a laptop, and in some cases on a phone. There is no agreed size threshold, and in practice the category is defined by being able to host the model yourself on modest hardware.

We think small models belong in most enterprise AI architectures as specialists doing narrow jobs, and that the decision to use one should rest on measured results from your own task. A small model is best treated as a separate tool with its own operating cost rather than a cheaper large model.

In brief

  • A small language model is the better choice when the task is narrow, the volume is high, and correctness can be defined and tested.
  • Small models are weaker at open-ended reasoning and long multi-step tasks, and on inputs unlike anything they were tuned on, so they should not be the only model behind a general assistant.
  • Running your own model replaces a per-token price with fixed infrastructure and engineering costs, which only pays off above a certain steady volume.
  • Keeping data inside your own network, predictable latency and a model version that changes only when you decide are often stronger reasons to choose a small model than price.
  • The decision should rest on a task-specific test set run against both a large and a small model, with the acceptable quality threshold agreed before the comparison.

What makes a model small, and how it gets that way

Several openly available model families include small variants, among them Phi from Microsoft, Gemma from Google, the smaller Llama models from Meta, and small models from Mistral and from the Qwen family. They run on open-source tooling such as llama.cpp, Ollama or vLLM, or through managed endpoints on the major clouds. Licenses vary between families and some restrict commercial use, so read them before you commit.

Most practical work with small models relies on three techniques.

Distillation trains a small "student" model to reproduce the outputs of a larger "teacher". The student acquires the teacher's behavior on the kind of data it was shown, which is much narrower than everything the teacher knows.

Quantization stores the model's weights at lower numerical precision, for example as small integers in place of floating point numbers. The model then needs less memory and runs faster, with some loss of quality that you have to measure on your own task.

Fine-tuning continues training a model on your own examples. Parameter-efficient methods such as LoRA (low-rank adaptation) train a small set of additional weights while the base model stays frozen, which makes tuning cheap enough to repeat. How this compares with retrieval and long prompts as ways of teaching a model your business is covered in RAG, fine-tuning or long context.

Where a small model wins

Narrow tasks with a clear right answer. Examples are classifying a message into one of twenty categories, extracting eight fields from an invoice, deciding whether a paragraph contains personal data or routing a request to a queue. Tasks like these call for consistency, and a small model tuned on a few thousand good examples is often as accurate as a general model with a long prompt, and more consistent.

High and steady volume. A task that runs on every transaction, log line or incoming document multiplies any cost per request many times over, and at that scale the arithmetic starts to favor a model with a fixed cost.

When latency must be low. A model in a user's typing path, or inside a request that must return quickly, cannot wait on a large model across the internet, whereas a small model on local hardware answers in a fraction of the time without network variance.

Data that should not leave. Some data cannot be sent to a third party under your contracts or regulations, and some you would prefer not to send, so a model running inside your own network or on the device itself removes the question.

Offline and edge settings. A plant, a vehicle, a field device or a store with an unreliable connection needs a model that runs where the work is done.

Stability of model behavior. A provider can update or retire a hosted model on its own schedule, while a model whose weights you hold behaves the same until you decide to change it.

Where it loses

Open-ended reasoning and breadth. A small model is exposed quickly by questions that need general knowledge or several steps of inference, or the judgment to notice that the question itself is wrong.

Long and messy inputs. Small models are generally less reliable on long documents and conversations. Irrelevant or contradictory material also throws them off more easily.

Agents with many tools. A small model can carry out one well-defined tool step, but planning a long task across many tools is much harder for it.

The long tail of inputs. A tuned small model is very good on inputs like its training data and can be badly wrong on others, whereas a large model degrades more gently. If your traffic includes a long tail of unusual cases, you need a way to detect them and route them elsewhere.

Low or occasional volume. When a task runs only a few hundred times a day, the hosted API bill stays small while the cost of operating your own model does not, so self-hosting at that volume rarely pays.

The total cost has a different shape

A hosted model is priced per token, so you pay nothing while it is idle and carry no infrastructure, and a self-hosted model reverses both of those properties.

Large hosted model Small self-hosted model
Pricing shape Per request, scales with usage Mostly fixed: hardware or reserved capacity
Idle cost None Full, unless you can scale to zero
Latency Network plus provider queue Local and predictable
Data path Leaves your network Stays inside it
Version control Provider's schedule Yours
Quality High on broad tasks Can match on a tuned narrow task, which has to be proven
Engineering needed Prompting, evaluation Serving, scaling, tuning and retraining on top
Who is on call The provider You

Business cases tend to leave out the last two rows. A model you host needs capacity planning, monitoring, security patching of the serving stack, a retraining pipeline for when the task drifts, and someone who responds when it fails at night, all of which is substantial AI operations work. A fair comparison puts the full monthly cost of each option at your actual volume side by side, as laid out in what an AI feature actually costs to run.

A middle path is to use small models that cloud providers host as endpoints. They cost less and respond faster without any serving work on your side, although the benefits for the data path and version control are weaker.

Sorting inbound email at a distributor

Consider a mid-size distributor whose customer service mailbox receives a steady flow of order status questions, returns, invoice disputes, new orders, delivery complaints and noise. A first automation sends every email to a large hosted model with a long prompt asking for a category, an urgency level and the order number if one is present. It works, but the team has three concerns: the monthly bill grows in step with email volume, the classification adds a noticeable delay before a message reaches an agent's queue, and customer emails containing names and addresses are being sent to an outside service.

The team's first attempt with a small model is naive, running the same long prompt against an untuned small model, and accuracy drops, particularly between "invoice dispute" and "delivery complaint" when a customer mentions both, while the model sometimes returns text that is not valid JSON.

The second attempt treats the problem as an engineering task.

  1. They sample several thousand past emails, take the large model's labels as a starting point and ask two service agents to correct a subset, and the corrections reveal that the large model was itself wrong on a consistent group of cases.
  2. They hold back a test set that the small model never sees in training, weighted toward the cases that cause confusion.
  3. They fine-tune a small open model with LoRA on the corrected data and constrain its output to a schema so that it cannot produce malformed JSON, which is the approach described in getting reliable structured output from language models.
  4. They add an escape route, so that when the small model's confidence is low, or the email is unusually long or written in a language outside the training data, the message goes to the large model.
def classify(email):
    result = small_model.classify(email, schema=TicketLabel)
    if result.confidence < THRESHOLD or out_of_distribution(email):
        return large_model.classify(email, schema=TicketLabel)
    return result

On the held-back test set the tuned small model matches the large one on the common categories and falls behind on the rare ones, which is what the escape route is for. Most traffic is now handled locally and quickly without leaving the network. The change is designed to reduce cost per email and time to queue, with both measured against a fixed accuracy floor on the test set.

Product names and return policies change, so the model will drift. The team schedules a monthly re-run of the test set with fresh samples and a retraining job for whenever accuracy falls below the floor.

Small and large together

The example ends in a cascade, the pattern we expect most enterprises to settle on. A small model handles the bulk of routine requests and a large model handles whatever the small one declines, while a router decides between them on the basis of confidence, input characteristics or a cheap classifier, using the mechanics covered in model routing.

A cascade needs shared infrastructure, chiefly a gateway that puts every model behind one interface so that a model can be swapped without a code change. That gateway is a core part of an enterprise AI platform and of sound AI integration in general, and it keeps the choice reversible, because adopting a better or cheaper model only means changing a route.

Training a small model on a large hosted model's outputs is a common technique, but some providers' terms of service restrict it, so check the terms that apply to you before building a training set that way.

How to decide

Work through these questions in order and stop at the first answer of no.

  1. Is the task narrow? Could you describe the inputs, the outputs and what counts as correct on a single page? If not, stay with a large model.
  2. Do you have, or can you build, a test set? You need a few hundred labeled real cases at minimum, including the hard ones, because without them nothing can be compared, and such a set is the foundation of AI evaluation.
  3. Is there a real driver? That could be enough volume for a fixed cost to come out ahead, a latency requirement, a data constraint or an offline setting.
  4. Does a small model clear the quality floor on the test set? Try an untuned model first and then a tuned one, and set the floor before you look at any results.
  5. Can you run it? Name the people who will serve it, monitor it, retrain it and answer the page. If no one can, consider a hosted small model instead.
  6. Is there a fallback? Define the route to a larger model for low-confidence and unusual inputs, and measure how often that route is taken.

When every answer is yes, a small model is very likely the better choice for that task.

Related services

Start a conversation.

A short paragraph is enough. A principal reads every message and replies within one working day.

Or email hello@farside.works. We use what you send only to reply. Privacy