atlas

Research map / Large language models / Retrieval and knowledge

KBLaM: Knowledge Base augmented Language Model

ICLR 2025 · Large language models › Retrieval and knowledge · approach: Knowledge editing in LLMs · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes KBLaM, which encodes knowledge-base triples as continuous key-value "knowledge tokens" via a frozen sentence encoder plus learned linear adapters and injects them into a frozen LLM through rectangular attention, trained by instruction tuning on synthetic KB data.

Problem

Augmenting pre-trained LLMs with large external knowledge bases without retrieval modules, quadratic in-context cost, or per-update fine-tuning.

Approach

Each KB triple becomes a fixed-length key-value pair (one knowledge token) from a pre-trained sentence encoder with linear adapters; prompt tokens attend to all knowledge tokens via a rectangular attention pattern in which knowledge tokens do not attend to each other, so cost scales linearly with KB size and the KB can be updated per triple without fine-tuning the LLM.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use KBLaM instead of in-context learningLlama3 8B · Synthetic KB simple and two-entity Q&ABERT score (F1)No clear effect
Use KBLaM instead of zero-shot learningLlama3 8B · Enron Q&ABERT score (F1)Helped
Evaluate on Enron rather than synthetic KB dataKBLaM · Enron Q&ABERT score (F1)Hurt
Use KBLaM instead of BM25KBLaM · Synthetic KB retrievalTop-5 accuracyNo clear effect
Use KBLaM instead of BM25KBLaM · Perturbed synthetic KB retrievalRetrieval accuracyHelped
Use an open-source sentence encoder instead of OpenAI ada-002 (ablation)KBLaM · Q&AAnswer qualityHurt
Use a lower-dimensional sentence encoder (ablation)KBLaM · Q&AAnswer qualityHurt
Add knowledge tokens every 3 layers instead of every layer (ablation)KBLaM · Simple and two-entity Q&ABERT score (F1)No clear effect
Add knowledge tokens every 3 layers instead of every layer (ablation)KBLaM · Unanswerable questionsPrecisionHurt
Add knowledge tokens every 10 layers instead of every layer (ablation)KBLaM · Unanswerable questionsRefusal behaviorHurt
Add knowledge tokens every 10 layers instead of every layer (ablation)KBLaM · Q&AAnswer qualityHurt
Add knowledge tokens every 10 layers instead of every layer (ablation)KBLaM · Q&AEfficiencyHelped

Surprising findings

Limitations

Experimental setup

Datasets: synthetic KB generated by GPT (about 135K triples) Enron email-derived KB

Benchmarks: synthetic KB validation set Enron KB

Metrics: BERTScore F1 GPT-4 score (0-5) top-1 and top-5 retrieval accuracy precision and recall for unanswerable questions

Baselines: in-context learning zero-shot learning BM25 retrieval-augmented generation (5 triples retrieved)

Builds on: retrieval-augmented generation in-context learning KV cache

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy