Introduction
Retrieval-Augmented Generation (RAG) has become the standard for grounding Large Language Models (LLMs) in external facts. However, traditional RAG systems are typically centralized, where a single entity manages all data. This architecture introduces significant data management costs, single points of failure, and privacy risks. While decentralization—where individual owners host their own data—offers a solution, it creates a "trust gap." Without a central authority to vet sources, retrieval accuracy often suffers due to outdated information, misinformation, or malicious data.
To bridge this gap, we introduce dRAG, a decentralized RAG system that maintains high response quality while allowing data owners to retain control. dRAG identifies and prioritizes high-quality data sources using blockchain-based smart contracts and novel reliability scoring, outperforming centralized systems in noisy environments by over 10%.
System Architecture
The dRAG framework is built upon three core pillars designed to ensure reliability without central oversight:
- Dynamic Reliability Scoring: dRAG evaluates sources based on their contribution to final LLM outputs. It employs MC-Shapley (Monte-Carlo Shapley) to estimate the marginal contribution of specific sentences when ground-truth is unavailable, and RORA to measure uncertainty reduction when ground-truth is present.
- Blockchain-Backed Trust: To prevent tampering, reliability scores are managed via smart contracts on the Ethereum (Sepolia) blockchain. Updates are signed by data sources and verified by the network, creating a transparent, immutable ledger.
- Two-Tiered Evaluation: The system distinguishes between Reliability (correctness) and Usefulness (actual utilization by the LLM), ensuring that reliable sources aren't unfairly penalized if their specific content isn't selected for a particular query.
Experimental Evaluation
We evaluated dRAG using the Natural Questions (NQ) dataset, simulating real-world "noisy" environments through token-level pollution (random word replacement) and document-level pollution (partitioning correct and corrupted info across sources). Testing was conducted using Llama-3.2-3B-Instruct and Llama-3.1-8B-Instruct models.
Key Results
A defining characteristic of dRAG is its ability to "learn" and self-correct over time. Initially, all sources are treated equally. As queries are processed, the system identifies consistent contributors to high-quality answers. Consequently, reliability scores for trustworthy sources climb, and dRAG prioritizes them during retrieval.
In unreliable data environments, dRAG achieved a +10.7% performance improvement over centralized counterparts. While centralized systems saw accuracy decline when exposed to noise, dRAG maintained robustness by progressively ignoring polluted sources. Furthermore, blockchain interaction was optimized through batching, reducing marginal costs by 56% to approximately $0.0114 per update.
Conclusion and Future Work
While dRAG effectively handles token-level noise, document-level pollution remains a challenge, particularly when reliable sources have incomplete coverage of the knowledge base. Future research will focus on adaptive reranking to balance reliability and relevance, as well as optimizing the convergence rate for source trustworthiness identification.
Paper Citation: Lu, Y., Tang, W., Johnson, M., Jung, T., & Jiang, M. (2025). A Decentralized Retrieval Augmented Generation System with Source Reliabilities Secured on Blockchain. arXiv:2511.07577v1.
Summary updated