Skip to main content
QUICK REVIEW

[论文解读] Protecting Language Generation Models via Invisible Watermarking

Xuandong Zhao, Yuxiang Wang|arXiv (Cornell University)|Feb 6, 2023
Adversarial Robustness in Machine LearningComputer Science被引用 15
一句话总结

Ginsew 将一个不可见的正弦水印嵌入文本生成模型的输出概率分布中,以检测并归因模型提取攻击,在极小影响生成质量的前提下提供对蒸馏的强健知识产权保护。

ABSTRACT

Language generation models have been an increasingly powerful enabler for many applications. Many such models offer free or affordable API access, which makes them potentially vulnerable to model extraction attacks through distillation. To protect intellectual property (IP) and ensure fair use of these models, various techniques such as lexical watermarking and synonym replacement have been proposed. However, these methods can be nullified by obvious countermeasures such as "synonym randomization". To address this issue, we propose GINSEW, a novel method to protect text generation models from being stolen through distillation. The key idea of our method is to inject secret signals into the probability vector of the decoding steps for each target token. We can then detect the secret message by probing a suspect model to tell if it is distilled from the protected one. Experimental results show that GINSEW can effectively identify instances of IP infringement with minimal impact on the generation quality of protected APIs. Our method demonstrates an absolute improvement of 19 to 29 points on mean average precision (mAP) in detecting suspects compared to previous methods against watermark removal attacks.

研究动机与目标

  • 推动保护可通过 API 访问的语言模型,免受廉价蒸馏和知识产权盗窃的影响。
  • 提出一种对水印移除尝试仍然鲁棒的水印方法。
  • 证明水印在保证可靠盗窃检测的同时维持生成质量。
  • 使第三方仲裁者能够使用秘密解码密钥进行验证。

提出的方法

  • 在令牌生成期间,将一个秘密正弦信号注入解码概率向量。
  • 将词汇表分成两组随机分组,并使用基于频率的水印通过哈希驱动的扰动来调整组概率。
  • 使用水印密钥 K=(f_w, v, M) 通过 Lomb-Scargle 周期图在可疑模型上生成可检测的频率峰值。
  • 通过使用数据集探测可疑模型、在每个解码步骤计算 Q_G1 统计量并分析频谱来检测水印。
  • 在无法访问概率时,通过将 Lomb-Scargle 直接应用于令牌级输出,提供纯文本水印检测选项。

实验结果

研究问题

  • RQ1在模型提取尝试后,是否可以通过不可见的概率空间水印来识别来自受保护 API 的蒸馏模型?
  • RQ2Ginsew 对同义词随机化等水印移除策略的鲁棒性如何,同时保持生成质量?
  • RQ3在不同生成任务和架构中,水印强度与生成质量之间的权衡是什么?
  • RQ4仅使用生成文本、不访问解码概率时,水印检测是否可行?

主要发现

  • Ginsew 在机器翻译和故事生成任务中,在几乎不降低 BLEU/ROUGE-BERTScore 的情况下实现了高水印可识别性。
  • 在同义词随机化攻击下,Ginsew 对检测被盗模型保持了优越的平均精度 (mAP),相比先前方法提升了 19–29 点。
  • 使用概率向量和 Lomb-Scargle 周期图进行水印检测,始终获得高信噪比 (P_snr),实现可靠的盗窃归因。
  • 该方法与架构无关,在各种提取模型架构(如 (m)BART、Transformer 变体、ConvS2S)上表现良好。
  • 纯文本水印检测,虽然弱于基于概率的方法,但通过对生成令牌的频域分析仍然显示出可行的水印存在。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。