Why Agent Token Consumption Grows Exponentially

    This article explains why some AI agents consume token volume that ranks at the top of public usage statistics even without a matching lead in user count. It breaks total consumption into active users, tasks per user, and average token cost per task, then contrasts two design philosophies: on-demand agents and self-improving agents. Their cost models differ as a linear function versus a function with constant terms, which explains why light users feel it is expensive while heavy users find it worthwhile. The article also covers hidden background costs such as trajectory reflection, skill consolidation, and memory maintenance, and closes with a decision checklist and engineering practices for making token consumption observable and governable.

    Over the past two years, the discussion around agents has shifted from “can it be done” to “how much is done, and how much does it cost.” One notable pattern is that in public call-volume statistics, the total token consumption of certain agent frameworks climbs rapidly, sometimes reaching the top, while their user base is not necessarily leading at the same time. This invites a conclusion that is easy to misread: high consumption means poor design, means waste. This article tries to clarify the matter from the perspective of architecture and cost models.

    1. First, a premise: total consumption is not total users

    Total token consumption can be roughly decomposed into three factors:

    1. total consumption ≈ active users × tasks per user × average token cost per task

    When a product’s user base is not large but its total consumption still ranks near the top, growth is coming from the latter two factors: task density per user and cost per task are rising at the same time. This is exactly the typical trait of a capability-oriented agent: it does not only work when you ask a question, it keeps computing in places you cannot see.

    So translating “number one in consumption” directly into “worst efficiency” is an attribution error. The real questions are: which stages are these tokens spent on, and are they explainable, attributable, and optimizable.

    2. Two design philosophies: on-demand versus self-improving

    Agents in the industry roughly fall into two orientations.

    On-demand: the core is a dispatch gateway. The user issues an intent, the system performs intent recognition and routing, assigns the task to the corresponding tool or skill, and stops immediately after execution. Its state machine is “request - execute - return,” and no request means no computation. Run the same kind of task a hundred times, and the hundredth run costs and performs essentially the same as the first, because it retains no experience across tasks.

    Self-improving: the core is a loop of “execute - reflect - consolidate.” After a task completes, the system runs an extra round of trajectory analysis: which steps were redundant, which tool calls could be merged, which patterns recur and are stable. It then distills such patterns into reusable skill definitions or process templates and updates the long-term memory index. The next time a similar task appears, it calls the consolidated capability directly and reduces exploration cost.

    An analogy with cars: the on-demand type is like a hybrid that shuts off at red lights; the self-improving type is like a high-performance sports car that burns fuel even while idling. Which one has higher instantaneous fuel consumption is obvious, but fuel consumption alone does not tell you about performance, because the two optimize different goals: one optimizes idle cost, the other optimizes the capability ceiling.

    3. The mathematical shape of the cost model: linear function versus function with a constant term

    Writing the difference above as formulas makes it more intuitive.

    On-demand:

    1. C₁(n) = n × c_task

    Self-improving:

    1. C₂(n) = n × c_task' + C_learn + C_skill + C_memory(n)

    Here c_task' is the per-task cost after consolidation (usually lower than c_task, because exploration and trial and error decrease), C_learn is the overhead of trajectory analysis and reflection, C_skill is the overhead of skill generation and validation, and C_memory(n) is the overhead of memory writes, deduplication, compression, and retrieval index maintenance.

    This model yields three verifiable inferences:

    1. Low-usage scenarios: the constant terms are amortized very little, per-task cost looks high, and the feeling that “it is too expensive” is strongest;
    2. High-usage scenarios: the constant terms are amortized across many tasks, while c_task' declines as skills accumulate, so the total curve may actually flatten;
    3. The higher the share of similar tasks, the more obvious the gains of the self-improving type; when tasks are highly diverse and almost never repeat, self-improving spending is close to pure loss.

    This also explains why “people who use it little think it is expensive, people who use it a lot think it is worth it”: they are actually sitting on different segments of the cost curve.

    4. Overlooked hidden overhead: the background never shows up in the conversation

    The root reason most individual users have no sense of consumption is missing observability. What users can see is only the chat window, while the work below usually happens outside the session:

    • Trajectory reflection: a second round of reasoning over the full execution sequence to judge success or failure and redundant steps;
    • Skill consolidation: generating, deduplicating, and versioning skill descriptions, plus regression validation;
    • Memory maintenance: writing new facts, merging conflicting entries, compressing history, rebuilding the retrieval index;
    • Context replay: repeatedly carrying historical context in long tasks, so input-side tokens accumulate with each round.

    The trait of these costs is that they are disproportionate to the user-visible output, so they must be measured explicitly in engineering rather than guessed after the fact.

    5. When to choose self-improving: a decision checklist

    • High task repetition and stable patterns (fixed data inspection, report generation, code review rules) mean significant self-improving gains;
    • One-off, highly exploratory tasks are more economical on the on-demand type;
    • For online paths with strict latency and cost limits, move self-learning to offline asynchronous execution;
    • If the team lacks token observability, add measurement first, then talk about optimization.

    6. Engineering practice: turning consumption into a governable object

    1. Build token observability. Tag by “session / task / stage,” and measure input, output, cache hits, reflection, and memory maintenance separately, feeding logs and monitoring/alerting systems to form dashboards that can be drilled down by dimension.

    1. # Example: stage-based accounting to make hidden overhead visible
    2. budget = TokenBudget(session_id, limits={"reflect": 0.15, "memory": 0.10})
    3. with budget.track("main_task"):
    4. result = agent.run(task)
    5. with budget.track("reflect"): # background reflection, measured separately
    6. lessons = agent.reflect(result)
    7. with budget.track("memory"): # memory maintenance, measured separately
    8. memory.upsert(lessons)

    2. Set quotas and trigger conditions for background overhead. Reflection does not need to run on every task; trigger it on conditions such as “task failed,” “three similar tasks in a row,” or “explicit user confirmation,” and cap its share per session.

    3. Use caching and semantic reuse to cut repeated input. Prefix caching or semantic caching for stable system prompts, skill descriptions, and retrieval results is the most direct way to reduce input-side tokens.

    4. Manage skills and memory with a lifecycle. Skills need versioning, hit-rate statistics, and an eviction mechanism; memory needs expiration and compression policies to keep the index from growing without bound and driving maintenance cost out of control.

    5. Run in layers. The online path does only necessary reasoning, while reflection, skill generation, and index rebuilding go into an offline queue for asynchronous execution, with the container platform elastically absorbing peaks.

    6. Evaluate with cost per unit of effective output. Looking not at total tokens but at “token cost per qualified task completed” and “skill reuse rate” is what tells you whether the self-improving architecture is actually getting cheaper.

    7. Conclusion

    Topping the token consumption chart is not in itself a negative signal; it is more like a by-product of an expanding capability boundary. What really deserves caution is unexplainable consumption: not knowing where it went, being unable to attribute it, having no quota. Write the cost model clearly, bring background overhead into measurement, and turn self-learning into conditional triggering and asynchronous execution, and a self-improving agent can strike a balance between “getting stronger with use” and “controllable cost.” With the general capabilities of cloud platforms such as Baidu AI Cloud, base components like log services, monitoring and alerting, message queues, and container platforms are enough to build such an observable and governable token cost system.