[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-273383-105":59,"doc-detail-273383-en":131,"doc-similar-273383":163},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","sts-efficient-sparse-attention-with-speculative-token-sparsity","STS - Efficient Sparse Attention with Speculative Token Sparsity","","Large Language Model inference suffers from the quadratic cost of attention, creating major memory and compute bottlenecks when processing very long, multimillion-token sequences, which also limits agentic systems. STS proposes a sparse attention mechanism that does not require model retraining. It uses the draft model to predict which tokens matter for the larger target model, then builds a token-and-headwise sparsity mask inside speculative decoding to prune expensive attention. Experiments show 2.67× speedup at about 90% sparsity on NarrativeQA with negligible accuracy loss, improving the sparsity–accuracy trade-off.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/sts-efficient-sparse-attention-with-speculative-token-sparsity/273383/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/sts-efficient-sparse-attention-with-speculative-token-sparsity/273383.png","ImageObject",300,407,{"name":92,"@type":93},"Patrick","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-19","2026-09-15",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",16,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What problem does STS address in large language model inference?","Question",{"text":113,"@type":114},"STS targets the quadratic complexity of attention, which creates severe memory and computational bottlenecks for long sequences in LLM inference.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How does STS generate a sparsity mask without retraining the model?",{"text":118,"@type":114},"STS repurposes a smaller draft model’s attention scores to construct a token-and-headwise sparsity mask that guides sparse attention in the larger target model during speculative decoding.",{"name":120,"@type":111,"acceptedAnswer":121},"What performance does STS achieve on benchmark evaluation?",{"text":122,"@type":114},"STS reports 2.67× speedup at about 90% sparsity on NarrativeQA while maintaining negligible accuracy degradation compared with dense attention.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},273383,1789471160,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":140,"language":141,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":67,"update_tm":130,"read_time":145,"preview_page_count":19,"preview_urls":146},549758146520,"https://ap-avatar.wpscdn.com/avatar/80002397d8c0411e94?_k=1775819394049821470","STS: Efficient Sparse Attention with Speculative Token Sparsity  \nJiangnan YuCeyu XuYongji Wuand Yuan Xie  \nJiangnan Yu, Ceyu Xu, and Yuan Xie: The Hong Kong University of Science and Technology  \nYongji Wu: UC Berkeley  \narXiv : 2605 . 15508v 3 [cs .LG] 2 1 Aug 2026  \nAbstract  \nThe quadratic complexity of attention imposes severe memory and computational bottlenecks on Large Language Model (LLM) inference. This challenge is particularly acute for emerging agentic applications that require processing multimillion token sequences. We propose STS, a sparse attention mechanism that requires no model retraining. STS leverages the key insight that tokens identified as important by a smaller draft model are highly predictive of important tokens for a larger target model. By integrating into speculative decoding frameworks, STS repurposes the draft model’s attention scores to dynamically construct a token-and-headwise sparsity mask. This mask effectively prunes the expensive attention computation in the target LLM. Our evaluation shows that STS achieves a 2.67 × speedup operating at approximately 90% sparsity on representative benchmark NarrativeQA, maintaining negligible accuracy degradation compared to dense attention. STS establishes a new stateof-the-art on the sparsity-accuracy trade-off, outperforming prior techniques by enabling higher sparsity levels for a given accuracy budget.  \n1 Introduction  \nThe power of the attention mechanism [27] originates from its ability to construct a globally aware context by computing relevance scores between every pair of tokens in the sequence. This “attend-to-everything” approach is a doubleedged sword, enabling unprecedented model capability while incurring quadratic complexity as the sequence scales: On the one hand, this architecture has become ubiquitous in modern AI, serving as the foundation for the emergence of advanced machine intelligence. Conversely, the necessity of attending to all preceding tokens imposes severe computational and memory-access overheads, which become prohibitive in applications that require long sequence lengths.  \n∗ Both authors contributed equally.†Corresponding author.  \n Context State  Evicted Attend  \n(a) Linear Attention  \nPer-Token State New Token  \nLossy  \nCompressed States  \nupdate  \nUser: \u003C[main.py](main.py)>, \u003Cops.c>, ﬁ[x main.py](x main.py).  \nAssistant: Ok, here: \u003C[main_new.py](main_new.py)>  \nUser: Ok, now, help me modify ops. c.  \nAssistant: I don’t remember everything…  \nOnly lossy context can be retrieved.  \n(b) Token Pruning  \nPer-Token State (KV-Cache) New Token  \npruned token cannot be re-attended  \nUser: \u003C[main.py](main.py)>, \u003Cops. c>, ﬁ[x main.py](x main.py).  \nAssistant: Ok, here: \u003C[main_new.py](main_new.py)>  \nUser: Ok, now, help me modify ops. c.  \nAssistant: What is ops. c?   \nMay have pruned important tokens.  \n(c) Token Sparsity  \nPer-Token State (KV-Cache) New Token  \nFull KV-Cache maintained. Sparse attention.  \nUser: \u003C[main.py](main.py)>, \u003Cops.c>, ﬁ[x main.py](x main.py).  \nAssistant: Ok, here: \u003C[main_new.py](main_new.py)>  \nUser: Ok, now, help me modify ops. c.  \nAssistant: Ok, here: \u003Cops_new. c>  \nFull context is necessary for agentic use.  \nFigure 1: A taxonomy of methods for reducing the computation cost of dense attention: (a) Linear Attention,(b) Token Pruning, and (c) Token Sparsity.  \nTo mitigate these costs, prior work [5, 9, 10, 14, 26, 32, 34, 37, 39] focuses on designing an approximation of the attention mechanism that trades a bit of accuracy for lower computational cost. One class of approximation is linear attention [5, 10, 14, 28] or token pruning [32, 39] as shown in Figure 1 (a) and (b) . However, these methods often cause irreversible information loss, which is risky because the importance of a token is dynamic, so a token that is irrelevant at one step may become critical later. Consequently, lossy methods can cause model accuracy degradation when the model requires historical information that was previously di","cbCaimfaq9TELObP","https://ap.wps.com/l/cbCaimfaq9TELObP","pdf",728435,14,"English","# Introduction\n## Problem: Quadratic attention cost\n## Prior approaches: linear attention and token pruning\n## Token sparsity motivation\n## Proposed method: Speculative Token Sparsity (STS)","[{\"question\":\"What problem does STS address in large language model inference?\",\"answer\":\"STS targets the quadratic complexity of attention, which creates severe memory and computational bottlenecks for long sequences in LLM inference.\"},{\"question\":\"How does STS generate a sparsity mask without retraining the model?\",\"answer\":\"STS repurposes a smaller draft model’s attention scores to construct a token-and-headwise sparsity mask that guides sparse attention in the larger target model during speculative decoding.\"},{\"question\":\"What performance does STS achieve on benchmark evaluation?\",\"answer\":\"STS reports 2.67× speedup at about 90% sparsity on NarrativeQA while maintaining negligible accuracy degradation compared with dense attention.\"}]","STS - Efficient Sparse Attention with Speculative Token Sparsity | PDF",35,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/6e7fb1ec146c41801554d84a1a937d46.webp",983,1272,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/f35df53015774b87c3f8bf600cd427a1.webp",982,1270,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/383d0fc97b4ad84bae5ac2170bfa2fcd.webp",981,1269,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-16/02038fddfd95db47a89cf9aae76d8dc0.webp",980,1268,{"list":164,"token":66},[165,171,178,185,192,199,205,212,218,224],{"doc_id":166,"doc_title":167,"file_type":138,"home_preview_img_url":168,"slug":169,"view_count":81,"category_name":40,"create_tm":170},740762,"WISP - A WORKING-SET VIEW OF MIXTURE-OF-EXPERTS SERVING ON EXTREMELY LOW-RESOURCE HARDWARE","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230038947014/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=w%2FFyn28RPv4aIBxuxfMM%2FI6uHIs%3D","wisp-a-working-set-view-of-mixture-of-experts-serving-on-extremely-low-resource-hardware",1795646506,{"doc_id":172,"doc_title":173,"file_type":138,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":40,"create_tm":177},85999,"From Self Attention to Connection Laplacian: A Unified Operator View of Transformers","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809496075/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=N7HUcMDvwpujznPn%2BysHTcE%2BRg4%3D","from-self-attention-to-connection-laplacian-a-unified-operator-view-of-transformers",32,1784207686,{"doc_id":179,"doc_title":180,"file_type":138,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":40,"create_tm":184},82134,"Sensitivity Aware Thresholding and Token Routing for Activation Sparsification in Large Language Models","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808714711/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=%2FMzWXWKrehQaj6JiZArzp6xgOkU%3D","sensitivity-aware-thresholding-and-token-routing-for-activation-sparsification-in-large-language-models",27,1784178384,{"doc_id":186,"doc_title":187,"file_type":138,"home_preview_img_url":188,"slug":189,"view_count":190,"category_name":40,"create_tm":191},81499,"Accelerating Large Language Model Inference with Dynamic Self-Speculative Decoding","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808449083/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=2pXBZs88ckshk9aH6u4XezVaZag%3D","accelerating-large-language-model-inference-with-dynamic-self-speculative-decoding",29,1784173827,{"doc_id":193,"doc_title":194,"file_type":138,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":40,"create_tm":198},327507,"Combating Textual Noise and Redundancy - Entropy-Aware Dense Visual Token Pruning - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909088710/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=YCek7nY1ADn%2BwHHx7XnoE1hW%2F%2Bo%3D","combating-textual-noise-and-redundancy-entropy-aware-dense-visual-token-pruning-read-online-free",18,1789977376,{"doc_id":200,"doc_title":201,"file_type":138,"home_preview_img_url":202,"slug":203,"view_count":105,"category_name":40,"create_tm":204},327814,"The Remarkable Effectiveness of Providing AI Agents with Natural Language Tools - A Replication Study","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909348936/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=Fjj1toGPBMQAKx0E4PyqZinAG4w%3D","the-remarkable-effectiveness-of-providing-ai-agents-with-natural-language-tools-a-replication-study",1789978119,{"doc_id":206,"doc_title":207,"file_type":138,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":40,"create_tm":211},122509,"Pushing the Limits of Sparsity - A Bag of Tricks for Extreme Pruning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836900591/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=N%2FGmdLLTD1dtFKWPpOshBy%2BNwHQ%3D","pushing-the-limits-of-sparsity-a-bag-of-tricks-for-extreme-pruning",28,1785811007,{"doc_id":213,"doc_title":214,"file_type":138,"home_preview_img_url":215,"slug":216,"view_count":190,"category_name":40,"create_tm":217},84507,"Diffusion Language Model Parallel Decoding via Product-of-Experts Bridge","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809179092/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=YwDnnfYtnBjjtryOLgcrkdNDk1E%3D","diffusion-language-model-parallel-decoding-via-product-of-experts-bridge",1784196192,{"doc_id":219,"doc_title":220,"file_type":138,"home_preview_img_url":221,"slug":222,"view_count":14,"category_name":40,"create_tm":223},721617,"Scaling JavaScript Abstract Interpretation to Detect and Exploit Node.js - Taint-style Vulnerability","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230025022833/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=Tmc9XuQaHmA1%2BAlGsd%2BkIFKjA8M%3D","scaling-javascript-abstract-interpretation-to-detect-and-exploit-nodejs-taint-style-vulnerability",1795060950,{"doc_id":225,"doc_title":226,"file_type":138,"home_preview_img_url":227,"slug":228,"view_count":229,"category_name":40,"create_tm":230},84368,"ADORN: Adaptive Drift Handling for Open RAN Using Reinforcement Learning","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809045623/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796108939&Signature=dN8xbMKXBH%2BGENfHtKoRXjezUfM%3D","adorn-adaptive-drift-handling-for-open-ran-using-reinforcement-learning",21,1784195147]