arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.05443cs.CLcs.AI
收藏

SLAM:语言模型的结构语言激活标记

SLAM: Structural Linguistic Activation Marking for Language Models

University of California, Los Angeles(加州大学洛杉矶分校)

Fabrice Harel-Canada, Amit Sahai

AI总结:

SLAM通过在结构几何中嵌入水印而非词频,实现了高检测准确率且低质量损失,优于现有方案。

摘要:

LLM水印必须可检测且不损害文本质量,但现有方案通常偏移下一个词分布并导致可测量的质量损失。我们提出了SLAM(结构语言激活标记),一种新颖的白盒水印方案,通过在结构几何中写入标记而非词频来避免此成本:稀疏自编码器识别残差流方向,编码语言结构(如语音、时态、从句顺序),并在生成时因果引导这些方向,使词汇采样和语义不受约束。在Gemma-2 2B和9B上,SLAM以仅1-2个奖励点的质量损失实现100%检测准确率,相比KGW、EWD和Unigram的7.5-11.5,自然度和多样性在接近无水印水平下得以保持。这种权衡带来互补的鲁棒性:SLAM抵抗词级编辑但易受改写语法的 paraphrase 攻击(伴随质量损失),这与基于词分布的方法相反。

英文摘要:

LLM watermarks must be detectable without compromising text quality, yet most existing schemes bias the next-token distribution and pay for detection with measurable quality loss. We present SLAM (Structural Linguistic Activation Marking), a novel white-box watermarking scheme that sidesteps this cost by writing the mark into structural geometry rather than token frequencies: sparse autoencoders identify residual-stream directions encoding linguistic structure (e.g., voice, tense, clause order), and we causally steer those directions at generation time, leaving lexical sampling and semantics unconstrained. On Gemma-2 2B and 9B, SLAM achieves 100% detection accuracy with a quality cost of only 1-2 reward points - compared to 7.5-11.5 for KGW, EWD, and Unigram - with naturalness and diversity preserved at near-unwatermarked levels across both models. The trade-off is a complementary robustness profile: SLAM resists word-level edits but is vulnerable to paraphrase that restructures syntax (at a quality cost), the converse of token-distribution methods.

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

↑