Manuscript Offprint

arXiv:2611.07238

How Do AI Agents Waste Your Money?

Huimin Zeng, Yuxuan Lu, Jesse Cai, Eric Hanchen Jiang, Di Wu, Po-Nien Kung, Wenbo Hu, Ziyi Wang, Dakuo Wang, Jiaxin Pei, Kai-Wei Chang

Abstract

AI agents may consume massive tokens across a wide range of tasks, but how many of those tokens are really necessary? Although prior work has shown that agents can incur unexpectedly high token costs, we still lack a systematic way to identify and measure token waste¹. In this work, we introduce a unified framework for measuring token waste across heterogeneous agent systems. Our framework records and normalizes complete agent trajectories, identifies removable spans using an LLM-as-a-Judge (LLMaJ), and maps the identified text spans back to the original trajectory for token-level measurement. We validate the identified waste through direct interventions by removing marked spans, resuming agent execution, and measuring changes in task outcomes and subsequent actions. In online pruning experiments, we remove 41-46% of the model's reasoning while largely preserving task performance across two distinct agent benchmarks. Using this framework, we analyze agents across multiple settings. Our analysis shows that token waste has a system-level structure that aggregate token usage alone cannot reveal. First, waste varies more across tasks and agent settings than across models. Second, reasoning and visible execution can exhibit different waste patterns. Third, different harnesses can introduce distinct sources of inefficiency even under the same model and task. Overall, our framework transforms token waste into an actionable optimization signal, enabling researchers and practitioners to train more efficient models, design better reasoning strategies, and optimize agent harnesses toward reducing unnecessary computation rather than merely reducing token usage.

1 Introduction

The recent emergence of AI agents has transformed the pattern of LLM use from single-turn QA-style interaction to multi-turn interaction with tools, environments, and the user (Yao et al., 2022; Liu et al., 2024). Such multi-turn interaction is driven by the agent harness, which wraps the LLM and orchestrates and standardizes what the model sees, what information is retained in memory, which actions it can take, and how observations are returned to the model (Yang et al., 2024; Wu et al., 2023; Packer et al., 2023; OpenAI, 2025; Wang et al., 2025d). Through such orchestration, agents can handle complex and long-horizon tasks, but the resulting multi-turn execution is also particularly expensive (Ruan et al., 2026; Xu et al., 2026; Yao et al., 2026; Luo et al., 2025; Bai et al., 2026). For instance, a single trajectory may involve many rounds of reasoning, responses, tool calls, and observations, consuming substantially more tokens than a conventional LLM query.

However, token consumption and token waste are distinct quantities. For example, a long trajectory may be expensive because the task genuinely requires extensive reasoning and multiple turns of interaction, whereas a shorter trajectory may still spend many tokens on repeating information or redundant tool calls. Despite this distinction, existing studies

*Equal contribution. Correspondence to huiminz3@illinois.edu and lu.yuxuan@northeastern.edu †Equal advising.

¹We differentiate “token cost” and “token waste” in this work, where token cost refers to the overall bill, while token waste refers to the tokens that are useless and removable in the agent’s trajectory.

Figure

Figure 1: Overview of the proposed framework. The framework minimally instruments agent benchmarks, routes model interactions through a unified proxy for trajectory tracing, and uses LLM-based judges to annotate agent actions and identify token waste, followed by span-level verification and token measurement.

on agent economics largely characterize agent efficiency with aggregated quantities such as token usage, latency, or overall monetary cost (Bai et al., 2026; Satish et al., 2026; Lin et al., 2026b). Such aggregate measurements quantify how much computation an agent uses, although they leave open how much of that computation was actually necessary. As a result, efforts to reduce agent cost based on these measurements can only target the total token count, which risks cutting the reasoning and interaction a task needs while leaving removable content in place.

The gap between consumption and waste therefore raises a fundamental measurement question: how can we identify which parts of an agent trajectory are unnecessary and removable? Answering this question is challenging for several reasons. First, the length of responses or trajectories alone is insufficient to determine waste, because text that appears verbose may still contribute to a later agent turn, while a seemingly reasonable exploratory step may turn out to be unnecessary in hindsight. Second, agent trajectories are heterogeneous, since different models and harnesses expose reasoning, responses, tool calls, and token accounting in different formats, which makes consistent measurement across systems difficult. Third, identifying apparently unnecessary text is insufficient on its own, given that a meaningful notion of waste should be supported by evidence that removing the identified content does not significantly disrupt subsequent agent execution or task outcomes.

To address these challenges, we introduce a unified framework for measuring token waste in AI agents. As shown in Figure 1, the framework consists of three stages, namely tracing, identifying, and verifying. First, heterogeneous benchmarks and harnesses can be connected to the framework with only a few lines of code changes, and the resulting agent trajectories are normalized into a common representation across models, benchmarks, and harnesses. Second, token waste is defined as content that can be removed without eliminating useful work from the trajectory, and based on this definition, an LLM-as-a-Judge (LLMaJ) identifies such waste spans within reasoning, visible responses, and tool interactions. The framework further distinguishes directly removable strict waste from exploratory detours, which may be unnecessary in hindsight but reasonable during agent execution. Finally, the identified waste is verified and quantified using token-counting tools provided by the original model providers. As a result, we can measure wasted tokens and monetary cost under each provider's native accounting scheme while applying the same span-level definition of waste across heterogeneous agent systems.

Before using the framework for large-scale analysis, we validate whether the identified waste is consistent with our removability criterion. Specifically, the validation experiments directly intervene on agent trajectories by removing identified waste and measuring its effect on final task outcomes and subsequent actions. In addition, we prune identified waste online while the agent is running. Across these validation experiments, removing identified waste generally preserves task performance and produces limited behavioral changes. In online pruning experiments, we remove 41-46% of the model's reasoning while largely preserving task performance across SWE-bench Verified and MCP-Atlas.

Using our framework, we investigate token waste across multiple LLMs, tasks, reasoning-effort settings, and agent harnesses. In doing so, the analysis moves beyond traditional token usage metrics and examines where unnecessary computation arises within an agent system. Our results suggest that several components of the agent system beyond the underlying LLM shape token waste. Moreover, reasoning and visible execution can exhibit different waste patterns, and different harnesses can introduce distinct sources of inefficiency even when the model and task are fixed. Together, these analyses demonstrate how our framework can detect and attribute token waste in agent trajectories that would otherwise be hidden by traditional token usage metrics.

Our contributions are summarized as follows:

  • We introduce a unified framework for measuring token waste in heterogeneous AI-agent systems. The framework distinguishes strict waste from exploratory detours and validates the identified waste through direct interventions on agent trajectories.
  • We apply the framework across models, tasks, reasoning-effort settings, and agent harnesses, showing how it can localize and attribute inefficiencies that traditional aggregate metrics cannot reveal. The resulting waste annotations can also provide supervision and diagnostic signals for training more token-efficient models and optimizing agent harnesses.
  • We open-source our framework, code, and labeled agent trajectories to support future research on token-efficient agent systems.²

References (56)