Tree-Constrained Adaptive Coverage Search for Knowledge Extraction Attacks against Retrieval-Augmented Generation

Li, Wenyun, Cao, Guiping, Lan, Xiangyuan, Zhang, Zheng

–arXiv.org Artificial Intelligence 

Retrieval-augmented generation (RAG) enhances the reliability of large language models by grounding their outputs in external knowledge bases. However, the same retrieval interface can be exploited by knowledge extraction attacks (KEAs) to systematically recover sensitive corpus content. Existing KEAs often assume prior knowledge of corpus topics and lack an effective mechanism for balancing broad exploration with focused exploitation, leaving long-tail knowledge poorly covered under limited query budgets. To address these limitations, we propose Tree-Constrained Adaptive Coverage Search (TCACS), a black-box extraction framework that probes a dataset-agnostic taxonomy and uses semantic discrepancies between target and retrieval-free shadow responses to identify corpus-relevant branches. TCACS then performs feedback-aware frontier search, combining structural priors with novelty--redundancy signals to prioritize promising regions and progressively refine saturated nodes. Experiments across three datasets and three commercial RAG backbones show that TCACS achieves the best or tied-best results in 24 of 27 settings, improving the Chunk Recovery Rate by up to 12.07% over the strongest baseline. Its resilience to defenses at different RAG stages further exposes the difficulty of preventing cumulative leakage through natural interactions, highlighting practical privacy risks in deployed RAG systems.