Rerun is now open source under AGPL-3.0Star us on GitHub
Rerun

Small Language Models for AI Agents: When Smaller Models Win

Agents make dozens of small, repetitive model calls. Learn which steps small language models handle well, when a frontier LLM still wins, and how to migrate safely.

Small Language Models for AI Agents: When Smaller Models Win

Serving a 7B small language model is 10 to 30 times cheaper than serving a 70B to 175B large one, in latency, energy and compute. That is the figure NVIDIA Research puts at the center of its paper Small Language Models are the Future of Agentic AI. The reason it matters for agents, and not just for chatbots, is a quiet fact about how agents work: they do not make one hard call to a model, they make dozens of small, repetitive ones.

Route this request. Pull these four fields out of that email. Format this as the JSON the next tool expects. Check the answer before it leaves. Most of those steps do not need the smartest model money can buy. This guide explains what small language models (SLMs) are, which steps of an AI agent they handle well, where a frontier model still earns its price, and how to move steps over without breaking anything. If you want the layer underneath all of this, the loop where those steps live, our guide to AI agent architecture covers it. This article stays on one question: which model should run which step.

Small Language Models are the Future of Agentic AISmall Language Models are the Future of Agentic AILarge language models (LLMs) are often praised for exhibiting near-human performance on a wide range of tasks and valued for their ability to hold a general conversation. The rise of agentic AI systems is, however, ushering in a mass of applications in which language models perform a small number of specialized tasks repetitively and with little variation. Here we lay out the position that small language models (SLMs) are sufficiently powerful, inherently more suitable, and necessarily more economical for many invocations in agentic systems, and are therefore the future of agentic AI. Our argumentation is grounded in the current level of capabilities exhibited by SLMs, the common architectures of agentic systems, and the economy of LM deployment. We further argue that in situations where general-purpose conversational abilities are essential, heterogeneous agentic systems (i.e., agents invoking multiple different models) are the natural choice. We discuss the potential barriers for the adoption of SLMs in agentic systems and outline a general LLM-to-SLM agent conversion algorithm. Our position, formulated as a value statement, highlights the significance of the operational and economic impact even a partial shift from LLMs to SLMs is to have on the AI agent industry. We aim to stimulate the discussion on the effective use of AI resources and hope to advance the efforts to lower the costs of AI of the present day. Calling for both contributions to and critique of our position, we commit to publishing all such correspondence at https://research.nvidia.com/labs/lpr/slm-agents.arXiv.org

What counts as a small language model (and what does not)

There is no official size line, but there is a useful working one. The NVIDIA authors define an SLM as a language model that can fit on a common consumer device and respond fast enough to serve one user's agent requests. They add that, as of 2025, they would be comfortable calling most models below 10 billion parameters small. Anything else is a large language model (LLM).

That definition is a moving target. Yesterday's frontier size is today's small model, which is the whole point of the argument.

Representative small language models

The families below are the ones the paper itself uses as evidence. Capabilities change quickly, so treat the right-hand column as the authors' claim at the time of writing, not a benchmark to quote.

Model familySizeWhat the paper says about it
Microsoft Phi-3 small7BLanguage understanding and reasoning on par with models up to 70B of the same generation
Hugging Face SmolLM2125M to 1.7BLanguage understanding, tool calling and instruction following competitive with models up to 14B
Salesforce xLAM-28BState-of-the-art tool calling for its size, ahead of some frontier models
DeepSeek-R1-Distill-Qwen7BReasoning that the paper reports beating some large proprietary models
Put an autonomous coworker to work and watch it run live

Why small language models fit AI agents so well

A chatbot has to be good at everything, because you can ask it anything. An agent is the opposite. It is a heavily instructed gateway to a model, restricted by prompts, tools and code to a narrow slice of what the model could do. The NVIDIA paper says it directly: agentic systems have language models performing "a small number of specialized tasks repetitively and with little variation."

That has three consequences.

  • Narrow tasks reward specialization. A model fine-tuned to do one thing, like extracting invoice fields, can match a generalist on that thing while costing far less per call.
  • Format discipline matters more than eloquence. An agent's tool calls and outputs must match a strict schema. A small model trained on one format is less likely to wander off it than a generalist asked to juggle JSON, XML and prose.
  • Calls are frequent and sequential. One user request can trigger many model calls in a row, so a small saving per call compounds across the run.

A chat window is a terminal, not a workforce. An agent runs a loop, and a loop is exactly where a cheaper, narrower model pays off. For the full cost picture, including budgets and pricing models, see our guide to AI agent cost. Here, cost is one of three axes, not the whole article.

Where smaller models beat frontier LLMs: cost, latency and reliability

Cost

The paper's headline is that a 7B model costs 10 to 30 times less to serve than a 70B to 175B one. The authors also note that fine-tuning a small model takes a few GPU-hours, so behavior can be added or fixed overnight instead of over weeks. In the paper's three open-source agent case studies, they estimate that about 60% of MetaGPT's model calls, about 40% of Open Operator's and about 70% of Cradle's could be handled by suitably specialized SLMs.

