← All posts

SLMs · 7 min read

SLM or LLM? A decision guide for choosing model size by task, latency and cost

Small language models now match much larger ones on many narrow tasks, but not on everything. Here's what the recent research says, a practical way to decide which size each task needs, and how to combine both with routing and escalation.

Subhash Nunna ·

“Which model should we use?” is usually asked once, at the start of a project, and answered with the biggest model the budget allows. That made sense when small models couldn’t do much. It makes less sense now.

Over the last year, a run of papers has shown small language models (SLMs) matching or beating frontier models on narrow, well-defined tasks — and also shown clearly where they still fall short. The useful question is no longer “SLM or LLM?” for the whole system, but “which size does this step need?” This post gives you a way to answer that. (For background on small models in practice, see our posts on voice agents on SLMs and small models for media.)

What counts as “small”?

There’s no official line. The NVIDIA Research position paper Small Language Models are the Future of Agentic AI (Belcak et al., updated September 2025) uses a practical definition: an SLM is a model that fits on a common consumer device and responds fast enough to serve one user’s agentic requests. By that test, the authors say most models under about 10 billion parameters counted as small in 2025. A late-2025 survey by Sharma and Mehta uses a similar range of roughly 1–12B, occasionally up to ~20B.

Size is a proxy, though. What you actually care about is cost per task, latency, where the model can run, and whether it’s good enough.

What the evidence says

Small models can win on narrow tasks. Predibase’s LoRA Land report (2024) fine-tuned 10 base models of 7B parameters or smaller on 31 tasks. Of the 310 fine-tuned models, 224 (about 72%) beat GPT-4’s score on their task, and the best fine-tuned models averaged 0.756 against GPT-4’s 0.661.

More recently, a December 2025 paper by Jhandi et al. fine-tuned a 350M-parameter model (OPT-350M) for a single epoch on tool-calling data. It reached a 77.55% pass rate on ToolBench, against 26.00% for a ChatGPT chain-of-thought baseline in their comparison.

Short, structured tool use is within reach. The AgentFloor benchmark (Karmakar and Chatterjee, May 2026) is new and worth knowing. It tested 16 open-weight models from 0.27B to 32B parameters, plus GPT-5, across 30 tasks arranged as a six-tier ladder of tool-use difficulty, over 16,542 scored runs. The strongest open-weight model matched GPT-5 overall, and the authors conclude that small and mid-sized open models are enough for much of the short-horizon, structured tool use that makes up most agent pipelines.

Large models keep the edge on breadth and long horizons. The same studies are clear about the limits:

  • In AgentFloor, the gap with frontier models showed up most clearly on long-horizon planning tasks that need sustained coordination and constraint tracking — and neither small nor frontier models were strongly reliable there.
  • In LoRA Land, GPT-4 still won on broader tasks like general knowledge (MMLU) and Python coding. After fine-tuning, the coding model still trailed GPT-4 by 39.6 points.
  • The Sharma and Mehta survey lists open-domain synthesis, knowledge-heavy questions that retrieval can’t cover, safety-critical judgement on unfamiliar inputs, and complex code repair across large repositories as places where LLMs remain the better choice.

How much cheaper? The NVIDIA paper cites sources claiming a 7B model is 10–30× cheaper to serve than a 70–175B model in latency, energy and compute. Treat that as a rough order of magnitude; your real number depends on hardware, batching and pricing.

A decision guide

Work through each step of your system separately, not the system as a whole.

Question Points to an SLM Points to an LLM
How narrow is the task? One job with a clear output: classify, extract, route, call a tool, fill a schema Open-ended: write, plan, synthesise across many sources
How many steps does it need? Short horizon, a few tool calls Long chains with many constraints to track
Can you check the output automatically? Yes — schema, tests, allowed values Hard to verify without a human or another model
What knowledge does it need? Provided in the prompt or by retrieval Broad world knowledge not easily retrieved
Volume and latency High volume, tight latency, or must run on-device/offline Low volume, latency less critical
Do you have examples? Thousands of logged inputs and good outputs to fine-tune on Few examples; task changes often
Cost of a mistake Low, or caught by validation High and hard to detect

If most answers land in the left column, start with a small model. If the task is open-ended, long-horizon or hard to verify, start with a large one. Many systems will end up with both.

The pattern most teams converge on: small by default, large by exception

The Sharma and Mehta survey sums up the recommended architecture as “SLM-by-default for routine, structured tasks; LLM-by-exception for hard cases.” In practice:

  1. A router sends each request to the cheapest model that’s good enough for it.
  2. The small model generates with constrained output (JSON Schema or a grammar) at low temperature.
  3. A validator checks the result. If it fails, or the model’s confidence is low, try one repair.
  4. Escalate to a large model if it still fails — and to a human for risky actions.
def handle(request):
    result = small_model.generate(request, schema=TaskSchema, temperature=0)
    if is_valid(result) and confidence(result) > THRESHOLD:
        return result
    repaired = small_model.repair(request, result, errors=validate(result))
    if is_valid(repaired):
        return repaired
    log_for_training(request, result)       # failures become fine-tuning data
    return large_model.generate(request, schema=TaskSchema)

The survey suggests treating schema validity as a headline metric and logging every failure so it can feed the next round of fine-tuning.

Routing itself has been studied. LMSYS’s RouteLLM trained routers to choose between a strong model (GPT-4) and a weaker one (Mixtral 8x7B). While keeping 95% of GPT-4’s quality, they report cost reductions of over 85% on MT Bench, 45% on MMLU and 35% on GSM8K. The spread is the lesson: savings depend heavily on how many of your requests are actually easy.

Moving an existing system to smaller models

If you already run everything on a large model, the NVIDIA paper proposes a migration path you can adapt:

  1. Log the model calls your agent makes (securely, with sensitive data removed).
  2. Curate the data — the authors suggest roughly 10k–100k examples as a starting guide.
  3. Cluster the calls to find recurring task types.
  4. Pick candidate small models for each cluster by capability, licence and footprint.
  5. Fine-tune with methods like LoRA or QLoRA, optionally distilling from the large model.
  6. Repeat as usage changes.

The authors also estimate how much of three open-source agent frameworks’ LLM traffic could move to SLMs — about 60% for MetaGPT, 40% for Open Operator and 70% for Cradle. These are their estimates, not measurements, but they show why it’s worth checking your own logs.

Trade-offs to plan for

  • Narrow means brittle. A fine-tuned small model can overfit to the examples it saw and degrade when inputs drift. Keep monitoring and retraining.
  • Routers can be wrong. A miscalibrated router either wastes money escalating or quietly sends hard requests to a model that can’t handle them. Evaluate the router like any other model.
  • Validators can hide reasoning errors. Output that passes the schema can still be wrong.
  • More moving parts. Two or more models mean more to host, version and evaluate. For a low-volume internal tool, one large model may simply be cheaper in engineering time.
  • Small isn’t automatically safe. The survey notes that smaller size doesn’t guarantee harmlessness, and tool use still widens the attack surface.
  • Benchmarks age fast. Results tied to specific models and APIs may not transfer to yours.

Where to start

  1. List the steps in your system and fill in the decision table for each.
  2. Build an evaluation set of real inputs for the steps that look “small” — you can’t make this decision without one.
  3. Try an off-the-shelf small model with constrained output on those steps, and compare quality, latency and cost with your current model.
  4. Add validation and escalation before switching, so failures fall back to the large model instead of reaching users.
  5. Log everything. Your traffic is the dataset for fine-tuning a small model later — and the best evidence for which steps genuinely need a big one.

small language modelsmodel selectionLLM routingfine-tuningAI agents