TokMem: One-Token Procedural Memory for Large Language Models
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 42 of its 50 references that are in the map. First posted on arXiv 1 Oct 2025.
Builds on
42 of 50 references.
References · 42
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
30 more
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,234
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,141
- 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,470
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
- 2021Improving language models by retrieving from trillions of tokenscited by 1,293
- 2025A-MEM: Agentic Memory for LLM Agentscited by 1,063
- 2021Learning to Prompt for Continual Learningcited by 944
- 2022Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Taskscited by 868
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 800
- 2020AdapterFusion: Non-Destructive Task Composition for Transfer Learningcited by 788
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 779
- 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 431
- 2023Learning to Compress Prompts with Gist Tokenscited by 390
- 2023Adapting Language Models to Compress Contextscited by 356
- 2024APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasetscited by 198
- 2017Routing Networks: Adaptive Selection of Non-linear Functions for Multi-Task Learningcited by 126
- 2024Flora: Low-Rank Adapters Are Secretly Gradient Compressorscited by 108
- 2024MEMORYLLM: Towards Self-Updatable Large Language Modelscited by 93
- 2024ToolGen: Unified Tool Retrieval and Calling via Generationcited by 74
- 2023RET-LLM: Towards a General Read-Write Memory for Large Language Modelscited by 64
- 2024Mixture-of-LoRAs: An Efficient Multitask Tuning for Large Language Modelscited by 38
- 2025Cramming 1568 Tokens into a Single Vector and Back Again: Exploring the Limits of Embedding Space Capacitycited by 28
- 2018Progressive Memory Banks for Incremental Domain Adaptationcited by 12
- 2023Zero-Shot Continuous Prompt Transfer: Generalizing Task Semantics Across Language Modelscited by 7
- 2025Memory Tokens: Large Language Models Can Generate Reversible Sentence Embeddingscited by 6
- 2025Ultra-Low-Dimensional Prompt Tuning via Random Projectioncited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 4.
5 papers.
- 2025Memory in the Age of AI Agentscited by 303
- 2026Latent On-Policy Self-Distillationcited by 7
- 2026Procedural Memory Distillation: Online Reflection for Self-Improving Language Modelscited by 6
- 2026HyMem: Hybrid Memory Architecture with Dynamic Retrieval Schedulingcited by 4
- 2026Joint Agent Memory and Exploration Learning via Novelty Signalscited by 0
- 2026Latent On-Policy Self-Distillation13 Aug 2026
- 2026Procedural Memory Distillation: Online Reflection for Self-Improving Language Models1 Jul 2026
- 2026Joint Agent Memory and Exploration Learning via Novelty Signals1 Jun 2026
- 2026HyMem: Hybrid Memory Architecture with Dynamic Retrieval Scheduling15 Feb 2026
- 2025Memory in the Age of AI Agents15 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2025A Benchmark for Procedural Memory Retrieval in Language Agents
- 2026Generalizable Self-Evolving Memory for Automatic Prompt Optimization
- 2026From Memory to Guide: Spatio-Temporal Composer for Procedural Coding Memory
- 2025Memp: Exploring Agent Procedural Memory
- 2025MemOS: An Operating System for Memory-Augmented Generation (MAG) in Large Language Models
- 2026Procedural Knowledge at Scale Improves Reasoning
- 2026Weighted Memory Tree: Remembering What Matters for Long-Horizon LLM Agents
- 2023SCM: Enhancing Large Language Model with Self-Controlled Memory Framework