Nested Sparsity for Scalable Pretraining and Continual Learning
On the map: Mixture-of-experts → MoE large language models also fits: Mixture of LoRA experts
Abstract (arXiv)
Mixture-of-experts (MoE) transformers, the standard backbone for modern large-scale deep learning, employ conditional computation: only a sparse subset of model weights is used in each forward pass. In MoE transformers, this sparsity arises in the MoE operator, which generalizes the multi-layer perceptron in the classical transformer. In this work, we explore an alternative mechanism for conditional computation that analogously generalizes the attention operator. The sparsity induced by this mechanism naturally nests (i.e., hierarchically composes) with the sparsity induced by the MoE operator. We show that a transformer employing this nested sparsity mechanism, which we call Nestor, performs better than a conventional MoE transformer at equal compute and equal sparsity in language model pretraining. We also show that Nestor is well-suited for continual pretraining: it can be adapted to longer contexts more effectively than conventional MoEs, as well as adapt more efficiently to new domains while forgetting less on old domains. Furthermore, we demonstrate that these benefits persist as model size, dataset size, and context length grow. Our results demonstrate the potential of alternative conditional computation mechanisms for deep neural network architectures. Code and checkpoints are available on GitHub at https://github.com/Ma-Lab-Berkeley/Nestor .
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in MoE large language models, one of 12 directions in Mixture-of-experts. Builds on 67 of its 81 references that are in the map. Submitted 22 Oct 2026.
Builds on
67 of 81 references.
Closest ancestors · 13
Same direction, newest first
- 2025Qwen3 Technical Report14 May
- 2025MoBA: Mixture of Block Attention for Long-Context LLMs18 Feb
- 2025Parameters vs FLOPs: Scaling Laws for Optimal Sparsity for Mixture-of-Experts Language Models21 Jan
- 2025MiniMax-01: Scaling Foundation Models with Lightning Attention14 Jan
- 2024Jamba: A Hybrid Transformer-Mamba Language Model28 Mar
- 2024Branch-Train-MiX: Mixing Expert LLMs into a Mixture-of-Experts LLM12 Mar
- 2024Scaling Laws for Fine-Grained Mixture of Experts12 Feb
- 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Models11 Jan
- 2024Mixtral of Experts8 Jan
- 2023ModuleFormer: Modularity Emerges from Mixture-of-Experts7 Jun
- 2023Lifelong Language Pretraining with Distribution-Specialized Experts20 May
- 2020GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding30 Jun
Other references · 54
- 2017Attention Is All You Needcited by 62,125
- 2020Language Models are Few-Shot Learnerscited by 33,113
- 2024The Llama 3 Herd of Modelscited by 16,113
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 10,542
- 2020Scaling Laws for Neural Language Modelscited by 7,118
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,132
- 2016Overcoming catastrophic forgetting in neural networkscited by 4,989
- 2020Longformer: The Long-Document Transformercited by 3,606
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,272
- 2023Code Llama: Open Foundation Models for Codecited by 2,242
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,231
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 2,225
38 more
- 2020GLU Variants Improve Transformercited by 2,000
- 2020Reformer: The Efficient Transformercited by 1,718
- 2019Generating Long Sequences with Sparse Transformerscited by 1,641
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,638
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,617
- 2016Progressive Neural Networkscited by 1,424
- 2017PackNet: Adding Multiple Tasks to a Single Network by Iterative Pruningcited by 921
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 798
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 709
- 2022Mixture-of-Experts with Expert Choice Routingcited by 655
- 2025Kimi K2: Open Agentic Intelligencecited by 636
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 491
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 469
- 2024DataComp-LM: In search of the next generation of training sets for language modelscited by 463
- 2023Llemma: An Open Language Model For Mathematicscited by 410
- 2017PathNet: Evolution Channels Gradient Descent in Super Neural Networkscited by 378
- 2016Expert Gate: Lifelong Learning with a Network of Expertscited by 376
- 2022Tensor Programs V: Tuning Large Neural Networks via Zero-Shot Hyperparameter Transfercited by 334
- 2023Effective Long-Context Scaling of Foundation Modelscited by 324
- 2024Mixture-of-Depths: Dynamically allocating compute in transformer-based language modelscited by 294
- 2022Unified Scaling Laws for Routed Language Modelscited by 266
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 249
- 2024Auxiliary-Loss-Free Load Balancing Strategy for Mixture-of-Expertscited by 236
- 2020Supermasks in Superpositioncited by 230
- 2024Data Engineering for Scaling Language Models to 128K Contextcited by 199
- 2023OpenWebMath: An Open Dataset of High-Quality Mathematical Web Textcited by 183
- 2025FineWeb2: One Pipeline to Scale Them All -- Adapting Pre-Training Data Processing to Every Languagecited by 181
- 2024How to Train Long-Context Language Models (Effectively)cited by 168
- 2021DEMix Layers: Disentangling Domains for Modular Language Modelingcited by 136
- 2023A Spectral Condition for Feature Learningcited by 136
- 2020A Theoretical Analysis of Catastrophic Forgetting through the NTK Overlap Matrixcited by 111
- 2023CoLT5: Faster Long-Range Transformers with Conditional Computationcited by 91
- 2026Attention Residualscited by 79
- 2025Command A: An Enterprise-Ready Large Language Modelcited by 69
- 2022Mixture of Attention Heads: Selecting Attention Heads Per Tokencited by 62
- 2024Theory on Mixture-of-Experts in Continual Learningcited by 57
- 2024MoH: Multi-Head Attention as Mixture-of-Head Attentioncited by 49
- 2025Joint MoE Scaling Laws: Mixture of Experts Can Be Memory Efficientcited by 36
50 most cited of 54 All 54 (JSON)
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2023Mixture of Tokens: Continuous MoE through Cross-Example Aggregation
- 2022ST-MoE: Designing Stable and Transferable Sparse Expert Models
- 2026Uncovering Intra-expert Activation Sparsity for Efficient Mixture-of-Expert Model Execution
- 2023Approximating Two-Layer Feedforward Networks for Efficient Transformers
- 2025DualSparse-MoE: Coordinating Tensor/Neuron-Level Sparsity with Expert Partition and Reconstruction
- 2023Pre-gated MoE: An Algorithm-System Co-Design for Fast and Scalable Mixture-of-Expert Inference
- 2026Sparsely gated tiny linear experts
- 2026Data Scarcity and Model Sparsity: Mixtures-of-Experts Overfit More to Repeated Data