A 2B computer-use agent went from 57 percent task success to 71 percent this week, and nobody touched the weights. Same model. Same tasks. The team changed where memory goes and how screenshots get read, and vision model calls fell 2.0x, tokens fell 2.3x, latency fell 1.8x.
Read that second sentence carefully, because two measurements are hiding in it. The 57 to 71 percent success lift and all three ratios come from AgOS on a 300-trial consumer AI PC suite, an RTX 4060 with 8 GB of VRAM and an Intel NPU, on a separate 30-task set. None of them come from the RTX 6000 Ada trace that produced the memory numbers below. The paper carrying both was posted to arXiv on December 1, 2026.
The reason is a measurement almost nobody running a local agent has taken. On device, the static weights are no longer the biggest thing in VRAM. Under long-context serving engines, the state around the weights is.
Call it serving state: everything resident in memory while the model runs that is not the weights. KV cache, encoder activations, the screenshot buffer, the runtime's allocator, its scheduler, its pinned memory, its compiled graphs.
Here is the same definition written to be lifted whole: serving state is all non-weight GPU and system memory allocated during inference, meaning the KV cache, the vision encoder activations, the screenshot buffers, and the runtime and graph overhead around them. It decides whether a local agent fits on consumer hardware, because every line of it grows while the weights sit still.
The model fits. Everything the model needs in order to think does not.
You sized your machine by parameter count. You read our local hardware guide in October, which said to match VRAM to the checkpoint before you look at a single benchmark, and you did exactly that. That was the right move for a chatbot, because a chatbot's memory bill is the weights plus a modest context. It breaks the moment a multi-step visual loop starts writing into that same VRAM.
The source is a NeurIPS 2026 workshop paper from a Dell research team, arXiv 2612.02758, by Samreen Anjum, Muhammad Saad, Ibrahim AbuAlhaol and Gwenael Poitau. They instrumented the UI-TARS computer-use family on OSWorld across 369 tasks on H100 servers and on an RTX 6000 Ada workstation, logging VRAM composition, token growth, prefill latency and GPU utilization at every step. Their prototype, AgOS, pairs a 2B agent with NPU intent routing, vector task memory and action replay. Every number below comes from that trace.
THE LEDGER NOBODY KEEPS
Here is the budget you never wrote down, which I call the Agent Memory Ledger. Five lines.
- Weights: the number on the box, the only line anyone budgets.
- KV cache: grows with every step, collapses at turn boundaries, and pays for every screenshot you keep in history.
- Encoder activations: the cost of turning pixels into tokens, paid again on every new frame.
- Screenshot buffer: the frames waiting to be encoded, plus the pre-encoded copies sitting in the prompt.
- Runtime overhead: the serving framework itself, its allocator, its scheduler, its pinned memory, its CUDA graphs.
Now the measurement. On the RTX 6000 Ada workstation the trace covered, total GPU memory during serving was 34.0 GB, or 71 percent of the card. Model weights were 15.6 GB, only 46 percent of that footprint. The other 18.4 GB was non-weight state: a 10.3 GB pre-allocated KV cache pool plus 8.1 GB of activations, CUDA graphs and runtime buffers that the engine log does not attribute to any single component.
That pool holds 193,040 tokens in 10.3 GB, which works out to roughly 53 kilobytes of VRAM per token of context in decimal GB, so nobody has to argue about KiB. Context is a line item you buy per token, forever, and it never gets cheaper.
That residual is the honest part of the paper, and it is why I trust it. They could not fully explain 8.1 gigabytes of their own footprint. Anyone who hands you a clean memory model for agent serving has not measured it.
Four of the five lines grow while the agent runs. One does not. You budgeted for the one that holds still.
WHAT THE TRACE SHOWED
Three findings came out, and each one breaks an assumption you are probably carrying.
First, the composition is inverted. Non-weight serving state exceeded the static weights in VRAM, 54 percent against 46. On a server that just means a bigger card. On a laptop it means the thing you actually bought has already been outvoted.
Second, screenshot re-encoding ate the context window. On a six-step task, opening the calculator app, each step added roughly 11.9 thousand prompt tokens because the full-resolution frame was re-encoded, while the model's own completion text stayed near 100 tokens. Within six steps the prompt held 56 percent of a 128K window. To stop the run from crashing out of memory, their serving configuration capped history at a 10-screenshot sliding window. At that same growth rate on a 32K context, you get room for about two historical frames. Uncapped, the arithmetic runs out fast: at 11.9 thousand tokens a step, roughly ten to eleven steps of screenshot tokens alone fill a 128K window, and a longer task dies of screenshots rather than of model size. That is why the harness caps history at ten frames, and a cap on history is a cap on how long a task can run.
Third, compute is duty-cycled. Brief bursts near 100 percent GPU utilization during visual prefill and generation, then multi-second idle gaps while the operating system executes the click and the desktop re-renders. That distinction matters, because the tempting reading is wrong. The idle is not secret memory movement and it is not the GPU thinking. It is your agent waiting for the machine it is driving, and no serving optimization removes it. What you can do is refill it with work, which is exactly what the next section does.
On December 3, 2026, Tether AI Research shipped VisionPsy2 at 850M and 490M parameters for phones and edge devices. Their stated reason is the same wall from the silicon side: 2B to 4B vision models overheat mobile chips, drain battery and add multi-second response delays. The 850M answers in under 4 seconds using 1.2 GB of peak memory on a Galaxy S26+. Smaller model, same growth problem, if the prompt keeps inflating.
THE CONTEXT CLIFF AT STEP SIX
Say you have never opened a trace. Here is the whole problem in one image.
An agent that sees the screen encodes the entire frame at every step. A single 512 by 512 screenshot is cheap. Sixty of them in a row is a context window. By step six your model is spending its attention on a photo album of nearly identical desktops, and the instruction that says what to actually do is buried underneath them.
This is the argument from our October note on screenless control packets, now with a memory trace stapled to it. Pixels are not just the slow way to talk to an agent. They are the reason your KV cache is the biggest line in the ledger. Every frame you keep in context is a frame you pay to attend to on every future step, and the paper's 10-frame cap exists because the alternative was a crash.
THE THREE-RUNG LADDER
Here is the framework to carry out of this, which I call the Serving State Ladder. Three rungs, in order of effort, each traceable to something AgOS actually did.
- Rung 1, route cheap intents off the big model. A small intent classifier, or the NPU sitting idle next to your GPU, decides whether this step needs the 2B agent at all. Most steps do not. In AgOS, per-trial vision model calls fell from 8.75 to 4.30, and some app launches resolved with zero model calls because a deterministic launch path handled them.
- Rung 2, store task memory as vectors, not context. The agent's working notes do not belong in the prompt. Put them in a store the agent queries when it needs them. That is the thesis of our note arguing agent memory is a dataset, not a service, and AgOS built it alongside action replay, which replays a known-good click sequence instead of asking the model to rediscover it.
- Rung 3, diff the screens instead of re-encoding frames. Encode only the changed region and send that. The context stops growing at every step, and the KV cache stops being the bill.
One more thing before the caveat. Headline efficiency numbers routinely blend fewer calls with smaller payloads, so an aggregate ratio can never tell you which rung did the work. You need per-call and per-step telemetry, not an average.
Now the honest caveat, and it is the part I would want a reader to check. The 2.3x token cut is mostly a call-count win, not a prompt-size win. The authors say so plainly: tokens per vision call fell only about 12 percent, so the 2.3x comes from issuing 2.0x fewer calls. Vector memory reduces what each call carries; routing reduces how many calls happen. Both are real, and they are not the same mechanism.
The 57 to 71 percent result is one paper's separate 30-task suite, 300 trials, on a consumer Dell AI PC with an RTX 4060 at 8 GB and an Intel NPU. It is not a guarantee for your workload. The mechanism is the deliverable, not the number.
WHY YOUR BENCHMARK LIED
Your benchmark measured a machine your user will never touch. An H100 has the headroom to absorb a bloated prompt without anyone noticing. A laptop and a phone do not. The model that scored 80 percent on a server can score 50 on the hardware your customer actually owns, and the gap is serving state, not intelligence.
The paper states this as its own conclusion: on-device agents should be evaluated on memory, context and latency traces, because pass rates measured on datacenter GPUs say nothing about whether the system runs on a laptop.
Matching VRAM to a checkpoint, which our local hardware note covered in October, was step one. Measuring what fills the VRAM after the model loads is step two. Almost everyone stopped at step one and shipped.
WHAT TO DO TODAY
- Log VRAM composition at step 1, step 5 and step 20 of one real run. Write down all five ledger lines, not just the weights. Pass if the non-weight lines together stay below the weights, because anything above means the serving engine owns your card, not the model.
- Count how many full frames each step encodes. Encoding more than one full frame per step when nothing on screen changed is an immediate bloat signal, and more than one at any point is your context cliff.
- Log GPU utilization across a 20-step run. Bursts followed by multi-second gaps mean your agent is waiting on the operating system, so schedule background work into them. Pass if idle stays under 20 percent of wall clock, since above that you are paying full price for the OS.
- Put a tiny intent classifier in front of the agent and count the steps it diverts. Diverted steps divided by total steps is your bypass rate, and anything under 30 percent means the classifier is not yet earning its slot.
- Move the agent's task notes out of the system prompt and into a vector store. Measure token growth per step before and after. Pass if tokens per step stay flat across twenty steps instead of climbing.
- Switch to diff-based screenshot encoding, then re-run your success suite on the target device, not on a server. Pass if context growth per step drops to a fraction of the first run and success lands within a few points of the server number.
Do those six things and you will know more about your agent's real cost than the benchmark that approved it.
KEY TAKEAWAYS
- Weights are one line of five. On the traced workstation they were 46 percent of serving VRAM, and they are the only line that holds still.
- Screenshots compound. Re-encoding a full frame per step costs about 11.9 thousand tokens, which fills a 128K window in roughly eleven steps, and every one of those tokens stays in the KV cache.
- Idle GPU time is real wall-clock wait. The OS is executing the click and repainting the screen, and no serving trick removes it, so schedule work into it.
- Routing, external vector memory and diff encoding solve three different bottlenecks. Fewer calls, smaller payloads and a context that stops growing are not the same win, which is why you measure each one separately.
THE UNCOMFORTABLE QUESTION
You bought the GPU for the model. The model fits. The agent does not.
Every agent team quoting a benchmark right now is quoting a number from a machine their user will never touch. So here is the question I would put to any of them: which line of your ledger have you actually measured, and how long are you going to keep blaming the weights for a memory problem the weights never caused?
SOURCES
arXiv, Beyond Binary Benchmarks: Telemetry-Grounded Evaluation of On-Device Computer-Using Agents, Samreen Anjum, Muhammad Saad, Ibrahim AbuAlhaol, Gwenael Poitau, NeurIPS 2026 SLMs for Agentic Systems workshop, Dec 1, 2026
Hugging Face Blog, VisionPsy2: Pushing the Sub-1B Frontier for On-Device VLMs, Tether AI Research, Dec 3, 2026
PhantomByte, Your Agent's KV Cache Dies at Every Turn Boundary
PhantomByte, Your Agent Does Not Need Eyes. Screenless Control Cut a 40-Minute Run to Zero Deaths.
PhantomByte, Local AI Hardware Guide: Match VRAM Before Benchmarks
PhantomByte, Your Agent's Memory Is a Dataset, Not a Service
Get More Articles Like This
Getting your local agent stack right is just the start. I'm documenting every mistake, fix, and lesson learned as I build PhantomByte.
Subscribe to receive updates when we publish new content. No spam, just real lessons from the trenches.
Build Real AI Infrastructure
PhantomByte teaches you to build real AI infrastructure yourself: local AI stacks, autonomous agents, multi-agent orchestration, web scraping, and custom tools. Step-by-step PDF tutorials you download, follow, and deploy. No subscriptions. No fluff. Just skills that ship.