[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-489366-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-489366-en":130},{"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":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","promtec-fast-llm-inference-decoding-using-prompt-multi-lookup-with-template-database-and-common-sequences","PROMTEC - Fast LLM Inference Decoding using Prompt Multi-Lookup with Template Database and Common Sequences","","PROMTEC presents a multi-faceted approach to accelerate large language model inference by combining Prompt Multi-Lookup, Template Datastore, and Common Sequences. Prompt Multi-Lookup improves autoregressive decoding efficiency by producing multiple candidate sequences from the input context. Template Datastore leverages structured patterns in mathematical and code generation to generate fast, accurate candidates. Common Sequences precomputes frequent short sequences in specialized domains, yielding 3.91× speedup on miniF2F and up to 4.23× on HumanEval while maintaining high-quality outputs.",{"@graph":14,"@context":73},[15,34,56],{"@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/promtec-fast-llm-inference-decoding-using-prompt-multi-lookup-with-template-database-and-common-sequences/489366/",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/promtec-fast-llm-inference-decoding-using-prompt-multi-lookup-with-template-database-and-common-sequences/489366.png","ImageObject",300,407,{"name":42,"@type":43},"Jordan Avery","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-21","2026-10-01",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",5,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What is PROMTEC designed to improve in LLM inference?","Question",{"text":63,"@type":64},"PROMTEC accelerates the autoregressive decoding process to reduce latency and inference costs while keeping output quality high.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does Prompt Multi-Lookup speed up decoding?",{"text":68,"@type":64},"It enhances string matching to reuse high n-gram overlaps between the input prompt and output sequences, generating multiple candidate sequences to cut decoding time.",{"name":70,"@type":61,"acceptedAnswer":71},"What performance gains does PROMTEC report on benchmarks?",{"text":72,"@type":64},"On miniF2F for mathematical generation it reaches up to 3.91× speedup, and on HumanEval for code generation it achieves up to 4.23× speedup.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},489366,1790822467,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},"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":55,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"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":55,"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":80,"read_time":144,"preview_page_count":33,"preview_urls":145},1099523882367,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","PROMTEC: Fast LLM Inference Decoding using Prompt Multi-Lookup with Template Database and Common Sequences  \nAlan Chi-Man Lee* 1 , Wing-Sun Cheng2 , Calvin Chun-Kit Chan1  \n1Department of Information Engineering, The Chinese University of Hong Kong, 2RISKSIS  \n{lcm123, [ckchan}@ie.cuhk.edu.hk](ckchan}@ie.cuhk.edu.hk) [marco.cheng@risksis.com](marco.cheng@risksis.com)  \nAbstract  \nWe propose PROMTEC, a novel multi-faceted approach to accelerate the inference of large language models (LLMs) by leveraging three key techniques: Prompt Multi-Lookup, Template Datastore, and Common Sequences methods. Prompt Multi-Lookup enhances the autoregressive decoding efficiency by generating multiple candidate sequences from context.  \nTemplate Datastore exploits structured patterns, particularly in mathematical and code generation tasks, to enable fast and accurate candidate generation. Common Sequences optimize inference by precomputing frequent short sequencesin specialized domains. For mathematical generation, PROMTEC achieves a 3.91 × speedupon the miniF2F benchmark. For code generation, it achieves up to a 4.23 × speedup on the HumanEval benchmark. This work highlights the potential of integrated candidate generation to accelerate LLM inference while maintaining high-quality outputs.  \n1 Introduction  \nLarge Language Models (LLMs) are crucial in numerous applications, including question answering, program synthesis, and task automation (Devlinet al., 2019 ; Brown et al., 2020 ; Zhang et al., 2022 ; Touvron et al., 2023) . However, the significant inference costs and time-consuming autoregressive decoding processes pose substantial challenges.  \nThe need for efficient token generation is heightened by inference-time scaling, which requires generating longer outputs for complex tasks (Zhong et al., 2024) . Multi-agent and pipelined LLM systems improve accuracy and reliability but suffer from long response times due to sequential processing stages (Wang et al., 2024 ; Santhanam et al., 2024) .  \nSpeculative decoding has emerged as a promising technique to accelerate LLM output speed  \n* Corresponding author  \n(Leviathan et al., 2023 ; Chen et al., 2023 ; Miao et al., 2024 ; Cai et al., 2024 ; Zhang et al., 2024 ; Lin et al., 2024) . This method allows LLMs to verify multiple tokens in a single forward pass using small draft models or additional decoding heads, reducing latency. However, it faces limitations such as the need for high-quality draft models, increased GPU memory usage, and orchestration complexity (Chen et al., 2024 ; Li et al., 2024) .  \nRecent advancements have integrated additional decoding heads directly into the LLM, utilizing its final hidden representations (Cai et al., 2024) . While addressing some challenges of separate draft models, this approach still requires fine-tuning and additional GPU memory, which can be substantial for large models (Grattafiori et al., 2024) . Complementing speculative decoding, tree attention modifies traditional attention mechanisms to verify multiple sequences more efficiently (Cai et al., 2024 ; Miao et al., 2024) . By structuring tokens hierarchically, tree attention allows parallel verification of multiple speculative paths, enhancing decoding efficiency.  \nDespite these advancements, there remains substantial room for improvement in the speed and efficiency ofLLM inference. We propose PROMTEC, which integrates several novel methods to further accelerate the autoregressive decoding process. Our contributions include:  \n1. Prompt Multi-Lookup: This method enhances string matching techniques to generate multiple candidate sequences from a given input prompt. By leveraging high n-gram overlaps between the input and output sequences, it effectively reduces decoding time by reusing previously seen subsequences.  \n2. Template Datastore: Targeting frequent sequences in domains such as mathematics and code generation, this method constructs a trie structure of normalized patterns. By efficiently","cbCaiecDvQEz7vPu","https://ap.wps.com/l/cbCaiecDvQEz7vPu","pdf",1021855,13,"English","# Abstract\n# 1 Introduction\n# 2 Related Works\n## 2.1 Speculative Decoding","[{\"question\":\"What is PROMTEC designed to improve in LLM inference?\",\"answer\":\"PROMTEC accelerates the autoregressive decoding process to reduce latency and inference costs while keeping output quality high.\"},{\"question\":\"How does Prompt Multi-Lookup speed up decoding?\",\"answer\":\"It enhances string matching to reuse high n-gram overlaps between the input prompt and output sequences, generating multiple candidate sequences to cut decoding time.\"},{\"question\":\"What performance gains does PROMTEC report on benchmarks?\",\"answer\":\"On miniF2F for mathematical generation it reaches up to 3.91× speedup, and on HumanEval for code generation it achieves up to 4.23× speedup.\"}]","PROMTEC - Fast LLM Inference Decoding using Prompt Multi-Lookup with Template Database and Common Sequences | PDF",33,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/c5c5f985551d72bcd8c25ae3c814fafe.webp",983,1390,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/e3e6db58be168dc777d86dc3070e4866.webp",982,1388,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/7fdc8417f4c170d1961eb9623ad66f3f.webp",981,1387,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/7a27725cdd2e42b66ecdc7e8514a3e8b.webp",980,1385]