Saved in:
Bibliographic Details
Main Authors: Ju, Bin, Weng, Shenfeng, Zhou, Danying, Xu, Rongkai, Su, Kunkai
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.20487
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911618234843136
author Ju, Bin
Weng, Shenfeng
Zhou, Danying
Xu, Rongkai
Su, Kunkai
author_facet Ju, Bin
Weng, Shenfeng
Zhou, Danying
Xu, Rongkai
Su, Kunkai
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2604_20487
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Knowledge Capsules: Structured Nonparametric Memory Units for LLMs
Ju, Bin
Weng, Shenfeng
Zhou, Danying
Xu, Rongkai
Su, Kunkai
Computation and Language
Artificial Intelligence
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.
title Knowledge Capsules: Structured Nonparametric Memory Units for LLMs
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2604.20487