Ward: Provable RAG Dataset Inference via LLM Watermarks

Nikola Jovanović, Robin Staab, Maximilian Baader, Martin Vechev
10/4/2024
cs.LGcs.AIcs.CR

No official code found. Best implementation: eth-sri/ward (11 stars, MIT, last commit 2025-05-15).

Abstract

RAG enables LLMs to easily incorporate external data, raising concerns for data owners regarding unauthorized usage of their content. The challenge of detecting such unauthorized usage remains underexplored, with datasets and methods from adjacent fields being ill-suited for its study. We take several steps to bridge this gap. First, we formalize this problem as (black-box) RAG Dataset Inference (RAG-DI). We then introduce a novel dataset designed for realistic benchmarking of RAG-DI methods, alongside a set of baselines. Finally, we propose Ward, a method for RAG-DI based on LLM watermarks that equips data owners with rigorous statistical guarantees regarding their dataset's misuse in RAG corpora. Ward consistently outperforms all baselines, achieving higher accuracy, superior query efficiency and robustness. Our work provides a foundation for future studies of RAG-DI and highlights LLM watermarks as a promising approach to this problem.

View on arXivView PDF

Code Implementations(1)

eth-sri/wardCommunity67%
MIT

Ward: Provable RAG Dataset Inference via LLM Watermarks (ICLR 2025)

110PythonFeb 24, 20251 years agoMIT

Similar Papers

Cite this paper

@article{jovanovi2024ward,
  title  = {Ward: Provable RAG Dataset Inference via LLM Watermarks},
  author = {Nikola Jovanović and Robin Staab and Maximilian Baader and Martin Vechev},
  year   = {2024},
  eprint = {2410.03537},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.03537v2},
  journal = {ICLR 2024 2024}
}

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

Discussion