SeCon-RAG: A Two-Stage Semantic Filtering and Conflict-Free Framework for Trustworthy RAG

Xiaonan Si, Mei-Lin Zhu, Si-Meng Qin, Li-Jia Yu, Li-Jun Zhang +5 more
10/1/2025
22 citations
rag

No official code found. Best implementation: lanmei666/Secon-RAG (6 stars).

Abstract

Retrieval-augmented generation (RAG) systems enhance large language models (LLMs) with external knowledge but are vulnerable to corpus poisoning and contamination attacks, which can compromise output integrity. Existing defenses often apply aggressive filtering, leading to unnecessary loss of valuable information and reduced reliability in generation.

Show full abstract

To address this problem, we propose a two-stage semantic filtering and conflict-free framework for trustworthy RAG. In the first stage, we perform a joint filter with semantic and cluster-based filtering which is guided by the Entity-intent-relation extractor (EIRE). EIRE extracts entities, latent objectives, and entity relations from both the user query and filtered documents, scores their semantic relevance, and selectively adds valuable documents into the clean retrieval database. In the second stage, we proposed an EIRE-guided conflict-aware filtering module, which analyzes semantic consistency between the query, candidate answers, and retrieved knowledge before final answer generation, filtering out internal and external contradictions that could mislead the model. Through this two-stage process, SeCon-RAG effectively preserves useful knowledge while mitigating conflict contamination, achieving significant improvements in both generation robustness and output trustworthiness. Extensive experiments across various LLMs and datasets demonstrate that the proposed SeCon-RAG markedly outperforms state-of-the-art defense methods.

View on arXivView PDF

Code Implementations(1)

code for NeurIPS 2025 SeCon-RAG: A Two-Stage Semantic Filtering and Conflict-Free Framework for Trustworthy RAG

60

Similar Papers

Cite this paper

@article{si2025seconrag,
  title  = {SeCon-RAG: A Two-Stage Semantic Filtering and Conflict-Free Framework for Trustworthy RAG},
  author = {Xiaonan Si and Mei-Lin Zhu and Si-Meng Qin and Li-Jia Yu and Li-Jun Zhang and Shuai-Tong Liu and Xin-Feng Li and Ran-Jie Duan and Yang Liu and Xiao-Jun Jia},
  year   = {2025},
  eprint = {2510.09710},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2510.09710},
  url    = {https://doi.org/10.48550/arXiv.2510.09710},
  journal = {Neural Information Processing Systems}
}

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

Discussion