Choosing the Right Model Size for AI Agents

Do not Default to the Biggest Model

There's a persistent instinct in AI system design to reach for the most powerful model available, on the assumption that more capability is always safer and smarter. In practice, that instinct is expensive and often unnecessary. The better approach is to use the smallest model that can meet a task's quality and risk requirements under real-world conditions and to make that decision based on evidence rather than brand reputation.

It's a call to spend intelligence where it actually earns its keep.

Before comparing models, it's worth asking a more basic question: what does the agent actually need to do?

Smaller models tend to perform well on tasks that are repetitive, well-defined, and heavily structured  especially when they're supported by tools or retrieval systems and easy to validate automatically.

Classifying support tickets, extracting fields from invoices, routing requests, summarizing short and clean documents, generating SQL against a narrow schema, choosing among a small set of approved tools, or rewriting text into a fixed template are all good candidates. These are jobs with clear right answers and low stakes when something goes slightly wrong.

Frontier models earn their cost when the work involves ambiguity: reasoning through incomplete instructions, planning across multiple steps, synthesizing information from many documents, debugging complex code, handling unusual edge cases, or making decisions where a mistake is genuinely costly.how much judgment and context-handling it actually demands.

A Practical Framework for Evaluating Models

A rigorous comparison between a small model and a frontier model should look across six dimensions.

Task success rate. Start by defining what a correct outcome actually looks like — for a customer-service agent, that might mean correctly classifying intent, retrieving the right policy, giving an accurate answer, avoiding unsupported claims, and making the right escalation call. Run the same realistic test set through both models. A small model landing at 91% success against a frontier model's 96% isn't automatically a problem — whether that five-point gap matters depends entirely on what's riding on those failures.

Severity of mistakes. Not all errors are created equal, and averaging them together hides the risk that matters. A wrong movie recommendation is a shrug; a wrong warranty decision or financial instruction is not. It helps to assign errors a weighted score — a minor formatting slip might be worth a single point, an incorrect tool selection five points, an unauthorized write action fifty, and a compliance violation a hundred. A smaller model can post similar average accuracy to a larger one while making far more severe mistakes underneath that average. For higher-risk tasks, the answer may be a frontier model, tighter guardrails, human approval, or some combination of the three.

Edge-case performance. Small models often look strong on typical inputs and then degrade sharply the moment things get messy. Stress-test both models against missing information, conflicting instructions, vague requests, very long context, malformed data, tool failures, adversarial prompts, and unusual combinations of requirements. It's common to see something like a small model holding 96% on normal cases but dropping to 63% on difficult ones, while a frontier model only slips from 98% to 87%. That pattern is a strong signal: route the easy cases to the small model and escalate the hard ones.

Tool-use reliability. For an agent, quality isn't just about the final answer — it's about whether the model picks the right tool, supplies valid parameters, avoids unnecessary calls, correctly interprets what a tool returns, knows when to stop, and asks for missing information instead of guessing. Worth tracking: correct tool selection rate, invalid argument rate, average tool calls per task, duplicate write attempts, recovery rate after a tool failure, and unauthorized-action attempts. A model that writes elegant prose but keeps calling the wrong tool isn't ready for agentic work, regardless of how good its writing is.

Cost and latency. The real comparison is total cost per completed task, not the sticker price per token. A cheap model can quietly become expensive if it needs more calls, more retries, longer outputs, more validation, more human review, or if it causes downstream errors that someone else has to clean up. A more complete cost formula looks like:

Total cost per successful task = model cost + tool cost + retry cost + human review cost + expected error cost

In a hypothetical comparison, a small model might cost a cent per call but rack up fifteen cents in human correction and nine cents in expected error cost, landing at twenty-five cents per successful task. A frontier model at eight cents per call, with only two cents in correction and one cent in error cost, comes out to eleven cents — cheaper overall, despite the higher sticker price. Latency cuts the other way, though: for real-time routing or autocomplete, a faster small model may still be the right call even with a modest quality gap.

Stability over time. Finally, check whether performance holds up as conditions drift — when prompts change slightly, new products get introduced, retrieved documents get noisier, tools start returning unexpected errors, or user language becomes less predictable. A model that aces a benchmark but is brittle to small wording changes isn't as reliable as its scorecard suggests.

Design for Routing

None of this requires picking one model for an entire agent. A common and effective pattern routes requests dynamically: a small model handles the initial task, a confidence-and-risk check runs against the result, and simple, low-risk cases complete with the small model while complex, uncertain, or high-risk ones escalate to a frontier model.

In a typical split, the small model might handle classification, parameter extraction, record retrieval, and common questions, while the frontier model is reserved for resolving conflicting policies, reasoning across several documents, handling unusual requests, and building complex plans.

This kind of routing architecture is usually the best balance between cost and quality — it lets you pay frontier prices only where frontier reasoning is actually needed.

Good triggers for escalation include low confidence scores, missing required information, tasks that need several tools coordinated together, requests that exceed a context-length threshold, ambiguous phrasing, conflicting policies, actions that touch money, privacy, legal rights, or production systems, validation failures from the smaller model, or requests that fall outside the smaller model's tested domain. In code, that logic might look as simple as:

if (
    risk_level == "high"
    or confidence < 0.80
    or tool_count_required > 3
    or validation_failed
):
    use_frontier_model()
else:
    use_small_model()

One caution: confidence shouldn't be taken at face value just because a model reports it. It's more reliable to back that signal with external checks — schema validation, retrieval quality, tool results, and other deterministic tests.

A Worked Example: Marketing Agent Architecture

Consider a marketing agent built on an MCP-style tool architecture.

 A smaller model is likely sufficient for searching a product catalog, retrieving dealer locations, extracting campaign IDs, formatting campaign reports, summarizing structured analytics, and choosing approved assets from a pre-filtered list  all constrained, easily validated tasks.

A frontier model becomes more valuable for designing a new multi-channel campaign, interpreting conflicting brand guidelines, reasoning across campaign history and market data, building complex audience criteria, handling vague requests from executives, or reviewing high-impact campaign strategy.

Even so, model size alone shouldn't be the only safeguard around write actions. Dry-run modes, schema validation, scope checks, budget limits, idempotency keys, and human approval steps all matter  because a frontier model can still make mistakes, and a well-designed system doesn't rely on any single layer to catch them.

The Decision Rule

A smaller model is good enough when it meets the target success rate, keeps its serious-error rate below an accepted threshold, handles tested edge cases reliably, produces valid and predictable tool calls, costs less per successful task than the alternative, and fails in ways that can be detected or safely corrected. When a smaller model falls short on any of those points, and the resulting quality gain is worth the added cost and latency, that's the signal to move to a frontier model.

Do not pay for intelligence the task doesn't need, but don't save pennies on inference when failures create expensive operational, financial, or safety consequences.

Negin Nickparsa
a Penguin in a tuxedo