EcoSafeRAG: Efficient Security Protection for Retrieval-Augmented Generation via Context AnalysisEcoSafeRAG: Efficient Security through Context Analysis in Retrieval-Augmented Generation
AI summary
EcoSafeRAG targets corpus poisoning attacks faced by retrieval-augmented generation (RAG), identifying malicious content in candidate documents through sentence-level processing and decoy-guided context diversity detection, without relying on the internal knowledge of large language models. Experiments show its security reaches SOTA, it supports plug-and-play deployment, and it improves RAG performance in clean scenarios. Compared with Vanilla RAG, its relative latency is 1.2× and token consumption is reduced by 48%-80%.