← Blog
ai-agentsengineeringfinance

The Unit of AI Cost Is the Distribution

AI agent cost can vary 30x across identical runs because it depends on token distribution, not token price alone. Learn how compiled execution controls variance.

MightyBot ·
The Unit of AI Cost Is the Distribution

Agentic AI token spend can vary 30x on identical tasks. The same workflow can cost $8 or $240 with no change to inputs, because every run makes stochastic decisions about tool calls and retry loops the user never sees. The expensive runs are usually no more accurate than the cheap ones. They are just longer.

AI demand is outrunning supply. This is Jevons Paradox in real time. Cheaper, faster models do not necessarily reduce token consumption. They can expand it.

Inference got cheaper. The bill went up anyway.

This sounds like a paradox until you do the multiplication. Frontier-class reasoning output has become far cheaper, but enterprises are using much more of it.

By any normal reading of a technology cost curve, that should be deflationary. It should be saving enterprises money. The opposite has happened. The cost curve and the demand curve crossed, and then demand lapped supply.

The amplification stack underneath that demand is brutal. Compare what each workload type consumes against a single-shot completion as the baseline:

WorkloadToken consumption vs single-shotWhy
Single-shot completionBaselineOne prompt, one response.
Reasoning modelMore output tokensSpends tokens reasoning before answering.
Agentic workflow (ReAct)Repeated requests with wide variancePlans, calls tools, retries, synthesizes. Step count is stochastic.
Deep-research queryMuch higher consumptionLong context, multi-source synthesis, repeated retrieval.
Compiled execution (MightyBot)Bounded by the planStep count is fixed at design time. No retry loops.

We made every individual token cheaper, and then we built a generation of products that consume far more tokens. For illustration, 100x cheaper times 10,000x more equals a 100x larger total bill.

That is the supply story, and it is the one most procurement teams are starting to wake up to. There is a quieter problem underneath the supply problem, and it is going to reshape the way regulated enterprises buy AI.

The wide variance problem

Two weeks before the I/O keynote, an arXiv paper landed that enterprise buyers have not absorbed yet.

The paper is How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasks by Longju Bai, Zhemin Huang, Xingyao Wang, Jiao Sun, Rada Mihalcea, Erik Brynjolfsson, Alex Pentland, and Jiaxin Pei. arXiv:2604.22750, v2, April 29, 2026.

The authors ran identical agentic tasks across eight frontier LLMs on SWE-bench Verified. Same task. Same prompt. Same context window. Same tool stack. They measured end-to-end token consumption across many runs.

The coefficient of variation was extreme. The paper found that runs on the same task can differ by up to 30x in total tokens. Same inputs. Same agent. Different luck.

This is not a bug. It is a feature of agentic execution:

  • The model decides how many tool calls to make.
  • The retrieval layer decides how much context to pull.
  • The verifier decides whether to loop again.
  • Each of these is a stochastic decision conditioned on intermediate outputs the user never sees.

The paper also finds that frontier models cannot accurately predict their own token usage, with correlations only up to 0.39, and systematically underestimate real costs. The agent does not know what it is about to spend. The vendor does not know what it is about to charge you. Nobody is at the wheel of the meter.

The quality problem hiding inside the cost problem

There is a quieter finding buried in the paper, and it is the one that matters most for buyers. The paper does not just find that token cost has wide variance. It finds that accuracy peaks at intermediate cost and saturates at higher costs.

The $240 run is usually not a better answer. It is just a longer one. Agents that burn 30x more tokens on the same task are often no more correct. The “try, fail, retry” loops at the heart of most ReAct-style architectures compound noise more than they compound insight. Token variance is a cost problem and a quality problem because enterprises can pay more for worse answers.

The paper also finds that Kimi-K2 and Claude-Sonnet-4.5 consumed over 1.5 million more tokens, on average, than GPT-5. Choosing the model is choosing the cost surface. Most enterprises are doing this by feel.

Procurement was not designed for this

Cloud compute pricing is published per instance-hour and stable once reserved. You can size a budget. You can quote a fixed price. You can sign an MSA on a per-million-token rate card.

You can still do all of those things with agents. But the per-million rate card no longer maps to the actual cost of producing a decision. The agent decides how many millions to spend. And it decides differently each run.

The piece that nobody is pricing yet is what happens when the procurement function at a top-tier bank, consulting firm, or pharma company realizes the math. They will not just ask for cheaper tokens. They will ask for tighter controls on variance: better routing, better caching, better observability, better policy limits, and in some cases dedicated capacity.

That is a very different infrastructure requirement from stateless inference. It does not mean cloud disappears. It means the winning cloud looks much more like an execution and control layer for stochastic workloads.

The unit of AI cost is not the token. It is the distribution.

What token-efficient agents actually look like

MightyBot was built before any of this was a public conversation, on a thesis that AI for the work that can’t be wrong requires a different architecture from “AI for the work that’s fun to try.” That thesis is now also a procurement thesis. Here is how it maps to token efficiency in production.

1. Compiled execution, not stochastic loops

MightyBot runs on a Constrained Agent Runtime and a Deterministic Action Layer, supporting three execution patterns: compiled plan execution, stepwise execution, and planned sequences. The default for production work is compiled plan execution: build a structured plan, then run the steps. The runtime does not burn tokens guessing what to do next. It executes a plan that was already shaped at design time.

No ReAct “think, try, fail, think, try, fail” loops. Those are the architecture that produces the 30x variance the arXiv paper measured. They are also the architecture that pays more for worse answers.

2. Design-time intelligence versus runtime execution

MightyBot separates MightyBot Agent Compiler (design time) from Policy Agent Workflow (runtime). Creative reasoning happens once, during workflow design and policy authoring. At runtime, the system does not pay tokens to re-discover the answer every time the workflow runs. The plan is compiled. The execution is cheap.

