paper-with-me

Papers

Memory Grafting: Scaling Language Model Pre-training via Offline Conditional Memory

2026-05-20 · Runxi Cheng, Yuchen Guan, Yongxian Wei, Qianpu Sun, Qixiu Li, Sinan Du, Feng Xiong, Chun Yuan, Yan Lu, Yeyun Gong arxiv

Scaling conditional memory offers a promising way to increase language-model capacity, but existing methods such as Engram learn large memory tables from scratch during pre-training, making memory scaling expensive and sometimes ineffective. We propose Memory Grafting, a conditional memory scaling method that utilizes frozen hidden states from a grafting model as conditional n-gram memory. Given frequent local n-grams, we run the grafting model offline, store final-token hidden representations as memory values, and let the recipient model retrieve them through exact longest-match suffix lookup. Retrieved memories are adapted by lightweight projections and gates, while a hash-based Engram fallback preserves coverage for unmatched contexts. Since the grafting model is only run offline and exact lookup has expected O(1) complexity with respect to memory-bank size, Memory Grafting expands external latent capacity with limited training and inference overhead. Experiments under matched recipient architectures and pre-training budgets show that Memory Grafting improves over both MoE and vanilla Engram baselines. In the 2.8B-scale setting, it improves the average benchmark score from 51.95 for MoE and 52.43 for vanilla Engram to 53.86. In the 0.92B-scale setting, all grafting-model variants improve over the baselines, with Qwen3.5-35B-A3B giving the strongest gains. These results suggest that pretrained models can serve as reusable constructors of external latent memory, providing a practical step toward scaling future language models beyond trainable parameters alone.

📄 PDF Abstract BibTeX arXiv:2605.20948

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Encoder Winners Do Not Reliably Transfer Across VLA Backbone Scale: A Frozen-Backbone Grafting Diagnostic

2026-06-12 · Qingping Zeng, Fei She arxiv

Vision-language-action (VLA) policies typically inherit their vision encoder from upstream VLM releases, but it is unclear whether an encoder choice validated on a small VLA transfers to a larger backbone. We introduce a…

STAlloc: Enhancing Memory Efficiency in Large-Scale Model Training with Spatio-Temporal Planning

2025-07-22 · Zixiao Huang, Junhao Hu, Hao Lin, Chunyang Zhu 외 arxiv

The rapid scaling of large language models (LLMs) has significantly increased GPU memory pressure, which is further aggravated by training optimization techniques such as virtual pipeline and recomputation that disrupt t…

Compatibility studies of loquat scions with loquat and quince rootstocks

2024-09-17 · Rasul Rafiq Aziz, Fakhraddin Mustafa Hama Salih, Ibrahim Maaroof Noori

Experiment 1. Rooting of quince hardwood cuttings: Rooting success was influenced by both the concentrations of IBA and the selection of rooting media. However, the control group (without IBA) notably enhanced rooting wh…

Sand

Multilingual Translation via Grafting Pre-trained Language Models

2021-09-11 · Findings (EMNLP) 2021 11 · Zewei Sun, Mingxuan Wang, Lei LI

Can pre-trained BERT for one language and GPT for another be glued together to translate texts? Self-supervised training using only monolingual data has led to the success of pre-trained (masked) language models in many …

DecoderMachine TranslationTranslation

Exploring Diffusion Transformer Designs via Grafting

2025-06-05 · Keshigeyan Chandrasegaran, Michael Poli, Daniel Y. Fu, Dongjun Kim 외

Designing model architectures requires decisions such as selecting operators (e.g., attention, convolution) and configurations (e.g., depth, width). However, evaluating the impact of these decisions on model quality requ…