Ugrás a tartalomhoz

 

Feedback-Guided Prompt Injection Defense in Retrieval-Augmented Text-to-Cypher Generation

  • Metaadatok
Tartalom: https://publikacio.ppke.hu/id/eprint/3783/
Archívum: PPKE Publikáció Repozitórium
Gyűjtemény: Állapot = Megjelent
Szakterület = 01. Természettudományok: 01.01. Matematika
Szakterület = 01. Természettudományok: 01.01. Matematika: 01.01.01. Elméleti és alkalmazott matematika: 01.01.01.09. Matematikai analízis
Típus = Folyóiratcikk
Cím:
Feedback-Guided Prompt Injection Defense in Retrieval-Augmented Text-to-Cypher Generation
Létrehozó:
Szlobodnyik Gergely
Dátum:
2026
Téma:
01.01. Matematika
01.01.01.09. Matematikai analízis
Tartalmi leírás:
Text-to-Cypher generator systems translate natural language questions into Cypher queries, enabling intuitive interactions with graph databases such as Neo4j and Amazon Neptune. Despite recent advancements in LLM-based Cypher query generation, the vulnerabilities of the known methods—such as prompt injection attacks—are not discussed in detail. In this paper, we employ a robust Retrieval-Augmented Generation (RAG) architecture tailored specifically for text-to-Cypher tasks, leveraging dense vector retrieval to enhance query generation accuracy. We propose a dynamic and self-corrective procedure with feedback-loop-based AI architecture with Large Language Models (LLMs) for near real-time validation and correction of generated queries. We create a systematic procedure for generating datasets specifically designed to assess prompt injection robustness. Comprehensive evaluations are conducted using a diverse set of LLMs, including GPT-4o, DeepSeek R1, Claude 3.5 Sonnet and Qwen 2.5 Coder 32B Instruct. Our evaluation results indicate substantial improvements in resiliency against prompt injection attacks compared to various benchmarks. It is demonstrated that the proposed solution outperforms various training-free prompt injection defense methods.
Nyelv:
angol
angol
Típus:
Folyóiratcikk
PeerReviewed
Formátum:
text
Azonosító:
Szlobodnyik Gergely: Feedback-Guided Prompt Injection Defense in Retrieval-Augmented Text-to-Cypher Generation. ANALYTICS, 5 (3). ISSN 2813-2203 (2026)
MTMT:37409716 10.3390/analytics5030025
Kapcsolat:
MTMT:37409716 10.3390/analytics5030025