Token Optimization and Context Window Management in Multi-Agent AI Workflows
Dvir Shamay
Key points
From the paper's conclusion- Multi-agent AI workflows are limited not only by model quality but by token cost, latency, and context-window quality.
Abstract
Multi-agent AI workflows are limited not only by model quality but by token cost, latency, and context-window quality. This paper presents a practitioner framework for token optimization and context-window management, grounded in an internal production dashboard that extracts structured work items from meetings, email, and chat with LLMs and routes summaries across workstreams. Six patterns are described: context stratification, fetch-once/process-locally architecture, schema-contracted prompts, token-aware fallback chains, semantic caching, and inter-agent communication compression. In production they cut measured cold-load latency to 61-116 seconds (six timed runs) from an operational baseline of roughly 3.5-10.5 minutes, with an estimated 60-70% token reduction. It also reports a controlled context-composition study: 2,420 confirmatory trials across 11 model configurations, using 661 anonymized workplace items scored for relevance. Holding the prompt at a fixed ten items, replacing some high-relevance items with same-domain low-relevance items improves the model's relevance-score concordance on the target items, versus high-relevance items only; we call this relevance-contrast context. In the all-11 paired analysis, the 50:50 signal/noise condition improved relevance accuracy by +0.077 over the 100% condition (naive 95% CI [+0.056, +0.098], Cohen's d = 0.49, Holm-adjusted p < .001, n = 220). These cells are not independent; by the nine model families the effect is +0.084 (95% interval [+0.064, +0.103]), reported as a within-corpus descriptive comparison, not a population inference. A Fusion-of-N follow-up found that learned synthesis did not beat the mechanical set union of item IDs. The contribution is a measured engineering layer between model research and production agent practice: repeatable patterns and evaluation methods for faster, cheaper, more reliable workflows.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Total Cost of Agency: Exact Attribution of Memory Injection Cost in Multi-Agent LLM WorkflowsarXiv · 2026
- Tools Need Not Speak in Text: Latent Context Compression for AgentsarXiv · 2026
- Same Context, Different Agents: A Behavioral Study of Semantic Layers, Orchestration and Compaction in Data AgentsarXiv · 2026
- Orchestrated multi agents sustain accuracy under clinical-scale workloads compared to a single agentnpj Health Systems · 2026
- TRACER: Per-Tool Context Retention for LLM Agents via Consequence-Attributed Reinforcement LearningarXiv · 2026
- Not Every Input Needs Everything: Unifying Expert Gating, Model Cascades, and Agent OrchestrationarXiv · 2026