Manuscript Offprint

arXiv:2608.29151

WoE Wrote It? Watermarking Mixture-of-Experts LLMs for Black-Box Text Provenance

Jona te Lintelo, Lichao Wu, Stjepan Picek

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

Jona te Lintelo

Radboud University

Lichao Wu

University of Bristol

Stjepan Picek

Faculty of Electrical Engineering and Computing, University of Zagreb & Radboud University

Abstract—Large Language Model (LLM) watermarks provide a mechanism for text provenance, enabling model owners to identify machine-generated content and attribute it to a specific watermarked model. However, current LLM watermarking approaches predominantly rely on inference-time sampler methods and focus their analysis on dense models. Inference-time methods are only effective when the text is explicitly generated via the model owner's controlled API; they fail in a post-compromise scenario. An adversary who steals or leaks the model weights gains complete control over inference and can simply run an unmodified sampler, bypassing the watermark and preventing post-theft attribution. In this work, we introduce Watermarking of Experts (WoE), a novel black-box text provenance method that leverages the unique structural properties of sparse Mixture-of-Experts (MoE) models. WoE biases the vocabulary of specific experts and shifts the watermark signal embedding away from unenforceable inference wrappers. This approach ensures the watermark remains intrinsic to the model parameters, enabling defenders to attribute text generated by stolen weights, leaked checkpoints, and secondary dense models distilled from the stolen architecture without needing access to the adversary's deployment or weights. We evaluate WoE across eight MoE models, demonstrating successful watermark detection from suspect text, achieving an average true positive rate of 90.1% at a 1% false positive rate, reaching up to 94.9%, while largely preserving general model utility. Furthermore, WoE remains detectable under adversarial supervised fine-tuning, model extraction, and output-level paraphrasing, forcing malicious actors into a trade-off in which weakening the attribution signal requires additional model adaptation or text-rewriting operations, or compromises the utility of the resulting output.

1. Introduction

Large Language Models (LLMs) have achieved remarkable advances in natural language processing, powering applications ranging from automated content generation to complex logical reasoning [1], [2], [3]. Their rapid adoption is largely driven by their ability to generate highly fluent and contextually relevant text. To further improve scalability and capacity of LLM models, architectures such as Mixture-of-Experts (MoE) have emerged, achieving state-of-the-art performance while maintaining computational efficiency through conditional computation and sparse expert routing [4], [5].

As these models become more capable and cost-effective, they are increasingly becoming targets of intellectual property theft, including exfiltration of model weights via compromised infrastructure, insider threats, or supply-chain vulnerabilities [6]. Once an attacker possesses the weights, the original model owner loses control of the inference pipeline. The adversary can run the model locally, change the decoding implementation, disable generation-time hooks, and privately fine-tune the model before deployment. Consequently, establishing post-compromise text provenance requires a mechanism that enables the legitimate model owner to determine, from text alone, whether a suspect generation is statistically attributable to their specific stolen model weights, even when the adversary completely controls inference.

Text watermarking [7] has emerged as a popular mechanism to detect if text was generated by a certain model [8]. By embedding a statistically detectable signal into the generated text, watermarking enables reliable provenance verification. However, existing mechanisms predominantly focus on standard dense architectures and have limitations in their threat models. Specifically, current methods operate mainly via inference-time wrappers [7], [8], [9], or global weight perturbations [10], [11]. Inference-time wrappers are only viable if an adversary explicitly uses the model owner's controlled API. In a post-compromise scenario, these generation-time interventions become unenforceable because the adversary gains control over the inference pipeline and can simply run an unmodified sampler. To survive model theft, the watermark must be embedded directly into the model weights. However, embedding watermarks into the weights of standard dense models is constrained by their dense activation architecture. Because dense models activate all parameters for every token, a watermark embedded anywhere in the network continuously distorts the global token distribution. As we demonstrate in our evaluation, this continuous activation degrades downstream model utility and creates a global statistical footprint that is susceptible.

to adversarial scrubbing via, e.g., Supervised Fine-Tuning (SFT). Consequently, achieving zero-access, black-box text provenance for stolen model weights remains an underexplored challenge.

In this paper, we introduce Watermarking of Experts (WoE), a novel watermarking framework for model-specific provenance of MoE-generated text. WoE addresses post-theft black-box attribution by leveraging the unique sparse routing properties of MoE architectures. Our central insight is that sparse expert activation provides a structural mechanism for embedding a detectable vocabulary bias in model weights without continuously perturbing the global token distribution. WoE alters the weights of specific experts so that generated text carries an owner-specific statistical signal. This signal can be used to attribute generated text directly to a watermarked MoE model. Since the watermark is embedded into the model weights rather than computed during text generation, it remains active when an adversary deploys stolen weights and incurs no computational overhead at inference time.

WoE operates in three stages. First, payload creation uses a defender-held secret seed to pseudorandomly derive a model-specific green list and separately selects the experts in which the vocabulary bias will be embedded. Second, watermark injection applies a localized loss to selected experts via Low-Rank Adaptation (LoRA), biasing their output distributions toward the green list. Third, watermark detection extracts the signal from suspect text by testing whether tokens that are routed to the selected experts are overrepresented in the green list. Because causal Transformer routing is deterministic given a specific text sequence, the defender can feed the suspect text into their watermarked model to reconstruct the routing traces. WoE then matches these traces to the green list using a Z-score significance test. This trace-matching detection mechanism establishes statistically verifiable, model-specific provenance from text alone, without access to the adversary's deployment or model weights.

We evaluate WoE across eight state-of-the-art and recent open-source MoE models in diverse text generation contexts. Our results demonstrate that WoE successfully enables model-specific text provenance, achieving an average True Positive Rate (TPR) of 90.1% at a 1% False Positive Rate (FPR), reaching as high as 94.9% for 300-token sequences. Importantly, WoE largely preserves the model's utility when measured through benchmark accuracy, incurring an average accuracy drop of 1.7 percentage points (pp). In addition, WoE is resilient against SFT attacks to scrub the watermark signal, with most targeted models requiring sustained SFT to drop TPR @ 1% FPR below 80%, showcasing a trade-off for adversaries. In addition, WoE retains substantial detectability under SFT-based scrubbing and remains partially detectable after semantic paraphrasing, highlighting practical trade-offs between attribution evasion, attack cost, and model utility. Our main contributions are:

  • We propose WoE, a three-stage approach for attributing suspect text to stolen or exfiltrated MoE model weights. By reconstructing the internal routing traces of suspect text, a defender establishes model-specific provenance without access to the adversary's deployment or potentially modified copy of the weights.

• We provide an extensive evaluation across eight diverse and recent MoE architectures, characterizing the effects of watermark strength, sequence length, target-layer placement, and expert activation frequency on the detectability–utility trade-off.

• We evaluate WoE under post-theft attacks, including supervised fine-tuning and semantic paraphrasing, and characterize the trade-offs among detectability, attack effectiveness, attack cost, and model utility.

The remainder of this paper is structured as follows: Section 2 provides the necessary background information on LLM watermarking and MoE architectures. Section 3 outlines the adversarial threat model. Section 4 describes the design of the WoE framework in detail. Section 5 presents our implementation, experimental setup, and evaluation metrics used for the evaluation of WoE. Section 6 details the empirical results, optimized parameters, and robustness benchmarks. Finally, we discuss related work in Section 8 and conclude in Section 9. The appendices detail per-benchmark accuracy results, robustness against text perturbations, and extended ablation study results. The WoE source code is available at https://github.com/jonatelintelo/WatermarkingOfExperts.

References (45)