Manuscript Offprint

arXiv:2610.12599

STAPLE: Static Sparse Upcycling of Pretrained Checkpoints via Embedding Modules

Ranajoy Sadhukhan, Euijin Hong, Sheng Cao, Zechun Liu, Shuowei Jin, Sha Li, Changlong Yu, Xin Liu, Qin Lu, Zhenyu Shi, Priyanka Nigam, Beidi Chen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Ranajoy Sadhukhan†, Euijin Hong†, Sheng Cao¶, Zechun Liu§, Shuowei Jin‡, Sha Li‡, Changlong Yu‡, Xin Liu‡, Qin Lu‡, Zhenyu Shi‡, Priyanka Nigam‡, Beidi Chen†

rsadhukh@andrew.cmu.edu, ejhong@andrew.cmu.edu, rick.caos@gmail.com, zechunliu@meta.com, {shuowei,slliz,changlyu,xliucr,luqn,zshi,nigamp}@amazon.com, beidic@andrew.cmu.edu

†Carnegie Mellon University, ¶D. E. Shaw Research, §Meta AI, ‡Amazon Research

Sparse computation can scale the parametric capacity of large language models without proportionally increasing active computation, but pretraining sparse architectures remains expensive and data-hungry. Existing sparse upcycling methods mainly target Mixture-of-Experts (MoE) models, where expert homogeneity, sample inefficiency, and system overheads can limit practical scalability. Static sparse memory offers predictable access and token-specific updates that can help address these challenges, but naively integrating it into pretrained computation yields poor returns. In this work, we introduce STAPLE, a recipe built upon STEM for integrating static sparse memory into pretrained models. Whereas STEM replaces FFN up-projections with token-indexed embeddings, STAPLE retains these projections and adds the embeddings as a residual pathway, preserving pretrained computation while learning complementary token-specific information in a scalable manner. On OLMo-2 1B, STAPLE improves over continued dense training by 4.27 points on HumanEval, 2.80 on MBPP, 2.27 on GSM8K, and 1.65 on DROP, with gains spanning programming, mathematical reasoning, and reading comprehension. Average performance increases with static capacity, and improvements persist on the larger OLMo-2 7B backbone. STAPLE also outperforms static sparse baselines such as STEM and an Engram-style model, and achieves a higher average score than an MoE upcycling baseline while decoding 2×2\times faster with less than half its GPU model memory and measured GPU energy per token in our throughput-oriented decoding evaluation. Importantly, despite introducing billions of parameters late in training, our host-offloaded implementation keeps generation throughput within 1.5% and training throughput within 3% of the dense baseline, while caching only the embeddings of the ∼5%\sim5\% most frequent tokens on the GPU. These results show that static sparse memory can provide a sample-efficient, scalable, and sustainable path for expanding pretrained models without sparse pretraining from scratch.

Figure

Github: https://github.com/Infini-AI-Lab/STAPLE

Website: https://infini-ai-lab.github.io/STAPLE

1 Introduction

Scaling model capacity remains one of the most reliable ways to improve language-model capabilities (Kaplan et al., 2020; Hoffmann et al., 2022). Sparse computation makes this scaling attractive by increasing total parametric capacity without proportionally increasing active computation. Yet repeatedly pretraining larger sparse models from scratch is prohibitively expensive. This motivates sparse upcycling (Komatsuzaki et al., 2023; He et al., 2025; Vavre et al., 2024): expanding an already pretrained checkpoint through limited continued training such that the full potential of large parametric capacity is realized without training from scratch.

Most existing sparse upcycling methods rely on Mixture-of-Experts (MoE). A standard strategy clones pretrained FFNs into multiple experts, preserving the seed model at initialization (Komatsuzaki et al., 2023; He et al., 2025). However, cloned experts can remain functionally similar, limiting the benefit of further expert scaling. Breaking this expert homogeneity through domain-specialized branches, partial reinitialization, or additional optimization stages can improve specialization but at the cost of larger training budget (Nakamura et al., 2025) or additional training stages (Sukhbaatar et al., 2024; Mirvakhabova et al., 2025). Furthermore, MoE scaling also incurs routing, load-balancing, expert-fragmentation, memory, and communication overheads that can hurt practical training and serving efficiency (Doubov et al., 2024). The value of added expert capacity therefore depends on its performance gains relative to these costs. Hence, an effective upcycling method should be

Figure

(a) MMLU score vs train tokens

Figure

(b) Scalability

Figure

(c) Comparative Analysis

Figure 1 Overview of STAPLE. (a) STAPLE improves over the dense baseline early in mid-training, while replacement-style STEM upcycling remains below it. The horizontal axis counts mid-training tokens, excluding the preceding warmup or dense continuation stage. (b) Downstream performance improves as static sparse capacity is increased through embedding rank or the number of augmented layers. (c) Domain averages normalized to continued dense training; the largest gain is in code, with smaller gains in mathematics, knowledge, and reading comprehension.

sample-efficient, preserve the training and serving efficiency of the seed model, and remain scalable as sparse capacity grows.