Read those numbers carefully. They are the authors' estimates of what could move, not measured savings, and they come from a position paper, not a production audit. The authors themselves flag the counter-argument: hosting your own small models adds infrastructure and talent costs, and a central LLM provider enjoys economies of scale. If you call a hosted API, your savings depend on the price list, not on parameter counts alone.

Latency

Smaller models respond faster and run on less hardware, and in an agent the delays stack. If a run makes twelve sequential calls, shaving a few hundred milliseconds off nine of them is noticeable. Running a model on your own machine also removes a network round trip, which helps when the agent must respond in real time.

Reliability and control

This is the least obvious win and the most agent-specific. A small model fine-tuned for one output schema has a narrower range of behaviors, which makes its output easier to validate. The paper argues that a model trained with a single format decision is preferable to a generalist that occasionally answers in a format the surrounding code does not expect. Running it yourself also keeps the data on your own infrastructure, which helps with privacy and compliance.

Notice what this does not say. Reliability here means narrower and more predictable, not smarter. A small model with a tight job is dependable. A small model asked to improvise is not.

When a frontier model still wins

The honest version of this argument has a second half. Keep a frontier model on the steps where breadth and judgment are the whole job:

  • Open-ended planning. Breaking an ambiguous goal into steps is the hardest thing an agent does, and small models struggle with it without heavy fine-tuning.
  • Ambiguous or long instructions. Large models are better at reading what a messy request probably means.
  • Broad world knowledge. The paper acknowledges scaling laws: larger models tend to hold more general language understanding.
  • Novel situations. If you cannot say in advance what the step will look like, you cannot fine-tune for it.
  • Low-volume steps. If a step runs a hundred times a month, the engineering time to evaluate and tune a small model costs more than it saves.

That last point is the break-even rule. The saving per call times the number of calls has to beat the cost of testing, tuning and maintaining the swap. High volume plus narrow task is a good candidate. Low volume plus open task is not.

"Capability, not the parameter count, is the binding constraint." The NVIDIA Research authors make that point about small models, and it is the reason to choose the model per step, not per agent.

A decision framework: which agent steps to move to an SLM

Treat each step of your agent as its own decision. The table below sorts the usual suspects.

Agent stepExampleSmall model fitWhy
Intent classification and routing"Is this email a refund request or a lead?"YesFew categories, high volume, easy to test
Structured extractionPull dates, amounts and names into JSONYesFixed schema, narrow task
Tool-call formattingTurn a decision into the exact API callYesStrict format rewards specialization
Guardrail and validation checks"Does this reply contain a price we never quoted?"YesYes or no answers on a short input
Summarizing short contextCondense a ticket or a threadPartialWorks for short, predictable inputs, weakens as they grow
Open-ended planningBreak a vague goal into a task listNoNeeds breadth and judgment
Final user-facing synthesisThe reply a customer actually readsPartialOften a frontier model, or a hybrid with a human check

The hybrid pattern

The practical default is not "all small" or "all large". It is small by default and large on escalation: a small model handles the step, and when its confidence is low or its output fails validation, the step goes to a frontier model. The NVIDIA authors call this a heterogeneous agentic system, where small models are used by default and large ones are invoked selectively. The mechanics of routing between models usually live in a gateway, which our article on the LLM gateway covers. This section is about the policy, not the plumbing.

Here is a concrete routing and escalation brief you can adapt. It is deliberately boring, because boring is what you want from a router.

Step classifier with escalation rule
{
  "role": "step_router",
  "task": "Classify the incoming agent step and decide which model tier should run it.",
  "categories": {
    "simple": "classification, extraction into a fixed schema, tool-call formatting, yes/no validation",
    "complex": "open-ended planning, ambiguous instructions, multi-document reasoning, anything customer-facing and final"
  },
  "output_format": {
    "tier": "small | frontier",
    "confidence": "0.0 to 1.0",
    "reason": "one sentence"
  },
  "rules": [
    "If confidence is below 0.8, set tier to frontier.",
    "If the step could send, pay, delete or publish anything, set tier to frontier and flag it for human approval.",
    "If the previous small-model output failed schema validation, set tier to frontier for the retry.",
    "Never explain the decision beyond the one-sentence reason."
  ]
}

Migrating safely

The NVIDIA paper outlines an LLM-to-SLM conversion algorithm. Stripped to its core, it is an ordinary engineering loop:

  1. Log real calls. Capture prompts, outputs and tool calls from the running agent, with sensitive data removed.
  2. Cluster the repetitive ones. Find the recurring step types, such as intent recognition or data extraction.
  3. Pick a candidate small model per cluster. Consider capability, context window, license and the hardware it needs.
  4. Fine-tune on the curated data. Parameter-efficient methods keep the cost low.
  5. Iterate. Retrain as the data and the usage change.

