何时结束,接下来调用哪个:面向大语言模型的感知过渡的标记化过程记忆
When to End, Which to Invoke Next: Transition-Aware Tokenized Procedural Memory for LLMs
AI总结:
本文针对大语言模型过程链式中过渡隐式导致的选择脆弱问题,提出感知过渡的过程记忆(TapMem)框架,通过显式终止信号和过渡条件路由适配器提升多步过程编排的可靠性,实验验证其良好性能。
摘要:
单标记过程记忆(TokMem)近期作为一种参数高效的范式出现,用于在大语言模型(LLM)中存储和复用任务解决过程,其中每个过程被编码为一个紧凑的记忆标记。本文研究了一个更具挑战性的场景:大语言模型必须在单次生成中可靠地编排一系列连续的过程召回。我们发现了TokMem式过程链式的一个基本局限:虽然记忆标记为单个过程提供了显式入口,但过程之间的过渡仍然是隐式的。这种被忽视的交接机制导致随着过程链变长,下一个过程的选择变得越来越脆弱。为解决该问题,我们提出了感知过渡的过程记忆(TapMem),这是一个显式建模过程间交接的轻量级框架。TapMem背后的核心见解是将每个过程过渡表述为边界条件选择问题。由于仅在当前过程引导的跨度结束后才应选择下一个过程,TapMem首先引入了显式终止信号,使该完成边界可被观测。基于得到的边界表示,TapMem进一步融入了过渡条件路由适配器,以生成候选记忆标记对数的上下文相关修正。由于仅在过渡位置且仅对记忆标记对数进行干预,TapMem保留了原始的全词汇自回归生成过程,同时改进了可靠多步编排所需的稀疏过程决策。在多种过程召回设置下的大量实验表明,TapMem取得了良好的性能。
英文摘要:
One-Token Procedural Memory TokMem has recently emerged as a parameter-efficient paradigm for storing and reusing task-solving procedures in large language models (LLMs), where each procedure is encoded as a compact memory token. This paper investigates a more challenging scenario in which a LLM must reliably orchestrate a sequence of consecutive procedure recalls within a single generation. We identify a fundamental limitation of TokMem-style procedure chaining: while memory tokens provide explicit entry points to individual procedures, the transitions between procedures remain implicit. This overlooked handoff mechanism causes next-procedure selection to become increasingly fragile as procedural chains grow longer. To address this issue, we propose Transition-Aware Procedural Memory (TapMem), a lightweight framework that explicitly models inter-procedure handoffs. The key insight behind TapMem is to formulate each procedure transition as a boundary-conditioned selection problem. Since the next procedure should be selected only after the current procedure-guided span ends, TapMem first introduces Explicit Termination Signal, to make this completion boundary observable. Building on the resulting boundary representation, TapMem further incorporates a Transition-Conditioned Routing Adapter to generate a context-dependent correction over candidate memory-token logits. By intervening only at transition positions and only over memory-token logits, TapMem preserves the original full-vocabulary autoregressive generation process while improving the sparse procedural decisions required for reliable multi-step orchestration. Extensive experiments across diverse procedure-recall settings demonstrate that TapMem achieves promising performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。