mlsanityData to 14 Oct 2026

PR-Attack: Coordinated Prompt-RAG Attacks on Retrieval-Augmented Generation in Large Language Models via Bilevel Optimization

arXiv 2504.07717 ↗First posted 10 Apr 2025cs.CR cs.AIcited by 32

On the map: Retrieval-augmented generation → Privacy and security of RAG

Abstract (arXiv)

Large Language Models (LLMs) have demonstrated remarkable performance across a wide range of applications, e.g., medical question-answering, mathematical sciences, and code generation. However, they also exhibit inherent limitations, such as outdated knowledge and susceptibility to hallucinations. Retrieval-Augmented Generation (RAG) has emerged as a promising paradigm to address these issues, but it also introduces new vulnerabilities. Recent efforts have focused on the security of RAG-based LLMs, yet existing attack methods face three critical challenges: (1) their effectiveness declines sharply when only a limited number of poisoned texts can be injected into the knowledge database, (2) they lack sufficient stealth, as the attacks are often detectable by anomaly detection systems, which compromises their effectiveness, and (3) they rely on heuristic approaches to generate poisoned texts, lacking formal optimization frameworks and theoretic guarantees, which limits their effectiveness and applicability. To address these issues, we propose coordinated Prompt-RAG attack (PR-attack), a novel optimization-driven attack that introduces a small number of poisoned texts into the knowledge database while embedding a backdoor trigger within the prompt. When activated, the trigger causes the LLM to generate pre-designed responses to targeted queries, while maintaining normal behavior in other contexts. This ensures both high effectiveness and stealth. We formulate the attack generation process as a bilevel optimization problem leveraging a principled optimization framework to develop optimal poisoned texts and triggers. Extensive experiments across diverse LLMs and datasets demonstrate the effectiveness of PR-Attack, achieving a high attack success rate even with a limited number of poisoned texts and significantly improved stealth compared to existing methods.

