SelfGraphRAG: Bridging the Supervision Gap in Graph-Based RAG with Synthetic QA Generation
Organizations: University of Maryland, Baltimore County (UMBC), Baltimore, MD, USA
Abstract
Retrieval-augmented generation (RAG) improves large language models by incorporating external knowledge without retraining, but existing methods often underuse the relational structure encoded in knowledge graphs. Graph-based RAG can capture entity relationships, yet supervised graph retrieval typically requires labeled question-answer data that may not be available for newly constructed graphs. We address this limitation with SelfGraphRAG, a framework that generates question-answer pairs directly from knowledge graph structure and uses them to train a query-conditioned graph retriever. The generated questions capture multi-hop paths and local neighborhoods, providing relational supervision without manual annotation. Experiments on multi-hop question answering and classification benchmarks show that SelfGraphRAG improves retrieval precision and downstream reasoning performance over embedding-based baselines. These results suggest that knowledge graph structure can provide useful supervision for training graph retrievers when labeled data are unavailable.
Figures & tables
| Method | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|
| RAG | ||||
| GraphRAG | ||||
| LightRAG | ||||
| SelfGraphRAG | 4.61 | 12.49 | 13.56 | 12.59 |
| Method | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|
| RAG | ||||
| GraphRAG | ||||
| LightRAG | ||||
| SelfGraphRAG | 21.02 | 23.65 | 31.48 | 24.62 |
| Method | Overall | Yes | No | Maybe | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Acc. | Prec. | Rec. | F1 | Acc. | Prec. | Rec. | F1 | Acc. | Prec. | Rec. | F1 | Acc. | Prec. | Rec. | F1 | |
| RAG | 68.73 | |||||||||||||||
| GraphRAG | 58.82 | 66.67 | 67.27 | 19.53 | ||||||||||||
| LightRAG | ||||||||||||||||
| SelfGraphRAG | 55.20 | 55.20 | 55.20 | 55.20 | 78.80 | 80.80 | 29.40 | 27.22 | 35.12 | 36.60 | 26.92 | |||||
| Method | Response |
|---|---|
| MoreHopQA: What is the date one day after when Prince Nikolai of Denmark’s mother was born? Gold: 1964-07-01 | |
| RAG | June 30, 1964 |
| GraphRAG | Prince Nikolai of Denmark’s mother, Alexandra, was born on June 30, 1964. Therefore, the answer is June 30, 1964 . |
| LightRAG | Prince Nikolai’s mother is Alexandra, Countess of Frederiksborg, who was born on June 30, 1964. Therefore, the requested date is June 30, 1964 . |
| SelfGraphRAG | 1964-07-01 . Prince Nikolai’s mother, Alexandra, was born on June 30, 1964; applying the requested one-day offset gives July 1, 1964. |
| PubMedQA: Is intrapartum vibroacoustic stimulation an effective predictor of fetal acidosis? Gold: Yes | |
| Method | MoreHopQA | MultiHopRAG | PubMedQA | |||
|---|---|---|---|---|---|---|
| Index (h) | Infer. (s) | Index (h) | Infer. (s) | Index (h) | Infer. (s) | |
| RAG | ||||||
| GraphRAG | ||||||
| LightRAG | ||||||
| SelfGraphRAG | ||||||
Graph Retrieval-Augmented Generation
Graph Retrieval-Augmented Generation connects language models to knowledge graphs to retrieve relational evidence for grounded, multi-hop answers.
See all 232 papers