Certifiably Robust RAG against Retrieval Corruption
<|reference_start|>Certifiably Robust RAG against Retrieval Corruption: Retrieval-augmented generation (RAG) has been shown vulnerable to retrieval corruption attacks: an attacker can inject malicious passages into retrieval results to induce inaccurate responses. In this paper, we propose RobustRAG as the first defense framework against retrieval corruption attacks. The key insight of RobustRAG is an isolate-then-aggregate strategy: we get LLM responses from each passage in isolation and then securely aggregate these isolated responses. To instantiate RobustRAG, we design keyword-based and decoding-based algorithms for securely aggregating unstructured text responses. Notably, RobustRAG can achieve certifiable robustness: we can formally prove and certify that, for certain queries, RobustRAG can always return accurate responses, even when the attacker has full knowledge of our defense and can arbitrarily inject a small number of malicious passages. We evaluate RobustRAG on open-domain QA and long-form text generation datasets and demonstrate its effectiveness and generalizability across various tasks and datasets.<|reference_end|>
@article{xiang2024certifiably,
    title={Certifiably Robust RAG against Retrieval Corruption},
    author={Chong Xiang, Tong Wu, Zexuan Zhong, David Wagner, Danqi Chen, Prateek
  Mittal},
    journal={arXiv preprint arXiv:2405.15556},
    year={2024},
    archivePrefix={arXiv},
    eprint={2405.15556},
    primaryClass={cs.LG cs.CL cs.CR}
}