Skip to main content

What is a small language model?

The AI Glossary

In our classes, we often pause to explain the ideas behind AI and the language used to describe it. These posts grew out of those conversations. They’re for anyone who would like to understand AI better, with no technical background assumed.

A small language model is a language model with a relatively modest number of learned numerical settings, or parameters. There is no universally agreed size boundary. The term is usually a comparison with larger models available at the time, rather than a permanent technical class.

Smaller models may need less memory and computing power, which can make them cheaper or faster to run on suitable hardware. They can be useful for focused tasks such as sorting messages or extracting specified fields. Those advantages depend on the model, the task and the way it is deployed; “small” is not a guarantee of efficiency.

A small model may be trained directly on carefully chosen data or learn from a larger model’s outputs through knowledge distillation. Distillation uses a teacher model to provide examples or other training signals for a student. It can transfer useful behavior, but can also transfer mistakes.

Other efficiency techniques should not be confused with reducing model size. Quantization stores numbers with lower precision. It can reduce memory requirements without changing the number of parameters. Pruning removes some parts of a model. These methods address different aspects of resource use and may be combined.

A smaller model can outperform a larger one on a particular task, especially when it has been adapted and evaluated for that purpose. It may also struggle with unfamiliar instructions, long documents or complex reasoning. Parameter count alone is not enough to choose between them.

For a referral service, a compact model might identify whether a document is a referral letter, a laboratory report or an insurance form. A larger model may be reserved for ambiguous cases, subject to evaluation of that routing decision. Running locally can provide more control over where the model processes information, but the rest of the application may still send data to external tools or logs. The useful comparison includes task quality, correction effort, response time and the complete path taken by the information—not just the model’s advertised size.

Sources: Hinton, Vinyals and Dean — Distilling the Knowledge in a Neural Network (2015); Bommasani and colleagues — On the Opportunities and Risks of Foundation Models (2021)

To learn more, take a look at the AI in Health Care Certificate of Specialization from the Advanced Learning Academy at Harvard T.H. Chan School of Public Health. You can take an individual course or work toward the full certificate.


AI is a fast-moving field. This explanation reflects our class discussions and related material at the time of writing. Terminology, capabilities and tools may change.

For suggested additions or corrections, please email me at tpanch@hsph.harvard.edu.

Dr. Trishan Panch
Program Director, AI in Health Care
Harvard T.H. Chan School of Public Health — Advanced Learning Academy

Lead with AI in Health Care

The AI Pragmatist is a monthly newsletter from ALA faculty, with new explainers & essays from the Advanced Learning Academy