Dataset Protection via Watermarked Canaries in Retrieval-Augmented LLMs
cs.CR, cs.CL
Submitted: 2025-02-15
Updated: 2026-08-29
Comments: EMNLP2026
License: http://creativecommons.org/licenses/by-nc-sa/4.0/
The gist: Retrieval-Augmented Generation (RAG) has become an effective method for enhancing large language models (LLMs) with up-to-date knowledge.
Terminology
Abstract
Retrieval-Augmented Generation (RAG) has become an effective method for enhancing large language models (LLMs) with up-to-date knowledge. However, it may pose a risk of copyright infringement, as IP datasets may be incorporated into the knowledge database by malicious Retrieval-Augmented LLMs (RA-LLMs) without authorization. To protect the rights of the dataset owner, an effective dataset membership inference algorithm for RA-LLMs is needed. In this work, we introduce a novel approach, CanaryTrace, to safeguard the ownership of text datasets and effectively detect unauthorized use by RA-LLMs. Our approach preserves the original data completely unchanged while protecting it by inserting specifically designed canary documents into the IP dataset. These canary documents are created with synthetic content and embedded watermarks to ensure uniqueness, consistency, and statistical provability. During the detection process, unauthorized usage is identified by querying the canary documents and analyzing the responses of RA-LLMs for statistical evidence of the embedded watermark. Our experimental results demonstrate high query efficiency, detectability, and consistency, along with minimal perturbation to the original dataset, all without compromising the performance of the RAG system.
Sources
- Phantom: General Backdoor Attacks on Retrieval Augmented Language Generation
- AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases
- TrojanRAG: Retrieval-Augmented Generation Can Be Backdoor Driver in Large Language Models
- GumbelSoft: Diversified Language Model Watermarking via the GumbelMax-trick
- Retrieval-Augmented Generation for Large Language Models: A Survey
- WaterMax: breaking the LLM watermark detectability-robustness-quality trade-off
- Is My Data in Your Retrieval Database? Membership Inference Attacks Against Retrieval Augmented Generation
- Theoretically Grounded Framework for LLM Watermarking: A Distribution-Adaptive Approach
- Distributional Information Embedding: A Framework for Multi-bit Watermarking
- Unsupervised Dense Information Retrieval with Contrastive Learning
- Ward: Provable RAG Dataset Inference via LLM Watermarks
- Dense Passage Retrieval for Open-Domain Question Answering
- Robust Distortion-free Watermarks for Language Models
- Watermarking Makes Language Models Radioactive
- Robust Detection of Watermarks for Large Language Models Under Human Edits
- Proving membership in LLM pretraining data via data watermarks
- A Statistical Framework of Watermarks for Large Language Models: Pivot, Detection Efficiency and Optimal Rules
- Large Language Model Agent for Fake News Detection
- A Resilient and Accessible Distribution-Preserving Watermark for Large Language Models
- Approximate Nearest Neighbor Negative Contrastive Learning for Dense Text Retrieval
Related papers
- SoK: AI-Augmented Binary Reversing
- Relaxed Sender Anonymity for CBDC Interbank Settlement: A Zero-Knowledge Approach on Permissioned EVM
- Calibration-Family Overfit: Why Trusted Sabotage Monitors Don't Transfer Across Lineages
- Efficient Fuzzy PSI under One-Sided Assumptions
- Sealing the Audit-Runtime Gap for LLM Skills
- Token Composition: A Graph Based on EVM Logs