# ZeroRAG: Adaptive Semantic Peer Routing for Decentralized Retrieval-Augmented Generation

arXiv: https://arxiv.org/abs/2611.07928 · HTML: https://mlsanity.com/paper/2611.07928/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation.
- Builds on 19 of its 63 references that are in the map.
- Submitted 5 Nov 2026.

## Placed in

- Retrieval-augmented generation / [RAG pipeline design and evaluation](https://mlsanity.com/rag/rag-pipeline-design-and-evaluation/)

## Builds on (most cited first, 19 of 19)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [Language Models are Few-Shot Learners](https://mlsanity.com/paper/2005.14165/) (2020)
- [Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks](https://mlsanity.com/paper/1908.10084/) (2019)
- [Efficient and robust approximate nearest neighbor search using Hierarchical Navigable Small World graphs](https://mlsanity.com/paper/1603.09320/) (2016)
- [A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models](https://mlsanity.com/paper/2405.06211/) (2024)
- [Retrieval-Augmented Generation for AI-Generated Content: A Survey](https://mlsanity.com/paper/2402.19473/) (2024)
- [ToolQA: A Dataset for LLM Question Answering with External Tools](https://mlsanity.com/paper/2306.13304/) (2023)
- [Large Language Models Hallucination: A Comprehensive Survey](https://mlsanity.com/paper/2510.06265/) (2025)
- [One vs. Many: Comprehending Accurate Information from Multiple Erroneous and Inconsistent AI Generations](https://mlsanity.com/paper/2405.05581/) (2024)
- [IPFS and Friends: A Qualitative Comparison of Next Generation Peer-to-Peer Data Networks](https://mlsanity.com/paper/2102.12737/) (2021)
- [Decentralizing AI Memory: SHIMI, a Semantic Hierarchical Memory Index for Scalable Agent Reasoning](https://mlsanity.com/paper/2504.06135/) (2025)
- [HARMONY: A Scalable Distributed Vector Database for High-Throughput Approximate Nearest Neighbor Search](https://mlsanity.com/paper/2506.14707/) (2025)
- [Research in Collaborative Learning Does Not Serve Cross-Silo Federated Learning in Practice](https://mlsanity.com/paper/2510.12595/) (2025)
- [Efficient Distributed Retrieval-Augmented Generation for Enhancing Language Model Performance](https://mlsanity.com/paper/2504.11197/) (2025)
- [Reproducing Personalised Session Search over the AOL Query Log](https://mlsanity.com/paper/2201.08622/) (2022)
- [Semantica: Decentralized Search using a LLM-Guided Semantic Tree Overlay](https://mlsanity.com/paper/2502.10151/) (2025)
- [A Decentralized Retrieval Augmented Generation System with Source Reliabilities Secured on Blockchain](https://mlsanity.com/paper/2511.07577/) (2025)
- [Scalable Distributed Vector Search via Accuracy Preserving Index Construction](https://mlsanity.com/paper/2512.17264/) (2025)
- [Cluster-and-Conquer: When Randomness Meets Graph Locality](https://mlsanity.com/paper/2010.11497/) (2020)

## Abstract (arXiv)

Retrieval-augmented generation (RAG) is a standard approach to enhance the reliability of large language model (LLM) outputs by retrieving documents relevant to a query and supplying them in the LLM prompt. Today's RAG systems collect, index, and serve these documents from centralized stores. In practice, however, documents are owned by organizations, devices, and individuals who cannot or will not surrender custody of them to a central party, e.g., because of privacy, copyright or regulatory compliance. Existing modern decentralized retrieval techniques either reintroduce a coordinating authority, or rely on a global data structure that requires continuous network-wide coordination (e.g., DHTs). We present ZeroRAG, a decentralized routing layer for document retrieval in RAG that performs semantic query routing across an overlay of peers with- out global data structures or centralized orchestration. Documents remain with the peers that own them, and each peer keeps only lightweight local state: a bounded set of neighbor advertisements and a cache of recently routed queries. Using these, ZeroRAG steers each query through a best-first walk that progressively rewires the overlay toward semantically relevant neighbors, so recall improves over time as the network self-organizes. We evaluate ZeroRAG using three real-world workloads and two decentralized baselines. We find that ZeroRAG outperforms baselines in terms of recall and required network messages, approaches the recall and LLM answer accuracy of a centralized document store, self-heals after catastrophic peer failures, and scales to 100 000 peers.
