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

TokMem: 一个令牌的程序性记忆用于大型语言模型

TokMem: One-Token Procedural Memory for Large Language Models

Dept. Computing Science & Alberta Machine Intelligence Institute (Amii), University of Alberta(计算科学系及阿尔伯塔机器智能研究所(Amii),阿尔伯塔大学)

Zijun Wu, Yongchang Hao, Lili Mou

AI总结:

TokMem通过单个可训练令牌实现程序性记忆,提升大型语言模型在任务回忆和多步函数调用中的性能,同时减少训练参数和上下文开销。

摘要:

大型语言模型通常通过提示进行控制,这些提示必须为每个新查询反复重新处理,且难以模块化重用。我们引入了TokMem,一种程序性记忆框架,将每个可重用的任务过程编译成一个可训练的记忆令牌。每个令牌既作为过程索引,又作为生成控制信号,引导生成,从而实现具有固定开销的定向行为。TokMem保持基础LLM冻结,并将程序知识完全存储在这些专用单元中,因此可以持续添加新过程而不会影响现有过程。我们在两种设置上评估了TokMem:在1000个超自然指令任务上的原子回忆和多步函数调用上的组合回忆。我们的结果表明,TokMem在避免重复上下文开销的同时,始终优于检索增强提示法。此外,它在参数效率方面与参数高效微调相匹配或优于,但使用显著更少的可训练参数。

英文摘要:

Large language models are typically controlled via prompts, which must be repeatedly re-processed for every new query and are difficult to reuse modularly. We introduce TokMem, a procedural memory framework that compiles each reusable task procedure into a single trainable memory token. Each token serves as both a procedure index and a generation control signal that steers generation, enabling targeted behaviors with constant-size overhead. TokMem keeps the backbone LLM frozen and stores procedural knowledge entirely in these dedicated units, so new procedures can be added continually without interfering with existing ones. We evaluate TokMem on two settings: atomic recall over 1,000 Super-Natural Instructions tasks and compositional recall on multi-step function-calling. Our results show that TokMem consistently outperforms retrieval-augmented prompting while avoiding repeated context overhead. Moreover, it matches or exceeds parameter-efficient fine-tuning with substantially fewer trainable parameters.

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

↑