AI & Machine Learning

Small language model (SLM)

Also known as: SLM, small language models, small LLM

A small language model (SLM) is an AI language model with relatively few parameters, typically from under a billion to a few billion or so, designed to run quickly and cheaply, sometimes directly on a phone, laptop, or small server.

SLMs handle focused tasks like summarizing, classifying, or autocompleting text well. While they can't match the broad knowledge and reasoning of the biggest models, they keep data on the device, respond faster, and cost far less to run.

Small language model (SLM), explained at three levels

At home

Think of a pocket dictionary versus a full encyclopedia set. The pocket version fits in your bag and answers everyday questions instantly, but it can't cover everything. A small language model is the pocket version of an AI chatbot. It's compact enough to run on your phone or laptop, so it responds quickly, works offline, and keeps your data on the device.

At work

A small language model is an AI language model with relatively few parameters, usually under a billion to several billion, built to run cheaply on modest hardware such as a laptop, phone, or single server. Businesses use SLMs for focused, high-volume tasks like classifying tickets or extracting fields, where they cost a fraction of large models and can keep data in-house.

Real-world examples

At home

Aisha's phone summarized a long group chat while she was on a flight with no internet. The summary came from a small language model running on the phone itself.

At work

Jerome manages IT at a Quebec manufacturing company. He deployed a small model on a local server to classify maintenance requests, keeping data on-site and avoiding per-request cloud fees.

How it compares

featureSmall language model (SLM)Large Language Model
SizeUnder a billion to a few billion parametersTens to hundreds of billions or more
Runs onPhones, laptops, small serversData centre GPUs
Cost per taskVery lowHigher
Breadth of abilityNarrowerBroad

Small models are fast, cheap, and private. Large models know and reason more.

For analysts

For high-volume, well-defined tasks, I'd test whether a small model can do the job before paying for a large one. The savings and privacy benefits add up quickly.

History & origin

As frontier models grew to hundreds of billions of parameters, researchers explored how capable smaller ones could become. Microsoft's Phi-1, described in a June 2023 paper titled 'Textbooks Are All You Need,' showed a 1.3-billion-parameter model trained on carefully chosen data could code surprisingly well, and Phi-3 followed in April 2024. Google released its open Gemma models in February 2024, and Meta released 1- and 3-billion-parameter Llama 3.2 models for phones in September 2024. Apple built Apple Intelligence around an on-device model of roughly 3 billion parameters, announced in June 2024. Techniques such as distillation from larger models and quantization kept improving small models. In my view, small models will quietly do most of the world's everyday AI work, while giant models get the headlines.