IRJun 5

Ask Safely: Privacy-Aware LLM Query Generation for Knowledge Graphs

arXiv:2512.048528.1
Originality Synthesis-oriented
AI Analysis

For users querying knowledge graphs with sensitive data via third-party LLMs, this method provides a practical privacy safeguard without sacrificing query quality.

The paper proposes a privacy-aware method for generating Cypher queries from natural language using LLMs, which omits sensitive graph data before query translation, achieving high accuracy while preventing data leakage.

Large Language Models (LLMs) are increasingly used to query knowledge graphs (KGs) due to their strong semantic understanding and extrapolation capabilities compared to traditional approaches. However, when KGs contain sensitive information and users lack local access to generative models, privacy becomes a critical concern. To address this issue, we propose a privacy-aware query generation approach for KGs. Our method identifies sensitive information in the graph based on its structure and omits such values before requesting the LLM to translate natural language questions into Cypher queries. Experimental results show that our approach effectively prevents sensitive data from being transmitted to third-party services, while maintaining a high level of query accuracy.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes