[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-729419-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-729419-en":130,"doc-similar-729419":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","tokmem-one-token-procedural-memory-for-large-language-models","TOKMEM - ONE-TOKEN PROCEDURAL MEMORY FOR LARGE LANGUAGE MODELS","","Large language models are typically controlled via prompts, which are repeatedly re-processed for each query and are hard to reuse modularly. TokMem introduces a procedural memory framework that compiles reusable task procedures into single trainable memory tokens. Each token acts as both a procedure index and a generation control signal, enabling targeted behaviors with constant overhead. The backbone LLM stays frozen while procedural knowledge is stored in these tokens. TokMem is evaluated on atomic recall over 1,000 Super-Natural Instructions tasks and compositional recall in multi-step function-calling, outperforming retrieval-augmented prompting and matching or exceeding parameter-efficient fine-tuning with fewer trainable parameters.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/tokmem-one-token-procedural-memory-for-large-language-models/729419/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/tokmem-one-token-procedural-memory-for-large-language-models/729419.png","ImageObject",300,407,{"name":42,"@type":43},"Angel","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-25","2026-11-21",true,{"@type":52,"interactionType":53,"userInteractionCount":26},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What problem does TokMem address in prompt-based LLM control?","Question",{"text":62,"@type":63},"TokMem targets inefficiency and non-modularity in prompts, which must be re-processed for every query and occupy context space, increasing compute and truncation risk as tasks scale.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"How does TokMem represent reusable procedures?",{"text":67,"@type":63},"TokMem compiles each reusable task procedure into a single trainable memory token that functions as a procedure index and a generation control signal.",{"name":69,"@type":60,"acceptedAnswer":70},"What makes TokMem efficient during inference?",{"text":71,"@type":63},"TokMem recalls and chains memory tokens on demand during generation, avoiding long prompts and eliminating repeated context overhead while keeping constant-size memory overhead.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},729419,1795298140,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":33,"preview_urls":145},687207412472,"https://ap-avatar.wpscdn.com/davatar_155a257f0dc6eb9ab79c44ca47cae57d","TOKMEM: ONE-TOKEN PROCEDURAL MEMORY FOR LARGE LANGUAGE MODELS  \nZijun Wu 1 , Yongchang Hao 1 , Lili Mou 1,2  \n1Dept. Computing Science & Alberta Machine Intelligence Institute (Amii), University of Alberta  \n2 Canada CIFAR AI Chair  \n{zijun4,[yongcha1](yongcha1}@ualberta.ca)[}](yongcha1}@ualberta.ca)[@ualberta.ca](yongcha1}@ualberta.ca) , [doublepower.mou@gmail.com](doublepower.mou@gmail.com)  \nABSTRACT  \nLarge 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.  \nWe 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.1  \n1 INTRODUCTION  \nLarge language models (LLMs) have become the foundation of modern natural language processing, powering a wide range of applications in text understanding, generation, and coding (Brown et al., 2020; Llama Team, 2024; Chen et al., 2021) . Prompting is a widely adopted way to steer LLM behavior, where in-context learning enables adaptation to new tasks without parameter updates (Brown et al., 2020) . Consequently, prompt and context engineering has emerged as a dominant interface  \nfor specifying tasks, obtaining relevant information, and guiding multi-step reasoning or tool invocation (Wei et al., 2022b; Yao et al., 2023; Sahoo et al., 2025) .  \nDespite their effectiveness, long prompts are inherently inefficient. They are labor-intensive to construct and maintain, and they do not scale well when conditioning diverse queries across different tasks (Liu et al., 2023) . At inference time, longer contexts increase compute because self-attention scales quadratically (Vaswani et al., 2017) . They also shrink the usable context window for inputsand outputs, often causing truncation and information loss (Liu et al., 2024a) . Moreover, as tasks accumulate, these costs make it increasingly difficult to execute task-specific behaviors efficiently. To mitigate these issues, recent work externalizes prompts into retrieval-based memory. Retrievalaugmented generation (RAG; Lewis et al., 2020) is used to retrieves and reinserts documents or conversational state at inference time, a strategy exemplified by MemGPT (Packer et al., 2024) . Although retrieving in-context demonstrations (Wei et al., 2022b) can supply procedural cues, the retrieved knowledge remains explicit text that must be repeatedly interpreted, resembling declarative memory in cognitive science. This leads to two drawbacks: (1) retrieved content still occupies the context window, reintroducing quadratic compute and truncation pressure, and (2) frequently used procedures are repeatedly re-read as text rather than distilled into compact, reusable representations. We propose One-Token Procedural Memory (TokMem), a modular framework that encodes task procedures into compact, trainable tokens while maintaining a frozen LLM backbone. Here, a procedure refers to a reusable context–response mapping that captures a specific task behavior; the terminology is inspired by physiological research (Anderson & Lebiere, 1998), which posits  \n1Our code is publicly available at [https://github.com/MANGA-UOFA/TokMem](https://github.com/MANGA-UOFA/TokMem)  \nFigure 1: Overvie","cbCaigJgA1jlXA67","https://ap.wps.com/l/cbCaigJgA1jlXA67","pdf",2450957,21,"English","# Abstract\n# Introduction\n## Background: Prompting and its inefficiencies\n## Retrieval-based memory and its limitations\n## Proposed solution: One-Token Procedural Memory (TokMem)\n## Memory tokens and modular composition\n## Parameter isolation and continual learning","[{\"question\":\"What problem does TokMem address in prompt-based LLM control?\",\"answer\":\"TokMem targets inefficiency and non-modularity in prompts, which must be re-processed for every query and occupy context space, increasing compute and truncation risk as tasks scale.\"},{\"question\":\"How does TokMem represent reusable procedures?\",\"answer\":\"TokMem compiles each reusable task procedure into a single trainable memory token that functions as a procedure index and a generation control signal.\"},{\"question\":\"What makes TokMem efficient during inference?\",\"answer\":\"TokMem recalls and chains memory tokens on demand during generation, avoiding long prompts and eliminating repeated context overhead while keeping constant-size memory overhead.\"}]","TOKMEM - ONE-TOKEN PROCEDURAL MEMORY FOR LARGE LANGUAGE MODELS | PDF",53,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/72de95d7fd1817f6c55a9846a8926e6b.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/83a4964cf8d09bebd7d8f9ade81b42d9.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/ae047538a5380a67e1e3a909a810c55e.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-21/f3ce5c97776d9500fc226ada300e7c2f.webp",980,1268,{"list":163,"token":11},[164,170,177,183,190,197,204,210,217,224],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":139,"category_name":29,"create_tm":169},84330,"LUMI: Tokenizer-Agnostic LLM-Based Lossless Image Compression","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809041862/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=7dZYqdJPWC4mmDw7RmurrEQ4ujk%3D","lumi-tokenizer-agnostic-llm-based-lossless-image-compression",1784194864,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":175,"category_name":29,"create_tm":176},84940,"NativeMEM: Native Memory Compression for Long-Horizon Robotic Manipulation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809223327/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=StzdC5btEOJwAoildZ%2FveYPW5v0%3D","nativemem-native-memory-compression-for-long-horizon-robotic-manipulation",22,1784199593,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":139,"category_name":29,"create_tm":182},82037,"HALO: Hybrid Adaptive Latent Reasoning for Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808662386/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=FaYsBH89%2FmXtScqw1Kurob%2FoLYk%3D","halo-hybrid-adaptive-latent-reasoning-for-language-models",1784177730,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":29,"create_tm":189},85786,"Tokenizing Numerical and Embedding Features for LLM RecSys","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809485409/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=nbhMH5xJEZUm%2BwbdhUofkxaDiJ0%3D","tokenizing-numerical-and-embedding-features-for-llm-recsys",33,1784206274,{"doc_id":191,"doc_title":192,"file_type":137,"home_preview_img_url":193,"slug":194,"view_count":195,"category_name":29,"create_tm":196},81712,"Learning User-Aware Recall: Personalized Retrieval in Long-Term Conversational Memory","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808639655/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=4R4bT%2B6n7N1AH4ZYQASeI6lS%2F1A%3D","learning-user-aware-recall-personalized-retrieval-in-long-term-conversational-memory",36,1784175569,{"doc_id":198,"doc_title":199,"file_type":137,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":29,"create_tm":203},84778,"InternVLA-A1.5 Unifying Understanding Latent Foresight and Action for Compositional Generalization","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809070470/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=491CAB96gO5HFyRqDjN3kIcsFgA%3D","internvla-a15-unifying-understanding-latent-foresight-and-action-for-compositional-generalization",35,1784198172,{"doc_id":205,"doc_title":206,"file_type":137,"home_preview_img_url":207,"slug":208,"view_count":139,"category_name":29,"create_tm":209},119176,"Training-efficient density quantum machine learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229835109837/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=keUobeHhvziIJJ5EKfoIdNhrauE%3D","training-efficient-density-quantum-machine-learning",1785722930,{"doc_id":211,"doc_title":212,"file_type":137,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":29,"create_tm":216},273840,"MentorPulse - Refreshing Cross-Model Latent Guidance for Long-Form Generation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229899558352/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=OYRpGPLWp4q%2F4NaA0DiqeBmLTBA%3D","mentorpulse-refreshing-cross-model-latent-guidance-for-long-form-generation",14,1789472947,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":222,"category_name":29,"create_tm":223},328002,"Do All Visual Tokens Matter Equally? - Object-Evidence Preserving Token Merging for Vision-Language Retrieval","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909358157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=mj4iCDbF81dXRfVNOMbMy94jajE%3D","do-all-visual-tokens-matter-equally-object-evidence-preserving-token-merging-for-vision-language-retrieval-328002",15,1789978472,{"doc_id":225,"doc_title":226,"file_type":137,"home_preview_img_url":227,"slug":228,"view_count":188,"category_name":29,"create_tm":229},82834,"Do All Visual Tokens Matter Equally Object-Evidence Preserving Token Merging for Vision-Language Retrieval","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808795202/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=909QLd6rDK6WMupWJtIXjQqtfI0%3D","do-all-visual-tokens-matter-equally-object-evidence-preserving-token-merging-for-vision-language-retrieval",1784183286]