microsoft/KBLaM
Official Implementation of "KBLaM: Knowledge Base augmented Language Model" observed · 2026-08-28
Health v2 · maintenance only
64/100
- Activity 90
- Release rhythm 35
- Longevity 54
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 762
- days_rel: n/a
- days_push: 62
- n_releases_24m: 0
Adoption not part of the score
1451 stars · 124 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Official implementation of KBLaM, a method for augmenting pre-trained LLMs with external knowledge by encoding a knowledge base into continuous key-value vectors integrated via a rectangular attention mechanism. It eliminates external retrieval modules and scales linearly with knowledge base size, supporting Llama and Phi-3 models.
Use cases
- augment an LLM with a knowledge base without a retrieval module
- integrate 10K+ knowledge triples into an 8B model on a single GPU
- replicate the KBLaM paper experiments
- generate synthetic QA datasets for knowledge-augmented training
- dynamically update LLM knowledge without fine-tuning
When to choose
- you want retrieval-free knowledge augmentation with linear scaling in KB size
- you need to reproduce or extend the KBLaM research
- you want to inject a large knowledge base into a small-context LLM
When to avoid
- you need a production-ready RAG pipeline with mature tooling
- your model architecture is not among the supported Llama/Phi-3 variants
- you lack GPU resources for training
Facets
library · maturity active
machine-learning llm-training rag nlp large-language-models machine-learning artificial-intelligence python knowledge-base llm-augmentation research-code iclr-2025 microsoft retrieval-augmented-generation gpu
6 sources
- readme: https://github.com/microsoft/KBLaM · fetched 2026-08-28 · 2ab96e054250
- homepage: https://arxiv.org/abs/2410.10450 · fetched 2026-08-29 · de3d11e39305
- site_page: https://info.arxiv.org/about/donate.html · fetched 2026-08-29 · cca9c3a11c56
- site_page: https://info.arxiv.org/about/ourmembers.html · fetched 2026-08-29 · 47cbc55ff1de
- site_page: https://info.arxiv.org/about · fetched 2026-08-29 · a1f16f915a9a
- site_page: https://info.arxiv.org/labs/index.html · fetched 2026-08-29 · b14a8d05a0ec
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| microsoft/KBLaM | main | 64 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem