arXiv:2510.02375cs.CLcs.AI2025-10被引 11

用分层记忆库让小模型也能掌握大量知识,适合边缘设备部署。

Pretraining with hierarchical memories: separating long-tail and common knowledge

  • 小模型通过访问分层记忆库获取知识,避免全量参数存储。
  • 160万参数模型加18万参数记忆,性能超2倍参数的常规模型。
  • 支持多种架构,可预训练或后期添加,适合资源受限场景。

当前语言模型性能提升依赖参数规模扩大,但将全部世界知识存入参数不高效,且难以在边缘设备上运行。本文提出一种记忆增强架构与适配现有硬件的预训练策略:小语言模型可访问大型分层参数化记忆库。预训练时将长尾知识存入记忆,小模型则保留通用知识和推理能力。在万亿级数据上实验表明,160万参数模型搭配18万参数记忆块(来自46亿参数记忆库)性能媲美参数量超过两倍的常规模型。研究还探索了不同类型与规模的记忆结构,验证其在超过210亿参数下的鲁棒性,且在多种Transformer架构中均有效,支持预训练阶段或后期添加。

原文摘要 · Abstract (English)

The impressive performance gains of modern language models currently rely on scaling parameters: larger models store more world knowledge and reason better. Yet compressing all world knowledge into parameters is unnecessary, as only a fraction is used per prompt, and impractical for edge devices with limited inference-time memory and compute. We address this shortcoming by a memory-augmented architecture and a pretraining strategy aligned with existing hardware paradigms. We introduce small language models that access large hierarchical parametric memory banks encoding world knowledge. During pretraining and inference, we fetch a small, context-dependent memory block and add it to the model. Our pretraining learns to store long-tail world knowledge in the memory parameters, while the small language model acts as an anchor capturing common knowledge and general reasoning abilities. Through trillion-token-scale experiments, we show significant gains: a 160M-parameters model augmented with an 18M-parameters memory fetched from a 4.6B memory bank obtains comparable performance to a regular model with more than 2x the parameters. Through extensive experiments, we study the optimal type and size of parametric memories in transformers, scaling them to over 21B parameters. We find that our proposed hierarchical feed-forward memories work robustly across transformer architectures, whether added during pretraining or post-hoc.

小模型记忆增强边缘计算分层记忆

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。