Privacy-protected Retrieval-Augmented Generation for Knowledge Graph Question Answering

Yunfeng Ning, Mayi Xu, Jintao Wen, Qiankun Pi, Yuanyuan Zhu, Ming Zhong, Jiawei Jiang, Tieyun Qian

TL;DR

This paper introduces ARoG, a novel framework for privacy-preserving Knowledge Graph Question Answering (KGQA) using Retrieval-Augmented Generation (RAG). ARoG tackles the challenge of using sensitive private knowledge graphs (KGs) by anonymizing entities, enabling LLMs to retrieve and reason over this data without compromising privacy.

What Problem Does This Paper Address?

Large Language Models (LLMs) are prone to generating inaccurate or outdated information. Retrieval-Augmented Generation (RAG) aims to improve LLM reliability by grounding them with external knowledge, often from Knowledge Graphs (KGs). However, using private KGs in RAG systems poses a significant privacy risk. LLMs, being black boxes, could potentially expose sensitive information from these KGs, especially when accessed via third-party APIs where user control is limited. This paper addresses this critical gap by proposing a RAG system where entities within the KG are anonymized (represented by meaningless IDs) to the LLM, preventing direct access to their semantic content. The core challenge then becomes how to enable effective retrieval and reasoning with these anonymized entities.

Methods

The paper introduces the Abstraction Reasoning on Graph (ARoG) framework, which comprises four main modules:

  1. Relation-centric Abstraction (RA): This module addresses the challenge of making anonymized entities retrievable. It leverages LLMs to infer high-level concepts for entities by analyzing the semantics of their adjacent relations. These abstract concepts are then appended to the anonymized entity IDs, providing them with meaningful context for retrieval.
  2. Structure-oriented Abstraction (SA): This module tackles the challenge of retrieving question-relevant anonymous entities. It transforms unstructured natural language questions into structured "abstract concept paths." These paths are designed to align better with the abstracted concepts in the KG, improving retrieval accuracy.
  3. Abstraction-driven Retrieval (AR): This module uses the outputs from RA and SA to perform efficient retrieval of question-relevant triplets from the KG. It involves iterative searching and pruning operations.
  4. Generator: This module, an LLM, takes the retrieved triplets and the original question to generate the final answer.

Crucially, the abstraction strategies ensure that only abstract concepts, not raw entity semantics, are exposed to the LLM, thus preserving privacy.

Datasets

The proposed ARoG framework is evaluated on three standard KGQA datasets:

  • WebQSP: Questions from WebQuestions answerable by Freebase.
  • CWQ: Extends WebQSP, requiring more complex multi-hop reasoning.
  • GrailQA: A diverse KGQA dataset with many long-tail knowledge questions.

The paper also introduces a #Filtered setting to simulate a strict privacy-protected scenario, where samples answerable by CoT prompting alone (without external KG knowledge) are removed.

Key Insights and Ideas

  • Anonymization is Key to Privacy: The core idea of anonymizing KG entities to the LLM is a novel and effective way to prevent privacy breaches in RAG systems.
  • Abstraction Bridges the Semantic Gap: The loss of entity semantics due to anonymization is a major hurdle. ARoG's abstraction strategies (relation-centric and structure-oriented) are crucial for bridging this gap by creating meaningful representations that LLMs can work with.
  • Structure Matters for Retrieval: Transforming natural language questions into structured "concept paths" significantly improves the ability to match with abstracted KG concepts, leading to better retrieval performance.
  • Privacy Doesn't Necessarily Mean Performance Loss: ARoG demonstrates that strong privacy guarantees can be achieved without sacrificing significant performance, outperforming previous RAG methods in this specialized scenario.

Key Results

ARoG achieves state-of-the-art (SoTA) performance across all three datasets and both the #Total and #Filtered experimental settings.

  • Overall Performance: ARoG significantly outperforms existing RAG-based and SP-based baselines, particularly in the #Filtered setting, which simulates a more realistic privacy-sensitive scenario.
  • Privacy Robustness: The framework shows impressive robustness across different privacy scenarios, maintaining high performance even when entities are anonymized during retrieval or generation.
  • Efficiency: ARoG demonstrates competitive or superior efficiency in terms of token usage compared to other RAG-based methods, especially on challenging datasets like GrailQA. While it might require more LLM calls in some cases, the overall cost is managed effectively.

Limitations and Future Work

  • LLM Dependency: The performance of ARoG is still dependent on the capabilities of the underlying LLM used for abstraction and generation.
  • Anonymized Entity Replacement: While the paper mentions replacing MIDs with real names on the user side, the process of maintaining this privacy map is not detailed.
  • Future Work: The paper suggests that ARoG provides a practical direction for privacy-protected RAG systems. Further research could explore more sophisticated abstraction techniques, investigate different anonymization strategies, and extend the framework to other knowledge-intensive tasks beyond KGQA.

Summary updated

BibTeX
@inproceedings{ning2026privacy,
  author = {Yunfeng Ning and Mayi Xu and Jintao Wen and Qiankun Pi and Yuanyuan Zhu and Ming Zhong and Jiawei Jiang and Tieyun Qian},
  title = {{Privacy-protected Retrieval-Augmented Generation for Knowledge Graph Question Answering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i38.40534},
}
Figure