Key facts. Cited by 32 papers in the map (data through 14 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 61 of its 101 references that are in the map. First posted on arXiv 10 Apr 2025.

Builds on

61 of 101 references.

Closest ancestors · 1

Same direction, newest first

  1. 2024Human-Imperceptible Retrieval Poisoning Attacks in LLM-Powered Applications26 Apr

Other references · 60

  1. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  2. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  3. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  4. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
  5. 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,605
  6. 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,216
  7. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
  8. 2018Bilevel Programming for Hyperparameter Optimization and Meta-Learningcited by 405
  9. 2020Weight Poisoning Attacks on Pre-trained Modelscited by 341
  10. 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
  11. 2023Visual Adversarial Examples Jailbreak Aligned Large Language Modelscited by 328
  12. 2023Benchmarking Large Language Models in Retrieval-Augmented Generationcited by 312
38 more
  1. 2023Poisoning Web-Scale Training Datasets is Practicalcited by 290
  2. 2023Poisoning Language Models During Instruction Tuningcited by 269
  3. 2020Bilevel Optimization: Convergence Analysis and Enhanced Designcited by 222
  4. 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 186
  5. 2023Poisoning Retrieval Corpora by Injecting Adversarial Passagescited by 159
  6. 2023On the Risk of Misinformation Pollution with Large Language Modelscited by 128
  7. 2024Revisiting Zeroth-Order Optimization for Memory-Efficient LLM Fine-Tuning: A Benchmarkcited by 114
  8. 2021Provably Faster Algorithms for Bilevel Optimizationcited by 106
  9. 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Modelscited by 106
  10. 2022BOME! Bilevel Optimization Made Easy: A Simple First-Order Approachcited by 105
  11. 2024Optimization Methods for Personalizing Large Language Models through Retrieval Augmentationcited by 99
  12. 2021Towards Gradient-based Bilevel Optimization with Non-convex Followers and Beyondcited by 63
  13. 2022BadPrompt: Backdoor Attacks on Continuous Promptscited by 63
  14. 2024Instruction Backdoor Attacks Against Customized LLMscited by 62
  15. 2021A Value-Function-based Interior-point Method for Non-convex Bi-level Optimizationcited by 60
  16. 2023Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injectioncited by 59
  17. 2024Fine Tuning vs. Retrieval Augmented Generation for Less Popular Knowledgecited by 50
  18. 2022Toward Human Readable Prompt Tuning: Kubrick's The Shining is a good movie, and a good prompt too?cited by 49
  19. 2024Distract Large Language Models for Automatic Jailbreak Attackcited by 45
  20. 2023A Comprehensive Overview of Backdoor Attacks in Large Language Models within Communication Networkscited by 42
  21. 2019Bi-level Actor-Critic for Multi-agent Coordinationcited by 39
  22. 2023Interpretable Long-Form Legal Question Answering with Retrieval-Augmented Large Language Modelscited by 35
  23. 2023Defending Pre-trained Language Models as Few-shot Learners against Backdoor Attackscited by 33
  24. 2023PromptCARE: Prompt Copyright Protection by Watermark Injection and Verificationcited by 32
  25. 2023MathAttack: Attacking Large Language Models Towards Math Solving Abilitycited by 32
  26. 2023RLHFPoison: Reward Poisoning Attack for Reinforcement Learning with Human Feedback in Large Language Modelscited by 32
  27. 2024ASETF: A Novel Method for Jailbreak Attack on LLMs through Translate Suffix Embeddingscited by 32
  28. 2021Stability and Generalization of Bilevel Programming in Hyperparameter Optimizationcited by 31
  29. 2023Training-free Lexical Backdoor Attacks on Language Modelscited by 31
  30. 2024Universal Adversarial Perturbations for Vision-Language Pre-trained Modelscited by 31
  31. 2023Prompt Learning for News Recommendationcited by 25
  32. 2024Evaluating LLMs' Mathematical Reasoning in Financial Document Question Answeringcited by 25
  33. 2024Towards a Search Engine for Machines: Unified Ranking for Multiple Retrieval-Augmented Large Language Modelscited by 23
  34. 2024OpenMedLM: Prompt engineering can out-perform fine-tuning in medical question-answering with open-source large language modelscited by 20
  35. 2024FeB4RAG: Evaluating Federated Search in the Context of Retrieval Augmented Generationcited by 19
  36. 2024Prompt Perturbation in Retrieval-Augmented Generation based Large Language Modelscited by 18
  37. 2023A Unified Generative Retriever for Knowledge-Intensive Language Tasks via Prompt Learningcited by 16
  38. 2024Multi-granular Adversarial Attacks against Black-box Neural Ranking Modelscited by 14

50 most cited of 60 All 60 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 8; 2026: 24.

32 papers.

Sort:

By area:

  1. 2025Benchmarking Poisoning Attacks against Retrieval-Augmented Generationcited by 18
  2. 2025ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Datacited by 18
  3. 2025SeCon-RAG: A Two-Stage Semantic Filtering and Conflict-Free Framework for Trustworthy RAGcited by 13
  4. 2026SoK: Privacy Risks and Mitigations in Retrieval-Augmented Generation Systemscited by 7
  5. 2025RIPRAG: Hack a Black-box Retrieval-Augmented Generation Question-Answering System with Reinforcement Learningcited by 5
  6. 2026Confundo: Learning to Generate Robust Poison for Practical RAG Systemscited by 5
  7. 2025Stable Preference Optimization: A Bilevel Approach to Catastrophic Preference Shiftcited by 2
  8. 2025Medusa: Cross-Modal Transferable Adversarial Attacks on Multimodal Medical Retrieval-Augmented Generationcited by 2
  9. 2026Securing Retrieval-Augmented Generation: A Taxonomy of Attacks, Defenses, and Future Directionscited by 2
  10. 2026One Single Hub Text Breaks CLIP: Identifying Vulnerabilities in Cross-Modal Encoders via Hubnesscited by 2
  11. 2025Injecting Falsehoods: Adversarial Man-in-the-Middle Attacks Undermining Factual Recall in LLMscited by 1
  12. 2026KEPo: Knowledge Evolution Poison on Graph-based Retrieval-Augmented Generationcited by 1
20 more
  1. 2026PIDP-Attack: Combining Prompt Injection with Database Poisoning Attacks on Retrieval-Augmented Generation Systemscited by 1
  2. 2026Needle-in-RAG: Prompt-Conditioned Character-Level Traceback of Poisoned Spans in Retrieved Evidencecited by 1
  3. 2026RADAR: Defending RAG Dynamically against Retrieval Corruptioncited by 1
  4. 2026SilentRetrieval: Hijacking Retrieval-Augmented Generation via Semantically-Preserving Adversarial Data Poisoningcited by 1
  5. 2026DiscourseFlip: An Oblique Discourse-Level Opinion Manipulation Attack against Black-box Retrieval-Augmented Generationcited by 1
  6. 2026PRA-RAG: Provably Robust Aggregation in Retrieval-Augmented Generation against Retrieval Corruptioncited by 1
  7. 2026Knowledge Base Poisoning Attacks and Defense for Policy-Aware LLM-RAG Frameworkcited by 1
  8. 2026Retrieved But Not Reliable: A Survey on Attacks, and Defenses in Retrieval-Augmented Generationcited by 1
  9. 2025From Language to Logic: A Bi-Level Framework for Structured Reasoningcited by 0
  10. 2026LLM-Driven Multi-Turn Task-Oriented Dialogue Synthesis for Realistic Reasoningcited by 0
  11. 2026BiRD: A Bidirectional Ranking Defense Mechanism for Retrieval Augmented Generationcited by 0
  12. 2026FD-RAG: Federated Dual-System Retrieval-Augmented Generationcited by 0
  13. 2026CodeSentinel: A Three-Layer Defense Against Indirect Prompt Injection in Code Contextscited by 0
  14. 2026First-order Constrained Trilevel Optimization Over Distributed Networks for Robust Coreset Selectioncited by 0
  15. 2026PURPOSE: Poisoning Conflict Resolution in RAG via Proxy-Fact-Grounded Updatescited by 0
  16. 2026Lazy Grounding: Attacking Search Agents with Factual Evidencecited by 0
  17. 2026ViTeGate: Visual-Textual Triggered Knowledge Poisoning for Vision-Language Retrieval-Augmented Generationcited by 0
  18. 2026Detecting and Localizing Segment-Level Poisoning in Multi-Source LLM-Agent Inputscited by 0
  19. 2026DPOison-VL: Clean Preference Poisoning in Vision-Language Direct Preference Optimizationcited by 0
  20. 2026GraphRAG-LTM: A Layered Threat Modeling Framework for Attacks on Graph Retrieval-Augmented Generationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models
  2. 2025Token-Level Precise Attack on RAG: Searching for the Best Alternatives to Mislead Generation
  3. 2025Practical Poisoning Attacks against Retrieval-Augmented Generation
  4. 2025One Shot Dominance: Knowledge Poisoning Attack on Retrieval-Augmented Generation Systems
  5. 2025POISONCRAFT: Practical Poisoning of Retrieval-Augmented Generation for Large Language Models
  6. 2024Data Extraction Attacks in Retrieval-Augmented Generation via Backdoors
  7. 2024HijackRAG: Hijacking Attacks against Retrieval-Augmented Large Language Models
  8. 2025RAG Security and Privacy: Formalizing the Threat Model and Attack Surface