atlas

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

A Semantic Invariant Robust Watermark for Large Language Models

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Text watermarking · 4 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 SIR, a watermark for LLMs whose green/red-style watermark logits are generated from semantic embeddings of all preceding tokens via a trained watermark network, aiming to balance attack robustness and security robustness.

Problem

Existing LLM watermarks trade off attack robustness against security robustness: watermark logits depending on few preceding tokens are robust to edits but easy to crack, while those depending on many tokens are secure but fragile to modifications.

Approach

Derive watermark logits from the semantic embedding of all preceding tokens (via an embedding LLM) rather than their token IDs, and train a small watermark network with similarity and normalization losses so that semantically invariant edits leave watermark logits nearly unchanged while the rules remain diverse and hard to infer.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use semantic-invariant watermark logits instead of KGW-2 watermarkingLLaMA-7B text generation · DIPPER-2 rewrite, samplingBest F1: 0.803 -> 0.931Helped
Use semantic-invariant watermark logits instead of KGW-2 watermarkingLLaMA-7B text generation · GPT3.5 rewrite, samplingBest F1: 0.823 -> 0.900Helped
Use semantic-invariant watermark logits instead of KGW-1 watermarkingLLaMA-7B text generation · DIPPER-2 rewrite, samplingBest F1: 0.925 -> 0.931Helped
Use semantic-invariant watermark logits instead of KGW-1 watermarkingLLaMA-7B text generation · GPT3.5 rewrite, samplingBest F1: 0.905 -> 0.900No clear effect
Use SIR watermarking instead of no watermarkNLLB-200-distilled-600M translation · WMT14 FR-ENBLEU: 37.9 -> 36.8Hurt
Run watermark generation in parallel with language-model generationOPT-1.3B, Com-BERT Base · 200-token text generationgeneration time (s): 3.14 -> 3.32Hurt
Replace the adopted tanh(1000*x) watermark-logit scaling with another tested scaling (ablation)SIR watermark model · Text quality across watermark strengthsperplexityNo clear effect
Replace Compositional-BERT with Sentence-BERT for embeddings (ablation)SIR watermark model · Watermark performancewatermark detectionNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: C4 WikiText-103 WordNet DBpedia Class WMT14

Benchmarks: C4 WMT14 DBpedia Class

Metrics: TPR at 1% FPR TPR at 10% FPR F1 perplexity BLEU watermark decryption accuracy n-gram repetition

Baselines: KGW-1 KGW-2 KGW-4 EXP-Edit

Builds on: KGW watermark exponential minimum sampling watermark Compositional-BERT

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