arXiv:2506.14474cs.CLcs.CR2025-06被引 1

用同义词替换隐蔽水印,验证大模型是否偷学了你的数据

LexiMark: Robust Watermarking via Lexical Substitutions to Enhance Membership Verification of an LLM's Textual Training Data

  • 选高熵词做同义替换,水印藏在语义不变的文本里
  • 在7个开源模型上测试,水印检测准确率显著高于现有方法
  • 适合数据版权保护者和模型审计人员使用

大型语言模型(LLM)可能在未经许可的情况下使用他人数据进行训练或微调。验证特定模型是否使用了某条数据或整个数据集极为困难。数据水印通过在训练数据中嵌入可识别的修改来解决此问题。然而,现有方法往往缺乏隐蔽性,容易被检测和移除。为此,我们提出LexiMark,一种针对文本和文档的新水印技术,通过为精心选择的高熵词进行同义词替换来嵌入水印。该方法旨在增强模型对水印文本的记忆能力,同时不改变文本的语义完整性。结果表明,水印难以察觉,与原文无缝融合,且因替换自然、上下文合理,能有效抵御自动和人工检测。我们在近期研究中的基准数据集及七个开源模型(LLaMA-1 7B、LLaMA-3 8B、Mistral 7B、Pythia 6.9B,以及来自Pythia家族的三个较小版本:160M、410M、1B)上进行了评估,覆盖持续预训练和微调等多种训练场景。实验结果显示,相比现有方法,本方法在AUROC指标上显著提升,证明其在可靠验证未经授权水印数据使用方面的有效性。

原文摘要 · Abstract (English)

Large language models (LLMs) can be trained or fine-tuned on data obtained without the owner's consent. Verifying whether a specific LLM was trained on particular data instances or an entire dataset is extremely challenging. Dataset watermarking addresses this by embedding identifiable modifications in training data to detect unauthorized use. However, existing methods often lack stealth, making them relatively easy to detect and remove. In light of these limitations, we propose LexiMark, a novel watermarking technique designed for text and documents, which embeds synonym substitutions for carefully selected high-entropy words. Our method aims to enhance an LLM's memorization capabilities on the watermarked text without altering the semantic integrity of the text. As a result, the watermark is difficult to detect, blending seamlessly into the text with no visible markers, and is resistant to removal due to its subtle, contextually appropriate substitutions that evade automated and manual detection. We evaluated our method using baseline datasets from recent studies and seven open-source models: LLaMA-1 7B, LLaMA-3 8B, Mistral 7B, Pythia 6.9B, as well as three smaller variants from the Pythia family (160M, 410M, and 1B). Our evaluation spans multiple training settings, including continued pretraining and fine-tuning scenarios. The results demonstrate significant improvements in AUROC scores compared to existing methods, underscoring our method's effectiveness in reliably verifying whether unauthorized watermarked data was used in LLM training.

数据水印隐私保护大模型审计

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。