paper-with-me

Papers

CodeIP: A Grammar-Guided Multi-Bit Watermark for Large Language Models of Code

2024-04-24 · Batu Guan, Yao Wan, Zhangqian Bi, Zheng Wang, Hongyu Zhang, Pan Zhou, Lichao Sun

Large Language Models (LLMs) have achieved remarkable progress in code generation. It now becomes crucial to identify whether the code is AI-generated and to determine the specific model used, particularly for purposes such as protecting Intellectual Property (IP) in industry and preventing cheating in programming exercises. To this end, several attempts have been made to insert watermarks into machine-generated code. However, existing approaches are limited to inserting only a single bit of information. In this paper, we introduce CodeIP, a novel multi-bit watermarking technique that inserts additional information to preserve crucial provenance details, such as the vendor ID of an LLM, thereby safeguarding the IPs of LLMs in code generation. Furthermore, to ensure the syntactical correctness of the generated code, we propose constraining the sampling process for predicting the next token by training a type predictor. Experiments conducted on a real-world dataset across five programming languages demonstrate the effectiveness of CodeIP in watermarking LLMs for code generation while maintaining the syntactical correctness of code.

📄 PDF Abstract BibTeX arXiv:2404.15639

Code (1)

CGCL-codes/naturalcc 공식 구현 pytorch

Tasks

Code GenerationDiversity

Similar Papers 제목 키워드 기반

Toward Stronger Code Watermarking: A Grammar-Driven Approach to Optimizing the Trade-off Between Quality and Detectability

2026-07-11 · Licheng Yu, Aiwei Liu, Songze Li arxiv

With the rapid development of Large Language Models (LLMs), text watermarking has emerged as a crucial technique for identifying machine-generated content. However, directly applying existing logits-based watermarking me…

Code Generation

Split then Refine: Stacked Attention-guided ResUNets for Blind Single Image Visible Watermark Removal

2020-12-13 · Xiaodong Cun, Chi-Man Pun

Digital watermark is a commonly used technique to protect the copyright of medias. Simultaneously, to increase the robustness of watermark, attacking technique, such as watermark removal, also gets the attention from the…

Are Watermarked Images Editable? SafeMark for Watermark-Preserving Text-Guided Image Editing

2026-05-19 · Xiaodong Wu, Qi Li, Xiangman Li, Zelin Zhang 외 arxiv

This paper investigates a fundamental yet underexplored question: can watermarked images remain editable without compromising watermark integrity? We propose SafeMark, a framework for watermark-preserving text-guided ima…

Image ManipulationImage Editing

SPFM-Net: Semantic-Prior-Guided Frequency-Constrained Mamba for Invisible Watermark Attack

2026-07-30 · Chunpeng Wang, Yanan Shi, Zhiqiu Xia, Jidong Yang 외 arxiv

Existing watermark attacks typically rely on predefined signal-processing operations or locally constrained restoration networks, making it difficult to capture the long-range dependencies of globally distributed waterma…

PGID: Progressive Guided Inversion and Denoising for Robust Watermark Detection

2026-05-10 · Minh Quoc Duong, Chun Tong Lei, Chun Pong Lau arxiv

With the proliferation of AI-generated images, digital watermarking has become an essential safeguard for protecting intellectual property and mitigating malicious exploitation. Recent works on semantic watermarking have…