Recent emergence in static sparse architectures (Google DeepMind, 2025; Sadhukhan et al., 2026; Cheng et al., 2026; Liu et al., 2026; Tseng and Sa, 2026) has brought a breakthrough in scaling parametric capacity in a system-efficient manner. These architectures insert large token- or phrase-indexed embedding tables that are particularly amenable to CPU offloading and asynchronous prefetching, allowing substantial parametric expansion with little additional GPU-memory footprint or latency overhead. Unlike cloned MoE experts, token-indexed rows receive updates from distinct token-conditioned subsets of the training data, providing a structural bias toward differentiation. However, static sparse upcycling introduces its own challenges. First, replacing pretrained computation with newly initialized sparse memory discards useful features that must then be relearned. Second, existing static sparse architectures can suffer from poor sample efficiency: each embedding row is updated only when its corresponding token or phrase appears, producing highly non-uniform training signals under a limited token budget. Finally, even if these optimization challenges are addressed, it remains unclear whether static sparsity can continue to deliver performance gains as additional sparse capacity is introduced. Our key findings below directly address these concerns.

Sparsity should complement existing architecture: Retaining pretrained computation is important for effective static sparse upcycling, which is often not maintained by existing static sparse approaches. For instance, STEM (Sadhukhan et al., 2026) replaces the FFN up-projection with a token-indexed embedding table. As Fig. 1a illustrates, STEM upcycling continues to struggle with downstream performance even after 100B tokens, whereas retaining the pretrained FFN up-projection and adding static memory as a residual pathway performs substantially better. This allows the new parameters to focus on complementary token-specific information rather than relearning computation already present in the seed model.

Initialize for sample-efficient adaptation: Preserving the pretrained model's initial functionality through correct initialization is important for better sample efficiency. Additionally, a short warmup with selective freezing of pretrained components then encourages the newly introduced embeddings to learn useful complementary knowledge, particularly improving knowledge-intensive and commonsense tasks (Figs. 2c and 2a).

Scalability: When allowed to learn complementary token-specific knowledge, static memory continues to improve performance as capacity grows without proportionally increasing systems cost (Fig. 4). As illustrated in Fig. 1b, STAPLE improves in average downstream performance as we increase either the number of augmented layers or the embedding dimension, while the added memory can remain largely offloaded to CPU memory.

Based on these observations, we introduce STAtic uPycLing via Embedding layers (STAPLE). Building

Figure

(a) Common sense reasoning ablation

Figure

(b) Math & code ablation

Figure

(c) MMLU ablation

Figure 2 Domain-specific performance comparison among STEM upcycling, STAPLE and STAPLE with no warmup. Each model uses four embedding layers. The horizontal axes count mid-training tokens, excluding the separate warmup stage where used. Panels (a–c) illustrate the importance of retaining the FFN up-projections in STAPLE as it consistently outperforms STEM in every aspect. Panels (a,c) show the importance of warmup in improving general knowledge and commonsense task performances. Conversely, panel (b) suggests that math and code reasoning performances are relatively less affected.

on STEM (Sadhukhan et al., 2026), STAPLE retains the pretrained FFN up-projection and augments it with a zero-initialized token-indexed embedding. The dense pathway preserves shared pretrained computation, while the static pathway learns complementary token-specific information. We scale this capacity through both the number of augmented layers and the embedding dimension. For systems efficiency, the large embedding tables remain in CPU memory and are accessed through asynchronous prefetching, LFU caching, token deduplication, and row-sparse optimization during training and serving.

On OLMo-2 1B, STAPLE improves over continued dense training by 4.27 points on HumanEval, 2.80 on MBPP, 2.27 on GSM8K, and 1.65 on DROP, raising the ten-task average by 1.20 points (Fig. 1c). Average performance improves with static capacity (Fig. 1b), and gains persist on the larger OLMo-2 7B backbone. Under the same budget, STAPLE also outperforms the parameter-matched static sparse baselines, STEM and an Engram-style model. Compared with a serving-efficient MoE upcycling baseline, STAPLE achieves a higher average score while decoding 2×2\times faster with a much smaller GPU memory footprint, and it stays within 1.5% and 3% of dense generation and training throughput. Furthermore, predictable memory access could further benefit speculative decoding (Leviathan et al., 2023) by enabling prefetching of the rows needed for target verification (Liu et al., 2026). The reduced HBM footprint leaves more room for KV caching and larger batches, while differences in weight reuse and execution overhead motivate examining energy alongside parameter count: in our throughput-oriented decoding evaluation, STAPLE keeps measured GPU energy per token within 1–2% of dense and reduces it by over 50% relative to the MoE baseline. Beyond these performance and efficiency gains, STAPLE exposes an interpretable and editable memory: targeted embedding interventions modify model behavior while preserving its ability to follow contextual evidence (Sec. 4.2). Together, these results suggest that existing pretrained models can gain new capabilities from scalable static sparse memory without expensive training or a prohibitive increase in serving cost.

References (39)