Enhancing Watermarking Quality for LLMs via Contextual Generation States Awareness

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Yang, Peiru, Li, Xintian, Ni, Wanchun, Yin, Jinhua, Wang, Huili, Nan, Guoshun, Wang, Shangguang, Huang, Yongfeng, Qi, Tao
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915333209587712
author Yang, Peiru
Li, Xintian
Ni, Wanchun
Yin, Jinhua
Wang, Huili
Nan, Guoshun
Wang, Shangguang
Huang, Yongfeng
Qi, Tao
author_facet Yang, Peiru
Li, Xintian
Ni, Wanchun
Yin, Jinhua
Wang, Huili
Nan, Guoshun
Wang, Shangguang
Huang, Yongfeng
Qi, Tao
contents Recent advancements in watermarking techniques have enabled the embedding of secret messages into AI-generated text (AIGT), serving as an important mechanism for AIGT detection. Existing methods typically interfere with the generation processes of large language models (LLMs) to embed signals within the generated text. However, these methods often rely on heuristic rules, which can result in suboptimal token selection and a subsequent decline in the quality of the generated content. In this paper, we introduce a plug-and-play contextual generation states-aware watermarking framework (CAW) that dynamically adjusts the embedding process. It can be seamlessly integrated with various existing watermarking methods to enhance generation quality. First, CAW incorporates a watermarking capacity evaluator, which can assess the impact of embedding messages at different token positions by analyzing the contextual generation states. Furthermore, we introduce a multi-branch pre-generation mechanism to avoid the latency caused by the proposed watermarking strategy. Building on this, CAW can dynamically adjust the watermarking process based on the evaluated watermark capacity of each token, thereby minimizing potential degradation in content quality. Extensive experiments conducted on datasets across multiple domains have verified the effectiveness of our method, demonstrating superior performance compared to various baselines in terms of both detection rate and generation quality.
format Preprint
id arxiv_https___arxiv_org_abs_2506_07403
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Enhancing Watermarking Quality for LLMs via Contextual Generation States Awareness
Yang, Peiru
Li, Xintian
Ni, Wanchun
Yin, Jinhua
Wang, Huili
Nan, Guoshun
Wang, Shangguang
Huang, Yongfeng
Qi, Tao
Cryptography and Security
Recent advancements in watermarking techniques have enabled the embedding of secret messages into AI-generated text (AIGT), serving as an important mechanism for AIGT detection. Existing methods typically interfere with the generation processes of large language models (LLMs) to embed signals within the generated text. However, these methods often rely on heuristic rules, which can result in suboptimal token selection and a subsequent decline in the quality of the generated content. In this paper, we introduce a plug-and-play contextual generation states-aware watermarking framework (CAW) that dynamically adjusts the embedding process. It can be seamlessly integrated with various existing watermarking methods to enhance generation quality. First, CAW incorporates a watermarking capacity evaluator, which can assess the impact of embedding messages at different token positions by analyzing the contextual generation states. Furthermore, we introduce a multi-branch pre-generation mechanism to avoid the latency caused by the proposed watermarking strategy. Building on this, CAW can dynamically adjust the watermarking process based on the evaluated watermark capacity of each token, thereby minimizing potential degradation in content quality. Extensive experiments conducted on datasets across multiple domains have verified the effectiveness of our method, demonstrating superior performance compared to various baselines in terms of both detection rate and generation quality.
title Enhancing Watermarking Quality for LLMs via Contextual Generation States Awareness
topic Cryptography and Security
url https://arxiv.org/abs/2506.07403