atlas

Research map / Large language models / Language, safety and interpretability

On the Learnability of Watermarks for Language Models

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Text watermarking · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes watermark distillation to train LMs (Llama 2 7B, Pythia 1.4B) to natively generate KGW, Aaronson, and KTH watermarked text under standard decoding, and shows a proof-of-concept spoofing attack.

Problem

Whether language models can directly learn to generate watermarked text under their natural sampling distribution (weights-based watermarking), without a specialized decoder, and what this implies for open-model watermarking and watermark spoofing.

Approach

Logit-based and sampling-based watermark distillation train a student LM to match or imitate a teacher that uses decoding-based watermarking, so the watermark is embedded in the weights and appears under standard decoding.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use logit-based or sampling-based watermark distillation instead of only decoding-time watermarkingLlama 2 7B · C4 RealNewsLike, higher-distortion KGW, Aar, and KTH settingswatermark detectability: median p-values less than 0.0001Helped
Use lower-distortion watermark settings (ablation)Logit and sampling watermark distillation · C4 RealNewsLikemedian detection p-value: 9e-18 -> 1e-01Hurt
Train KGW k=2, δ=2 logit distillation for five times longer on more data (ablation)Llama 2 7B logit distillation · KGW k=2, δ=2median detection p-value: 0.1 -> 0.012Helped
Increase training samples and steps (ablation)Logit and sampling watermark distillation · C4 RealNewsLikemedian detection p-valueHelped
Use sampling-based rather than logit-based distillationAar watermark distillation · C4 RealNewsLike, Aarseq-rep-3Mixed
Use sampling-based rather than logit-based distillationKTH watermark distillation · C4 RealNewsLike, especially larger shift countswatermark detectabilityHelped
Apply further fine-tuning on normal, non-watermarked text (ablation)Logit-distilled Llama 2 7B · OpenWebTextwatermark detectabilityHurt
Change decoding parameters, including nucleus threshold or temperature (ablation)Watermark-distilled Llama 2 7B · KGW, Aar, and KTH generationsmedian detection p-value: 7e-09 -> 1e-12No clear effect
Increase random token edits (ablation)Watermark-distilled Llama 2 7B · Edited generated textwatermark detectabilityHurt
Use KTH rather than KGW or Aar under high edit proportionsWatermark-distilled models · Edited generated text, around 60--70% editswatermark detectabilityHelped
Use two watermark keys for half of the sampling-distillation training samples each (ablation)Sampling-distilled Llama 2 7B · KGW k=1, Aar k=2, and KTH s=1median detection p-value: 8e-07 -> 1e-02; 3e-17 -> 3e-03; 1e-04 -> 8e-02Hurt
Distill a victim watermark into a model that responds to harmful promptsAlpaca-7B adversary using Llama 2-Chat 7B samples · HarmfulQharmful response rate: 80% -> 71%Mixed

Surprising findings

Limitations

Experimental setup

Datasets: OpenWebText C4 RealNewsLike Wikipedia articles arXiv papers HarmfulQ

Benchmarks: C4 RealNewsLike Wikipedia articles arXiv papers HarmfulQ

Metrics: median watermark detection p-value median KTH test statistic AUROC perplexity (Llama 2 13B) seq-rep-3 harmful response rate

Baselines: KGW decoding-based watermark Aaronson decoding-based watermark KTH decoding-based watermark Base student

Builds on: KGW watermark Aaronson watermark KTH watermark knowledge distillation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy