TRACE paper cuts unused tool schemas from AI agents' KV cache
An arXiv paper presents TRACE, a method for compressing the part of an agentic language model's KV cache that holds tool schemas. The authors argue that agents equipped with many tools spend most of this cache on those schemas, and that this schema-dominated portion sets the practical ceiling on compression. Existing compression methods, they say, are commonly tuned against cheap proxies such as perplexity, and it has remained unknown how much of the schema cache a turn actually needs to preserve task success.
Their starting measurement comes from the Berkeley Function Calling benchmark. A turn there exposes about 28 tools, while its reference calls invoke an average of 1.7. The schema cache of the uninvoked tools occupies 77% to 86% of the prefix. Removing it at prefill leaves task success essentially unchanged, whereas removing the same number of tools at random is catastrophic.
TRACE turns that finding into three parts. A lightweight predictor ranks the tools for the current turn. A keep rule then prefills the turn's cache with only the schemas of those tools. A conformal layer calibrates how many to keep against a risk budget. To the authors' knowledge, this calibration provides the first distribution-free guarantee on the task success an agent loses to cache compression.
On results, the best-effort operating point retains 17% of the base prefix and 25% of the long-context prefix, at a cost of 3 to 5 points. At a risk budget of α = 0.10, the certificate selects a compressed option from the deployed family of keep sizes in all four model-context settings, giving a reduction of 3.9 to 6.2 times from eviction alone. The authors conclude that the relevance of tools to each turn, rather than the volume removed, is what makes aggressive schema compression safe, and that calibration is what makes it certifiable.
Key facts
- On the Berkeley Function Calling benchmark, a turn exposes about 28 tools but its reference calls invoke 1.7 on average.
- Schemas of uninvoked tools take up 77% to 86% of the prefix; removing them at prefill leaves task success essentially unchanged, while same-count random removal is catastrophic.
- TRACE combines a lightweight tool-ranking predictor, a keep rule applied at prefill and a conformal layer that calibrates the keep size to a risk budget.
- The best-effort point keeps 17% of the base prefix and 25% of the long-context prefix at a cost of 3 to 5 points.
- At a risk budget of α = 0.10, certified compression reaches 3.9 to 6.2 times from eviction alone across four model-context settings.
Why it matters
According to the authors, tool schemas take most of the KV cache in agents that carry many tools, so they limit how far that cache can be compressed. The paper ties compression to task success instead of proxies such as perplexity. Its new element is the calibration step, which the authors describe, to their knowledge, as the first distribution-free guarantee on the task success lost to cache compression.
Who it affects
The work is aimed at agentic language models equipped with many tools. It is most relevant to people who build or serve such agents and to researchers working on KV cache compression, especially where each turn exposes far more tools than it ends up calling.
How to use it
The recipe described has three steps: rank the current turn's tools with a lightweight predictor, prefill the cache with only the schemas the keep rule retains, and calibrate the keep size against a chosen risk budget. The paper reports two ways of reading the trade-off: a best-effort point with a cost of 3 to 5 points, and a certified setting at α = 0.10 with a reduction of 3.9 to 6.2 times. No code, release or production deployment is mentioned in the abstract.
How solid is it
These are the authors' own results in an arXiv paper, and the only benchmark named in the abstract is Berkeley Function Calling. The abstract gives no absolute task success rates, does not name the models used in the four model-context settings or give the context lengths, and does not describe the predictor's architecture, size or overhead. No named existing compression methods are compared in it.
Risks and caveats
Aggressive compression is not free: the best-effort point carries a cost of 3 to 5 points. Which tools get dropped matters a great deal, since random removal of the same count is reported as catastrophic. The 3.9 to 6.2 times figure refers to eviction-only reduction, and the abstract reports no speed, latency, throughput, memory or monetary savings. The guarantee is stated relative to a risk budget, so it should be read as a bound tied to that setting rather than a promise of zero loss.
“Per-turn tool relevance, not removed volume, is what makes aggressive schema compression safe, and calibration is what makes it certifiable.”
— The paper's authors, in the arXiv abstract