STAPLE: Static Sparse Upcycling of Pretrained Checkpoints via Embedding Modules
summary
The gist
The gist STAPLE introduces a recipe built upon STEM for integrating static sparse memory into pretrained models, showing that this approach can provide a sample-efficient, scalable, and sustainable
In short
STAPLE introduces a method to integrate static sparse memory into pretrained models during upcycling, avoiding costly full pretraining. It modifies Mixture-of-Experts strategies by adding token-indexed embeddings as a residual pathway alongside existing computation. This approach allows models to learn complementary, token-specific knowledge efficiently while preserving the original pretrained knowledge.
Key concepts
- Static Sparse Memory
- This refers to a fixed, large set of learned embeddings that are added to a model during fine-tuning or upcycling. Unlike dynamic methods, these static tables are not trained from scratch but serve as scalable memory resources that complement the existing model knowledge.
- MoE Upcycling Strategy Modification
- The paper adapts the standard Mixture-of-Experts (MoE) strategy by changing how the model processes information. Instead of simply replacing parts of the computation, STAPLE integrates token-indexed embeddings into a residual pathway, allowing them to learn specific, complementary information without discarding what the pretrained model already knows.
- Token-Indexed Embeddings
- These are embeddings indexed by tokens in the input sequence. They act as a scalable memory lookup system that allows the model to access and utilize specific, learned knowledge relevant to individual words or concepts within the text, enhancing its reasoning capabilities.
Terminology used across episodes
This episode discusses
- STAPLE: Static Sparse Upcycling of Pretrained Checkpoints via Embedding Modules · Paper Radio
- Program Synthesis with Large Language Models
- Memory Layers at Scale
- Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models
- Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challenge
- Training Verifiers to Solve Math Word Problems
- MeKi: Memory-based Expert Knowledge Injection for Efficient LLM Scaling
- Improving Sparse Memory Finetuning
- Upcycling Large Language Models into Mixture of Experts
- Measuring Mathematical Problem Solving With the MATH Dataset
- Training Compute-Optimal Large Language Models
- Scaling Laws for Neural Language Models
- Sparse Upcycling: Training Mixture-of-Experts from Dense Checkpoints
- Large Memory Layers with Product Keys
- Fast Inference from Transformers via Speculative Decoding
- DataComp-LM: In search of the next generation of training sets for language models
- Continual Learning via Sparse Memory Finetuning
- Scaling Embeddings Outperforms Scaling Experts in Language Models
- Dirichlet-Prior Shaping: Guiding Expert Specialization in Upcycled MoEs
- Drop-Upcycling: Training Sparse Mixture of Experts with Partial Re-initialization
- 2 OLMo 2 Furious
The paper
STAPLE: Static Sparse Upcycling of Pretrained Checkpoints via Embedding Modules · Read on arXiv
Ranajoy Sadhukhan, Euijin Hong, Sheng Cao, Zechun Liu, Shuowei Jin, Sha Li, Changlong Yu, Xin Liu, Qin Lu, Zhen Priyanka Nigam
Carnegie Mellon University Research Institute of D. E. Shaw Research Institute Meta AI Amazon Research
Sparse computation can scale the parametric capacity of LLMs without proportionally increasing active computation, but pretraining sparse architectures remains expensive and data-hungry. Existing sparse upcycling methods mainly target Mixture-of-Experts 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 them 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. 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 2x 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 ~5% most frequent embeddings on 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.
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: Today's paper: "STAPLE: Static Sparse Upcycling of Pretrained Checkpoints via Embedding Modules".
Jane: The gist STAPLE introduces a recipe built upon STEM for integrating static sparse memory into pretrained models, showing that this approach can provide a sample-efficient, scalable,
Tom: First, who's behind it and why it matters.
Paper summary: Tom: So we’re looking at this paper, "STAPLE: Static Sparse Upcycling of Pretrained Checkpoints via Embedding Modules." The main idea here is they are trying to integrate static sparse memory into pretrained models without having to do all that expensive sparse pretraining from scratch.
Jane: That sounds like they’re trying to get the benefits of sparse memory—the ability to scale up without scaling up the whole model—but using something already trained, which saves a lot of time and data. What is their main claim about this STAPLE method?
Lu: They introduce STAPLE as a recipe built on STEM, but they modify it by replacing the FFN up-projections with token-indexed embeddings and adding those embeddings as a residual pathway. The core architectural choice is how sparse memory interacts with existing computation.
Meng: Wait, so they keep the pretrained up-projection computation running while adding these new embeddings to learn complementary information in a scalable way? That sounds like they’re trying to preserve what the model already knows while giving it new, specific knowledge.
Lalam: Exactly. They replace the standard way of doing things with an additive design where the pretrained up-projection preserves shared dense computation and the added embeddings learn complementary token-specific residual information in a scalable manner (ref: <ref:2610.12599#pg3>).
Tom: I'm looking at how they handle initialization too. They set the embedding weights to zero, which means they restore the seed model’s computation graph and don't discard the knowledge from the pretrained weights on page four of this paper (ref: <ref:2610.12599#pg4>).
Jane: And they add a short warmup phase where they use a small subset of pretraining data and freeze the FFN up-projections to encourage these newly introduced embeddings to learn useful complementary knowledge. It seems like this warmup consistently improves MMLU and average commonsense reasoning over direct upcycling throughout mid-training (ref: <ref:2610.12599#pg4>).
Lu: The scalability comes from two axes: the number of embedding-augmented layers L and the embedding dimension r. Increasing L from four to twelve raises the average downstream score from forty-five point one zero to forty-five point five nine under continued training budget on page eight (ref: <ref:2610.12599#pg2>).
Meng: And for the low-rank variant, they use an embedding rank r of five hundred twelve, which reduces the token-indexed table by sixteen times and reaches a performance of forty-four point nine seven versus forty-five point five nine for the full-rank STAPLE on page eight (ref: <ref:2610.12599#pg2>). That’s a big reduction in memory usage for inference, I wonder if that makes it practical for deployment?
Paper summary: Lalam: It definitely does. STAPLE maintains system efficiency by keeping the large embedding tables in CPU DRAM, with only needed rows transferred to the GPU for training and inference on page four (ref: <ref:2610.12599#pg4>). During training, only the active U times dff rows are materialized on GPU, acting as an autograd leaf (ref: <ref:2610.12599#pg3>).
Tom: And for inference time offloading, they use frequency-aware caching of five to six percent of the vocabulary which achieves roughly an eighty percent hit rate, reducing the GPU-resident STAPLE-12L embedding footprint from nineteen point seven three gigabytes to a one gigabyte cache on page four (ref: <ref:2610.12599#pg4>). That’s a significant reduction in GPU memory needed for serving.
Jane: So the results show that STAPLE scales well, and it's efficient enough for real-world deployment because of how they manage the memory on the hardware side. But what about how reliable is this knowledge after training?
Lu: The paper demonstrates that the model relies on its learned static memory after mid-training because removing the last embedding tables causes a sharp decline in average scores across ten benchmarks on page nine (ref: <ref:2610.12599#pg9>). That suggests this added knowledge is important.
Meng: I saw that too. It shows the model really depends on those embeddings after training, not just whatever was in the initial weights you started with (ref: <ref:2610.12599#pg4>). But can we actually control what these embeddings do?
Lalam: Yes, they show causal interventions where individual embeddings can steer predictions. For instance, swapping the STEM embedding for ‘maximum’ with that for ‘minimum’ causes the model to assign a higher probability to the minimum without few-shot demonstrations on page nine (ref: <ref:2610.12599#pg9>).
Tom: That’s interesting because it means we have some level of interpretability over these learned static memories, not just a black box. And that token-indexed memory intervention propagates through a GSM8K solution, shifting intermediate quantities and final answers by changing the effective numerical premise used by subsequent computation on page sixteen (ref: <ref:2610.12599#pg16>).
Jane: So what does this mean for us right now? If we take this recipe for static sparse upcycling, it shows that existing pretrained models can gain new capabilities from scalable static sparse memory without doing expensive training or facing a huge increase in serving cost on the GPU (ref: <ref:2610.12599#pg4>).
Lu: It suggests that we can augment these models with scalable static sparse memory and they will actually perform better, compared to just upcycling them using a baseline MoE approach (ref: <ref:2610.12599#pg8>). The key idea is preserving the pretrained model’s learned knowledge and complementing it with scalable memory.
Paper summary: Meng: From my point of view, this means we can potentially deploy larger, more capable models for production with much smaller GPU footprints than if we trained them sparsely from scratch (ref: <ref:2610.12599#pg4>). It seems like a practical way to get more performance without the massive training cost.
Lalam: I’m confident in what they show here; the system-efficient scaling of static sparsity translates into practical performance gains even in the upcycling setting (ref: <ref:2610.12599#pg4>). It allows us to keep what we already trained and add new things efficiently.
Tom: So, STAPLE shows that this approach enables static sparse upcycling of pretrained models, and compared with a serving-efficient MoE upcycling baseline, it achieves a higher average score while training faster and decoding two times faster with a much smaller GPU memory footprint on page four (ref: <ref:2610.12599#pg4>).
Jane: It seems like the implication is that we don't need to start over; we can leverage existing models and just bolt on this static sparse memory to give them new abilities without a prohibitive increase in serving cost or training expense (ref: <ref:2610.12599#pg4>).
Lu: The authors clearly show how the replacement-style STEM upcycling remains below STAPLE in every aspect, especially when looking at panels a and c of figure two on page three (ref: <ref:2610.12599#pg3>). That means retaining those FFN up-projections is really important for performance.
Meng: I just hope that the results hold up when we move this from training data to real traffic, because benchmarks are nice, but production models can break at scale (ref: <ref:2610.12599#pg4>). It’s hard to predict if these scaling laws will hold true under heavy load.
Lalam: They did show that the math and code reasoning performances are relatively less affected by the changes in STAPLE, compared to commonsense reasoning performance on page three (ref: <ref:2610.12599#pg3>). That might suggest some areas where this method is more robust.
Tom: So, to sum up the STAPLE paper, it gives us a recipe for static sparse upcycling that is system-efficient and shows practical performance gains over baseline methods (ref: <ref:2610.12599#pg4>). It’s about preserving old knowledge while learning new things in a scalable way.
Jane: And the conclusion is that this approach suggests existing pretrained models can gain new capabilities from scalable static sparse memory without expensive training or a prohibitive increase in serving cost (ref: <ref:2610.12599#pg4>). It’s a path forward for expanding model capabilities sustainably on page four <ref:2610.12599#pg1>.
Conclusion: Tom: So, we’re wrapping up our look at STAPLE, which is basically a method for taking existing pretrained models and adding static sparse memory to them without needing a whole new training run from scratch.
Jane: It’s really about this idea that you don't have to start over with massive pretraining just to get these new capabilities added into the model structure.
Lu: The authors are focused on modifying the standard Mixture-of-Experts, or MoE, upcycling strategy by swapping out the FFN up-projections for token-indexed embeddings and adding them as a residual pathway.
Meng: So they’re not just sticking a memory layer on top; they're changing how the model computes that existing knowledge while learning new stuff in parallel.
Lalam: Exactly, the core idea is that you keep the dense computation from before while using these new embeddings to learn token-specific information in a scalable way.
Tom: They show that this recipe works really well, and they scale it by just increasing the number of layers or the size of those embedding tables.
Jane: And they demonstrate that this scaling leads to tangible performance gains on downstream tasks, even when you are only doing continued training.
Lu: The paper shows that if you increase the layer count from four to twelve, the average downstream score goes up from forty-five point one zero to forty-five point five nine under continued training budget.
Meng: That’s good for scaling because it means we can get better performance just by adding a few more layers with this method.
Lalam: And they also show that using a low-rank variant, an embedding dimension of five hundred twelve, cuts down the size of the token-indexed table sixteen times while still getting a score near forty-five point four nine.
Tom: So from what I’m seeing on page four, they make it system efficient by keeping those huge embedding tables in CPU DRAM and only moving what’s needed to the GPU for training or inference.
Jane: And for serving, they use frequency-aware caching on five to six percent of the vocabulary, which drops the memory footprint of a twelve layer model from nineteen point seven three gigabytes down to just one gigabyte on page four.
Lu: The paper also explores interpretability by showing that after mid-training, removing those last embedding tables causes a sharp drop in scores across ten benchmarks.
Meng: That tells me these embeddings aren't just noise; they are essential for the model’s final performance on those tasks.
Lalam: Plus, they show you can actually intervene causally; swapping an embedding for ‘maximum’ with one for ‘minimum’ changes the output, and that intervention gets propagated through a GSM8K solution by changing the numerical premise used later on page sixteen.
Tom: So, to put it simply, STAPLE is a method that allows you to take what you already trained and enhance its abilities using scalable static memory in a way that’s efficient for training and serving.
Jane: It suggests that existing pretrained models can gain new capabilities from scalable static sparse memory without expensive training or a prohibitive increase in serving cost on the GPU.
Lu: The implication is that we don't need to start over; we can leverage existing models and just bolt on this static sparse memory to give them new abilities.
Tom: This paper lays out a recipe for static sparse upcycling that is system-efficient and shows practical performance gains over baseline methods.
Jane: It’s about preserving the old knowledge while learning new things in a scalable way, which points toward a more sustainable path for expanding model capabilities.
More episodes
- 2610.07475-Adapting to Changes in Agent Behavior via Finite-Depth Policy Sensitivity
- 2610.07458-Interpretable Hypergraph Learning via Neural Additive Models
- 2610.07485-Robust Importance Sampling for Rare Events via Constrained Gaussian Mixtures
- 2610.07499-Source-Learned Reliance for Selective Test-Time Adaptation of Multimodal Time Series
- 2610.07602-A Neural JKO Scheme for Hellinger-Kantorovich Gradient Flows via Monge-Growth Pairs
- 2610.07662-MS-ECG-FM: Towards a More Universal Electrocardiogram Foundation Model for Health Monitoring using Multi-source Contrastive Learning
- 2610.07610-Hub for Outliers, Spokes for Inliers: Uniform Latent Space Construction for Dual-Mismatched Semi-Supervised Learning
- 2610.07825-Forecast Accuracy Is Not Trading Profit: Evolving Small Recurrent Networks for Stock Return Prediction
- 2610.07529-Targeted search shows that random-device testing underestimates worst-case error in a simulated wave-based neural operator
- 2610.07559-TAFFY: A Task-Adaptive Tabular Foundation Model with In-Context Diversity