When Is Smaller Greener? Right-Sizing Language Models for Agentic AI

cs.AI cs.MA Sajid Siraj, Maria Barbati · Oct 14, 2026
Local to this browser
What it does
AI agents chain many LLM calls to complete tasks, yet models are usually compared per call. This paper argues the correct functional unit is the successfully completed task, because failed attempts waste energy, cost and time.
Why it matters
This paper argues the correct functional unit is the successfully completed task, because failed attempts waste energy, cost and time. It derives crossover task lengths that predict when a smaller model stops being greener, cheaper or...
Main concern
The paper makes a strong conceptual contribution by reframing model selection around the functional unit of one successfully completed task. Its decision model yields closed-form crossover lengths $L_k^* = \ln(r_{b,k}/r_{a,k}) /...
Community signal
0
0 up · 0 down
Sign in to vote with arrows
AI Review AI reviewed
Plain-language introduction

AI agents chain many LLM calls to complete tasks, yet models are usually compared per call. This paper argues the correct functional unit is the successfully completed task, because failed attempts waste energy, cost and time. It derives crossover task lengths that predict when a smaller model stops being greener, cheaper or faster, and shows with a 15-model pilot that the greenest choice shifts from 1-3B models for short tasks to 8-27B models for long ones.

Critical review
Verdict
Bottom line

The paper makes a strong conceptual contribution by reframing model selection around the functional unit of one successfully completed task. Its decision model yields closed-form crossover lengths $L_k^* = \ln(r_{b,k}/r_{a,k}) / \ln(\rho_b/\rho_a)$ that split tasks into three preference regimes, which is elegant and actionable. However, the empirical support is explicitly a pilot: synthetic tasks, 15 runs per model, one GPU, models up to 27B parameters, and no test of regret against per-call baselines (H3). The theory is more convincing than the current evidence.

“We show that per-call comparisons can mislead for agents. A task succeeds only if all its steps succeed, and failed attempts still use resources.”
Siraj and Barbati · Abstract
“The pilot uses two synthetic task families, open-weight models of up to 27 billion parameters, one GPU and 15 runs per model and task. Its energy covers the GPU board only, and its predictions are tested on the same runs that produced them. It does not test H3.”
Siraj and Barbati · Section 6.2
What holds up

The functional-unit argument is compelling and mathematically transparent. Observation 3 shows that the log-ratio of resources per successful task is linear in task length $L$ with a slope $\ln(\rho_b/\rho_a)$ common to energy, cost and time, giving each resource its own crossover $L_k^*$. Observation 4 then yields three regimes: for $L < L_{\min}$ the smaller model dominates on every resource, for $L > L_{\max}$ the larger model dominates, and preferences matter only in between. The pilot largely confirms these predictions; the median gap between predicted and observed energy crossovers is 4-9 steps, and the single-crossing condition holds in most comparisons where the choice matters.

“for short tasks the smaller model is better on every resource, for long tasks the larger model is, and only in between do the preferences of the decision maker matter.”
Siraj and Barbati · Observation 4
“for most pairs of models the observed crossover lengths agree with those predicted from per-step measurements”
Siraj and Barbati · Section 6.2
Main concerns

The empirical validation is narrow and the authors candidly admit it. The pilot uses two synthetic conversations (order tracking and tool calling) rather than established agentic benchmarks such as $\tau$-bench, and with only 15 runs per model the confidence intervals on crossover lengths are wide. Because predictions are validated on the same runs that estimate per-step reliability, the agreement between predicted and observed crossovers (H2) may be optimistically biased; a proper held-out test is deferred to future work. Crucially, the central practical claim - that the framework achieves lower regret than per-call rules including FrugalGPT cascades and Nowak's weighted rule (H3) - is not tested at all. Energy is also measured only at the GPU board level, omitting host CPU, memory, cooling and datacenter PUE, which limits claims about total carbon impact.

