paper-with-me

홈 › Papers

Knowledge Capsules: Structured Nonparametric Memory Units for LLMs

2026-04-22 · Bin Ju, Shenfeng Weng, Danying Zhou, Rongkai Xu, Kunkai Su arxiv

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.

📄 PDF Abstract BibTeX arXiv:2604.20487

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Unsupervised Word Discovery with Segmental Neural Language Models

2018-09-27 · Kazuya Kawakami, Chris Dyer, Phil Blunsom

We propose a segmental neural language model that combines the representational power of neural networks and the structure learning mechanism of Bayesian nonparametrics, and show that it learns to discover semantically m…

Language ModelingLanguage Modelling

Routing Towards Discriminative Power of Class Capsules

2021-03-07 · HaoYu Yang, Shuhe Li, Bei Yu

Capsule networks are recently proposed as an alternative to modern neural network architectures. Neurons are replaced with capsule units that represent specific features or entities with normalized vectors or matrices. T…

Microskill Architecture: A Modular Skill-Driven Framework for AI-Native Code Generation

2026-06-04 · Mohammad Zare, Omid Abdolrahmani arxiv

Large language models and AI coding agents have reshaped software development, but the path to fully AI-native systems faces structural challenges. Chief among them is managing context windows without losing accuracy or …

Code Generation

Deformable Capsules for Object Detection

2021-04-11 · Rodney LaLonde, Naji Khosravan, Ulas Bagci

Capsule networks promise significant benefits over convolutional networks by storing stronger internal representations, and routing information based on the agreement between intermediate representations' projections. De…

Computational EfficiencyObjectobject-detectionObject Detection

Hyperspectral Image Classification Using Deep Matrix Capsules

2023-02-02 · International Conference on Data Science, Agents & Artificial Intelligence (ICDSAAI) 2023 2 · Anirudh Ravikumar, Rohit P N, Mydhili K. Nair, Vimal Bhatia

Hyperspectral image (HSI) classification is used in multiple domains like precision agriculture, mineral exploration, remote sensing, and others. Conventionally, couvolutional neural networks (CNNs) were used in HSI clas…

ClassificationEdge-computingHyperspectral Image Classificationimage-classification+1