Anchor-ECC: Local Integrity Checking for Watermarked LLM Outputs via Error-Correcting Codes
Zewei Deng, Muhammad Siddeek, Liyan Xie, Mohamed Seif, Mengdi Wang, H. Vincent Poor, Andrea Goldsmith
Abstract
LLM watermarking has become an effective approach to distinguishing AI-generated text from human-written text by embedding detectable patterns during generation. However, a small post-generation edit may change the meaning of the text without removing its overall watermark signal, creating a risk that the modified content is still attributed to the original model. We propose Anchor-ECC, which incorporates the error-correcting code (ECC) constraints and explicit boundary anchors into the watermark structure and pairs them with a dynamic-programming decoder to detect and localize post-generation edits. Across Qwen3-8B, Mistral-7B-Instruct-v0.3, and OPT-125M, the approximate-hard setting achieves about 99.7% block-level true positive rate (TPR) with at most 7.6% false alarm rate (FAR) for edit detection under mixed insertions, deletions, and substitutions, while preserving the distinction between watermarked outputs and unwatermarked text. Additional quality experiments identify lower-perplexity configurations that retain strong edit-detection performance. Together, these results extend LLM watermarking from source identification to local integrity verification while supporting configurable trade-offs between detection reliability and generation quality.
Create a lesson
Metadata
- Categories
- cs.CR, cs.CL
- Comments
- 18 pages, including references and appendices; 1 figure and 11 tables
Related papers
From Vendor-Neutral Request to Paid Backend: Procurement Integrity at the Commitment Boundary of AI Coding Agents
Shared title terminologycs.CRJinqian Zhang, Haojun Xia, Shujiang Wu et al.
COAST: Accurate and Efficient Homomorphic Softmax via Anchor Error Cancellation
Shared title terminologycs.CRRui Li, Wenyuan Wu, Weijie Miao
Concrete Cryptanalysis of the Permuted Reed--Solomon Pseudorandom Code for LLM Watermarking
Shared title terminologycs.CRShuiyin Liu, Amin Sakzad
Fast-Encodable Locally Testable Codes for Collective Data Availability Sampling
Shared title terminologycs.CRZihao Zhang, Kexi Huang, Jiaheng Zhang et al.
Grammar-Guided Code Watermarking with Green Temperature
Shared title terminologycs.CRHyundong Jin, Hyeseon An, Soohan Lim et al.
RMCW: A Deletion-Robust Watermark Based on Reed--Muller Codes for Language Models
Shared title terminologycs.CRYi Wang, Baicheng Chen, Yu Wang et al.