arXiv:2609.03749cs.CRSep 2026

Manuscript Offprint

arXiv:2609.03749

Rent-a-RAG: Embedding-Space Watermarks for Auditing Third-Party RAG

Alexandr Goultiaev Tolstokorov, Kyriakos Mouratidis, Javad Dogani, Nikolaos Laoutaris

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Third-party retrieval-augmented generation (RAG) marketplaces create a new auditing problem: data providers may license corpora to a RAG operator, yet later have no visibility into whether their documents are being reused without compensation. Auditing this misuse is difficult because the operator is non-cooperative, answers are paraphrased by the generator, and one response may combine evidence from many providers. We propose DirBucket, a provider-side semantic watermarking and black-box auditing framework for document-level reuse in multi-provider RAG. DirBucket watermarks documents by meaning-preserving paraphrases whose embeddings are biased toward provider-bucket secret directions, enabling detection from black-box answers while preserving retrieval utility. On a challenging benchmark that reflects mixed-provider reuse under black-box access, DirBucket is the only method that consistently achieves strong target detection with no non-target activation, detecting non-compliance in every audit within 23 audited answers on our primary benchmark. The watermark survives adversarial post-answer laundering, and none of the evaluated evasion strategies simultaneously defeats detection while preserving user-perceived answer quality. Detection transfers unchanged to a second benchmark built from real clinical, cyber-threat-intelligence, and legal provider corpora. These results suggest that embedding-space watermarking can make document reuse in third-party RAG statistically auditable.

1 Introduction

Retrieval-augmented generation (RAG) grounds LLM answers in external documents, enabling up-to-date or domain-specific knowledge without retraining (Lewis et al., 2020; Li et al., 2022; Shuster et al., 2021). RAG is particularly valuable when content provision is decoupled from model operation. This separation already appears in real-world settings: specialized data providers may hold high-value corpora, yet lack the capacity or incentive to operate full end-to-end LLMs (Amazon Web Services, 2025; Sathyanarayanan and Whitehouse, 2024). For example, providers may offer subscription access to specialized corpora such as legal research platforms (e.g., LexisNexis, 2025), clinical decision support references (e.g., Wolters Kluwer, 2025), and cyber threat intelligence services (e.g., Recorded Future, 2025). Such providers may be willing to monetize their corpora through LLM-mediated services, while leaving retrieval, orchestration, model serving, and user-facing application development to a separate RAG operator.

This motivates a RAG data marketplace: providers supply proprietary corpora, third-party operators aggregate them behind retrieval interfaces, and downstream buyers pay for grounded answers. This setup is consistent with both classic data-market platforms (Agarwal et al., 2019) and recent work on pricing/revenue attribution for RAG access to external corpora (Fernandez et al., 2020; Han et al., 2025; Ye and Yoganarasimhan, 2025).

In such a marketplace, providers want to be compensated whenever their content is used. Under pay-per-retrieval, or any similar per-access billing model, the operator could cache and reuse documents without compensation to the provider. Providers cannot observe which documents were cached, how they were mixed with other sources, or even which queries were asked. From the provider's perspective, the RAG operator is therefore a potentially non-cooperative party that may free-ride on their corpus after an initial purchase.

This creates an auditing problem: providers need verifiable evidence that a RAG operator’s answers derive from paid content, without relying on operator self-reports or instrumenting the operator’s retrieval stack. A natural tool to produce such evidence is watermarking; the provider embeds a covert signal in its content using a provider-specific key, so that an authorized auditor can later test whether that signal is present in observed outputs. Watermarking has a long history in protecting intellectual property (Cox et al., 2002; Collberg and Thomborson, 1999), and more recently the ownership of datasets and unstructured data (İşler et al., 2024). However, existing watermarks largely rely on verbatim or lightly transformed reuse, whereas in RAG marketplaces, answers are routinely paraphrased or restyled by the LLM rather than copied directly. Moreover, a response may involve cross-provider mixing, i.e., different parts of the answer come from different providers. The operator is also non-cooperative, so attribution must rely on queries and answers alone. At the same time, the watermark must preserve the semantics, fluency, and utility of the original documents.

We ask: can a provider watermark its documents so that an authorized auditor, equipped with the provider's audit key but no cooperation from the RAG operator, can detect document reuse even after paraphrasing and cross-provider mixing? Our focus is on provider-side watermarking, where an auditor interacts with the RAG system only as a black box: submitting queries, observing answers, and running statistical tests using the provider's audit key. Unlike existing work, we address this combination of paraphrase robustness, multi-provider attribution, black-box auditing, and utility preservation, developing an embedding-space watermark and alignment-aware audit procedure.

Our contributions are: (i) A threat model for third-party RAG marketplaces; (ii) DirBucket, a provider-side watermark robust to paraphrasing and cross-provider mixing, alongside its attribution and detection procedure using directional evidence; (iii) An evaluation against adapted watermark baselines and non-watermark attribution heuristics on a contamination-controlled multi-provider fictional corpus, and an additional evaluation on a real-domain benchmark spanning clinical, cyber-threat-intelligence, and legal providers.

DirBucket retains detection power under paraphrasing, stylistic variation, adversarial laundering, and multi-provider mixing, reaching the reporting threshold by 23 audited answers, while controlling non-target attributions better than these alternatives and transferring unchanged to real-domain corpora. Overall, our findings suggest that embedding-space watermarking with alignment-aware attribution is a practical and effective way to enforce usage policies in third-party RAG marketplaces.