paper-with-me

Papers

KBLaM: Knowledge Base augmented Language Model

2024-10-14 · Xi Wang, Liana Mikaelyan, Taketomo Isazawa, James Hensman

In this paper, we propose Knowledge Base augmented Language Model (KBLaM), a new method for augmenting Large Language Models (LLMs) with external knowledge. KBLaM works with a knowledge base (KB) constructed from a corpus of documents, transforming each piece of knowledge in the KB into continuous key-value vector pairs via pre-trained sentence encoders with linear adapters and integrating them into pre-trained LLMs via a specialized rectangular attention mechanism. Unlike Retrieval-Augmented Generation, KBLaM eliminates external retrieval modules, and unlike in-context learning, its computational overhead scales linearly with KB size rather than quadratically. Our approach enables integrating a large KB of more than 10K triples into an 8B pre-trained LLM of only 8K context window on one single A100 80GB GPU and allows for dynamic updates without model fine-tuning or retraining. Experiments demonstrate KBLaM's effectiveness in various tasks, including question-answering and open-ended reasoning, while providing interpretable insights into its use of the augmented knowledge.

📄 PDF Abstract BibTeX arXiv:2410.10450

Code (1)

microsoft/KBLaM 공식 구현 pytorch

Tasks

8kGPUIn-Context LearningLanguage ModelingLanguage ModellingmodelQuestion AnsweringRetrievalRetrieval-augmented GenerationSentence

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
BASE 설명 없음

Similar Papers 제목 키워드 기반

Scalable and Explainable Enterprise Knowledge Discovery Using Graph-Centric Hybrid Retrieval

2025-10-13 · Nilima Rao, Jagriti Srivastava, Pradeep Kumar Sharma, Hritvik Shrivastava arxiv

Modern enterprises manage vast knowledge distributed across heterogeneous systems such as Jira, Git repositories, Confluence, and wikis. Conventional retrieval methods based on keyword search or static embeddings often f…

Semantic Similarity

Retrieval-based Knowledge Augmented Vision Language Pre-training

2023-04-27 · Jiahua Rao, Zifei Shan, Longpo Liu, Yao Zhou 외

With the recent progress in large-scale vision and language representation learning, Vision Language Pre-training (VLP) models have achieved promising improvements on various multi-modal downstream tasks. Albeit powerful…

Entity LinkingKnowledge GraphsRelational ReasoningRepresentation Learning+3

CroSearch-R1: Better Leveraging Cross-lingual Knowledge for Retrieval-Augmented Generation

2026-04-28 · Rui Qi, Fengran Mo, Sijin Lu, Yufeng Chen 외 arxiv

A multilingual collection may contain useful knowledge in other languages to supplement and correct the facts in the original language for Retrieval-Augmented Generation (RAG). However, the vanilla approach that simply c…

Reinforcement Learning

Retrieval-Augmented Machine Translation with Unstructured Knowledge

2024-12-05 · Jiaan Wang, Fandong Meng, Yingxue Zhang, Jie zhou

Retrieval-augmented generation (RAG) introduces additional information to enhance large language models (LLMs). In machine translation (MT), previous work typically retrieves in-context examples from paired MT corpora, o…

Knowledge GraphsMachine TranslationRAGRetrieval+3

Commonsense Knowledge-Augmented Pretrained Language Models for Causal Reasoning Classification

2021-09-17 · ACL ARR September 2021 9 · Anonymous

Commonsense knowledge can be leveraged for identifying causal relations in text. In this work, we convert triples in ATOMIC2020, a wide coverage commonsense reasoning knowledge graph, to natural language text and continu…

ClassificationCommonsense Causal ReasoningLanguage ModelingLanguage Modelling