Theoretically Grounded Framework for LLM Watermarking: A Distribution-Adaptive Approach

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: He, Haiyun, Liu, Yepeng, Wang, Ziqiao, Mao, Yongyi, Bu, Yuheng
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911230258577408
author He, Haiyun
Liu, Yepeng
Wang, Ziqiao
Mao, Yongyi
Bu, Yuheng
author_facet He, Haiyun
Liu, Yepeng
Wang, Ziqiao
Mao, Yongyi
Bu, Yuheng
contents Watermarking has emerged as a crucial method to distinguish AI-generated text from human-created text. Current watermarking approaches often lack formal optimality guarantees or address the scheme and detector design separately. In this paper, we introduce a novel, unified theoretical framework for watermarking Large Language Models (LLMs) that jointly optimizes both the watermarking scheme and detector. Our approach aims to maximize detection performance while maintaining control over the worst-case false positive rate (FPR) and distortion on text quality. We derive closed-form optimal solutions for this joint design and characterize the fundamental trade-off between watermark detectability and distortion. Notably, we reveal that the optimal watermarking schemes should be adaptive to the LLM's generative distribution. Building on our theoretical insights, we propose a distortion-free, distribution-adaptive watermarking algorithm (DAWA) that leverages a surrogate model for model-agnosticism and efficiency. Experiments on Llama2-13B and Mistral-8$\times$7B models confirm the effectiveness of our approach, particularly at ultra-low FPRs. Our code is available at https://github.com/yepengliu/DAWA.
format Preprint
id arxiv_https___arxiv_org_abs_2410_02890
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Theoretically Grounded Framework for LLM Watermarking: A Distribution-Adaptive Approach
He, Haiyun
Liu, Yepeng
Wang, Ziqiao
Mao, Yongyi
Bu, Yuheng
Cryptography and Security
Information Theory
Machine Learning
Watermarking has emerged as a crucial method to distinguish AI-generated text from human-created text. Current watermarking approaches often lack formal optimality guarantees or address the scheme and detector design separately. In this paper, we introduce a novel, unified theoretical framework for watermarking Large Language Models (LLMs) that jointly optimizes both the watermarking scheme and detector. Our approach aims to maximize detection performance while maintaining control over the worst-case false positive rate (FPR) and distortion on text quality. We derive closed-form optimal solutions for this joint design and characterize the fundamental trade-off between watermark detectability and distortion. Notably, we reveal that the optimal watermarking schemes should be adaptive to the LLM's generative distribution. Building on our theoretical insights, we propose a distortion-free, distribution-adaptive watermarking algorithm (DAWA) that leverages a surrogate model for model-agnosticism and efficiency. Experiments on Llama2-13B and Mistral-8$\times$7B models confirm the effectiveness of our approach, particularly at ultra-low FPRs. Our code is available at https://github.com/yepengliu/DAWA.
title Theoretically Grounded Framework for LLM Watermarking: A Distribution-Adaptive Approach
topic Cryptography and Security
Information Theory
Machine Learning
url https://arxiv.org/abs/2410.02890