What is a small language model (SLM)?
A small language model is a language model with far fewer parameters than the largest models, designed to be cheaper and faster to run, often on a single server or device.
Also called: SLM, compact language model
How it works
Small language models use the same basic transformer design as large ones but with fewer layers and parameters. They are often trained on carefully chosen data, or taught by a larger model, so they stay useful despite their size.
They are less capable at broad knowledge and complex reasoning. But on a narrow task, a small model that has been tuned well can match a larger general model at a fraction of the cost.
Why it matters for fraud and risk
Risk systems often need high volume and low delay. A small model can label every support ticket, chat message or listing in real time where a large model would be too slow or costly. It can also run inside a company's own network, which helps with privacy rules for personal data.
A common pattern is to use a small model for the first pass and send only uncertain cases to a larger model or a human reviewer.
Trade-offs
- Lower cost and faster inference.
- Easier to run on-premises or on devices.
- Weaker on open-ended questions and unfamiliar inputs.
- Usually needs fine-tuning or clear examples to perform well on a specific task.
Example
A hypothetical messaging app scans links shared in chats for scam patterns. A small on-device model checks each message's text and flags likely scams. Only flagged messages are sent for a more detailed server-side check, which keeps most content on the user's device.
Related terms
- Large language model (LLM)A large language model (LLM) is a neural network trained on large amounts of text to predict and generate language. It powers chat assistants, AI agents and many text tools.
- AI inferenceAI inference is the stage where a trained model is run on new input to produce an output, such as a prediction, a score or generated text, as opposed to the training stage.
- Model quantizationModel quantization stores and runs a model's numbers at lower precision, for example 8-bit instead of 16-bit, to cut memory use and speed up inference with some loss of accuracy.
- Fine-tuningFine-tuning is further training of an existing model on a smaller, task-specific dataset so it performs better on that task or follows a particular style or format.
- Open-weight modelAn open-weight model is an AI model whose trained weights are published for anyone to download and run, often under a license, even if its training data and code are not released.