DGRAG: Distributed Graph-based Retrieval-Augmented Generation in Edge-Cloud Systems
Wenqing Zhou, Yuxuan Yan, Qianqian Yang
TL;DR
This work tackles the privacy, latency, and scalability challenges of centralized Retrieval-Augmented Generation by introducing DGRAG, a distributed RAG system that leverages edge-local knowledge graphs and cloud-hosted subgraph summaries. It combines a two-phase process—the Distributed Knowledge Construction phase, which builds and summarizes local KGs, with a Collaborative Retrieval and Generation phase that uses a gating mechanism to decide when cross-edge cloud retrieval is needed. Key contributions include Leiden-based subgraph partitioning, privacy-preserving subgraph summaries, and a gate-driven cross-edge retrieval pipeline that enables precise global answers when local knowledge is insufficient. Empirical results on the UltraDomain benchmark show that DGRAG outperforms Naïve RAG and Local RAG in both within-domain and cross-domain questions, while ablation studies validate the importance of the gate mechanism and graph-based retrieval. The approach offers a scalable, privacy-conscious framework for real-world edge-cloud deployments in domains like smart manufacturing and intelligent city systems.
Abstract
Retrieval-Augmented Generation (RAG) has emerged as a promising approach to enhance the capabilities of language models by integrating external knowledge. Due to the diversity of data sources and the constraints of memory and computing resources, real-world data is often scattered in multiple devices. Conventional RAGs that store massive amounts of scattered data centrally face increasing privacy concerns and high computational costs. Additionally, RAG in a central node raises latency issues when searching over a large-scale knowledge base. To address these challenges, we propose a distributed Knowledge Graph-based RAG approach, referred to as DGRAG, in an edge-cloud system, where each edge device maintains a local knowledge base without the need to share it with the cloud, instead sharing only summaries of its knowledge. Specifically, DGRAG has two main phases. In the Distributed Knowledge Construction phase, DGRAG organizes local knowledge using knowledge graphs, generating subgraph summaries and storing them in a summary database in the cloud as information sharing. In the Collaborative Retrieval and Generation phase, DGRAG first performs knowledge retrieval and answer generation locally, and a gate mechanism determines whether the query is beyond the scope of local knowledge or processing capabilities. For queries that exceed the local knowledge scope, the cloud retrieves knowledge from the most relevant edges based on the summaries and generates a more precise answer. Experimental results demonstrate the effectiveness of the proposed DGRAG approach in significantly improving the quality of question-answering tasks over baseline approaches.
