Architecture by Rajnish Choubey; tests by Shalendra Gaur (with an AI assistant as a tool: this article was written with AI assistance and every number is read from a saved file in the repository linked at the end). AXI is a layer on the host side, for the company that runs the model; the model is unchanged and every claim here is about the state the host holds.
Rajnish Choubey's notes on AXI are written in the language of civilisations and stories: a gate that fires only when two inputs are live, a tree that cannot survive taking the Sun out of the Solar System, a library distilled to what fits in a palm. Read at the level of tensors, each of them is a property of the machine that runs the model.
What a tensor can hold
The KV cache holds a key and a value for every token in every layer, and each new token attends over all of them with weights that sum to one. Four things follow. None is a defect; it is how attention works.
- A fact has no address, only a position in the stream.
- There is no local delete. Dropping a token's entries changes the weights of every token left, and every later token has already read the dropped one in every layer, so its influence stays. This is "Universe − Sun" inside the cache.
- Nothing in it can be tested for equality. Attention is a weighted average, and an average is approximate by construction.
- It costs by length. Memory grows linearly with tokens (12,288 bytes a token in this repository's TPU test array), prefill compute grows with the square of the length, and every decoded token reads the whole cache.
A kept chat asks this structure to be a ledger. It is a very good interface and a poor ledger.
What a host can hold
AXI's state is a typed graph on the host. Nodes are named by a coordinate, not by a position in a token stream, so editing one item changes nothing about how the others are addressed and the same state can be shown to the model in any order. The repository's reference attention module computes its scores from coordinates with no sequence position anywhere, and a test confirms it is exactly permutation-equivariant. Admitting a change is an exact test: a membership check and a look-up of the edges that touch a node. A delete that would leave an attached edge behind is refused with a typed reason, dangling, and a fixed rule repairs it. The same proposal on the same state gets the same verdict.
Where the two meet
- The prompt. It is rebuilt from the state at every step, so what the cache holds follows the size of the state, not the step number: a mean of 648.8 tokens in the first tenth of a 4,000-step run and 755.4 in the last.
- The logits. The host's reading of a request becomes a mask over the vocabulary before a token is chosen. The reference decoder lifts a byte-level grammar to a token vocabulary: a 37-state grammar over 50,000 tokens needs
allowed[state, token]tables of about 5.6 megabytes. In the L4 runs below the engine masked the logits with a grammar that names the coordinates. - The commit. In the reference pager an admitted change is a copy-on-write commit with rollback, all-or-nothing across tensor-parallel ranks. Its audit requires free, mapped and in-flight blocks to add up to the capacity, so a leaked or doubled block fails it, and a page is addressed by the node's coordinate.
The model is the interface: continuous, high bandwidth, entered from any wording. The held state is the kernel: discrete, exact, checked. A change goes through only when both are live.
What it measured
- The bill. On Gemini 3.8 Flash, $0.0014 per verified step with AXI against $0.0870 for a kept chat on a cold cache and $0.0148 warm, with the logged total of $29.09 against $29.45 on Google's own billing report (+1.25 percent).
- The state. In the first 400 requests the model's replies were right 98% of the time. Applied as written, the state was exact on 85 of 400 steps. With AXI it was exact on 400 of 400. Over 4,000 steps the held state was exact on all 4,000.
- The summary. On a 14B model, none of the 22 state summaries the model wrote equalled the true state.
- The tokens. 2,824 prompt tokens at every step of a 1,500-step job, against a mean of 476,835 for the kept chat (169 times fewer).
- One L4. With a 7B model and vLLM 0.31.0, 256 sessions ran at once: 25,557 steps, every one exact, 105,230 exact steps per GPU hour, 2.458 joules per exact step.
- One TPU v6e chip, memory alone. 927 sessions of AXI-step length against 5 at the kept chat's mean length. That count is arithmetic on bytes per token and follows the 169 times token ratio; no model was run for it.
The usual way to give a model a long task is to make the tensors carry the state: longer contexts, bigger caches, summaries the model writes. That pays linear memory and quadratic prefill and still ends with an approximate state. Moving the exact part to where equality is possible makes the cost follow the state, and the state is exact. It fits any LLM application that holds state, short jobs and long, from the first step.
A test you can run
Replay the saved 4,000-step run without a key or a GPU:
git clone https://github.com/gaurshalendra2412/axi-runtime cd axi-runtime/python python3 quickstart_replay.py It prints 4,000 of 4,000, 3,954 of 4,000, 85 of 400 and 4.5 times. The L4 sweep and its saved file are on this page: https://github.com/gaurshalendra2412/axi-runtime/blob/main/docs/SESSIONS_PER_CHIP_TEST.md and the bill check is here: https://github.com/gaurshalendra2412/axi-runtime/blob/main/docs/BILLING_CHECK.md

