By Plainly Editorial

Updated

LLM vs small language model (SLM)

Filed under AI & modern tech

Use an LLM when tasks are open-ended, need broad knowledge, or involve hard multi-step reasoning. Use an SLM when the task is narrow and well defined, when speed or cost per request matters, or when data must stay on the device. A common pattern is to route easy requests to a small model and escalate hard ones to a large one.

Side-by-side

DimensionLLMSmall language model
Typical sizeTens of billions to over a trillion parametersRoughly 0.5 to 10 billion parameters (no official cut-off)
Where it runsData-center GPUs, usually reached through an APILaptops, phones, edge devices, or a single GPU
SpeedSlower per token; adds network round-trip when hostedFast, often near-instant locally with no network delay
Cost per requestHigher; priced per token by providersMuch lower; near zero on hardware you already own
Broad knowledgeWide general knowledge across many domains and languagesNarrower; forgets or never learned many long-tail facts
ReasoningStronger on complex, multi-step, ambiguous problemsGood on simple, well-scoped tasks; struggles as complexity rises
Hallucination on obscure factsLower, though still presentHigher; pair with retrieval for factual work
PrivacyData usually goes to a provider's serversCan run fully on-device so data never leaves
Works offlineRarelyYes
Fine-tuningExpensive; often limited to what the provider allowsCheap and fast, even on a single GPU
Energy useHigh per requestLow per request
How it is usually builtTrained from scratch on trillions of tokens at very high costOften distilled from a larger model or trained on carefully filtered, high-quality data

Choose LLM when

  • The questions are open-ended and could be about almost anything.
  • The task needs multi-step reasoning, planning, or careful analysis of long documents.
  • You are running an AI agent that must choose tools and recover from its own mistakes.
  • Quality matters more than cost or speed, such as for legal drafting or complex code.
  • You do not yet know exactly what users will ask, so you need a generalist.

Choose Small language model when

  • The task is narrow and repeated, such as classifying tickets, extracting fields, or tagging content.
  • You need responses in milliseconds, such as autocomplete or live transcription cleanup.
  • Data must stay on the user's device for privacy or compliance reasons.
  • The app must work offline or on weak connections.
  • You process millions of requests and per-token API costs would be too high.
  • You want to fine-tune your own model cheaply and run it on hardware you control.

Common questions

How many parameters make a model small?

There is no official line, and it keeps moving as hardware improves. In late 2026, models up to roughly 10 billion parameters are commonly called small because they can run on consumer hardware, especially when quantized. A parameter is one of the numeric weights the model learned in training; more parameters means more capacity but more memory and compute.

What is knowledge distillation?

Distillation trains a small student model to imitate a larger teacher model, using the teacher's outputs as training targets instead of only raw data. The idea was popularized by Hinton, Vinyals, and Dean in 2015. DistilBERT showed the effect clearly: it was 40% smaller and 60% faster than BERT while keeping about 97% of its language-understanding performance.

Can a small model be as good as a large one?

On a specific task, sometimes yes. A small model fine-tuned on one job can match or beat a general large model on that job. Microsoft's Phi-3 report described a 3.8-billion-parameter model small enough for a phone that scored close to much larger models on common benchmarks. On broad knowledge and hard reasoning, large models still lead clearly.

What is quantization, and how does it help small models?

Quantization stores each weight with fewer bits, for example 4 bits instead of 16, which cuts memory use by roughly three to four times. That is often what lets a model fit on a phone or laptop. The trade-off is a small loss in accuracy, which is usually acceptable for everyday tasks but grows with more aggressive compression.

Are small language models used in phones?

Yes. Phone makers and operating systems now ship small on-device models for features such as summarizing notifications, suggesting replies, and rewriting text. These run locally for speed and privacy, and many systems hand harder requests to a larger cloud model. Google's Gemma 4 family, for example, includes compact sizes aimed at phones and laptops.

Do small models hallucinate more?

Generally yes, especially on obscure facts, because they had less capacity to store knowledge. The fix is the same as for large models but more important: give the model the facts through retrieval, keep tasks narrow, and ask for answers only from the supplied text. A small model with good context often beats a large one guessing from memory.

Should I start with an LLM or an SLM?

Start with a capable LLM to prove the task can be done and to collect good example outputs. Once the task is well understood and stable, test whether a small model, possibly fine-tuned on those examples, meets your quality bar. If it does, switching can cut cost and latency sharply. Keep the large model as a fallback for hard cases.

Sources and further reading

  1. Distilling the Knowledge in a Neural Network — arXiv (Hinton, Vinyals, Dean, 2015)
  2. DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter — arXiv (Sanh et al., 2019)
  3. Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone — arXiv (Microsoft, 2024)
  4. Gemma 4: Byte for byte, the most capable open models — Google

Keep reading