atlas

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

Permute-and-Flip: An optimally stable and watermarkable decoder for LLMs

ICLR 2025 · 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 Permute-and-Flip (PF) decoding for LLMs, a stable decoder with lower perplexity than softmax sampling, and a PF watermark analogous to the Gumbel watermark with controlled false positive rate.

Problem

LLM decoding faces a tradeoff: sampling is stable (2/T-stable) but has higher perplexity, while greedy/beam/top-k/top-p are higher quality but unstable and harder to watermark; the goal is a decoder that is as stable as softmax sampling yet lower perplexity, and watermarkable.

Approach

Adapts the permute-and-flip differential privacy selection mechanism to LLM decoding; it is equivalent to report-noisy-max with exponential noise, which allows a pseudo-random exponential-noise watermark (PF watermark) analogous to the Gumbel watermark, with theoretical guarantees of stability, Pareto optimality and never being worse than softmax sampling.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace softmax sampling with PF decodingLlama-2-7B · C4, T=1.0PPL1: 12.47 -> 8.94Helped
Replace softmax sampling with PF decodingLlama-2-7B · C4, T=0.8PPL1: 4.23 -> 3.54Helped
Replace softmax sampling with PF decodingLlama-2-7B-Chat · AlpacaPPL1: 1.74 -> 1.65Helped
Replace softmax sampling with PF decodingTinyLlama-1.1B-Chat · AlpacaPPL1: 2.73 -> 2.53Helped
Replace Gumbel watermark with PF watermarkLlama-2-7B · C4, T=1.0PPL1: 11.41 -> 8.33Helped
Replace Gumbel watermark with PF watermarkLlama-2-7B · C4, T=0.8PPL1: 4.03 -> 3.38Helped
Replace Gumbel watermark with PF watermarkLlama-2-7B-Chat · AlpacaPPL1: 1.70 -> 1.69Helped
Replace Gumbel watermark with PF watermarkTinyLlama-1.1B-Chat · AlpacaPPL1: 2.67 -> 2.36Helped
Use PF decoding instead of greedy decodingLlama-2-7B · C4, T=1.0Seq-rep-5: 0.56 -> 0.03Helped
Use PF decoding instead of greedy decodingLlama-2-7B · C4, T=1.0MAUVE: 0.05 -> 0.90Helped
Use PF decoding instead of greedy decodingLlama-2-7B-Chat · AlpacaPPL1: 1.28 -> 1.65Hurt
Replace Gumbel watermark with PF watermarkLlama-2-7B · C4, T=1.0TPR: 0.988 -> 0.984No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: C4 Alpaca

Benchmarks: C4 Alpaca

Metrics: perplexity MAUVE seq-rep-5 AUC TPR at 1% FPR F1

Baselines: Greedy decoding Softmax sampling Gumbel watermark KGW watermark

Builds on: Gumbel watermark permute-and-flip mechanism (differential privacy) exponential mechanism KGW green-red watermark

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