NotesMethodSmall language models

Small language model or a large general model (LLM) for one task?

On one narrow task a trained small model often matches a large general model. A graded test set decides, not the size.

By eqlx · AI and machine-learning engineeringPublished 5 min read

A small language model trained for one task often matches a large general model on that task, and it runs where the work is: on the institution's own servers, at a speed and running cost the desk can plan for. A large general model (an LLM) is the better start when the task is broad, changes from week to week, or has no graded examples yet. The choice is made per task, on a test set the institution's expert has graded, not on a model's size or a public leaderboard.

What each one is

A large general model is trained on broad text to do many things reasonably well. It is usually reached through its provider's service, and sometimes run in-house where its license and size allow. Its strength is range: it can attempt almost any question on the first day, with only a prompt.

A small language model (SLM) is a smaller model adapted for one domain and one task with the institution's own examples. It reads the documents the way the institution's expert does, calls the right tool with the right parameters, and writes in the institution's format. “Small” is relative and moves every year. What matters is that the model is trained for the work in front of it, and that it can run in the institution's environment.

Where a small model holds its own

The pattern in the research is consistent: on a narrow task with good examples, a trained small model is a serious competitor.

  • The Distilling step-by-step paper trained small task-specific models using a large model's written reasoning as extra supervision. On the four benchmarks it reports, the small models outperformed few-shot prompted large models while being much smaller.
  • The LoRA Land report fine-tuned 10 base models on 31 tasks with small adapters. On average across those tasks, the fine-tuned models came out ahead of their base models and of the large general model the authors compared them with.
  • Researchers at NVIDIA and Georgia Tech go further in a position paper, arguing that small models are “sufficiently powerful, inherently more suitable, and necessarily more economical” for many of the model calls in agentic systems. That is the authors' position, not a measured result.

“On average” and “on these benchmarks” carry weight in those sentences. Averages hide tasks where the small model falls short. Only the institution's own graded cases say which side of the average its task sits on.

Where a large general model is the better start

  • The task is open-ended. Many kinds of question, no fixed format, and no single definition of a good answer.
  • There are no graded examples yet. A small model is trained and tested on examples. Without them, a large model with a careful prompt is how the desk learns what good looks like.
  • The task changes faster than a retrain. If the work itself is redefined every few weeks, each change means new examples, a new run, and a new test.
  • The volume is low. A handful of cases a week rarely repays the work of training and running a dedicated model.

A large model can also help build a small one. Its drafts, graded and corrected by the expert, can become training examples, where its license allows that use.

Five questions that decide

  1. How narrow is the task? “Classify this complaint into the institution's twelve categories and draft the reply in its template” is narrow. “Answer anything a relationship manager asks” is not.
  2. Is there a graded test set? The institution's expert grades a set of real cases before anything is trained. Without it neither model can be compared, and nobody can say when the system is ready.
  3. Where must the data stay? If the documents may not leave the institution's environment, the model has to run inside it. A model sized for one task is far easier to host there than the largest general models.
  4. What volume and speed does the desk need? Many cases an hour, each answered in seconds, favors a model sized for the job. Running cost and latency are measured on the institution's own hardware, not estimated from a price list.
  5. Who runs it after handover? A small model on the institution's servers changes only when its team approves. That is a duty as well as a control: the team needs the test set, the runbook, and the record to do it.

The test that settles it

  1. Grade the test set first, and hold part of it back from all development.
  2. Run a large general model with a careful prompt on the set. That result is the bar to beat, and sometimes it is enough.
  3. Train the small model on the institution's examples. Supervised fine-tuning on its formats comes first. Continued pre-training is added only where the field's language is missing; reinforcement learning only where a reviewable reward exists.
  4. Compare on the held-back cases, task by task: accuracy against the expert's grades, the kinds of error each model makes, latency, and running cost.
  5. The small model goes live only on the tasks it passes. The others stay with the larger model, or with a person, until they pass.

Most desks end with a mix: a small model on the narrow, frequent tasks, and a larger model or a person on the rest.

What does not change with the model

Knowledge that changes stays in a retrieval index, where it can be updated and cited. Policy and authority stay outside the weights: the model reads, reasons, and writes; the institution's rules and its people decide. The hardware is sized from the measured volume, context length, and speed the desk needs, not assumed. And the weights trained for the institution are its own under the engagement terms, with the base model's license still applying.

Choose by the task and the test set. The size of the model follows from both.

Sources

https://eqlx.ai/blog/small-language-model-vs-llm · Printed copy; the website is the current version.