“The pilot uses two synthetic task families, open-weight models of up to 27 billion parameters, one GPU and 15 runs per model and task. Its energy covers the GPU board only, and its predictions are tested on the same runs that produced them. It does not test H3.”
Siraj and Barbati · Section 6.2
“Energy is the power of the GPU board, read 20 times a second through the NVIDIA management library and summed over each call. It leaves out the processor, memory and cooling, so it is a lower bound on the energy used.”
Siraj and Barbati · Section 6.1
Evidence and comparison

The literature review fairly maps prior work into four gaps and positions the paper against per-call routing (FrugalGPT, RouteLLM), multi-criteria prompt routing (Nowak) and energy accounting (ML.ENERGY, Panigrahy and Tyagi). The authors note that none of these prior approaches links per-task resource counts to a model-selection rule that varies with task length. The evidence, however, covers only binary-outcome tasks with free retries (V1) and limited retries (V2) on synthetic data; graded outcomes (V3/V4) and real-world irreversible actions remain untested in this paper. The characterization of related routing work is accurate - verified against Ding et al. (2024), which indeed routes single queries by predicted difficulty without considering multi-step task success or energy per completed task.

“Current practice compares models per call, either by choosing the most capable model on a leaderboard or by choosing a smaller and cheaper one.”
Siraj and Barbati · Introduction
“Our approach uses a router that assigns queries to the small or large model based on the predicted query difficulty and the desired quality level.”
Ding et al., 2024 · arXiv:2404.14618
Reproducibility

Reproducibility is promising in principle but incomplete in the text. The authors state that raw logs, harness and analysis reside in a public repository and that one command recreates every figure without GPU or network access. Yet no repository URL, DOI or persistent identifier is provided in the paper. The experiments rely on a single NVIDIA RTX 5060 Ti with 16GB memory running Ollama, so reproducing the exact energy numbers requires identical hardware; different GPUs would need fresh per-step energy calibration. Hyperparameters are partially stated (temperature zero, fixed seeds) but the seed values themselves are not listed, and Ollama version and quantization settings are not mentioned. The 15 tasks per family are generated from fixed seeds, which is good, but the prompt templates and automatic grader code are not shown in the main text.

“The raw logs of every call, the harness and the analysis are in the public repository of the framework. One command recreates every number, table and figure in this section from the committed logs, without a GPU or network access.”
Siraj and Barbati · Section 6.1
“served through Ollama on a single NVIDIA RTX 5060 Ti graphics card (GPU) with 16 GB of memory. Each model runs alone on the card and fully in its memory, which the test harness checks before every model.”
Siraj and Barbati · Section 6.1
Abstract

AI agents use large language models (LLMs) to plan and act over multiple steps, yet models are usually compared per call rather than per completed task. This paper asks: which model should an agent use to complete tasks reliably while minimising energy, cost and time? We show that per-call comparisons can be misleading for agentic AI. Because a task succeeds only if all required steps succeed, small differences in per-step reliability can produce large differences in overall task success. Failed attempts also consume resources. We therefore evaluate models using energy, cost and time per successfully completed task, treating the completed task as the functional unit. On this basis, we develop a decision model for choosing LLMs in agentic workflows. The model applies to tasks with binary or graded outcomes and to settings with or without retries. We show that each resource has a crossover task length at which a smaller, less reliable model ceases to be the greener, cheaper or faster option. These crossovers divide tasks into three regimes: for short tasks smaller models are preferred, for long tasks larger models are preferred, and only between these extremes do preferences among objectives matter. We embed these results in a two-stage framework that separates efficiency from preference. A Pareto screen first removes models that are never competitive; a weighted decision is required only when a genuine trade-off remains. A pilot study of 15 open-weight models from five developers, ranging from 0.6B to 27B parameters, on two multi-step agent tasks with measured GPU energy supports the predicted structure. The model with the lowest energy per completed task changes with task length and task type, and observed crossover points generally match those predicted from per-step measurements. These findings provide a practical framework for right-sizing language models in agentic AI.

Challenge the Review

Pick a starting point or write your own. Challenges run in the background, so you can keep reading while the AI investigates.

No challenges yet. Disagree with the review? Ask the AI to revisit a specific claim.