When to End, Which to Invoke Next: Transition-Aware Tokenized Procedural Memory for LLMs
Ruochen Cui, Qianqian Xu, Shilong Bao, Boyu Han, Zhiyong Yang, Qingming Huang
Abstract
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.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG
Related papers
D-ACR: Dialogue-Aware Context Retrieval for Long-Term Conversational Memory
Shared title terminologycs.AINayoung Choi, Jonathan Zhang, Jinho D. Choi
MOV-Evol: Evolving Procedural Memory for Agents Through Maturation, Orchestration, and Valuation
Shared title terminologycs.AIJiayi Tan
Anchor: Amortized KV-Cache Compaction for Procedural Skills
Shared title terminologycs.AIWeixing Wang, Kexin Wang, Benjamin Bergner et al.
How Does Reinforcement Learning Select for Model Cognition? A Case Study of Verbalised Evaluation Awareness in Olmo 3
Shared title terminologycs.AIEdward James Young, Cam Tice, Nathalie Kirch et al.
Beyond Reweighting: Architectural Post-Training for Reasoning LLMs
Shared title terminologycs.AIBoHao Chen
How to Guide Relation-Free Graphs? Coverage-Aware Graph Retrieval-Augmented Generation via Syntax-Constrained Propagation
Shared title terminologycs.AIJiyu Tian, Liming Chen