Small language model (small language models). What it means.

A small language model (SLM) is a language model with far fewer parameters than the largest models, built to run quickly and cheaply, often on a single machine or a phone, for narrower tasks.

By Brady Heinrich · Updated

Definition

A small language model (SLM) is a language model with far fewer parameters than the largest models, built to run quickly and cheaply, often on a single machine or a phone, for narrower tasks.

What is a small language model?

A small language model is a compact version of the technology behind AI assistants. It works the same way as a large language model, predicting text one token at a time, but has far fewer parameters, the internal values that hold what a model has learned. Fewer parameters mean less memory, faster answers and lower cost, at the price of less general knowledge and weaker reasoning on hard problems.

There is no official size boundary. "Small" is relative, and it shifts as hardware improves. A practical test is whether the model can run on one consumer-grade GPU, a laptop or a phone.

SLM vs LLM: what is the difference?

Small language modelLarge language model
ParametersMillions to a few billionTens of billions and up
Runs onA laptop, a phone, one GPUClusters of GPUs in a data centre
SpeedFastSlower
Cost per requestLowHigher
General knowledgeNarrowerBroad
Complex reasoningWeakerStronger
Best atOne well-defined task, often after fine-tuningOpen-ended and multi-step work

How are small language models made?

  • Trained small from the start on carefully chosen data.
  • Distillation. A small "student" model is trained to copy the outputs of a large "teacher" model.
  • Quantization. The model's numbers are stored at lower precision, which shrinks it with a modest loss of quality.
  • Pruning. Weights that contribute little are removed.
  • Fine-tuning. A small general model is specialised on one task, where it can match a much larger one.

When should you use a small language model?

  • High volume, simple task: classifying, tagging, extracting fields, routing.
  • Low delay: autocomplete, voice interfaces, anything interactive.
  • Privacy: data must stay on a device or inside your own network.
  • Offline or edge use: no reliable connection.
  • Cost control: the task does not need a large model's breadth.

Use a large model when the task is open-ended, needs broad knowledge or involves long chains of reasoning.

How do the two work together?

Many systems use both. A small model handles the bulk of routine requests and passes the hard ones to a large model. In agent systems, a large model often plans the work and small models carry out simple, repeated steps.

An example

A help desk product tags every incoming ticket with a category and urgency. Using a large model for 3 million tickets a month is slow and expensive. The team fine-tunes a small language model on 15,000 labelled tickets. It tags a ticket in a fraction of a second on the company's own servers, agrees with human labels as often as the large model did, and only tickets it is unsure about go to the bigger model.

The common mistake

Choosing the biggest model by default. For a narrow, repeated task, a large model is like hiring a senior consultant to sort the post. Build a test set, start with the smallest model that might work and move up only if it fails.

How people search for small language model

  • slm8,100 a month
  • small language model2,900 a month
  • small language models2,900 a month
  • slm vs llm1,000 a month
  • what is a small language model210 a month

US monthly searches, Google Ads keyword data.

Related terms

Go deeper

Building something ambitious? Let's talk.

We reply within one business day.