Typos that Broke the RAG's Back: Genetic Attack on RAG Pipeline by Simulating Documents in the Wild via Low-level Perturbations

Sukmin Cho, Soyeong Jeong, Jeongyeon Seo, Taeho Hwang, Jong C. Park
4/22/2024
cs.CL

No official code found. Best implementation: zomss/GARAG (9 stars, last commit 2024-10-21).

Abstract

The robustness of recent Large Language Models (LLMs) has become increasingly crucial as their applicability expands across various domains and real-world applications. Retrieval-Augmented Generation (RAG) is a promising solution for addressing the limitations of LLMs, yet existing studies on the robustness of RAG often overlook the interconnected relationships between RAG components or the potential threats prevalent in real-world databases, such as minor textual errors. In this work, we investigate two underexplored aspects when assessing the robustness of RAG: 1) vulnerability to noisy documents through low-level perturbations and 2) a holistic evaluation of RAG robustness. Furthermore, we introduce a novel attack method, the Genetic Attack on RAG (\textit{GARAG}), which targets these aspects. Specifically, GARAG is designed to reveal vulnerabilities within each component and test the overall system functionality against noisy documents. We validate RAG robustness by applying our \textit{GARAG} to standard QA datasets, incorporating diverse retrievers and LLMs. The experimental results show that GARAG consistently achieves high attack success rates. Also, it significantly devastates the performance of each component and their synergy, highlighting the substantial risk that minor textual inaccuracies pose in disrupting RAG systems in the real world.

View on arXivView PDF

Code Implementations(1)

zomss/GARAGCommunity100%

Official Repository for the paper "Typos that Broke RAG's Back"

92Shell, PythonSep 29, 20242 years ago

Similar Papers

Cite this paper

@article{cho2024typos,
  title  = {Typos that Broke the RAG's Back: Genetic Attack on RAG Pipeline by Simulating Documents in the Wild via Low-level Perturbations},
  author = {Sukmin Cho and Soyeong Jeong and Jeongyeon Seo and Taeho Hwang and Jong C. Park},
  year   = {2024},
  eprint = {2404.13948},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.13948v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.13948.svg)](https://codeofpaper.com/paper/2404.13948)

Discussion