Tvcache: A Tool-Value Cache for Post-Training LLM Agents

Abhishek Vijaya Kumar, Bhaskar Kataria, Byungsoo Oh, Emaad Manzoor, Rachee Singh
Proceedings of the 43rd International Conference on Machine Learning, PMLR 306:61539-61558, 2026.

Abstract

In RL post-training of LLM agents, calls to external tools take several seconds or even minutes, leaving allocated GPUs idle and inflating post-training time and cost. While many tool invocations repeat across parallel rollouts and could in principle be cached, naively caching their outputs for reuse is incorrect since tool outputs depend on the environment state induced by prior agent interactions. We present TVCACHE, a stateful tool-value cache for LLM agent post-training. TVCACHE maintains a tree of observed tool-call sequences and performs longest-prefix matching for cache lookups: a hit occurs only when the agent’s full tool history matches a previously executed sequence, guaranteeing identical environment state. On three diverse workloads—terminal-based tasks, SQL generation, and video understanding—TVCACHE achieves cache hit rates of up to 67% and reduces median tool call execution time by up to 6.9$\times$, with no degradation in post-training reward accumulation.

Cite this Paper


BibTeX
@InProceedings{pmlr-v306-kumar26d, title = {Tvcache: A Tool-Value Cache for Post-Training {LLM} Agents}, author = {Kumar, Abhishek Vijaya and Kataria, Bhaskar and Oh, Byungsoo and Manzoor, Emaad and Singh, Rachee}, booktitle = {Proceedings of the 43rd International Conference on Machine Learning}, pages = {61539--61558}, year = {2026}, editor = {Zhang, Tong and Dudik, Miroslav and Jaggi, Martin and Agarwal, Alekh and Li, Sharon and Schuurmans, Dale and Zhu, Jerry and Berkenkamp, Felix and Dong, Hanze and Bietti, Alberto}, volume = {306}, series = {Proceedings of Machine Learning Research}, month = {06--11 Jul}, publisher = {PMLR}, pdf = {https://raw.githubusercontent.com/mlresearch/v306/main/assets/kumar26d/kumar26d.pdf}, url = {https://proceedings.mlr.press/v306/kumar26d.html}, abstract = {In RL post-training of LLM agents, calls to external tools take several seconds or even minutes, leaving allocated GPUs idle and inflating post-training time and cost. While many tool invocations repeat across parallel rollouts and could in principle be cached, naively caching their outputs for reuse is incorrect since tool outputs depend on the environment state induced by prior agent interactions. We present TVCACHE, a stateful tool-value cache for LLM agent post-training. TVCACHE maintains a tree of observed tool-call sequences and performs longest-prefix matching for cache lookups: a hit occurs only when the agent’s full tool history matches a previously executed sequence, guaranteeing identical environment state. On three diverse workloads—terminal-based tasks, SQL generation, and video understanding—TVCACHE achieves cache hit rates of up to 67% and reduces median tool call execution time by up to 6.9$\times$, with no degradation in post-training reward accumulation.} }
Endnote
%0 Conference Paper %T Tvcache: A Tool-Value Cache for Post-Training LLM Agents %A Abhishek Vijaya Kumar %A Bhaskar Kataria %A Byungsoo Oh %A Emaad Manzoor %A Rachee Singh %B Proceedings of the 43rd International Conference on Machine Learning %C Proceedings of Machine Learning Research %D 2026 %E Tong Zhang %E Miroslav Dudik %E Martin Jaggi %E Alekh Agarwal %E Sharon Li %E Dale Schuurmans %E Jerry Zhu %E Felix Berkenkamp %E Hanze Dong %E Alberto Bietti %F pmlr-v306-kumar26d %I PMLR %P 61539--61558 %U https://proceedings.mlr.press/v306/kumar26d.html %V 306 %X In RL post-training of LLM agents, calls to external tools take several seconds or even minutes, leaving allocated GPUs idle and inflating post-training time and cost. While many tool invocations repeat across parallel rollouts and could in principle be cached, naively caching their outputs for reuse is incorrect since tool outputs depend on the environment state induced by prior agent interactions. We present TVCACHE, a stateful tool-value cache for LLM agent post-training. TVCACHE maintains a tree of observed tool-call sequences and performs longest-prefix matching for cache lookups: a hit occurs only when the agent’s full tool history matches a previously executed sequence, guaranteeing identical environment state. On three diverse workloads—terminal-based tasks, SQL generation, and video understanding—TVCACHE achieves cache hit rates of up to 67% and reduces median tool call execution time by up to 6.9$\times$, with no degradation in post-training reward accumulation.
APA
Kumar, A.V., Kataria, B., Oh, B., Manzoor, E. & Singh, R.. (2026). Tvcache: A Tool-Value Cache for Post-Training LLM Agents. Proceedings of the 43rd International Conference on Machine Learning, in Proceedings of Machine Learning Research 306:61539-61558 Available from https://proceedings.mlr.press/v306/kumar26d.html.

Related Material