Chiosa
Machine Learning

Static memory expands pretrained models without sparse pretraining

STAPLE: Static Sparse Upcycling of Pretrained Checkpoints via Embedding Modules · arXiv:2610.12599

3 min
Updated

In plain words

STAPLE is a method for expanding a pretrained language model with a large lookup memory. Each input token selects a row from that memory, and the selected information is added to the model's existing feed-forward computation. The new rows start at zero, so the model initially behaves like the original.

Researchers compared this design with continued training of the dense model and with other sparse designs. On OLMo-2 1B, STAPLE raised the average score across ten tasks from 44.39 to 45.59 under the reported training budget.

The research

The practical question is whether extra parameters can add useful capability after pretraining without throwing away the computation already learned or making the model expensive to serve.

That matters because sparse expansion can avoid full retraining, but expert-based designs add routing, memory, communication, and fragmentation costs, while replacement-style static memory may waste limited training on relearning.

STAPLE keeps the pretrained feed-forward path and adds zero-initialized token memory, improving tested scores during limited continued training.

Researchers compared additive memory with replacement in a four-layer ablation, then tested STAPLE-12L against dense continuation and parameter-matched static alternatives on OLMo-2 1B.

Its average score across ten tasks rose from 44.39 to 45.59, with gains in coding, mathematics, and reading comprehension.

The retained pathway and sharp score drop after table removal support a role for learned static memory.

The conclusion is limited to the reported OLMo-2 settings: the 7B test used a reduced training budget, and table removal was performed without retraining on a checkpoint whose remaining weights had co-adapted with memory.

What the evidence shows

  • A sparse expansion problem

    STAPLE, short for STAtic uPcycLing via Embedding layers, is a method for expanding pretrained dense language models during limited continued training. It addresses a practical tension: pretraining a larger sparse model from scratch is expensive, while expert-based expansion can add routing, memory, communication, and fragmentation costs.

    The paper asks whether static, token-specific memory can add capacity without discarding the model's existing computation.

  • Preserving existing computation

    The method keeps the pretrained feed-forward up-projection and adds a zero-initialized embedding selected by the current token. This additive residual pathway initially leaves the model's computation unchanged, then learns complementary token-specific information.

    In the four-layer architecture ablation, replacement-style STEM stayed below continued dense training even with extra warmup, while retaining the up-projection produced substantially better downstream performance under the same training budget.

  • Testing downstream capability

    Researchers tested OLMo-2 1B models on ten tasks covering commonsense reasoning, knowledge, reading comprehension, mathematics, and coding. Each task uses its own measure, such as accuracy, F1, exact match, or pass@1, and the researchers aggregate those task scores into a ten-task average.

    STAPLE-12L reached 45.59 versus 44.39 for continued dense training, and also exceeded the evaluated STEM and parameter-matched Engram-style alternatives.

  • Checking recipe and dependence

    The controls clarify what contributes to the result. A separate warmup for the new tables consistently helped knowledge and commonsense tasks, but not advanced mathematics and programming.

    Removing tables from a trained checkpoint without retraining sharply lowered the ten-task average, from 45.59 to 41.28, 36.94, or 32.17 as more tables were removed. The model therefore relied on learned static memory, although this was not a comparison with the original dense seed.

  • Scaling beyond the seed

    The paper also examines capacity, scale, and serving. On OLMo-2 1B, increasing augmented layers from four to twelve raised the average from 45.10 to 45.59, while a smaller rank-512 table reached 44.97.

    On OLMo-2 7B, STAPLE raised the average from 57.11 to 58.01 under a separate reduced budget. On one B200 at batch size 64, generation speed stayed near dense and was more than twice the evaluated MoE model's speed, with less GPU model memory.

Deep

Next paperQUILT speeds long-context prefill by sharing query work