R160 · Knowledge for agents › Retrieval over long documents

AtlasKV: billion-triple knowledge graphs inside attention, not in the prompt

Read the original

Authors Charly Wargnier (shared)

retrievalraggraph-databaseinferenceopen-models

Sources: Huang, Tsang, Bai, Peng, Zhang and Song, "AtlasKV: Augmenting LLMs with Billion-Scale Knowledge Graphs in 20GB VRAM" (HKUST and Huawei Theory Lab, arXiv 2510.17934). Version 1 is from October 2025 and version 2 from April 2026. Resurfaced by Charly Wargnier on LinkedIn, 2026-11-19. This is a year-old paper, not a new result.

The idea

RAG adds knowledge non-parametrically. It runs a search, then pastes retrieved text into the prompt. At very large scale that costs search latency and long contexts.

AtlasKV follows the parametric line of KBLaM (2024). Knowledge is encoded as key-value representations and injected straight into the model's self-attention layers. The model then attends over facts as if they were extra tokens, without a retriever, without retrieved text in the context window, and without retraining when facts are added.

What AtlasKV adds is scale: about one billion knowledge-graph triples in under 20 GB of GPU memory, with sub-linear time and memory cost.

How it works

knowledge graph (head, relation, tail) triples
      |
   KG2KV: each triple -> a key/value pair the attention layer can read
      |
   HiKVP: hierarchical key-value pruning
      coarse clusters -> finer clusters -> top-k leaf facts
      (most KVs stay in CPU memory; selected ones move to GPU per step)
      |
   LLM self-attention attends over prompt tokens + selected knowledge KVs

Because selection happens inside attention at each generation step, the model can pull different facts as reasoning proceeds, rather than relying on one retrieval up front.

Limitations the authors state

Reading the "RAG is dead" framing

The social-media framing (no more vector databases) overstates it. Some caveats for practitioners:

Tradeoffs

Review checklist before evaluating it

Cited in field guides

Connections

See R160 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.