arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.14378cs.CRcs.CL
收藏

与分词无关的水印:一种针对大语言模型文本的字节局部方法

Tokenization-Invariant Watermarking: A Byte-Local Method for LLM Text

Tung-Ling Li

AI总结:

本研究提出TI-WM,一种基于规范化UTF-8字节的LLM文本水印方法,其在5%单词编辑预算下的攻击AUC优于Unigram方法,但不具备通用鲁棒性或低误报率部署保证。

摘要:

我们提出了Tokenization-Invariant Watermarking(TI-WM,与分词无关的水印),该方法在分词生成过程中嵌入水印,但基于规范化UTF-8字节进行密钥设置与评分。检测器无需调用分词器;保留规范化器的编辑操作不会改变其评分,其他局部化的规范化字节编辑仅影响有限数量的评分窗口。在三个固定密钥、每个密钥对应128个提示词的设置下,针对Qwen3-8B模型,确定性白盒攻击在5%的单词编辑预算下,平均攻击AUC为0.530;针对Gemma 4 E4B模型,该值为0.664,而采用检测侧删除的Unigram方法对应的数值分别为0.410和0.489。这些操作点在质量与干净样本可检测性方面无法同时匹配。偏差扫描显示存在依赖模型的失真成本,共享规则控制支持局部性解释,但未确立字节的独特优势。在规范化器删除集之外进行可见插入会破坏默认设计;字母过滤可关闭该通道,但无法解决源偏移或校准检测功率问题。因此,TI-WM提供了一种具有局部评分保证和实测攻击排名增益的具体构造,但不具备通用鲁棒性或低误报率部署保证。

英文摘要:

We introduce Tokenization-Invariant Watermarking (TI-WM), a method that embeds a watermark during token generation but keys and scores it on canonicalized UTF-8 bytes. The detector does not invoke the tokenizer. Canonicalizer-preserving edits leave its score unchanged; other localized canonical-byte edits affect a bounded number of scoring windows. Across three fixed keys and 128 prompts per key and model, a deterministic white-box attack at a 5% word-edit budget leaves mean attacked-AUC 0.530 on Qwen3-8B and 0.664 on Gemma 4 E4B, compared with 0.410 and 0.489 for Unigram with detection-side deletion. These operating points are not jointly matched on quality and clean detectability. Bias sweeps show model-dependent distortion costs, and shared-rule controls support a locality interpretation without establishing a unique advantage of bytes. Visible insertion outside the canonicalizer's deletion set defeats the default design. Alphabetic filtering closes that channel but does not resolve source shift or calibrated detection power. TI-WM thus provides a concrete construction with local scoring guarantees and measured attack-ranking gains, not a general robustness or low-false-positive-rate deployment guarantee.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