TL;DR
Neural Graph Databases (NGDBs) are powerful tools for complex data retrieval, but their ability to "fill in the blanks" creates a massive privacy loophole. This paper introduces P-NGDB, a framework that uses adversarial training to obfuscate sensitive information, ensuring that attackers can't infer private details through clever combinations of seemingly harmless queries.
What Problem Does This Paper Address?
As Large Language Models (LLMs) become more integrated into specialized domains, they increasingly rely on Retrieval Augmented Generation (RAG) to access private or domain-specific data. Neural Graph Databases (NGDBs) have emerged as a key technology here, combining the structured nature of graph databases with the flexible reasoning of neural networks.
However, NGDBs have a hidden danger: their generalization ability. Because they learn latent patterns to answer complex logical queries even on incomplete data, they can inadvertently reveal information that was intentionally omitted or deleted. An attacker doesn't need to ask a direct private question (e.g., "Where does Hinton live?"); instead, they can combine several "innocuous" queries (e.g., "Where do Turing Award winners born in the 1940s live?" and "Where do LeCun's collaborators live?") to triangulate and expose sensitive facts.
Methods
The authors propose the P-NGDB (Privacy-Preserved Neural Graph Database) framework, which introduces a dual-objective optimization strategy during the training phase:
- Utility Objective: Maintain high accuracy for retrieving non-private (public) answers to queries.
- Privacy Objective: Use adversarial training to make private, sensitive answers indistinguishable from other entities in the embedding space.
The core idea is to formalize "Innocuous yet Private" (IP) queries and identify "privacy-threatening" answer sets. During training, the model is penalized if it can easily retrieve these private answers. A tunable privacy coefficient, $\beta$, allows developers to balance the trade-off between database utility and the strength of privacy protection.
The framework is "backbone-agnostic," meaning it can be applied to various existing neural query encoding methods such as GQE (vectors), Q2B (hyper-rectangles), and Q2P (particles).
Datasets
The researchers evaluated their framework using three standard knowledge graph datasets, modified to include numerical attributes and designated private edges:
- FB15k-N: A subset of Freebase.
- DB15k-N: A subset of DBpedia.
- YAGO15k-N: A subset of YAGO.
They also introduced a new benchmark for evaluating Complex Query Answering (CQA) alongside privacy protection, featuring eight different query types (projections, intersections, and unions).
Key Insights and Ideas
- Generalization is a Liability: In the context of privacy, the very feature that makes NGDBs superior to traditional databases—the ability to infer missing links—is what makes them vulnerable to inference attacks.
- Query-Stage Leakage: Unlike traditional graph privacy methods that focus on protecting the raw graph or model weights, P-NGDB addresses leakage that happens at the query result level.
- Adversarial Obfuscation: Instead of just adding random noise (which degrades overall performance), P-NGDB specifically targets the "logical paths" that lead to private information, making those specific inferences much harder for an attacker.
Key Results
- Effective Protection: On the FB15k-N dataset using the GQE encoder, P-NGDB reduced the retrieval of private answers (measured by Hit Ratio @ 3) by 62.9%, while only sacrificing 27.4% of the accuracy for public queries.
- Superior to Noise: P-NGDB significantly outperformed traditional "noise disturbance" methods (similar to differential privacy), providing much better utility for the same level of privacy protection.
- Tunable Trade-offs: Sensitivity studies showed that even a very small privacy penalty ($\beta = 0.01$) could protect private data effectively (retaining 97.4% public MRR while dropping private MRR to 68.1%).
Limitations and Future Work
While P-NGDB is a significant step forward, the authors acknowledge some limitations:
- Focus on Attributes: The current framework primarily focuses on protecting private attributes (edges) rather than other types of graph structures.
- Utility Loss: There is still a noticeable drop in public query performance when high levels of privacy are required.
- Logical Operators: Future work will look into incorporating the logical operators themselves into the privacy protection mechanism to further refine how information is hidden.
Summary updated