What serving fleets pay for agent history, and the 620-token prompt that stays flat
AXI is Rajnish Choubey's architecture for the company that runs the model: the host holds the exact state and the model stays unchanged. Tests and measurements by Shalendra Gaur. Every number below links to its source.
AXI is Rajnish Choubey's architecture for the company that runs the model: the host holds the exact state and the model stays unchanged. Tests and measurements by Shalendra Gaur. Every number below links to its source.
Agent traffic has changed what a serving fleet has to carry. An agent re-sends its whole history on every call, pauses for tools, and comes back. Over the last two years the groups that build serving systems have measured what that costs, and the figures are large.
- Meta (Crossflow, arXiv 2609.27085, 22 Sep 2026): fixed prefill and decode pools leave up to 17% of capacity unused; letting decode nodes lend compute to prefill raises geometric-mean token throughput by 16.2% to 17.4%, up to 43.4% at high load.
- Berkeley, Stanford, Tsinghua (Continuum, arXiv 2511.02230): pinning an agent's KV cache across tool calls cuts delay by 1.12 to 3.66 times and raises throughput by 1.10 to 3.22 times; on a real SWE-agent workload, delay fell by up to 8.18 times.
- InferCept (ICML 2024, arXiv 2402.01869): restarting after every tool call recomputes context already processed, 37% to 40% of total forwarding time; fixing it gives 1.6 to 2 times the throughput.
- Mooncake, the platform behind Kimi (arXiv 2407.00079): a cache-centric architecture over idle CPU, DRAM and SSD lets Kimi handle 75% more requests.
- Nanyang Technological University and Harvard (arXiv 2611.02543): a ten-minute +100% surge cut the prefix hit rate from 0.95 to 0.27 and left median first-token time near 60 s after the surge had passed.
Every one of these is a fleet-side answer to the same fact: the history is long, and it gets re-sent, stored, moved and recomputed. They are good engineering, and AXI sits on the other side of the same problem.
AXI: send less, because the state is held exactly
Rajnish Choubey's architecture changes what each step has to send. The host holds the exact state of the job as data. The model proposes one change per step. A deterministic gate admits it or refuses it. The next prompt is rebuilt short from the held state, so its size follows the state and not the number of steps already run. The model is unchanged, and it is for whoever runs the model: short jobs and long ones, from the first step.
For a serving fleet that is a smaller prefill per step and a smaller footprint per session, which is exactly what the systems above spend scheduling and storage to manage.
What it achieves, measured
- A prompt that does not grow. A 7B model, 80,000 steps in four jobs of 20,000: the held state was exactly right on 80,000 of 80,000, and the prompt stayed near 620 tokens, never above 660. Test 43
- Same engine, same cache, less computed. vLLM 0.31.0 with prefix caching on: over the same 108 steps the kept chat computed 1.78 times the prompt tokens and took 1.51 times the seconds per step, and in a 32,768-token window the kept chats stopped at 108 to 235 steps while AXI ran all 1,500. Test 42
- 169 times fewer tokens a step, faster first token. Gemini 3.8 Flash, 1,500 steps: 2,824 prompt tokens a step against 476,835 a turn for the kept chat; median first token 2.27 s against 9.13 s. Test page
- 84.8 times fewer tokens on a conversation job: 1,177 prompt tokens a turn against 99,809. AGENTX_NOTE
- More sessions per chip. 256 sessions at once on one NVIDIA L4 with a real 7B model, 25,557 steps all exact, 105,230 exact steps per GPU hour, 71.46% of prompt tokens served from the cache. In memory alone, one TPU v6e chip held 927 AXI-sized sessions against 5 with a kept chat. Test 38, TPU test
The cost that counts is cost per completed task
Princeton's AI Agents That Matter (arXiv 2407.01502) argued that accuracy alone leads to needlessly costly agents, and the Holistic Agent Leaderboard (ICLR 2026, arXiv 2510.11977) put numbers on it: 21,730 agent rollouts across 9 models and 9 benchmarks cost about $40,000, and in 21 of 36 combinations more reasoning effort gave equal or lower accuracy.
AXI's number is the price of one verified step. On 4,000 Gemini 3.8 Flash requests, a step with the right state cost $0.0012 with AXI against $0.0052 with replies applied as written, 4.5 times less (page). At the provider's own rates, one verified step of a 400-turn job cost $0.0014 with AXI, $0.0148 with the chat kept and its cache warm, and $0.0870 with the cache cold (BILLING_CHECK).
Memory as managed state
MAGE (arXiv 2606.06090, June 2026) treats an agent's memory as a state tree instead of a pile of retrieved text, and reports 7.8 to 20.4 points more task success than Mem0, HippoRAG2 and MemoRAG, with 55.1% fewer tokens than full context. That is the direction AXI takes, on the host and around any model: the state is exact data with a check on every change. In Test 44 (a 14B model, 600-step jobs) the state the host held was the oracle's on every step against a kept chat, a generic summary, a state-writing summary, a sliding window and retrieval; of 22 summaries that wrote the state out, none equalled the oracle's. Test 44
Where the numbers come from
Every paper figure above is that group's own measurement of its own system, with the link beside it. Every AXI figure comes from the test page linked beside it, and the replay below recomputes one of them on your machine. The papers and AXI's tests sit side by side, with what each measures, on one page: What other people measured, next to what AXI measured.
Check it yourself
No key, no GPU, about 3 seconds. It replays the saved replies of the 4,000-step Gemini run and recomputes the held state with the repository's own code:
git clone https://github.com/gaurshalendra2412/axi-runtime
cd axi-runtime/python
python3 quickstart_replay.py
If you run an inference fleet or an agent platform, tell us where it goes next. The repository is github.com/gaurshalendra2412/axi-runtime; the one-page version for companies that run models is AXI_COMPANY_BRIEF.md.
AXI: architecture by Rajnish Choubey; tests and measurements by Shalendra Gaur.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.