[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-492334-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-492334-en":131},{"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","conditional-memory-via-scalable-lookup-a-new-axis-of-sparsity-for-large-language-models-492334","Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models","","Mixture-of-Experts (MoE) scales model capacity through conditional computation, yet Transformers lack a native knowledge lookup primitive. The paper introduces conditional memory via Deep Sparse Embedding (DSE), which indexes a large embedding table using local N-grams for O(1) retrieval. It formalizes sparsity allocation between MoE experts and DSE memory and derives a U-shaped scaling law to find an optimal balance. Scaling to 27B parameters, DSE outperforms iso-parameter and iso-FLOPs MoE baselines on knowledge, reasoning, and long-context benchmarks, with mechanistic and infrastructure-efficient analyses supporting the gains.",{"@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/conditional-memory-via-scalable-lookup-a-new-axis-of-sparsity-for-large-language-models-492334/492334/",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/conditional-memory-via-scalable-lookup-a-new-axis-of-sparsity-for-large-language-models-492334/492334.png","ImageObject",300,407,{"name":42,"@type":43},"Indoniesian Boy","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-15","2026-10-01",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",14,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What problem does conditional memory address compared with standard Transformers?","Question",{"text":63,"@type":64},"Standard Transformers must simulate retrieval by recomputing static lookup behavior at runtime. Conditional memory introduces a dedicated lookup mechanism so static knowledge can be retrieved efficiently rather than reconstructed through expensive computation.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"How does Deep Sparse Embedding (DSE) perform retrieval?",{"text":68,"@type":64},"DSE indexes a massive embedding table using local N-grams and retrieves embeddings in O(1) time via hashing. A gating mechanism uses the current hidden state as a query to dynamically filter retrieved embeddings so they align with the context.",{"name":70,"@type":61,"acceptedAnswer":71},"What scaling rule does the paper find for sparsity allocation?",{"text":72,"@type":64},"Given a fixed parameter budget, the authors split capacity between MoE experts and DSE memory and observe a U-shaped scaling law. The results indicate that efficiency is maximized at an optimal balance rather than using one mechanism exclusively.","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},492334,1791039198,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,111,115,120,123,127],{"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":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":107,"doc_module":4,"doc_module_name":25,"category_name":108,"show_sort_weight":109,"slug":110},7,"Healthcare",40,"healthcare",{"id":112,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":113,"slug":114},8,30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":124,"doc_module":4,"doc_module_name":25,"category_name":125,"show_sort_weight":124,"slug":126},10,"Lifestyle","lifestyle",{"id":128,"doc_module":4,"doc_module_name":25,"category_name":129,"show_sort_weight":97,"slug":130},19,"General","general",{"code":4,"msg":82,"data":132},{"doc_id":79,"user_id":133,"nickname":42,"user_avatar":134,"doc_module":4,"category_id":112,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":140,"language":141,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":142,"faqs":143,"seo_title":144,"seo_description":12,"update_tm":145,"read_time":146,"preview_page_count":33,"preview_urls":147},962090760608,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models  \nXin Cheng 1 ,2 Wangding Zeng 2 Damai Dai 2 Qinyu Chen 2 Bingxuan Wang 2 Zhenda Xie 2 Kezhao Huang 2 Xingkai Yu 2 Zhewen Hao 2 Yukun Li 2 Han Zhang 2 Huishuai Zhang 1 􀀀 Dongyan Zhao 1 ,3 􀀀 Wenfeng Liang 2  \n1 Peking University 2 DeepSeek-AI  \n3 National Engineering Research Center of New Electronic Publishing Technologies  \n{zhanghuishuai, [zhaody@pku.edu.cn}](zhaody@pku.edu.cn})  \nAbstract  \nMixture-of-Experts (MoE) scales capacity via conditional computation, but Transformers lack a native knowledge lookup primitive. We introduce conditional memory, instantiated via Deep Sparse Embedding (DSE), which indexes a massive embedding table using local N-grams for O(1) retrieval. We formalize sparsity allocation problem—how to split a fixed parameter budget between MoE experts and DSE memory—and find a U-shaped scaling law that identifies an optimal balance. Scaling to 27B parameters, DSE outperform an iso-parameter and iso-FLOPs MoE baseline across knowledge and reasoning benchmarks, and achieve markedly stronger long-context performance.  \nMechanistic analyses show that DSE offloads early-layer static recall into memory, freeing effective depth and attention for higher-level reasoning. DSE is also infrastructure-efficient: its deterministic hashing enables offloading massive parameters into host memory during inference with negligible throughput overhead.  \n1 Introduction  \nSparsity has emerged as a fundamental design principle for Large Language Models (LLMs) . Currently, this principle is primarily realized through Mixture-of-Experts (MoE) (Shazeer et al., 2017 ; Dai et al., 2024), which scales capacity via conditional computation. Owing to its ability to drastically increase model size without proportional increases in compute, MoE has become the de facto standard for foundation models (Liu et al., 2024 ; Comanici et al., 2025 ; Team et al., 2025) .  \nDespite the success of conditional computation, the intrinsic heterogeneity of linguistic signals suggests significant room for structural optimization. Specifically, language modeling entails two qualitatively different sub-tasks: compositional reasoning and knowledge recall. Since standard Transformers lack a native knowledge lookup primitive, current models are forced to simulate retrieval through  \nFigure 1: Overview of the Deep Sparse Embedding architecture. Left: DSE modules are selectively applied to specific layers, independent of the standard embedding. Right: Sparse embeddings are retrieved via hashed suffix N-grams and dynamically modulated by their similarity to the current hidden state.  \ncomputation. This process essentially amounts to an expensive runtime reconstruction of a static lookup table, wasting valuable sequential depth on trivial operations that could otherwise be allocated to higher-level reasoning.  \nTo align model architecture with this linguistic duality, we advocate for a complementary axis of sparsity: conditional memory. Whereas conditional computation sparsely activates parameters to process dynamic logic (Shazeer et al., 2017), conditional memory relies on sparse lookup operations to retrieve static embeddings for fixed knowledge. Asa preliminary exploration of this paradigm, we propose Deep Sparse Embedding (DSE). Inspired by prior work (Tito Svenstrup et al., 2017 ; Huang et al., 2025 ; Pagnoni et al., 2025), we utilize local Ngrams—densified via vocabulary compression—to index a massive embedding table for constant-time O(1) retrieval. To ensure these static priors align with the current context, we employ a gating mechanism where the hidden state acts as a query to dynamically filter the retrieved embeddings.  \nTo quantify the synergy between these two prim-  \n4968  \nProceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) , pages 4968–4990  \nJuly 2-7, 2026 ©2026 Association for Computational Linguis","cbCainetQExOcwFI","https://ap.wps.com/l/cbCainetQExOcwFI","pdf",4939288,23,"English","# Abstract\n# 1 Introduction\n# 2 Architecture\n## 2.1 Overview","[{\"question\":\"What problem does conditional memory address compared with standard Transformers?\",\"answer\":\"Standard Transformers must simulate retrieval by recomputing static lookup behavior at runtime. Conditional memory introduces a dedicated lookup mechanism so static knowledge can be retrieved efficiently rather than reconstructed through expensive computation.\"},{\"question\":\"How does Deep Sparse Embedding (DSE) perform retrieval?\",\"answer\":\"DSE indexes a massive embedding table using local N-grams and retrieves embeddings in O(1) time via hashing. A gating mechanism uses the current hidden state as a query to dynamically filter retrieved embeddings so they align with the context.\"},{\"question\":\"What scaling rule does the paper find for sparsity allocation?\",\"answer\":\"Given a fixed parameter budget, the authors split capacity between MoE experts and DSE memory and observe a U-shaped scaling law. The results indicate that efficiency is maximized at an optimal balance rather than using one mechanism exclusively.\"}]","Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models | PDF",1790861504,58,[148,152,156,160],{"page_no":22,"url":149,"width":150,"height":151},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/896bb4a2331b6591be39e364f17a6d10.webp",983,1390,{"page_no":26,"url":153,"width":154,"height":155},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/9c2474703b6abf6e242d3516fb2e3847.webp",982,1388,{"page_no":30,"url":157,"width":158,"height":159},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/483497c994fd53ec4757dbc632ae3bb5.webp",981,1387,{"page_no":33,"url":161,"width":162,"height":163},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/a3540f2ac78e3f77905a77e4a4c1a824.webp",980,1385]