Reasoning Step Inflation and Token Cost Control

    Longer reasoning does not automatically mean better results. For subscription or usage-based inference services, extra steps, replayed context, and unchecked verification can consume the budget before the task is finished. This article explains why input tokens can grow faster than step count, when continued reflection is worth the cost, how to run controlled comparisons, and which orchestration controls keep each added step short, stoppable, and useful.

    Longer thinking does not automatically mean a stronger result. On subscription or usage-based inference services, developers more often hit a different problem: the quota is consumed by the reasoning process before the task is done. Even if a provider describes long reflection as a capability required for long-horizon tasks, users still need to ask three things: whether the extra thinking produces a measurable gain, at what granularity that thinking is billed, and whether the step count can be reduced without sacrificing critical correctness.

    A sharp rise in consumption is usually not a sudden price change

    Most disputes occur under the same billing unit: both input and output are metered in tokens, yet the model or agent suddenly takes many more steps. A single step may look like only one more script read or one more result check. Cumulatively, input volume can rise out of proportion. The cause is often not simply that each step is more verbose. Step count, context replay, and verification policy change at the same time.

    The pattern usually has four layers:

    • Planning: the model decides for itself whether to keep searching, editing, or checking.
    • Execution: each step calls a tool, reads a file, or runs a check.
    • Context: the next step sends prior dialogue, tool results, and constraints again.
    • Billing: replayed history counts as input, and lengthy inner monologue counts as output.

    Comparing only the length of the final answer is misleading. The real bill is incurred before the answer is reached.

    As steps increase, input can grow geometrically

    An agent loop is usually: observe the current state, generate the next action, append the action result to the context, then reason again. If the implementation has no incremental cache or summary, the request at step n roughly contains the full trace of the previous n−1 steps. When the step count grows from s to k·s, input tokens are not simply multiplied by k. The cost is closer to a prefix sum: each step pays again for the history.

    A schematic model can show the scale. It is not any vendor’s billing formula; it is only an estimate:

    1. Let the average new content per step be a, and the fixed system prompt be p
    2. Input at step i ≈ p + i * a
    3. Total input ≈ s * p + a * s * (s + 1) / 2

    When s is large, the quadratic term dominates. A sixfold increase in steps can make total input far more than six times larger. On the output side, if every step writes a long reflection, that text is multiplied by the same step count. The quota is then filled by thinking text rather than by the deliverable.

    This also explains why a comparison experiment can look contradictory. With the maximum step count locked, consumption under old and new policies can be similar. Once autonomous steps are unrestricted, the new policy may first read supporting material end to end, establish a baseline, and then recheck item by item. Steps multiply, and input expands with them. A comparison must fix the step cap, tool permissions, and whether the full text is replayed. Otherwise it is unclear whether the model is stronger or simply less willing to stop.

    When continued reflection is a real feature

    On long-horizon tasks, self-correction does have value. If a bad plan is stopped early, later tokens are not burned on a false premise. A reasonable form of reflection is a short loop: find a contradiction, narrow the hypothesis, change one step, and confirm with a checkable signal. An unreasonable form is open-ended rereading: going through helper scripts, logs, and historical output word for word without any new information gain.

    Whether it is worth thinking further can be judged by information gain rather than by feel:

    • Did this step change the next action, or did it only restate a known conclusion?
    • Does the check target a failed hypothesis, rather than rechecking items that already passed?
    • Is the new context shorter than the history it replaces? If it is longer, the summary policy has failed.
    • Is the difference across several consecutive steps below a threshold—for example, the conclusion, patch, or test result no longer changes?

    A looped reasoning architecture only means the model can call itself across multiple rounds. It does not mean every round must see the full original text. The same loop can improve token efficiency along with quality if intermediate state is compressed, tool results are structured, and stop conditions are written into the policy. Attributing high consumption solely to “switching to a different loop” ignores stop conditions, replay granularity, and the width of verification.

    How to run a reviewable comparison

    Do not conclude from a single subjective run. Write the experiment as a fixed protocol and change only one variable.

    1. Task set: prepare several tasks of similar length that can be scored automatically. Include both multi-file edits and single-point questions. Do not select only open-ended prompts that a model is especially likely to expand.
    2. Budget: run under two constraints—“maximum steps locked” and “only total tokens locked.” The first shows capability. The second shows how much can be finished within the quota.
    3. Records: for each step, log newly added tokens, replayed tokens, tool-return length, and whether an artifact changed. Do not record only the final total price.
    4. Success criteria: tests pass, the diff matches the specification, and there are no extra edits. Long thinking that does not raise the pass rate should be recorded as a negative return.
    5. Repetition: run the same task multiple times and report the median and the tail. Do not treat one unusually long chain as the norm.

    When interpreting results, keep two views separate: the pass rate with steps locked, and the extra tokens spent, after the cap is removed, for each percentage point of pass-rate gain. If the pass rate stays flat while steps surge, the policy is buying a sense of safety through rechecking. If the pass rate rises but the quadratic term explodes, what is needed is summarization and early stopping, not simply a larger quota.

    Engineering controls

    Controls belong in the orchestration layer. Do not rely on the model to save money on its own.

    Step and phase budgets. Split the task into reconnaissance, modification, and verification. Set a separate step and token cap for each phase. Reconnaissance should stop once the location is clear enough. Do not reread all material during verification. Verification should prefer checks related to the change, not a default full recheck.

    Replace full-text replay with a state summary. At the end of each step, produce a state with fixed fields: goal, confirmed facts, open questions, changed files, failed tests, and the next step. The next request should carry only the summary, the latest tool result, and constraints that are still in force. Keep the original history in retrievable storage and fetch fragments on demand, instead of sending the whole package back on every step.

    A schematic structure:

    1. state = {
    2. goal, facts[], open_questions[],
    3. edits[], failed_checks[], next_action
    4. }
    5. next_request = system + state + last_tool_result
    6. if steps_in_phase >= limit or no_delta(state): stop

    Early stop and duplicate detection. If two consecutive steps produce an empty patch, the same check result, or an unchanged open-question list, stop immediately or switch to human confirmation. Count actions such as “read it once more to be sure” separately, and downgrade them to sampling once they exceed a threshold.

    Trim tool returns first. Before logs, scripts, and long documents enter the model, extract them into a structured digest: function signatures, the top frames of an error stack, and fragments that match keywords. Leave the full text in object storage or the workspace. Give the model offsets so it can read precisely again. This step often cuts the quadratic term more than changing the model does.

    Limit reflection volume on the output side. Require intermediate steps to produce only an action and a very short reason. Leave long explanations for the final delivery. If output is billed with similar sensitivity, unconstrained inner monologue stacks on top of replayed input.

    Cache and stable prefixes. Put the system prompt, specifications, and large unchanged background in a stable prefix so the service or gateway has a chance to cache that prefix. Rewriting the prompt frequently invalidates the cache and gives up that saving. Whether a billing discount exists depends on the service in use and cannot be assumed. A stable prefix still reduces repeated assembly errors in the application layer.

    Quotas, observation, and product expectations

    Running out of quota sometimes means the plan does not match the real workload. Sometimes it means the policy turned optional thinking into the default. For users, show used tokens, steps in the current round, the share of replay, and how often a run stopped early because it hit a cap. A bare “quota exceeded” message cannot distinguish a task that objectively got harder from an agent spinning in place.

    Teams can use four metrics in a weekly report:

    • Median and P95 input tokens per successful task.
    • Replayed tokens as a share of total input. Above an empirical threshold, fix summarization first.
    • The pass-rate gap between locked steps and unrestricted steps, used to judge whether extra steps are worth it.
    • The rate of cap-triggered interruptions, and the time spent finishing the work manually afterward.

    When describing capability externally, separate “can self-correct for a long time” from “will self-correct for a long time by default.” The first is an upper bound. The second is a cost policy. Granting extra quota can settle a single incident, but it does not replace stop conditions and context trimming. If a new version, once steps are unrestricted, tends more toward full reads and item-by-item rechecks, the release notes should give a recommended step cap and summary mode, not only an effect curve.

    A practical order

    Measure first, then add budget. A useful order is: add per-step metering to existing tasks; confirm that quality does not regress with the step count locked; introduce state summaries and trimmed tool results; and only then widen phase budgets according to pass-rate gains. Each added unit of quota can then correspond to checkable information gain, not to longer thinking text.

    The point of long-horizon capability is not to think longer. It is to make every extra step shorter, stoppable, and limited to state that is still useful. Done that way, looped reasoning shows up as a better result rather than as a quota that disappears quickly.