3. Policy evaluated through deterministic code paths

Many enterprise policies are precise enough to encode as code: three-way matches, threshold checks, variance calculations, comparison against a canonical field dictionary. MightyBot evaluates them through deterministic code paths, not through the model. Every step that does not require model reasoning is a step that does not consume tokens. Treating deterministic work as generative is the root cause of many runaway token bills.

4. Search instead of context-stuffing, and KV-cache discipline

MightyBot’s Megastore layer uses hybrid search over a unified repository of documents, system records, and API responses. Tokens go to the page, paragraph, and character offsets that matter for the current policy decision, not to the entire request dumped into the context window. The paper’s finding that input tokens drive the overall cost is exactly the problem this is built to solve.

This matters more than ever because the KV cache, the running memory state of a long conversation or agent loop, is the silent monster of the inference era. It scales with context length and number of agent steps rather than model parameters. A long agentic session can hold substantial state for each user and session.

Architectures that hose the context window with every retrieval pay that bill on every step. Architectures that retrieve precisely, and that compile workflows so step count is bounded, do not.

5. Model-agnostic routing

The platform is model-agnostic by design. Sovereign or latency-sensitive steps can route to smaller specialized models. Frontier reasoning routes to whichever model fits the step best. Deterministic checks route to code. You pay for capability where you actually need it, and only there. The 1.5 million token spread between Kimi-K2 and GPT-5 the paper measured stops being an accident and starts being a decision.

6. Continuous evaluation and a why-trail on every run

Every decision carries a why-trail: policy version applied, data inputs consulted, evidence pointers with page and character offsets, timestamped execution log. The Continuous Evaluation Engine tracks accuracy by input type and data source, time-to-decision, and human override frequency. Token spend per workflow becomes a measured, trended quantity. Outlier runs surface instead of hiding inside an unbounded monthly invoice.

What this architecture is actually optimized for

Token efficiency

Tokens go to the steps that actually need a model. Deterministic policy checks run as code. Retrieval is precise, not context-stuffed. Workflows are compiled, not improvised. The variance the arXiv paper measured is the variance MightyBot is built to eliminate.

Fast execution

Compiled plans do not wait around for the model to decide what to do next. Complex evidence-heavy reviews complete much faster, and loan administrators handle more cases per day. Cycle times collapse because the system is not paying itself to think out loud.

High accuracy

High production accuracy comes from the architecture. When the system stops paying the model to guess at structure and policy, the model stops guessing wrong.

These outcomes are observed in production lending deployments. They are not separable from the token-efficiency story. The cycle-time reduction is a token reduction. The throughput uplift is a cost-per-decision reduction. The accuracy floor is what you get when an agentic architecture stops paying the system to guess.

The questions to ask your AI vendor in 2026

If you are buying agentic AI for regulated work, the questions you ask vendors need to change. The token-economy data is now public. The 30x variance is now in the literature. The vendors that cannot answer the new questions are the ones selling you variance and calling it intelligence.

Stop asking:

  • What’s your per-token price?
  • What’s your context window?
  • Which model do you use?
  • Can you summarize this PDF?

Ask instead:

  • What is the coefficient of variation on token spend across runs of the same workflow?
  • What is the architecture that prevents runaway reasoning loops on edge cases?
  • Can policy steps execute as deterministic code, or do they all hit the LLM?
  • Can I observe, alert on, and cap token spend per workflow, per tenant, per policy version?
  • Can the system route different steps to different models based on cost and fitness?
  • What is the accuracy curve as a function of token spend? Where does it plateau?
  • What is in the why-trail for every decision, and can I export it on audit?

Buy the distribution, not the token.

The token economy is exploding. That is the supply story, and it makes for great keynote slides. The demand story is more interesting and harder to fit on a slide. Enterprises will pay a premium not for cheaper tokens, but for tighter variance. The next era of AI infrastructure is execution control, not just inference.

Token efficiency stops being a virtue and starts being a procurement requirement. Compiled execution beats stochastic loops. Deterministic code beats LLM calls wherever policy is precise enough to encode. Why-trails on every decision beat black-box outputs that nobody can defend at audit.

If your AI agent can cost eight dollars or two hundred and forty dollars for the same task, with no change to any input, you do not have predictable execution. You have a slot machine. The work that can’t be wrong is not work you want to leave on a slot machine.

FAQ

Frequently Asked Questions

Why can the same AI agent task cost $8 in one run and $240 in another?

An arXiv study measured up to 30x differences in token consumption across identical agentic coding tasks. The model, retrieval layer, and verifier each make stochastic decisions about tool calls, context, and retry loops.

Does spending more tokens improve agentic AI accuracy?

No. The study found that accuracy peaks at intermediate token cost and saturates at higher costs. A $240 run is usually not a better answer than the $8 run. Longer ReAct-style retry loops can compound noise more than insight, making token variance a quality problem as well as a cost problem.

What is the KV cache and why does it matter for AI cost?

The KV cache is the running memory state of a long conversation or agent loop. It scales with context length and agent steps, so architectures that fill the context window with every retrieval pay that bill repeatedly. Precise retrieval and compiled workflows bound the work.

How does compiled execution reduce token consumption versus ReAct loops?

Compiled execution builds a structured plan at design time and runs its steps in order. The runtime does not burn tokens guessing what to do next. ReAct loops make fresh stochastic decisions at each step, while compiled plans bound step count and token spend, avoiding the structural variance that can make the same task cost 30x more on different runs.

What questions should enterprises ask AI agent vendors about token efficiency?

Ask about token-spend variance across repeated runs, architecture that prevents runaway reasoning loops, deterministic policy execution, workflow-level spend controls, model routing based on cost and fitness, and the relationship between token spend and accuracy.