AiSkillz research · October 2026
Token reduction in large language model applications
Where tokens are wasted, why the waste lowers answer quality as well as raising cost, and which interventions the current evidence supports.
Companion skill: Token efficiency for AI models - the practices in this review, packaged so an AI agent can apply them to your code.
Abstract
Large language models (LLMs) are billed, rate-limited and bounded by tokens, yet production applications routinely send models far more tokens than the task in front of them requires. This review synthesises peer-reviewed studies, preprints and provider documentation published between 2017 and October 2026 to answer three questions: where tokens are wasted in deployed systems, why that waste matters beyond cost, and which interventions reduce it without degrading output. We find that waste concentrates in a small number of components - tool definitions, tool results, accumulated conversation history, over-broad retrieval and unrequested reasoning - and that the same excess context that raises cost also measurably lowers accuracy, through position effects and a more general degradation with input length. The best-supported interventions are structural rather than linguistic: caching stable prefixes, loading tools and knowledge on demand, processing intermediate data outside the model, compacting long sessions, and calibrating reasoning effort. Reported savings range from roughly a third to more than 95 percent of tokens for the affected component, although many figures are vendor-reported and await independent replication. We close with a measurement-first method and its limitations.
1. Introduction
A token is the unit in which a language model reads and writes text: typically a word fragment, a punctuation mark or a short run of characters. Every request to a hosted model is priced per token, every model has a maximum number of tokens it can attend to at once (its context window), and generation time grows with the number of tokens produced. Tokens are therefore the common currency of cost, latency and capacity in LLM systems.
Early prompt engineering treated the prompt as a short instruction. Contemporary agentic systems instead assemble a large and growing input on every turn: a system prompt, descriptions of every available tool, retrieved documents, the full conversation so far, and the raw outputs of previous tool calls. Anthropic describes the resulting discipline as context engineering - “the set of strategies for curating and maintaining the optimal set of tokens” during inference[9]. The central claim of this review is that most avoidable token spend arises from failing to curate that set, and that curation improves quality as well as cost.
2. Background: how tokens are counted and billed
Tokenisation is not neutral. Sub-word tokenisers are trained on corpora dominated by a few languages. Petrov et al. show that the same text can require up to fifteen times more tokens in some languages than in English, and that even byte- and character-level models exhibit more than fourfold differences for some language pairs[3]. Speakers of under-represented languages therefore pay more, wait longer and fit less into a context window for equivalent content. Machine-generated material - pretty-printed JSON, long numeric identifiers, encoded data - also tokenises inefficiently.
Output is the expensive side. On Anthropic's October 2026 price list, output tokens cost five times as much as input tokens for every current model, and reasoning (“thinking”) tokens are billed as output[14]. A verbose answer or an unnecessarily long chain of reasoning can therefore cost more than a large prompt.
Repeated input can be discounted. Both major providers cache prompt prefixes. Anthropic charges 1.25 times the base input price to write a five-minute cache entry and a small fraction of it to read one (0.1 times on most models, 0.05 times on its newest Opus and Sonnet models), with a minimum cacheable prefix of 512 tokens on the current generation[13]. OpenAI caches prompts of 1,024 tokens or more automatically[18]. Both providers also discount asynchronous batch processing by half[17].
Attention scales with length. In the transformer architecture every token can attend to every other, giving a number of pairwise interactions that grows with the square of input length[8, 9]. Practitioners increasingly treat context as a finite “attention budget” in which each additional token dilutes the attention available to the rest[9].
3. Where tokens are wasted: a taxonomy
Drawing on the sources reviewed, we group avoidable token spend into seven categories. In practice one or two dominate any given system, which is why measurement precedes optimisation (Section 6).
| Category | Mechanism | Illustrative evidence |
|---|---|---|
| Tool definitions | Every available tool is described in every request, whether or not it is used. | 58 tools from five MCP servers occupied roughly 55,000 tokens before the conversation began [12]. |
| Tool results | Raw outputs (documents, records, logs) pass through the model and remain in history. | Intermediate results flowing through the model are identified as a primary source of agent token use [11]. |
| Accumulated history | Long sessions resend every earlier turn, including content no longer relevant. | Providers now ship compaction and context-editing features specifically to remove stale turns and tool results [16]. |
| Over-broad retrieval | Retrieval pipelines include many marginal passages “in case they help”. | More retrieved context can reduce accuracy when relevant passages are surrounded by others [1, 2]. |
| Redundant instructions | The same rules restated across system prompt, tool descriptions and messages; long lists of edge cases. | Guidance favours a few canonical examples and prompts at the “right altitude” over exhaustive rules [9]. |
| Unrequested reasoning | Reasoning models deliberate at length on problems that do not need it. | o1-style models used on average 1,953% more tokens than conventional models on a trivial arithmetic question [7]. |
| Inefficient encodings | Verbose formats and languages poorly covered by the tokeniser. | HTML tables required nearly three times the tokens of CSV for the same data [19]; some languages need up to 15 times the tokens of English [3]. |
4. Why waste lowers quality, not only cost
It is tempting to treat surplus context as harmless: if the model has a large window, more information can only help. The evidence does not support this view.
Position effects. Liu et al. found that models answer multi-document questions most accurately when the relevant passage appears at the beginning or end of the input and least accurately when it sits in the middle - including models designed for long contexts[1]. Padding a prompt with marginal material pushes useful evidence toward the poorly used middle.
Degradation with length. Chroma's evaluation of eighteen models found that performance becomes less reliable as input length increases, even on deliberately simple tasks, and that semantically related distractors worsen the effect[2]. The authors term this context rot. Anthropic reports the same phenomenon in its own guidance and frames context as a resource with diminishing marginal returns[9].
Choice overload in tools. Large tool sets increase the chance that a model selects a similar but wrong tool; the same guidance recommends a minimal, non-overlapping set[9]. Token reduction and tool-selection accuracy therefore point in the same direction.
Overthinking. Extended reasoning improves hard problems but adds little to easy ones while multiplying output tokens[7]. Because output is the more expensive side (Section 2), calibrating reasoning to difficulty is among the largest cost levers available.
The practical implication is that token reduction, done well, is a quality intervention: removing tokens the current step does not need tends to concentrate the model's attention on those it does.
5. Interventions and the evidence for them
The table summarises interventions with published effect sizes. Figures are as reported by their sources, measured on the sources' own workloads; they indicate the scale of possible savings for the affected component, not a guaranteed result for any given system.
| Intervention | Reported effect | Evidence type | Source |
|---|---|---|---|
| Prompt caching of stable prefixes | Cached input billed at 0.05-0.1× the base rate (Anthropic); OpenAI describes discounts of up to 95% | Provider pricing | [13, 18] |
| Batch processing for asynchronous work | 50% lower price | Provider pricing | [17] |
| Tool search with deferred tool loading | ≈85% fewer tokens (≈77K → ≈8.7K) in the reported example | Vendor engineering report | [12] |
| Code execution over MCP (process data outside the model) | 150,000 → 2,000 tokens (98.7%) in the reported example | Vendor engineering report | [11] |
| Programmatic tool calling | 37% fewer tokens on complex research tasks (43,588 → 27,297 average) | Vendor engineering report | [12] |
| Concise reasoning (Chain of Draft) | Matched or exceeded chain-of-thought accuracy using as little as 7.6% of the tokens | Preprint, several benchmarks | [5] |
| Token-budget-aware prompting (TALE) | ≈67% fewer reasoning tokens with under 3% accuracy loss | Preprint | [6] |
| Learned prompt compression (LLMLingua) | Up to 20× compression with small accuracy loss on reported benchmarks | Peer-reviewed (EMNLP 2023) | [4] |
| Compact tabular formats | CSV most token-efficient; HTML ≈3× the tokens | Benchmark preprint | [19] |
| Progressive disclosure of skills and knowledge | Unused material never enters context; only names and descriptions are resident | Vendor engineering description | [10] |
| Compaction and context editing | Removes stale turns and tool results; savings workload-dependent | Provider documentation | [16] |
| Effort calibration | Lower effort reduces all output tokens (text, tool calls, thinking) with some capability trade-off | Provider documentation | [15] |
Two patterns stand out. First, the largest reported reductions are structural: they change what enters the context (deferred tools, data processed in code, progressive disclosure) rather than how it is worded. Second, linguistic techniques - compression, terser instructions, concise reasoning - offer real but more variable gains and carry a greater risk of removing information the task needs.
Caching deserves particular mention because it is nearly free to adopt but easy to defeat. A cache matches only an identical prefix; a timestamp, request identifier or reordered tool list placed before the cache boundary silently prevents every hit[13]. Changing reasoning or effort settings between requests can likewise invalidate cached conversation turns[13, 15].
6. A practical method
The literature supports a measurement-first sequence, ordered here from lowest to highest risk to quality:
- Measure. Record input, cached, output and reasoning tokens per request, and attribute them to components (tools, system prompt, history, retrieval, tool results, output). Establish an evaluation set and a quality score before changing anything.
- Restructure for caching. Order content from most to least stable and place the cache boundary after the last unchanging block; verify that cache reads appear.
- Move asynchronous work to batch processing.
- Load on demand. Defer or search tools, remove unused integrations, and adopt progressive disclosure for skills and reference material.
- Keep intermediate data out of the model's path. Filter, aggregate and paginate tool results, or process them in code and return only conclusions.
- Manage long sessions. Compact or clear stale context before quality declines, persist key facts to notes, and delegate exploration to sub-agents with clean contexts.
- Calibrate output. Specify format and length, set a hard output cap, lower reasoning effort for routine work, and route simple requests to smaller models.
- Compress last, and only reference material - never the task definition - re-evaluating quality after each change.
Apply this with an AI agent
The Token efficiency for AI models skill encodes this method - measurement, provider caching rules, context management for agents, output and effort control, and a review checklist - so a coding agent can audit and improve your application directly. It is also part of the AI Efficiency bundle.
7. Limitations
- Several of the largest effect sizes come from provider engineering reports on the providers' own workloads and have not, to our knowledge, been independently replicated.
- Preprint results (Chain of Draft, TALE, the overthinking study) were measured on specific benchmarks and models; their transfer to production tasks and newer models is uncertain.
- Prices, cache rules and model defaults change several times a year. Figures here were checked against provider documentation in October 2026 and should be re-verified before use.
- Token counts are tokenizer-specific; savings measured on one model family do not carry over exactly to another.
- The sources measure tokens and accuracy on defined tasks; effects on user-perceived quality, safety and maintainability are less studied.
8. Conclusion
Token waste in LLM applications is concentrated, measurable and, in large part, avoidable. Its principal sources are structural - what is loaded into context and when - and the most effective remedies are correspondingly structural: caching, on-demand loading, processing data outside the model and managing session length, complemented by calibrated reasoning and output. Because excess context also degrades accuracy, these measures are better understood as context curation than as cost cutting. The appropriate stance for practitioners is empirical: measure where tokens go, apply the lowest-risk interventions first, and accept a reduction only when an evaluation shows quality is preserved.
References
- [1]Liu, N. F., Lin, K., Hewitt, J., Paranjape, A., Bevilacqua, M., Petroni, F., & Liang, P. (2024). Lost in the Middle: How Language Models Use Long Contexts. Transactions of the Association for Computational Linguistics, 12, 157-173. https://arxiv.org/abs/2307.03172
- [2]Hong, K., Troynikov, A., & Huber, J. (2025). Context Rot: How Increasing Input Tokens Impacts LLM Performance. Chroma technical report, July 2025. https://trychroma.com/research/context-rot
- [3]Petrov, A., La Malfa, E., Torr, P., & Bibi, A. (2023). Language Model Tokenizers Introduce Unfairness Between Languages. Advances in Neural Information Processing Systems 36 (NeurIPS 2023). https://arxiv.org/abs/2305.15425
- [4]Jiang, H., Wu, Q., Lin, C.-Y., Yang, Y., & Qiu, L. (2023). LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Models. EMNLP 2023. https://arxiv.org/abs/2310.05736
- [5]Xu, S., Xie, W., Zhao, L., & He, P. (2025). Chain of Draft: Thinking Faster by Writing Less. arXiv:2502.18600. https://arxiv.org/abs/2502.18600
- [6]Han, T., Wang, Z., Fang, C., Zhao, S., Ma, S., & Chen, Z. (2024). Token-Budget-Aware LLM Reasoning. arXiv:2412.18547. https://arxiv.org/abs/2412.18547
- [7]Chen, X., et al. (2024). Do NOT Think That Much for 2+3=? On the Overthinking of o1-Like LLMs. arXiv:2412.21187. https://arxiv.org/abs/2412.21187
- [8]Vaswani, A., et al. (2017). Attention Is All You Need. Advances in Neural Information Processing Systems 30. https://arxiv.org/abs/1706.03762
- [9]Anthropic (2025, September 29). Effective context engineering for AI agents. Anthropic Engineering. https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents
- [10]Anthropic (2025, October 16). Equipping agents for the real world with Agent Skills. Anthropic Engineering. https://www.anthropic.com/engineering/equipping-agents-for-the-real-world-with-agent-skills
- [11]Anthropic (2025, November 4). Code execution with MCP: Building more efficient agents. Anthropic Engineering. https://www.anthropic.com/engineering/code-execution-with-mcp
- [12]Anthropic (2025, November 24). Introducing advanced tool use on the Claude Developer Platform. Anthropic Engineering. https://www.anthropic.com/engineering/advanced-tool-use
- [13]Anthropic. Prompt caching. Claude Developer Platform documentation (accessed October 2026). https://platform.claude.com/docs/en/build-with-claude/prompt-caching
- [14]Anthropic. Pricing. Claude Developer Platform documentation (accessed October 2026). https://platform.claude.com/docs/en/about-claude/pricing
- [15]Anthropic. Effort. Claude Developer Platform documentation (accessed October 2026). https://platform.claude.com/docs/en/build-with-claude/effort
- [16]Anthropic. Context editing; Compaction overview. Claude Developer Platform documentation (accessed October 2026). https://platform.claude.com/docs/en/build-with-claude/context-editing
- [17]Anthropic. Batch processing. Claude Developer Platform documentation (accessed October 2026). https://platform.claude.com/docs/en/build-with-claude/batch-processing
- [18]OpenAI. Prompt caching. OpenAI API documentation (accessed October 2026). https://developers.openai.com/api/docs/guides/prompt-caching
- [19]TQA-Bench: Evaluating LLMs for Multi-Table Question Answering with Scalable Context and Symbolic Extension (2024). arXiv:2411.19504. https://arxiv.org/abs/2411.19504
Product and company names are trademarks of their respective owners and are used only to identify the subject matter. AiSkillz and CodeCraft LLC are not affiliated with or endorsed by them.