arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.10986cs.LG
收藏

TVCACHE: 一种具有状态的工具-价值缓存用于训练后LLM代理

TVCACHE: A Stateful Tool-Value Cache for Post-Training LLM Agents

cornell(康奈尔大学)

Abhishek Vijaya Kumar, Bhaskar Kataria, Byungsoo Oh, Emaad Manzoor, Rachee Singh

AI总结:

TVCACHE通过维护工具调用序列树和最长前缀匹配,实现LLM代理训练后的高效缓存,提高缓存命中率并减少工具调用时间。

摘要:

在LLM代理的训练后强化学习中,调用外部工具需要数秒甚至数分钟,导致分配的GPU空闲,并增加训练后的时间和成本。虽然许多工具调用在并行展开中重复出现,原则上可以缓存,但简单地缓存其输出用于重用是不正确的,因为工具输出依赖于由先前代理交互诱导的环境状态。我们提出了TVCACHE,一种用于LLM代理训练后的具有状态的工具-价值缓存。TVCACHE维护一个观察到的工具调用序列树,并执行最长前缀匹配进行缓存查找:只有当代理的完整工具历史匹配之前执行的序列时才会命中,确保环境状态相同。在三个多样的工作负载终端任务、SQL生成和视频理解上,TVCACHE实现了高达70%的缓存命中率,并将中位数工具调用执行时间减少高达6.9倍,且不降低训练后奖励积累。

英文摘要:

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 70% and reduces median tool call execution time by up to 6.9X, with no degradation in post-training reward accumulation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