Look It Up: Multi-bit LLM Watermarking via Codebook Search
Abstract
Attributing short LLM-generated texts to a specific source remains challenging for existing multi-bit watermarking methods, which often require long generations or costly decoding to recover payloads reliably. We propose a codebook-based watermarking scheme that maps an -bit payload to a longer -bit codeword and embeds it during generation through token-level logit biasing. During extraction, the received bit sequence is matched to the nearest codeword in a precomputed secret codebook using Hamming or Levenshtein distance. Experiments show that our method achieves near-perfect recovery for 16-24 bit payloads on 200-token generations and strong performance on 127-token generations for base models. Results are weaker on some instruction-tuned models with very short texts, where low-entropy output distributions reduce embedding reliability. We also study a BCH-based variant that avoids codebook storage but generally reduces robustness. The Levenshtein variant improves resilience to deletions and light paraphrasing, while insertions and stronger rewrites remain challenging. We analyze collision probability, codeword separation, extraction time, tokenization consistency, and text quality, highlighting both the practicality and limitations of codebook-based watermarking for short-form attribution.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI, cs.CL
- Comments
- 16 pages, 8 figures, 6 tables. Submitted to IEEE Transactions on Information Forensics and Security. Code: https://github.com/jaroslawjanas/llmw-codebook
Related papers
HDMark: Holographic Multi-Bit Model Watermarking for Intellectual Property Protection in Hyperdimensional Computing
Shared title terminologycs.CRHamed Poursiami, Ahmad Tahmasivand, Farshad Soleiman et al.
Plug-and-Play Multi-Licensee Robust Watermarking for Mixture-of-Experts LLMs
Shared title terminologycs.CRJianshuo Liu, Kang G. Shin, Haining Wang
KVMARK: Fragile Watermarking for KV-Cache Integrity in Latent Multi-Agent Systems
Shared title terminologycs.CRMarjan Beheshti, Ronghua Xu
Ultrasound Watermark: Real-time Acoustic Watermarking against Voice Scams on Smartphones
Shared title terminologycs.CRRenzhi Hao, Shirui Cao, Yizhu Wen et al.
Conartist: Adaptive Agentic Red-Teaming of Computer-Using Agents against Multi-Step Prompt Injection
Shared title terminologycs.CRJiaqi Rong, Yunchen Lu, Lihai Nie et al.
Quantum-Annealing-Assisted Search-Space Reduction for Large-Scale Shortest-Path Computation
Shared title terminologycs.CRKasymkhan Khubiyev, Yaroslav Kholodov, Alexey Petrenko