REMARK-LLM: A Robust and Efficient Watermarking Framework for Generative Large Language Models

Ruisi Zhang, Shehzeen Samarah Hussain, Paarth Neekhara, Farinaz Koushanfar
10/18/2023
cs.CRcs.CL

No official code found. Best implementation: ruisizhang123/REMARK-LLM (28 stars, last commit 2024-10-23).

Abstract

We present REMARK-LLM, a novel efficient, and robust watermarking framework designed for texts generated by large language models (LLMs). Synthesizing human-like content using LLMs necessitates vast computational resources and extensive datasets, encapsulating critical intellectual property (IP). However, the generated content is prone to malicious exploitation, including spamming and plagiarism. To address the challenges, REMARK-LLM proposes three new components: (i) a learning-based message encoding module to infuse binary signatures into LLM-generated texts; (ii) a reparameterization module to transform the dense distributions from the message encoding to the sparse distribution of the watermarked textual tokens; (iii) a decoding module dedicated for signature extraction; Furthermore, we introduce an optimized beam search algorithm to guarantee the coherence and consistency of the generated content. REMARK-LLM is rigorously trained to encourage the preservation of semantic integrity in watermarked content, while ensuring effective watermark retrieval. Extensive evaluations on multiple unseen datasets highlight REMARK-LLM proficiency and transferability in inserting 2 times more signature bits into the same texts when compared to prior art, all while maintaining semantic integrity. Furthermore, REMARK-LLM exhibits better resilience against a spectrum of watermark detection and removal attacks.

View on arXivView PDF

Code Implementations(1)

[USENIX Security'24] REMARK-LLM: A robust and efficient watermarking framework for generative large language models

281C, C++Jul 20, 20241 years ago
generative-ailarge-language-modelsllm-watermarkingwatermarkingwatermarking-algorithm

Similar Papers

Cite this paper

@article{zhang2023remarkllm,
  title  = {REMARK-LLM: A Robust and Efficient Watermarking Framework for Generative Large Language Models},
  author = {Ruisi Zhang and Shehzeen Samarah Hussain and Paarth Neekhara and Farinaz Koushanfar},
  year   = {2023},
  eprint = {2310.12362},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.12362v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.12362.svg)](https://codeofpaper.com/paper/2310.12362)

Discussion