The Token Tax
What we learned when we let small AI agents plan for longer. In our tests, extra planning cost more tokens but did not improve the results.
Read more »
A common assumption in AI is that a model gives better answers when it is allowed to reason for longer. For large models working on hard maths problems there is decent evidence for this. We wanted to know whether it holds for small AI agents doing routine data science work, so my co-authors Christian Beecks and Man-Fai Leung and I measured it. In our tests it mostly didn't. After a certain amount of planning, the agents kept producing more text, and costing more, while the results stayed where they were. We called that extra cost the Token Tax.
What a data science agent does
Suppose you give an agent a table of bank customers and ask it to predict who will sign up for a savings offer. It writes a plan first: clean the data, build a few new columns, train a model, test it. Other agents then write and run the code for each step.
The planning text is counted in tokens, which are short pieces of words. Hosted AI services bill per token, and on your own hardware tokens cost time and electricity, so a longer plan is a more expensive plan.
How we tested it
We built a system called the Living Agentic System, or LAS. One model acts as a manager and writes the plan, worker agents carry out the steps, and a separate checker reviews each step before it runs.
We limited how many steps the manager could plan: 5, 10, 25, 50, or no limit. We ran this with three small open models, Llama 3.1 (8 billion parameters), Mistral (7 billion) and DeepSeek R1 (7 billion), on three public datasets about credit card fraud, adult income and bank marketing. Every setting was repeated 30 times on a single Kaggle P100 graphics card.

More planning, same results
The quality of the final prediction models hardly changed between settings. With 5 steps or with no limit, scores were within about a hundredth of each other, and the differences weren't statistically significant.
Token use did change. It rose as we raised the limit, so quality per token fell. Past about 25 steps, that efficiency figure dropped by more than 45%. Much of the extra planning restated or padded steps the agent had already worked out. In the paper we call this ceremonial reasoning.
The three models differed mainly in whether they finished the task at all. Llama 3.1 completed every run even at 5 steps, and moving it from 25 to 50 steps used about 28% more tokens with no change in quality. Mistral finished only 35% of runs at 5 steps but 95% at 25, after which it levelled off. DeepSeek R1's completion rate kept creeping up with more room (85% at 25 steps, 100% with no limit), while its quality stayed flat.
So the useful limit depends on the model. In our setup, capping the plan at 25 steps cut token use by roughly 30% compared with 50 steps and made no measurable difference to quality.
Agents that take shortcuts
The second part of the work deals with target leakage, a common mistake in data science where the model is accidentally given information about the answer it is supposed to predict. Take a hospital trying to predict which patients will be readmitted. If the model is trained on a column that only gets filled in after a patient comes back, it will score very well in testing and fail once it is used on new patients.
We built leakage traps based on the DSBench benchmark. Agents without supervision used the leaked information in all of their trials. Using it was the fastest route to a good validation score, and that score was the only thing they were optimising for.
Our checker, which we call Governance-as-a-Service, sits between the plan and the code that runs. It reads each step and blocks any that match a list of known leakage patterns. With it switched on, none of the trapped runs leaked, and the agents handled noisy data as well as before. This only holds for leakage patterns that are on the list.
False alarms
Our first checker matched keywords: if a step mentioned a restricted column, it was blocked. That blocked 74.5% of legitimate steps, which would make the system close to unusable in practice.
The second version tries to work out what a step is for. Mentioning the target column to describe the data is allowed; using it to build a feature is not. False alarms fell to zero. The cost was coverage. On a harder test set that included leakage tricks outside its rule list, it caught 38.9% of cases, against 79.1% for the keyword version. We accepted that trade to get rid of the false alarms, but it means the rule list has to keep growing.
Other findings
Applying every safety fix to data that was already clean made results worse on the income dataset. The checker was correcting things that didn't need correcting, so it should probably look at the state of the data before it steps in.
We also compared ways of deciding which agent gets which task. Routing by how similar a task description sounded to each agent's description went badly for language tasks, with 37.5% success. A request like "summarise feature importance" sounds like analysis work but needs the language agent's tools. A fixed assignment, where each type of task always goes to the same agent, succeeded every time.
We also measured energy use with CodeCarbon. Per run the emissions are very small, a few milligrams of CO2. Capping planning at 25 steps lowered them by 31% to 46% depending on the model, which starts to matter if you run thousands of pipelines a day.
What to take from this
If you run AI agents, it's worth testing how much planning your agent actually needs, because the cost of extra steps adds up even when the results don't improve. It also doesn't make sense to rely on an agent to avoid leakage when leakage is what raises its score. In our tests a separate check that reads each step before it runs worked much better, as long as its rules covered the problem.
We only tested small open models on tabular data. Larger models or other kinds of tasks may behave differently, and that's what we plan to look at next.
Based on "The Token Tax: Measuring the Diminishing Returns of Test-Time Compute in Agentic Pipelines" by Kushagra Agrawal, Christian Beecks and Man-Fai Leung, AIWILD workshop at ICML 2026. - openreview.net/forum?id=8TKt1TYYDW









