Making Open-Source Text LLM Watermarks Durable Against Merging

Luisa Scharff, Thibaud Gloaguen, Robin Staab, Martin Vechev

TL;DR

Open-source LLM watermarks are easily erased when users merge models to combine capabilities. This paper introduces Merge-Adversarial Training (MAT), a method that bakes durability into model weights by simulating merging during the training process, ensuring the "digital signature" survives even after complex post-release modifications.

What Problem Does This Paper Address?

Watermarking is essential for AI safety and provenance, allowing researchers to identify text generated by a specific model. For closed-source models (like GPT-4), this is done at the "sampling" stage. However, for open-source models (OSMs), the watermark must be embedded directly into the model's weights because users can run the model locally and bypass sampling-level checks.

The challenge is that OSMs are rarely used "as-is." Users frequently perform model merging—a popular, low-cost technique to combine the strengths of different models (e.g., merging a math expert with a coding expert) without full retraining. Prior research has shown that merging acts as a "watermark killer," effectively washing away the embedded signal. This paper tackles the question: How can we create an OSM watermark that survives the merging process?

Methods

The authors propose Merge-Adversarial Training (MAT). Instead of standard "watermark distillation"—where a student model simply learns to mimic a watermarked teacher—MAT treats model merging as an adversarial attack to be defended against during training.

The MAT Training Loop: 1. Simulate a Merge: At every training step, the algorithm creates a temporary "merged model" by interpolating the current trainable weights with the original unwatermarked base weights. 2. Adversarial Objective: The loss is calculated based on how well this merged model preserves the watermark. 3. Backpropagation: The gradients are sent back to the trainable model.

Essentially, the model learns a set of weights that are "merge-aware." Even if you dilute these weights by 50% with another model later, the specific patterns required for the watermark are designed to remain dominant. The authors also use top-k gating, applying the watermark only to the most likely tokens to preserve the model's original reasoning quality.

Datasets

The authors used a diverse mix of datasets to ensure the watermark functioned across different languages and tasks:

  • Training Mix: A combination of English (Alpaca-GPT4, OpenWebText), German (Alpaca-GPT4-DE, FineWeb-2), Math (MetaMathQA), and Code (CodeAlpaca).
  • Evaluation/Finetuning: To test realistic scenarios, they finetuned models on domain-specific sets like NuminaMath-CoT, Evol-Instruct-DE, and a French-Alpaca mix.
  • Benchmarks: Performance was verified using standard benchmarks including MMLU, ARC-Challenge, GSM8K, and HellaSwag.

Key Insights and Ideas

  • Linear Robustness Generalizes: One of the most surprising findings is that training against simple linear interpolation (the easiest way to merge) makes the watermark robust against much more complex, non-linear merging algorithms like SLERP and TIES.
  • The "Worst-Case" Proxy: The authors discovered that merging a watermarked model with its unwatermarked base version is an excellent "worst-case" proxy. If a watermark survives this "dilution," it is highly likely to survive merges with other expert models.
  • No Performance Penalty: Robustness usually comes at a cost, but MAT maintains nearly identical perplexity and benchmark accuracy compared to standard, non-robust watermarking methods.
  • Cross-Architecture Success: The method isn't "overfit" to one model; it worked effectively on both Llama-3.1-8B and Qwen-2.5-3B.

Key Results

MAT consistently outperformed all existing baselines in durability:

  • Massive Gains in Detection: In SLERP merging scenarios, MAT improved the True Positive Rate (TPR) by up to 51 percentage points over standard distillation.
  • Average Improvement: Across various merge ratios and algorithms, MAT provided a +25 pp average boost in watermark detectability.
  • Cascaded Merges: MAT is the first method shown to survive "cascaded" merges (e.g., merging Model A and B, then merging the result with Model C).
  • Algorithm Agnostic: While tested primarily on the KGW watermark family, the authors proved MAT also works for other schemes like AAR and KTH.

Limitations and Future Work

  • Aggressive Pruning: The paper notes that MAT might struggle against more "aggressive" merging techniques that involve heavy weight pruning or "trim-and-rescale" operations (like DARE-TIES).
  • Weight-Space Watermarks: MAT currently focuses on logit-based distillation. Adapting it to "weight-space" watermarks (which perturb weights directly rather than output distributions) would require backpropagating through a watermark detector, which is a complex future challenge.
  • Scaling: While successful at the 3B and 8B scale, the authors suggest that testing on much larger "frontier" open-source models is a necessary next step.

Summary updated

BibTeX
@inproceedings{scharff2026making,
  author = {Luisa Scharff and Thibaud Gloaguen and Robin Staab and Martin Vechev},
  title = {{Making Open-Source Text LLM Watermarks Durable Against Merging}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=3fkF2rVnDA},
}
Figure