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

知识胶囊:用于大语言模型的结构非参数记忆单元

Knowledge Capsules: Structured Nonparametric Memory Units for LLMs

Zhejiang Angel Medical AI Technology Co., Ltd.(浙江天使医疗人工智能科技有限公司);Miti AI Technology Co., Ltd.(米蒂人工智能科技有限公司);China-Singapore Belt and Road Joint Laboratory on Translational Infection Biology for Diagnostics and Therapies(中英一带一路联合实验室(转化感染生物学诊断与治疗));State Key Laboratory for Diagnosis and Treatment of Infectious Diseases(传染病诊断与治疗国家重点实验室);The First Affiliated Hospital(第一附属医院)

Bin Ju, Shenfeng Weng, Danying Zhou, Rongkai Xu, Kunkai Su

AI总结:

本文提出知识胶囊,一种结构化的非参数记忆单元,通过冻结基础模型直接从文档语料构建,采用外部键值注入框架提升外部知识在注意力计算中的参与度,提升长上下文和多跳推理的稳定性和准确性。

摘要:

大型语言模型(LLMs)通过参数权重编码知识,更新或扩展成本较高。检索增强生成(RAG)通过将检索文本附加到输入中缓解这一限制,但其通过上下文扩展操作,外部知识作为令牌在注意力机制中竞争,导致影响间接且不稳定,尤其在长上下文和多跳推理场景中。我们提出知识胶囊,即结构化的非参数记忆单元,可表示归一化的关系知识,并可通过冻结的基础模型直接从文档语料中构建。不同于将知识注入为文本,我们引入外部键值注入(KVI)框架,将胶囊编译成注意力兼容的键值表示,使外部知识能直接参与模型的注意力计算。通过将知识整合从上下文级增强转移到记忆级交互,所提框架在多个问答基准测试中优于RAG和GraphRAG,具有更高的稳定性和准确性,且无需参数更新。

英文摘要:

Large language models (LLMs) encode knowledge in parametric weights, making it costly to update or extend without retraining. Retrieval-augmented generation (RAG) mitigates this limitation by appending retrieved text to the input, but operates purely through context expansion, where external knowledge competes as tokens within the attention mechanism. As a result, its influence is indirect and often unstable, particularly in long context and multi hop reasoning scenarios. We propose Knowledge Capsules, structured nonparametric memory units that represent normalized relational knowledge and can be constructed directly from document corpora using a frozen base model. Instead of injecting knowledge as text, we introduce an External Key Value Injection (KVI) framework that compiles capsules into attention-compatible key value representations, enabling external knowledge to directly participate in the model's attention computation. By shifting knowledge integration from context-level augmentation to memory level interaction, the proposed framework consistently outperforms RAG and GraphRAG across multiple QA benchmarks, with improved stability and accuracy in long context and multi hop reasoning, while requiring no parameter updates.

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

↑