TrustRAG: Enhancing Robustness and Trustworthiness in Retrieval-Augmented Generation

Huichi Zhou, Kin-Hei Lee, Zhonghao Zhan, Yue Chen, Zhenhao Li +3 more
1/1/2025
cs.CL

No official code found. Best implementation: HuichiZhou/TrustRAG (60 stars, MIT, last commit 2025-03-24).

Abstract

Retrieval-Augmented Generation (RAG) enhances large language models (LLMs) by integrating external knowledge sources, enabling more accurate and contextually relevant responses tailored to user queries. These systems, however, remain susceptible to corpus poisoning attacks, which can severely impair the performance of LLMs. To address this challenge, we propose TrustRAG, a robust framework that systematically filters malicious and irrelevant content before it is retrieved for generation. Our approach employs a two-stage defense mechanism. The first stage implements a cluster filtering strategy to detect potential attack patterns. The second stage employs a self-assessment process that harnesses the internal capabilities of LLMs to detect malicious documents and resolve inconsistencies. TrustRAG provides a plug-and-play, training-free module that integrates seamlessly with any open- or closed-source language model. Extensive experiments demonstrate that TrustRAG delivers substantial improvements in retrieval accuracy, efficiency, and attack resistance.

View on arXivView PDF

Code Implementations(1)

HuichiZhou/TrustRAGCommunity100%
MIT

Code for "TrustRAG: Enhancing Robustness and Trustworthiness in RAG" AAAI 2026 Workshop on Trust and Control in Agentic AI (TrustAgent)

6010PythonDec 30, 20241 years agoMIT

Similar Papers

Cite this paper

@article{zhou2025trustrag,
  title  = {TrustRAG: Enhancing Robustness and Trustworthiness in Retrieval-Augmented Generation},
  author = {Huichi Zhou and Kin-Hei Lee and Zhonghao Zhan and Yue Chen and Zhenhao Li and Zhaoyang Wang and Hamed Haddadi and Emine Yilmaz},
  year   = {2025},
  eprint = {2501.00879},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.00879v3}
}

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/2501.00879.svg)](https://codeofpaper.com/paper/2501.00879)

Discussion