Memory Grafting: Scaling Language Model Pre-training via Offline Conditional Memory
Runxi Cheng, Yuchen Guan, Yongxian Wei, Qianpu Sun, Qixiu Li, SiNan Du, Feng Xiong, Chun Yuan, Yan Lu, Yeyun Gong
NeurIPS 2026
TL;DR. We Initializing Pre-training with LLM's Shallow Intuition
Abstract. Large language models acquire rich internal knowledge during pre-training, yet compact models are still typically forced to relearn such knowledge from raw data or imitate it indirectly through distillation. We investigate a different route: can pretrained knowledge itself be directly reused during pre-training? To this end, we propose Memory Grafting, a representation-level transfer paradigm that extracts structured memories from a large frozen donor model and injects them into a compact student throughout training. Unlike knowledge distillation, which transfers behavior through output alignment, or retrieval-based methods, which expose external knowledge only at inference time, Memory Grafting makes pretrained knowledge part of the student’s optimization process itself. This suggests that knowledge in large language models can be modular, transplantable, and reusable across scales, pointing to a new path toward more efficient language model pre-training.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:48 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes Memory Grafting, which constructs a frozen n-gram memory from a pre-trained donor’s hidden states and injects retrieved representations into a smaller recipient through exact matching, adaptive gating, and an Engram fallback.
The main strengths are a clear and practically motivated idea, reasonably controlled recipient-side comparisons, consistent improvements over MoE and vanilla Engram at two model scales, and useful analyses of the retrieval mechanism, donor layers, memory capacity, and representation geometry.
The central weakness is that the experiments do not isolate the benefit of the proposed mechanism from the more general benefit of using representations from a much larger pretrained model. As noted by Pjyf, 21S5, and ZQea, there is no comparison with distillation or another teacher-transfer method using the same donor. Resource accounting is also incomplete: the methods are matched in recipient-side trainable and activated parameters, but Memory Grafting adds a large frozen memory bank that is excluded from the main parameter comparison.
The author response should prioritize the following questions:
- What evidence shows that the gains are specific to Memory Grafting rather than generic teacher transfer? Where do the gains really come from? Is it because of the Memory Grafting design, or simply because the model gets representations from a much larger teacher? Any existing small-scale comparison with offline distillation or feature transfer using the same donor would help.
- What resources are actually matched? Please clarify whether the reported “total parameters” exclude the frozen memory bank. Also separate trainable parameters, activated parameters, extra frozen storage, where the memory is stored, offline construction cost, and whether this cost can be shared across multiple training runs.
The response addressed the two main weaknesses in my initial meta-review to a meaningful degree. The authors added a controlled comparison using the same donor, data order, training budget, and recipient budget. Vanilla Engram scores 42.1, offline KD scores 43.2, Memory Grafting scores 45.2, and combining MG with KD scores 46.2. This directly supports that the gain is not only generic teacher transfer. Pjyf considered this major concern addressed and increased the score from 3 to 4. ZQea also stated that the concerns were sufficiently clarified and maintained a positive score. Reviewer 21S5 did not provide a follow-up and remains at 3, so I do not interpret the silence as agreement.
The authors also clarified that the 24.576 GB frozen bank is stored in host RAM, and provided extraction-cost and systems measurements. However, the full lifecycle is still not strictly FLOP-matched, and the new cross-corpus experiment uses proprietary data without variance reporting. Donor dependence and practical deployment cost therefore remain limitations.
The method is a useful and reasonably original way to reuse pretrained representations, and the new KD comparison, together with the existing mechanism ablations, addresses the main decision-critical concern.
Final justification
The new same-donor comparison shows that Memory Grafting outperforms offline KD under matched recipient and training budgets, directly addressing the main concern in the initial meta-review. Pjyf increased the score from 3 to 4, and ZQea maintained a positive score after the clarification. Although 21S5 remained at 3 without follow-up, the substantive concerns about KD comparison, resource accounting, robustness, and n-gram construction were directly answered.
Some limitations remain regarding full lifecycle cost, proprietary evaluation data, donor dependence, and deployment evidence, but I do not think they outweigh the paper’s contribution.
Read meta-review
Meta-review
This paper proposes Memory Grafting, which constructs a frozen n-gram memory from a pre-trained donor’s hidden states and injects retrieved representations into a smaller recipient through exact matching, adaptive gating, and an Engram fallback.
The main strengths are a clear and practically motivated idea, reasonably controlled recipient-side comparisons, consistent improvements over MoE and vanilla Engram at two model scales, and useful analyses of the retrieval mechanism, donor layers, memory capacity, and representation geometry.
The central weakness is that the experiments do not isolate the benefit of the proposed mechanism from the more general benefit of using representations from a much larger pretrained model. As noted by Pjyf, 21S5, and ZQea, there is no comparison with distillation or another teacher-transfer method using the same donor. Resource accounting is also incomplete: the methods are matched in recipient-side trainable and activated parameters, but Memory Grafting adds a large frozen memory bank that is excluded from the main parameter comparison.
The author response should prioritize the following questions:
- What evidence shows that the gains are specific to Memory Grafting rather than generic teacher transfer? Where do the gains really come from? Is it because of the Memory Grafting design, or simply because the model gets representations from a much larger teacher? Any existing small-scale comparison with offline distillation or feature transfer using the same donor would help.
- What resources are actually matched? Please clarify whether the reported “total parameters” exclude the frozen memory bank. Also separate trainable parameters, activated parameters, extra frozen storage, where the memory is stored, offline construction cost, and whether this cost can be shared across multiple training runs.
The response addressed the two main weaknesses in my initial meta-review to a meaningful degree. The authors added a controlled comparison using the same donor, data order, training budget, and recipient budget. Vanilla Engram scores 42.1, offline KD scores 43.2, Memory Grafting scores 45.2, and combining MG with KD scores 46.2. This directly supports that the gain is not only generic teacher transfer. Pjyf considered this major concern addressed and increased the score from 3 to 4. ZQea also stated that the concerns were sufficiently clarified and maintained a positive score. Reviewer 21S5 did not provide a follow-up and remains at 3, so I do not interpret the silence as agreement.
The authors also clarified that the 24.576 GB frozen bank is stored in host RAM, and provided extraction-cost and systems measurements. However, the full lifecycle is still not strictly FLOP-matched, and the new cross-corpus experiment uses proprietary data without variance reporting. Donor dependence and practical deployment cost therefore remain limitations.
The method is a useful and reasonably original way to reuse pretrained representations, and the new KD comparison, together with the existing mechanism ablations, addresses the main decision-critical concern.
Final justification
The new same-donor comparison shows that Memory Grafting outperforms offline KD under matched recipient and training budgets, directly addressing the main concern in the initial meta-review. Pjyf increased the score from 3 to 4, and ZQea maintained a positive score after the clarification. Although 21S5 remained at 3 without follow-up, the substantive concerns about KD comparison, resource accounting, robustness, and n-gram construction were directly answered.
Some limitations remain regarding full lifecycle cost, proprietary evaluation data, donor dependence, and deployment evidence, but I do not think they outweigh the paper’s contribution.
1 comment
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes Memory Grafting, an efficient conditional memory scaling method that extracts and freezes hidden states of frequent n-grams from an offline grafting model. The recipient model retrieves these states via exact longest-match lookup and integrates them through gated residual updates, while retaining a hash-based Engram fallback to ensure full contextual coverage.
Strengths and weaknesses
Strengtjhs
- This paper completely avoids the substantial computational cost of optimizing enormous memory matrices from scratch by shifting the massive conditional memory construction to an offline phase and extracting stable hidden representations once.
- This paper strictly constrains the expected retrieval time complexity to through exact hash matching, allowing the model to significantly expand its external latent capacity while experiencing only a marginal drop in inference throughput, making it highly practical for latency-sensitive deployments.
Weakness
- The experimental results reveal that the success of this method depends heavily on the internal feature distribution of the external model. For instance, the deep-layer representations of GLM-4.7-Flash exhibit strong anisotropy, resulting in poorly discriminative memory and severely limited downstream performance gains.
- Despite the optimal time complexity, the spatial cost is significant. Extracting 3 million n-gram entries for a single layer from Qwen3.5-35B-A3B consumes approximately 12 GB of VRAM, and the dual-layer combination used in the main experiments introduces around 24 GB of additional VRAM overhead.
- As acknowledged in the limitations section, due to compute budget constraints, the paper lacks a head-to-head performance comparison with knowledge distillation under identical pre-training scales and token consumption budgets.
Questions
see in the weakness.
Limitations
yes
Final justification
After considering the authors’ rebuttal and the discussion, I am satisfied with the clarifications provided. While some minor issues remain, they do not substantially affect my overall assessment. I find the proposed approach novel and technically meaningful, and I appreciate the authors’ efforts in addressing the concerns. Therefore, I will maintain my positive score.
Formatting concerns
no
3 comments
Rebuttal
We thank the reviewer for the thoughtful questions. We respond to each point below.
W1 — Dependence on donor feature geometry. We agree that Memory Grafting inherits a dependence on the quality of the donor representations, as does any transfer method; distillation from a poorly calibrated teacher can likewise fail. Our contribution beyond observing this phenomenon is predictability. The geometric diagnostics in Appendix B.1, including effective rank, first-principal-component concentration, norm stability, and nearest-neighbor structure, are computed directly on the frozen memory table. They take only minutes and require no student training. These diagnostics cleanly distinguish the effective donors, Qwen3.5-35B-A3B and DeepSeek-V2-Lite, from the ineffective GLM-4.7-Flash donor. Extending the same diagnostics to extraction-layer selection is a natural next step that we will explore in the revision.
We also emphasize that the observed failure mode is mild. Even with the degraded GLM memory, Memory Grafting scores 45.83, still slightly above the MoE baseline at 45.62 and clearly above Vanilla Engram at 45.03. A poor donor removes the grafting benefit, but in this experiment it does not push the recipient below either baseline.
W2 — The 12 and 24 GB spatial cost. The paper-setting frozen memory bank occupies 24.576 GB of host RAM rather than VRAM. It has no bank-sized gradients, master-weight copy, or optimizer states, and only the rows hit by the current batch are transferred. Relative to a trainable Online Engram table resident on the accelerator, its persistent GPU-memory burden is therefore much smaller; host RAM also costs far less per GB than GPU HBM.
The host-to-GPU transfer uses the same sparse gather-and-transfer pattern as Engram's memory-offloading path: both transfer only the value rows hit by the current batch. For hit rows with value dimension , both have transfer complexity, independent of the total memory-bank capacity. This stage therefore has exactly the same asymptotic complexity and transfer-volume order as Engram and introduces no communication term that grows with bank capacity.
In an independent 4B systems-path benchmark, MG adds only 1.7–2.1 ms to the full forward pass after pipeline overlap, corresponding to 0.58–0.71%.
W3 — No head-to-head KD comparison at the same scale. We compare four 1B-scale runs trained for 50B tokens on a new mixed corpus (To address the Reviewer 21s5 concern about cross-corpus generalization): ① Vanilla Engram; ② Vanilla Engram + offline KD from Qwen3.5-35B-A3B; ③ Memory Grafting; and ④ Memory Grafting + the same offline KD. The MG runs use the paper's Qwen3.5 bank: 3M keys, values from donor layers 8 and 24, and injection at recipient layers 1 and 12. All four share the data order, seed, optimizer, training-token budget, and recipient-budget protocol.
| Method | ARC-C | ARC-E | BoolQ | SIQA | RACE | LAMBADA | WinoG | PIQA | HellaS | Avg. |
|---|---|---|---|---|---|---|---|---|---|---|
| ① Vanilla Engram | 29.9 | 59.5 | 61.8 | 38.2 | 27.1 | 19.1 | 50.6 | 61.6 | 31.1 | 42.1 |
| ② Vanilla Engram + KD | 30.5 | 60.2 | 61.9 | 39.3 | 28.3 | 20.7 | 50.9 | 63.2 | 33.8 | 43.2 |
| ③ Memory Grafting | 30.8 | 63.5 | 57.7 | 39.6 | 29.7 | 29.1 | 50.7 | 69.4 | 36.4 | 45.2 |
| ④ Memory Grafting + KD | 31.2 | 65.6 | 57.3 | 40.5 | 30.9 | 31.1 | 51.0 | 70.7 | 37.2 | 46.2 |
Methods ② and ④ use cached top-8 output targets from the same Qwen3.5-35B-A3B donor, aligned at exact decoded-prefix boundaries. At aligned positions, with and . The results show that Memory Grafting yields a larger gain than KD, while the two gains remain compatible: combining Memory Grafting with KD produces a further improvement. The paper's ablations provide complementary mechanism evidence: donor identity, extraction layer, and injection rule all change the result, while hit-position probes and CKA show that retrieved values alter recipient hidden states and predictions. Together, these results show that Memory Grafting is not merely generic teacher transfer.
Resources comparison between Offline KD and Memory Grafting
Top-8 offline KD stores eight int32 IDs and eight float16 probabilities, or 48 bytes per token. Over 50B tokens, the payload is about 2.40 TB.
| Resource | Top-8 offline KD | Paper-setting Qwen3.5 MG bank | Ratio of KD to MG |
|---|---|---|---|
| Donor-forward position-volume proxy | about 50B corpus positions | 9M selected-key positions across 3M keys | about 5,600× |
| Stored label or value payload | about 2.40 TB | 24.576 GB for the dual-layer value bank | about 98× |
Compared with offline KD, Memory Grafting requires substantially less additional storage and computation during pre-training, while incurring only a small overhead at inference.
Response to authors
Thank you for your detailed response and clarification. I appreciate the authors’ efforts in addressing my concerns. The response has sufficiently clarified the issues I raised, and I will therefore maintain my positive score.
Thank you again for your thoughtful follow-up and positive assessment. We sincerely appreciate the time you devoted to carefully reading our work and engaging with our response.
- Rating
- 3/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The work introduces memory grafting, a conditional-memory scaling method for language-model pretraining. The proposed method constructs an offline frozen memory bank from hidden states of a larger pretrained “grafting model.” Frequent local n-grams are selected, passed through the grafting model offline, and the resulting final-token hidden states are stored as memory values. The main results show that Memory Grafting improves average benchmark performance in both 2.8B and 0.9B settings. Additional analyses examines memory capacity, CKA alignment, and ablations of the gating/fallback mechanism.
Strengths and weaknesses
The proposed method preserves the appealing property of deterministic n-gram lookup while adding a representation-transfer component through frozen grafted memory. The paper includes useful ablations and analyses. The gating-mechanism ablation supports the design choice of longest-match gated memory with Engram fallback.
-
The reported improvements are encouraging, but it remains unclear how robust the method is across different pretraining corpora, tokenizer choices, and model families.
-
There is no direct comparison with knowledge distillation or other teacher-based transfer baselines. The absence leaves it unclear whether the observed gains come specifically from the proposed memory mechanism, or more generally from using large-model representations.
-
The efficiency analysis would benefit from more systems details, Expected constant-time lookup is algorithmically plausible, but real deployment costs depend on memory bandwidth, distributed lookup implementation, and batch size etc. A more detailed latency and memory breakdown would better support the claim that the method scales efficiently.
Questions
The paper should explain more clearly how frequent n-grams are selected, with details include the corpus used for mining, whether n-grams are selected before or after filtering, how ties are handled etc.
Limitations
Yes
Formatting concerns
NA
2 comments
Rebuttal
We thank the reviewer for the thoughtful questions. We respond to each point below.
W1 — Robustness across corpora, tokenizers, and model families. The paper tests Qwen3.5, DeepSeek-V2-Lite, and GLM-4.7-Flash as donors with different tokenizers. Lookup keys always remain in the recipient token space, while the donor tokenizer is used only to encode surface text during offline value construction. The paper therefore establishes compatibility across donor families and donor tokenizers.
In our new experiment, we additionally change both the recipient tokenizer and the pre-training corpus. We use the GLM-5.2 tokenizer to define the recipient token and key space. All four models in Table 1 are then pretrained from scratch for 50B tokens on an entirely new high-quality proprietary mixed corpus. Thus, key mining and recipient pre-training use different corpus distributions, while the recipient tokenizer also differs from the original setting.
As shown in Table 1, Memory Grafting improves Vanilla Engram from 42.1 to 45.2, a gain of 3.1 points, and improves Vanilla Engram + KD from 43.2 to 46.2, a gain of 3.0 points. The result provide further evidence of cross-corpus and cross-tokenizer generalization.
W2 — The gain may be generic large-model transfer, and there is no KD control.
Table 1. Comparison of Vanilla Engram, offline KD, Memory Grafting, and their combination. Frequent Engram keys were mined from an approximately 10B-token subset of Nemotron using the GLM-5.2 recipient tokenizer. All four models were pretrained from scratch for 50B tokens on an entirely new high-quality proprietary mixed corpus.
| Method | ARC-C | ARC-E | BoolQ | SIQA | RACE | LAMBADA | WinoG | PIQA | HellaS | Macro avg. |
|---|---|---|---|---|---|---|---|---|---|---|
| ① Vanilla Engram | 29.9 | 59.5 | 61.8 | 38.2 | 27.1 | 19.1 | 50.6 | 61.6 | 31.1 | 42.1 |
| ② Vanilla Engram + KD | 30.5 | 60.2 | 61.9 | 39.3 | 28.3 | 20.7 | 50.9 | 63.2 | 33.8 | 43.2 |
| ③ Memory Grafting | 30.8 | 63.5 | 57.7 | 39.6 | 29.7 | 29.1 | 50.7 | 69.4 | 36.4 | 45.2 |
| ④ Memory Grafting + KD | 31.2 | 65.6 | 57.3 | 40.5 | 30.9 | 31.1 | 51.0 | 70.7 | 37.2 | 46.2 |
We compare four settings: ① Vanilla Engram; ② Vanilla Engram + offline KD from Qwen3.5-35B-A3B; ③ Memory Grafting; and ④ Memory Grafting + the same offline KD. The MG runs use the paper's Qwen3.5 MG configuration: 3M keys, values from donor layers 8 and 24, and injection at recipient layers 1 and 12. All four share the data order, seed, optimizer, training-token budget, and recipient-budget protocol.
Methods ② and ④ use cached top-8 output targets from the same Qwen3.5-35B-A3B donor, aligned at exact decoded-prefix boundaries. At aligned positions, with and . The results show that Memory Grafting yields a larger gain than KD, while the two gains remain compatible: combining Memory Grafting with KD produces a further improvement. The paper's ablations provide complementary mechanism evidence: donor identity, extraction layer, and injection rule all change the result, while hit-position probes and CKA show that retrieved values alter recipient hidden states and predictions. Together, these results show that Memory Grafting is not merely generic teacher transfer.
Resources comparison between Offline KD and Memory Grafting. Top-8 offline KD stores eight int32 IDs and eight float16 probabilities, or 48 bytes per token. Over 50B tokens, the payload is about 2.40 TB.
| Resource | Top-8 offline KD | Paper-setting Qwen3.5 MG bank | Ratio of KD to MG |
|---|---|---|---|
| Donor-forward position-volume proxy | about 50B corpus positions | 9M selected-key positions across 3M keys | about 5,600× |
| Stored label or value payload | about 2.40 TB | 24.576 GB for the dual-layer value bank | about 98× |
Compared with offline KD, Memory Grafting requires substantially less additional storage and computation during pre-training, while incurring only a small overhead at inference.
W3 — Missing efficiency breakdown. The paper-setting frozen bank occupies 24.576 GB of host RAM rather than VRAM. It has no bank-sized gradients, master-weight copy, or optimizer states, and only current-batch hit rows are transferred. Relative to a trainable Online Engram table resident on the accelerator, the persistent GPU-memory burden is therefore much smaller; host RAM is also far cheaper per GB than GPU HBM.
The host-to-GPU stage uses the same sparse gather-and-transfer pattern as Engram's offloaded memory path: both transfer only the matched value rows for the current batch. For hit rows of width , both have transfer complexity, independent of the total bank size. This stage therefore has exactly the same asymptotic complexity and transfer-volume order as Engram and introduces no bank-size-dependent communication term.
In an independent 4B systems-path benchmark, MG adds only 1.7–2.1 ms to the full forward pass after pipeline overlap, corresponding to 0.58–0.71%.
Q1 — How are frequent n-grams selected? The n-grams are counted on an approximately 10B-token subset of Nemotron tokenized with the recipient tokenizer. We count keys using within-document sliding windows; n-grams never cross document boundaries and exclude tokens unrelated to n-gram semantics, including BOS, EOS, and padding. For each order , we retain the top 1M keys by frequency with deterministic tie-breaking.
Looking forward to your reply (less than 24 hours)
Dear reviewer 21S5,
We hope our responses have adequately addressed your previous concerns. The discussion period is approaching the end in 24 hours. If you have any additional comments or questions, please feel free to share them. Your feedback is greatly appreciated.
Sincerely,
Authors
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes memory grafting which uses the frozen hidden state of another LLM as the conditional memory, compared to prior approaches (such as Engram) that train the memory from scratch. The approach works as first build frequent n-grams and do forward passes with the grafting model to obtain hidden states as the embedding for the n-gram. Then the retrieval tries to use the longest n-gram's embedding. If retrieval is not successful, the approach falls back to Engram approach. The authors show that memory grafting improves over both MoE and vanilla Engram baselines, and also conduct ablations on the effect of layers where hidden states are obtained and the similarity of resulting representations when using different grafting models.
Strengths and weaknesses
Strengths
- The paper is well-written and easy to understand, with a clear algorithm shown.
- The topic of equiping models with external memory is important and timely, the experiments is comprehensive to my view.
- The finding of middle layer grapting model to be optimal is intriguing.
Weaknesses
- The comparison is on data-matched and recepient model size-matched setting, but not in the FLOPs-matched setting. With external model (which use much more compute to train), it is not very surprising that their hidden states are better representations for n-grams than training from scratch.
- Based on the above, can the author clarify why their results are important? I can see a potential synergy being the grafting model and recepient model encode complementary inductive biases and this combinataion of inductive biases helps training, but I am not sure if this is shown in the paper.
- Additionally, the approach closely relates to distillation approaches, can the author clarify why a comparison is not needed with distillation where the grafting model is not used for memory but for knowledge distillation on logits? I see the point in Appendix C why an online distillation is not comparable, but how about an offline distillation?
Questions
- how is "70% of total parameters" calculated at Line 38?
- I find the description in Section 3.1 on Engram is not very clear:
- What is precisely the compression function P mentioned at Line 109?
- Where does Engram use hidden states H as mentioned at Line 106?
- Maybe also relevant but not discussed in the related work: Pouransari et al., 2025. Pretraining with hierarchical memories: separating long-tail and common knowledge
Limitations
yes
Final justification
The comparison with KD addresses my major concern, so I am adjusting the score from 3 to 4.
Formatting concerns
The reference style in the main text does not follow "LastName et al., Year" and instead uses "[number]". This is different than other papers in my batch. Additionally, the text for reference is a bit cramped. The style the author uses would give extra space to the main text, not sure if this is a problem or not, but I thought I would just flag this.
6 comments
Rebuttal
We sincerely thank the reviewer for the thoughtful and constructive questions. We respond to each point below.
W1 — The comparison is not FLOP-matched once the donor and frozen bank are included. We agree that the full lifecycle is not FLOP-matched. However, the marginal cost of constructing and using the frozen bank is small. The current dual-layer, 3M-key bank occupies 24.576 GB and requires about 3 A100 GPU-hours for donor-representation extraction, far less than the time required for pre-training. MG processes only 9M selected-key positions, versus about 50B corpus positions for offline KD—approximately one five-thousand-six-hundredth, or 0.018%, of the donor-forward position volume. This is a compute-scale proxy, not a measured FLOP or wall-clock ratio. The top-8 KD cache occupies about 2.40 TB, so the MG bank is approximately one ninety-eighth as large. The 3 GPU-hours exclude CPU mining and indexing, and historical donor pre-training remains unmatched.
Relative to Vanilla Engram, MG adds almost no recipient-training GPU-hours or peak GPU-memory consumption. The bank is frozen and kept in host RAM, so it has no bank-sized gradients, master weights, or optimizer states; only current-batch hit rows enter the GPU. Thus, although the lifecycle comparison is not strictly matched, MG's additional pre-training compute, accelerator memory, and storage costs are small, especially relative to offline KD.
W2 — Importance and the proposed synergy are insufficiently established. Memory Grafting encodes short-range patterns and memorization-intensive knowledge offline as frozen conditional memory. The recipient therefore does not need to relearn all such patterns from scratch during pre-training and can devote more trainable capacity to contextual composition and reasoning. The grafted path adds an extra representation pathway that expands effective model capacity without increasing the recipient's trainable parameter count, playing a role analogous to increasing representation depth. CKA, donor-layer ablations, and the accompanying analyses further support this interpretation.
Memory Grafting therefore presents another route for scaling pre-training: lightweight offline computation can effectively expand model capacity.
W3 — Why is offline distillation not compared?
We compare four 1B-scale runs trained for 50B tokens on a new mixed corpus (To address the Reviewer 21s5 concern about cross-corpus generalization): ① Vanilla Engram; ② Vanilla Engram + offline KD from Qwen3.5-35B-A3B; ③ Memory Grafting; and ④ Memory Grafting + the same offline KD. The MG runs use the paper's Qwen3.5 bank: 3M keys, values from donor layers 8 and 24, and injection at recipient layers 1 and 12. All four share the data order, seed, optimizer, training-token budget, and recipient-budget protocol.
| Method | ARC-C | ARC-E | BoolQ | SIQA | RACE | LAMBADA | WinoG | PIQA | HellaS | Avg. |
|---|---|---|---|---|---|---|---|---|---|---|
| ① Vanilla Engram | 29.9 | 59.5 | 61.8 | 38.2 | 27.1 | 19.1 | 50.6 | 61.6 | 31.1 | 42.1 |
| ② Vanilla Engram + KD | 30.5 | 60.2 | 61.9 | 39.3 | 28.3 | 20.7 | 50.9 | 63.2 | 33.8 | 43.2 |
| ③ Memory Grafting | 30.8 | 63.5 | 57.7 | 39.6 | 29.7 | 29.1 | 50.7 | 69.4 | 36.4 | 45.2 |
| ④ Memory Grafting + KD | 31.2 | 65.6 | 57.3 | 40.5 | 30.9 | 31.1 | 51.0 | 70.7 | 37.2 | 46.2 |
Methods ② and ④ use cached top-8 output targets from the same Qwen3.5-35B-A3B donor, aligned at exact decoded-prefix boundaries. At aligned positions, with and . The results show that Memory Grafting yields a larger gain than KD, while the two gains remain compatible: combining Memory Grafting with KD produces a further improvement. The paper's ablations provide complementary mechanism evidence: donor identity, extraction layer, and injection rule all change the result, while hit-position probes and CKA show that retrieved values alter recipient hidden states and predictions. Together, these results show that Memory Grafting is not merely generic teacher transfer.
Resources comparison between Offline KD and Memory Grafting
Top-8 offline KD stores eight int32 IDs and eight float16 probabilities, or 48 bytes per token. Over 50B tokens, the payload is about 2.40 TB.
| Resource | Top-8 offline KD | Paper-setting Qwen3.5 MG bank | Ratio of KD to MG |
|---|---|---|---|
| Donor-forward position-volume proxy | about 50B corpus positions | 9M selected-key positions across 3M keys | about 5,600× |
| Stored label or value payload | about 2.40 TB | 24.576 GB for the dual-layer value bank | about 98× |
Compared with offline KD, Memory Grafting requires substantially less additional storage and computation during pre-training, while incurring only a small overhead at inference.
Q1 — How is the “70% of total parameters” figure obtained? The 70% figure is taken directly from the U-shaped parameter-allocation curve in Engram [1, Fig. 3], rather than calculated from our configurations. Because MoE parameters account for more than 95% of the model, this curve covers the dominant parameter-allocation regime. We will revise Line 38 to cite Fig. 3 directly.
Q2 and Q3 — What is , and where does Engram use ? is deterministic tokenizer-level canonicalization before hashing, not a learned semantic compressor. It normalizes Unicode, case, accents, and whitespace so surface-equivalent forms share a key. Discrete token keys determine retrieval; is used only after retrieval as the contextual input to the gate in Eq. (5), which controls value injection. We will make this distinction explicit in the revision.
Related work. Pouransari et al. [2] jointly train hierarchical parametric memory and retrieve memory blocks through context- or cluster-level routing. Memory Grafting instead extracts hidden states offline from an existing donor, freezes the bank, and uses deterministic exact lookup over frequent recipient-token n-grams followed by gated injection. Thus the methods differ in both how memory is constructed and how it is addressed. We will further clarify these differences in the revision.
[1] Conditional Memory via Scalable Lookup: A New Axis of Sparsity for Large Language Models.
[2] Pretraining with Hierarchical Memories: Separating Long-Tail and Common Knowledge.
Looking forward to your reply (less than 48 hours)
Dear reviewer Pjyf,
We hope our responses have adequately addressed your previous concerns. The discussion period is approaching the end in 48 hours. If you have any additional comments or questions, please feel free to share them. Your feedback is greatly appreciated.
Sincerely,
Authors
Thanks for the detailed response and apologies for the late reply. From what I understand, the benefits of MG over Vanilla Engram come from the better representation of the donor model. KD is another approach that has similar effect, and the authors show that MG and KD combine. This is helpful. My remaining question is that why the authors didn't go for a direct, head-to-head comparison of MG and KD to show whether MG outperforms KD, could the authors clarify?
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Response to Meta Review
We sincerely thank the AC for the thoughtful and constructive questions. We appreciate the opportunity to clarify these important points and respond to each of them below.
Q1. What evidence shows that the gains are specific to Memory Grafting rather than generic teacher transfer?
We compare four 1B-scale runs trained for 50B tokens on a new mixed corpus (To address the
Reviewer 21s5concern about cross-corpus generalization,): ① Vanilla Engram; ② Vanilla Engram + offline KD from Qwen3.5-35B-A3B; ③ Memory Grafting; and ④ Memory Grafting + the same offline KD. The MG runs use the paper's Qwen3.5 bank: 3M keys, values from donor layers 8 and 24, and injection at recipient layers 1 and 12. All four share the data order, seed, optimizer, training-token budget, and recipient-budget protocol.Methods ② and ④ use cached top-8 output targets from the same Qwen3.5-35B-A3B donor, aligned at exact decoded-prefix boundaries. At aligned positions, L=(1−α)LCE+αLKD with α=0.5 and T=1. The results show that Memory Grafting yields a larger gain than KD, while the two gains remain compatible: combining Memory Grafting with KD produces a further improvement. The paper's ablations provide complementary mechanism evidence: donor identity, extraction layer, and injection rule all change the result, while hit-position probes and CKA show that retrieved values alter recipient hidden states and predictions. Together, these results show that Memory Grafting is not merely generic teacher transfer.
Resources comparison between Offline KD and Memory Grafting
Top-8 offline KD stores eight
int32IDs and eightfloat16probabilities, or 48 bytes per token. Over 50B tokens, the payload is about 2.40 TB.Compared with offline KD, Memory Grafting requires substantially less additional storage and computation during pre-training, while incurring only a small overhead at inference.
Q2. What resources are actually matched?
We further clarify the extent to which resources are matched in our experiments. The marginal resource accounting has five components:
Therefore, relative to Vanilla Engram, Memory Grafting preserves the data, token, and trainable-parameter budgets while adding little recipient-training GPU time or GPU-memory pressure. Its marginal donor position volume and offline payload are also far below offline KD—about 0.018% and one ninety-eighth, respectively, under the stated configurations. These results show that Memory Grafting is an efficient pre-training approach.