RAGSentinel: 강건한 검색-증강 생성을 위한 인증 가능한 기하학적 합의
RAGSentinel: Certifiable Geometric Consensus for Robust Retrieval-Augmented Generation
한국어 초록
검색-증강 생성(RAG)은 외부 문서에 응답을 그라운딩(grounding)하여 대규모 언어 모델(LLM)의 사실성을 향상하지만, 지식 데이터베이스에 주입된 적대적 문서가 컨텍스트 윈도우(context window)로 유입되어 모델이 의도된 오답을 내도록 유도할 수 있다는 치명적인 보안 취약점을 드러내기도 합니다. 기존의 검색 후 방어 기법들은 인스트럭션 준수, 파라메트릭 지식 또는 텍스트 수준의 일관성에 의존하므로, 적응형 공격자(adaptive attacker)에 의해 모방되거나 최적화되어 무력화될 수 있습니다. 본 논문에서는 블랙박스 RAG 시스템을 위한 학습(training)과 레이블이 필요 없는 방어 기법인 RAGSentinel을 제안합니다. RAGSentinel은 대리 인코더(surrogate encoder)를 활용하여 검색된 문서로 인해 유도되는 질의 조건부 은닉 상태(hidden-state) 변화를 측정하고, 공유된 주제 방향을 제거하며, 강건한 다수 합의로부터 벗어난 기하학적 이상치(geometric outlier)로서 오염된 문서를 필터링합니다. 저자들은 정직한 다수(honest-majority) 가정과 표현 수준의 분리 조건 하에서 RAGSentinel이 오염되지 않은 다수 크기의 컨텍스트를 정확하게 복원함을 증명합니다. 세 가지 질의응답 데이터셋, 세 가지 LLM 계열, 그리고 다수의 오염 공격에 걸친 실험 결과에 따르면, RAGSentinel은 전체 파이프라인 지식을 보유한 적응형 공격에 대해서도 효과를 유지하면서 경쟁력 있는 정확도를 보존함과 동시에 지속적으로 낮은 공격 성공률을 달성합니다.
원문 초록
Retrieval-augmented generation (RAG) improves the factuality of large language models by grounding responses in external documents, but it also exposes a critical security vulnerability: adversarial documents injected into the knowledge database can enter the context window and steer the model toward targeted incorrect answers. Existing post-retrieval defenses rely on instruction following, parametric knowledge, or text-level consistency, all of which can be imitated or optimized against by adaptive attackers. We propose RAGSentinel, a training-free, label-free defense for black-box RAG systems. RAGSentinel uses a surrogate encoder to measure query-conditioned hidden-state shifts induced by retrieved documents, removes shared topic directions, and filters poisoned documents as geometric outliers from a robust majority consensus. We prove that, under an honest-majority assumption and a representation-level separation condition, RAGSentinel exactly recovers a poison-free majority-sized context. Experiments across three question-answering datasets, three LLM families, and multiple poisoning attacks show that RAGSentinel consistently achieves low attack success rates while preserving competitive accuracy and remaining effective against adaptive attacks with full pipeline knowledge.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2608.23965v1제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.