An AI agent that works for hours piles up everything: searches, documents it has read, code it has tried, errors, half-finished answers. All of that fills its working memory, the context window, and once it’s full somebody has to decide what stays and what gets summarised. Today that decision almost always belongs to the software wrapped around the model. A team at NVIDIA has tried the opposite, letting the model choose for itself, and the results of their study, posted to arXiv on 25 November, are as striking as they are uneven.
The problem: agents drowning in their own history
The longer an agent’s history grows, the harder it becomes for it to find and use what actually matters, an effect the industry has taken to calling “context rot”. The usual fix is compaction: once usage crosses a threshold, the system summarises what came before and carries on. It’s simple, but the summary is written blind, and it can throw away exactly the detail the task needed later.
The alternative the researchers study is to hand the model a small context API inside NOOA, NVIDIA’s open-source agent harness. With it, the model can inspect its history, replace a stretch of events with a summary it writes itself and, if it needs them again, pull back the originals, which are archived rather than deleted.
How they tested it
They used two benchmarks. Databricks’ OfficeQA Pro v2 asks 90 questions about US federal receipts and spending, which the agent has to answer by searching and reading a large document corpus. MLE-bench Lite bundles 22 Kaggle competitions where the agent must explore data, write code and submit predictions.
In the classic mode, the harness summarises at 80% of the context budget and keeps the initial instructions plus the ten most recent events. In the new mode, the model gets the API, a live gauge of how much context it has used, an instruction to consider compacting only from 85%, and a warning as it nears the limit. Budgets ran from 8,000 to 512,000 tokens: the smaller the budget, the more it mimics a long task. Four models were tested with no extra training: GPT-6.1 Sol, Kimi K3, DeepSeek V4 Pro and Claude Opus 5.5.
The jump: from 21% to 56%
The headline number: with a 32,000-token budget on OfficeQA Pro v2, GPT-6.1 Sol goes from 21% to 56% correct once it manages its own context. The tighter the budget, the bigger the gains, and they fade when there’s room to spare. On MLE-bench Lite the effect is much smaller and only shows up at the tightest budgets, probably because those tasks need far less context.
Kimi K3 shows the other side of the coin: savings. At 32,000 tokens it processes 41% fewer cumulative input tokens (36 million versus 62 million) and still scores slightly higher (43% versus 41%). At 64,000 tokens it uses about 11% fewer and climbs from 52% to 57%.
Not every model gets it
Same tool, same instructions, very different behaviour. GPT, Kimi and DeepSeek use the API in 42–53% of tasks; Claude Opus 5.5 in just 4%. Warned that it’s running out of room, Opus tends to wrap up and give an answer rather than compact. GPT, by contrast, shrinks its context the most per compaction (a median of 3.7 times) and goes back to its archive after 19% of them.
The authors also describe a kind of “context anxiety”. Remove the instruction to wait until 85% and some models compact far too early: Kimi starts with just 29% of its budget in use (previously around 84%) and DeepSeek at 40% (previously 83%). With large budgets, that costs them roughly 8 points against the classic approach.
There’s an infrastructure angle too. When the history is edited, inference servers usually recompute everything after the change. With a prototype that reuses that already-computed part, tested on Qwen3.6-27B, the team cut input-processing compute by 4–15% per request, with no measurable change in accuracy.
How much weight to give it
This is a preprint, not peer-reviewed, and the authors list its limits themselves: small benchmarks (90 questions and 22 competitions), context pressure simulated by shrinking the budget, and four models whose training they can’t see. Their explanation for GPT’s stronger showing, that it may have been trained for something similar, is a conjecture rather than a finding. And the compute saving was measured on a single open model, not as real-world cost or latency.
Why it matters if you build with agents
For any business running agents over long documents, such as contracts, case files or invoices, the takeaway is practical: how an agent’s memory is managed is no longer a minor implementation detail. It’s a design decision that can swing both the results and the bill. And there’s no one-size-fits-all answer: what works brilliantly with one model may fall flat with another, so it pays to test each combination on your own cases before it goes anywhere near production.
If you’re thinking about an agent that works with your company’s documents and want it designed properly, let’s talk it through in a free first meeting.



