LoKiFormer: Locality-aware Attention with Decoupled Knowledge Memory for Efficient Large Language Model Pretraining
On the map: Mixture-of-experts → MoE large language models
Abstract (arXiv)
Large language models (LLMs) have achieved remarkable breakthroughs across various applications. However, their architectures remain inefficient in pretraining due to two main limitations: (i) self-attention lacks an explicit inductive bias for locality, leading to redundant modeling of sequence-internal local information; (ii) mixture-of-experts (MoE) implicitly couples knowledge storage with computational pathways, hindering flexible access to sequence-external global knowledge. To overcome these limitations, we propose LoKiFormer, a novel LLM architecture that augments the standard decoder with two dedicated modules: 1) Local Fusion Attention (LFA), which incorporates a convolutional fusion to attention, explicitly capturing local patterns and allowing the attention to operate on more informative representations; 2) Knowledge Memory Module (KMM), which introduces a parametric key-value memory that explicitly stores global knowledge in addressable slots, decoupling storage from computation and enabling direct knowledge retrieval. Together, these modules enable LoKiFormer to achieve more efficient and effective integration of information at both levels. Experimental results show that LoKiFormer converges 1.33x faster in pre-training than baseline models, underscoring its superiority over existing LLM architectures.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in MoE large language models, one of 12 directions in Mixture-of-experts. Builds on 57 of its 66 references that are in the map. First posted on arXiv 12 Aug 2026.
Builds on
57 of 66 references.
Closest ancestors · 10
Same direction, newest first
- 2026Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models12 Jan
- 2024Qwen2.5 Technical Report19 Dec
- 2024Hunyuan-Large: An Open-Source MoE Model with 52 Billion Activated Parameters by Tencent4 Nov
- 2024Skywork-MoE: A Deep Dive into Training Techniques for Mixture-of-Experts Language Models3 Jun
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Model7 May
- 2024Dense Training, Sparse Inference: Rethinking Training of Mixture-of-Experts Language Models8 Apr
- 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models11 Jan
- 2024Mixtral of Experts8 Jan
- 2022Sparse Upcycling: Training Mixture-of-Experts from Dense Checkpoints9 Dec
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer23 Jan
Other references · 47
- 2017Attention Is All You Needcited by 60,361
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2020Longformer: The Long-Document Transformercited by 3,413
35 more
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,073
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,389
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,336
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2025Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memorycited by 779
- 2023C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Modelscited by 708
- 2023A Comprehensive Overview of Large Language Modelscited by 648
- 2022Mixture-of-Experts with Expert Choice Routingcited by 623
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 483
- 2023CMMLU: Measuring massive multitask language understanding in Chinesecited by 449
- 2024InternLM2 Technical Reportcited by 397
- 2024MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attentioncited by 383
- 2024HippoRAG: Neurobiologically Inspired Long-Term Memory for Large Language Modelscited by 281
- 2023Augmenting Language Models with Long-Term Memorycited by 189
- 2024RedPajama: an Open Dataset for Training Large Language Modelscited by 182
- 2023ChatDB: Augmenting LLMs with Databases as Their Symbolic Memorycited by 140
- 2023Skywork: A More Open Bilingual Foundation Modelcited by 112
- 2023LLM360: Towards Fully Transparent Open-Source LLMscited by 104
- 2022StableMoE: Stable Routing Strategy for Mixture of Expertscited by 100
- 2024MEMORYLLM: Towards Self-Updatable Large Language Modelscited by 93
- 2025A Comprehensive Survey of Mixture-of-Experts: Algorithms, Theory, and Applicationscited by 91
- 2024MAP-Neo: Highly Capable and Transparent Bilingual Large Language Model Seriescited by 67
- 2023WanJuan: A Comprehensive Multimodal Dataset for Advancing English and Chinese Large Modelscited by 50
- 2024MemLLM: Finetuning LLMs to Use An Explicit Read-Write Memorycited by 35
- 2024Tool-Planner: Task Planning with Clusters across Multiple Toolscited by 33
- 2023DialogBench: Evaluating LLMs as Human-like Dialogue Systemscited by 31
- 2023Sparse Modular Activation for Efficient Sequence Modelingcited by 20
- 2023ChineseWebText: Large-scale High-quality Chinese Web Text Extracted with Effective Evaluation Modelcited by 16
- 2025LM2: Large Memory Modelscited by 13
- 2024Core Context Aware Transformers for Long Context Language Modelingcited by 11
- 2025Curse of High Dimensionality Issue in Transformer for Long-context Modelingcited by 5
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Beyond KV Caching: Shared Attention for Efficient LLMs
- 2025SR-KI: Scalable and Real-Time Knowledge Integration into LLMs via Supervised Attention
- 2026Titan-Llama: Retrofitting Pre-trained LLMs with External Neural Memory Modules
- 2024Star Attention: Efficient LLM Inference over Long Sequences
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention
- 2026MKA: Memory-Keyed Attention for Efficient Long-Context Reasoning
- 2026On-Demand Attention: Language Models Know When to Recall
- 2024Loki: Low-rank Keys for Efficient Sparse Attention