Can LLM Watermarks Robustly Prevent Unauthorized Knowledge Distillation?

Leyi Pan, Aiwei Liu, Shiyu Huang, Yijian Lu, Xuming Hu +3 more
2/17/2025
26 citations
cs.CL
distillation

Official code: THU-BPM/Watermark-Radioactivity-Attack (24 stars, Python, last commit 2025-06-18).

Abstract

The radioactive nature of Large Language Model (LLM) watermarking enables the detection of watermarks inherited by student models when trained on the outputs of watermarked teacher models, making it a promising tool for preventing unauthorized knowledge distillation. However, the robustness of watermark radioactivity against adversarial actors remains largely unexplored.

Show full abstract

In this paper, we investigate whether student models can acquire the capabilities of teacher models through knowledge distillation while avoiding watermark inheritance. We propose two categories of watermark removal approaches: pre-distillation removal through untargeted and targeted training data paraphrasing (UP and TP), and post-distillation removal through inference-time watermark neutralization (WN). Extensive experiments across multiple model pairs, watermarking schemes and hyper-parameter settings demonstrate that both TP and WN thoroughly eliminate inherited watermarks, with WN achieving this while maintaining knowledge transfer efficiency and low computational overhead. Given the ongoing deployment of watermarking techniques in production LLMs, these findings emphasize the urgent need for more robust defense strategies. Our code is available at https://github.com/THU-BPM/Watermark-Radioactivity-Attack.

View on arXivView PDF

Code Implementations(1)

[ACL 2025 Main] Code and data for paper "Can LLM Watermarks Robustly Prevent Unauthorized Knowledge Distillation?"

242Python, Jupyter NotebookFeb 23, 20251 years ago
attackllmradioactivitywatermark

Similar Papers

Cite this paper

@article{pan2025watermarks,
  title  = {Can LLM Watermarks Robustly Prevent Unauthorized Knowledge Distillation?},
  author = {Leyi Pan and Aiwei Liu and Shiyu Huang and Yijian Lu and Xuming Hu and Lijie Wen and Irwin King and Philip S. Yu},
  year   = {2025},
  eprint = {2502.11598},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.11598v2}
}

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

Discussion