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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Tosi, Mauro Dalle Lucca, Cabot, Jordi
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909943607590912
author Tosi, Mauro Dalle Lucca
Cabot, Jordi
author_facet Tosi, Mauro Dalle Lucca
Cabot, Jordi
contents 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, these methods cannot be applied when the KG contains sensitive data and the user lacks the resources to deploy a local generative LLM. 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 preserves the quality of the generated queries while preventing sensitive data from being transmitted to third-party services.
format Preprint
id arxiv_https___arxiv_org_abs_2512_04852
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Ask Safely: Privacy-Aware LLM Query Generation for Knowledge Graphs
Tosi, Mauro Dalle Lucca
Cabot, Jordi
Information Retrieval
68T50, 68P20
H.3.3
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, these methods cannot be applied when the KG contains sensitive data and the user lacks the resources to deploy a local generative LLM. 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 preserves the quality of the generated queries while preventing sensitive data from being transmitted to third-party services.
title Ask Safely: Privacy-Aware LLM Query Generation for Knowledge Graphs
topic Information Retrieval
68T50, 68P20
H.3.3
url https://arxiv.org/abs/2512.04852