Privacy-Preserved Neural Graph Databases

Qi Hu, Haoran Li, Jiaxin Bai, Zihao Wang, Yangqiu Song

Introduction

As Large Language Models (LLMs) increasingly rely on Retrieval-Augmented Generation (RAG) to access domain-specific knowledge, Neural Graph Databases (NGDBs) have become a critical component of modern AI infrastructure. NGDBs combine the structured relationships of traditional graphs with the predictive power of neural networks, allowing them to perform Complex Query Answering (CQA). Unlike standard databases, NGDBs can answer logical questions—such as "Which Turing Award winners born before 1950 lived in Toronto?"—even when specific data points are missing, by leveraging learned embeddings to "fill in the gaps."

However, this generalization ability introduces a significant privacy vulnerability. Even if sensitive data (e.g., a researcher's home address) is explicitly removed from the graph, the neural model's ability to predict missing links allows malicious actors to reconstruct private information. This research identifies the Innocuous yet Private (IP) query problem: a series of seemingly safe queries can be combined to reveal hidden private details.

Neural Graph Database architecture and examples of complex queries that can lead to privacy leaks.

The P-NGDB Framework

To address these vulnerabilities, the authors introduce P-NGDB, a framework designed to balance the utility of public knowledge retrieval with the obfuscation of sensitive information. The framework operates through three primary mechanisms:

1. Identifying Privacy-Threatening Answers

The researchers formally define how privacy leaks occur through standard logical operators: Projection, Intersection, and Union. An answer is classified as "private" if its retrieval depends on traversing a sensitive attribute or if it resides within a restricted subset of the graph reachable only through private edges.

Formal definition of privacy leaks through logical operators: Projection, Intersection, and Union.

2. Adversarial Training

The core of P-NGDB is a dual-objective adversarial training process. Rather than training solely for accuracy, the model optimizes a composite loss function:

  • Utility Loss ($L_u$): Ensures the model remains accurate for standard public queries.
  • Privacy Loss ($L_p$): An adversarial objective that forces the model to generate indistinguishable or obfuscated results when a query targets private information.

3. The Privacy Coefficient ($\beta$)

A tunable hyperparameter, $\beta$, allows database administrators to adjust the "privacy dial." A higher $\beta$ prioritizes security by increasing obfuscation, while a lower $\beta$ maximizes the reasoning accuracy of the database for public use.

Experimental Evaluation

The framework was evaluated using three benchmark knowledge graphs modified with numerical attributes: FB15k-N, DB15k-N, and YAGO15k-N. The researchers generated a testing suite of over 5 million query-answer pairs to test eight different logical structures.

Key Results

  • Effective Obfuscation: On the FB15k-N dataset, P-NGDB reduced the retrieval of private answers (Hit Ratio @ 3) by 62.9%.
  • Preserved Utility: Despite the high level of privacy protection, the accuracy for public queries only saw a moderate decrease of 27.4%.
  • High Tunability: At a low privacy setting ($\beta=0.01$), the model retained 97.4% of its original reasoning performance while still providing significant protection against private data leakage.

Discussion and Future Work

P-NGDB demonstrates that generalization—the very feature that makes NGDBs powerful—is the primary enemy of privacy. By "un-teaching" specific private predictions without damaging the broader knowledge structure, P-NGDB offers a more surgical alternative to traditional noise-based differential privacy.

Future research will focus on expanding the framework to handle more nested and complex logical operators. Additionally, the team aims to optimize the computational overhead of adversarial training to make P-NGDB viable for massive-scale industrial applications and to test its resilience against adaptive attackers who may be aware of the underlying defense mechanisms.

Summary updated

BibTeX
@inproceedings{hu2024privacy,
  author = {Qi Hu and Haoran Li and Jiaxin Bai and Zihao Wang and Yangqiu Song},
  title = {{Privacy-Preserved Neural Graph Databases}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3671678},
}
Figure