The sequencing matters more than the tooling. You cannot move a step you have not first logged and measured.

Watch every step of an AI coworker's run live, whichever model ran it

Evaluating and operating a mixed-model agent

Once different models handle different steps, you evaluate per step, not just end to end. A good final answer can hide a failing router. Four checks cover most of it:

The methodology behind building those sets is covered in our LLM evaluation guide, and the lifecycle side, deployment, monitoring and rollbacks, lives in LLMOps. Neither belongs inside a model-selection article.

One rule holds whatever size the model is: a small model that is confidently wrong is still wrong, and it is wrong faster and more cheaply. Anything that sends, pays, deletes or publishes needs a person in the loop regardless of which model drafted the action. Our guide to human-in-the-loop AI agents shows where to put those checkpoints.

Running mixed models under governance with Rerun

Choosing models is half the job. The other half is knowing what ran, and being able to stop it. That is the operations layer, and it is where Rerun sits. On Rerun, these agents are called coworkers: each one runs on its own private cloud machine, on a schedule or a trigger, with every action logged and a human approval before anything sensitive happens.

Where Rerun fits, and where it does not

Rerun is not a model provider and not a framework. It does not host, serve or fine-tune small language models, and it does not choose a model for each step on your behalf. It runs Claude, ChatGPT and Gemini, and you can bring your own subscription, API key or local model. Whatever model ran a step, a coworker's logs show what it did, and its approvals pause the work before a sensitive action until you say yes. That is the part a cheaper model cannot give you, because it does not depend on the model at all.

Why not a flowchart or a chatbot?

A flowchart in Zapier, Make or n8n fixes every branch in advance. That is fine for a rule you can write down, and it breaks when the input does not match the template. An agent with the right model on each step can handle the messy input, inside guardrails. A chatbot is the other extreme: it answers when asked, acts only inside the conversation, and forgets the job when the tab closes. Our piece on AI agents versus chatbots explains that gap, and our AI coworker guide shows how a coworker is defined.


Choosing the right small language model for each step

The case for small language models is not about replacing frontier models. It is about noticing that an agent is made of many different jobs, and that most of them are narrow enough for a model a fraction of the size. Log your calls, find the repetitive steps, test a small model against a golden set, escalate to a frontier model when confidence drops, and keep a human on anything irreversible.

Pick the model per step, not per agent, and watch what each one does.

LLM Gateway for AI Agents: Routing, Failover and Cost Control

LLM Gateway for AI Agents: Routing, Failover and Cost Control

Learn how an LLM gateway routes AI agent requests, handles provider failures and rate limits, and controls spend across models.

Frequently asked questions

What is a small language model?

A small language model (SLM) is a language model compact enough to run on a common consumer device with low enough latency to serve one user's requests. NVIDIA Research, in a 2025 position paper on agentic AI, treats most models below about 10 billion parameters as small. The line moves as models improve.

Are small language models good enough for AI agents?

For narrow, repetitive steps such as classification, extraction into a fixed schema, tool-call formatting and validation checks, often yes, especially after fine-tuning. For open-ended planning, ambiguous instructions and broad knowledge, a frontier model is usually the safer choice. Test each step against a golden set before you switch.

How small is small for a language model?

There is no official threshold. The NVIDIA paper considers most models under roughly 10 billion parameters to be small, and families like SmolLM2 go as low as 125 million parameters. The paper's headline figure is that serving a 7B model is 10 to 30 times cheaper than serving a 70B to 175B one. In practice, small means a model you can run on modest hardware or a single device.

Can I run a small language model locally?

Yes, that is one of their main advantages. Many small models run on a consumer GPU or a laptop, which removes network round trips and keeps data on your own machine. You take on the work of hosting, updating and monitoring the model yourself.

Do small language models replace large language models in agents?

No. The practical pattern is hybrid: a small model handles routine steps by default, and a frontier model takes over when confidence is low, validation fails or the step needs open-ended reasoning. NVIDIA's authors describe the same heterogeneous design.

Does Rerun host or fine-tune small language models?

No. Rerun is a governance and operations layer for coworkers, not a model provider. It runs Claude, ChatGPT and Gemini, and you can bring your own subscription, API key or local model. Whatever model ran a step, the coworker's logs and approvals stay the same.

How do I move an agent step from a frontier model to a small one?

Log real calls, group the repetitive ones, pick a candidate small model for each group, fine-tune it on the curated data and test it against a golden set. Keep an escalation path to a frontier model for low-confidence or failed outputs, and require human approval for irreversible actions.

Back to blog

Related articles

2,000+ businesses run on Rerun

Hire Coworkers on the ChatGPT plan you already pay for.

  • 1. Plug in your subscription
  • 2. Set up your Coworkers
  • 3. Run your business with Coworkers