Token-Level Precise Attack on RAG: Searching for the Best Alternatives to Mislead Generation
On the map: Retrieval-augmented generation → Privacy and security of RAG
Abstract (arXiv)
While large language models (LLMs) have achieved remarkable success in providing trustworthy responses for knowledge-intensive tasks, they still face critical limitations such as hallucinations and outdated knowledge. To address these issues, the retrieval-augmented generation (RAG) framework enhances LLMs with access to external knowledge via a retriever, enabling more accurate and real-time outputs about the latest events. However, this integration brings new security vulnerabilities: the risk that malicious content in the external database can be retrieved and used to manipulate model outputs. Although prior work has explored attacks on RAG systems, existing approaches either rely heavily on access to the retriever or fail to jointly consider both retrieval and generation stages, limiting their effectiveness, particularly in black-box scenarios. To overcome these limitations, we propose Token-level Precise Attack on the RAG (TPARAG), a novel framework that targets both white-box and black-box RAG systems. TPARAG leverages a lightweight white-box LLM as an attacker to generate and iteratively optimize malicious passages at the token level, ensuring both retrievability and high attack success in generation. Extensive experiments on open-domain QA datasets demonstrate that TPARAG consistently outperforms previous approaches in retrieval-stage and end-to-end attack effectiveness. These results further reveal critical vulnerabilities in RAG pipelines and offer new insights into improving their robustness.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Privacy and security of RAG, one of 15 directions in Retrieval-augmented generation. Builds on 23 of its 39 references that are in the map. First posted on arXiv 5 Aug 2025.
Builds on
23 of 39 references.
Closest ancestors · 2
Same direction, newest first
- 2024Typos that Broke the RAG's Back: Genetic Attack on RAG Pipeline by Simulating Documents in the Wild via Low-level Perturbations22 Apr
- 2024The Good and The Bad: Exploring Privacy Issues in Retrieval-Augmented Generation (RAG)23 Feb
Other references · 21
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,411
- 2021Unsupervised Dense Information Retrieval with Contrastive Learningcited by 1,203
- 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2020Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrievalcited by 846
- 2021Retrieval Augmentation Reduces Hallucination in Conversationcited by 691
9 more
- 2023Knowledge-Driven CoT: Exploring Faithful Reasoning in LLMs for Knowledge-intensive Question Answeringcited by 97
- 2024Trustworthiness in Retrieval-Augmented Generation Systems: A Surveycited by 83
- 2024CBR-RAG: Case-Based Reasoning for Retrieval Augmented Generation in LLMs for Legal Question Answeringcited by 70
- 2023Extractive Summarization via ChatGPT for Faithful Summary Generationcited by 58
- 2023SummIt: Iterative Text Summarization via ChatGPTcited by 53
- 2024Improving Retrieval for RAG based Question Answering Models on Financial Documentscited by 48
- 2023LongForm: Effective Instruction Tuning with Reverse Instructionscited by 47
- 2024UniMS-RAG: A Unified Multi-source Retrieval-Augmented Generation for Personalized Dialogue Systemscited by 38
- 2024Reinforcement Learning for Optimizing RAG for Domain Chatbotscited by 26
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026Securing Retrieval-Augmented Generation: A Taxonomy of Attacks, Defenses, and Future Directionscited by 2
- 2026RAGSieve: Self-Referenced Local Contrast for Knowledge-Poison Detection in Retrieval-Augmented Generationcited by 0
- 2026Retrieved But Not Reliable: A Survey on Attacks, and Defenses in Retrieval-Augmented Generationcited by 0
- 2026Micro-Collaborative Poisoning: A Distributed Attack on RAG Systemscited by 0
- 2026Divide and Doubt: Diverse Distributed Poisoning for Retrieval-Augmented Generationcited by 0
- 2026Divide and Doubt: Diverse Distributed Poisoning for Retrieval-Augmented Generation22 Sep 2026
- 2026Micro-Collaborative Poisoning: A Distributed Attack on RAG Systems18 Sep 2026
- 2026Retrieved But Not Reliable: A Survey on Attacks, and Defenses in Retrieval-Augmented Generation25 Aug 2026
- 2026RAGSieve: Self-Referenced Local Contrast for Knowledge-Poison Detection in Retrieval-Augmented Generation13 Aug 2026
- 2026Securing Retrieval-Augmented Generation: A Taxonomy of Attacks, Defenses, and Future Directions9 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2025RAGPart & RAGMask: Retrieval-Stage Defenses Against Corpus Poisoning in Retrieval-Augmented Generation
- 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Models
- 2025RAG Security and Privacy: Formalizing the Threat Model and Attack Surface
- 2025SafeRAG: Benchmarking Security in Retrieval-Augmented Generation of Large Language Model
- 2024Data Extraction Attacks in Retrieval-Augmented Generation via Backdoors
- 2024HijackRAG: Hijacking Attacks against Retrieval-Augmented Large Language Models
- 2025PR-Attack: Coordinated Prompt-RAG Attacks on Retrieval-Augmented Generation in Large Language Models via Bilevel Optimization
- 2026Security and Privacy in Retrieval-Augmented Generation: Architectures, Threats, Defenses, and Future Directions for Building Trustworthy Systems