arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.07388cs.CLcs.LG
收藏

TF-Engram:一种用于大语言模型的基于固态硬盘支持内存的免训练印记

TF-Engram: A Train-Free Engram with SSD-Backed Memory for Large Language Models

The Chinese University of Hong Kong(香港中文大学);Beijing Institute of Technology, Zhuhai(北京理工大学珠海学院)

Yutang Ma, Kecheng Huang, Xikun Jiang, Zili Shao

AI总结:

研究针对大语言模型知识扩展成本高问题,提出TF-Engram免训练印记系统,通过离线构建特定短语语义内存、跨层次存储及预测预取等方法,在Qwen3-0.6B上提升下游分数,证明可将其作为低开销组件集成到LLM推理中。

摘要:

大语言模型(LLMs)将事实知识和特定领域模式隐含存储在密集的Transformer参数中,通过预训练、微调、检索增强或更长上下文进行知识扩展成本高昂。印记式内存提供了紧凑的隐藏状态注入途径,但现有基于GPU的设计常依赖基于哈希的压缩,导致无关短语在共享槽中冲突,削弱了短语级语义保真度。我们提出TF-Engram,一种免训练的印记系统,它从外部语料库离线构建特定短语的语义内存,跨GPU-DRAM-SSD层次结构存储大型内存表,并使用提前退出引导预测预取来在自回归解码期间隐藏外部内存延迟。在Qwen3-0.6B上,TF-Engram将平均下游分数从57.6提高到59.4,优于冻结主干和参数匹配的LoRA基线。系统评估表明,可以以适度的离线成本构建大型TF-Engram表,基于固态硬盘的存储大幅降低了GPU内存需求,预测预取弥补了因外部内存访问导致的大部分吞吐量损失。这些结果表明,静态短语内存可以作为一种可扩展、免训练且低开销的系统组件集成到LLM推理中。

英文摘要:

Large Language Models (LLMs) store factual knowledge and domain-specific patterns implicitly in dense Transformer parameters, making knowledge expansion costly through pretraining, fine-tuning, retrieval augmentation, or longer contexts. Engram-style memory offers a compact hidden-state injection pathway, but existing GPU-resident designs often rely on hash-based compression, causing unrelated phrases to collide in shared slots and weakening phrase-level semantic fidelity. We present TF-Engram, a train-free Engram system that constructs phrase-specific semantic memory offline from external corpora, stores large memory tables across a GPU--DRAM--SSD hierarchy, and uses Early-Exit Guided Predictive Prefetching to hide external-memory latency during autoregressive decoding. On Qwen3-0.6B, TF-Engram improves the average downstream score from 57.6 to 59.4, outperforming both the frozen backbone and a parameter-matched LoRA baseline. System evaluation shows that large TF-Engram tables can be built with moderate offline cost, SSD-backed storage substantially reduces GPU memory demand, and predictive prefetching recovers much of the throughput loss caused by external memory access. These results demonstrate that static phrase memory can be integrated into LLM inference as a scalable, train-free, and low-overhead system component.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