ZeroRAG: Adaptive Semantic Peer Routing for Decentralized Retrieval-Augmented Generation
Petru Neague, Quinten Stokkink, Martijn de Vos, Rafael Pires, Mathis Randl, Anne-Marie Kermarrec, Johan Pouwelse
Abstract
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.
Create a lesson
Metadata
- Categories
- cs.DC, cs.AI, cs.IR, cs.NI
- Comments
- 14 pages, 8 figures
Related papers
Weave: Routing-Adaptive Runtime Warp Scheduling for MoE Megakernels
Shared title terminologycs.DCZiyu Huang, Yangjie Zhou, Chenhao Zhu et al.
CoordRoute: Coordinated Multi-Model Routing for Maximum Compute-Budget Utility
Shared title terminologycs.DCBoning Huangfu, Boxiao Du, Chen Chen
Breaking Routing And Inter-device Dependencies in Mixture-of-Experts
Shared title terminologycs.DCJohn Zarka, Danyal Ahmed, Eugene Belilovsky et al.
CCAMoE: Cache-Conditioned Adaptive Inference for Offloaded MoE
Shared title terminologycs.DCXuan Zhang, Haisheng Tan, Han Tian et al.
Adaptive Warm-State Retention for Serverless Cold-Start Mitigation: Treating Keep-Alive Time as an Online Control Parameter
Shared title terminologycs.DCSanjeet Raj Pandey, Axel Küpper
Accelerating Mixture of Block Attention via Dynamic Routing, KV-Centric Execution and Runtime Pipelining
Shared title terminologycs.DCYingqi Shi, Junru Lu, Yun Liu et al.