Research map / Large language models / Language, safety and interpretability
CodeIP: A Grammar-Guided Multi-Bit Watermark for Large Language Models of Code
Batu Guan, Yao Wan, Zhangqian Bi, Zheng Wang, Hongyu Zhang, Pan Zhou, Lichao Sun
Huazhong University of Science and Technology · University of Leeds · Chongqing University · Lehigh University
Read the paperPlace an idea next to itCheck your own paper ↗
13measured effects
5improved
3no clear effect
4hurt
1mixed
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add type predictor to the watermark logit (ablation) | CodeIP (Code Llama) · CodeSearchNet Java | CodeBLEU: 23.35 -> 27.14 | Improved |
| add type predictor to the watermark logit (ablation) | CodeIP (StarCoder) · CodeSearchNet Java | CodeBLEU: 25.70 -> 32.11 | Improved |
| add type predictor to the watermark logit (ablation) | CodeIP (DeepSeek Coder) · CodeSearchNet Python | CodeBLEU: 18.35 -> 13.57 | Hurt |
| add type predictor (ablation) | CodeIP · five languages | extraction rate | No clear effect |
| insert watermark vs unwatermarked | Code Llama · CodeSearchNet Java | CodeBLEU: 28.99 -> 27.14 | Hurt |
| use CodeIP instead of Wang et al. 2023 multi-bit baseline | StarCoder · CodeSearchNet Java | CodeBLEU: 27.29 -> 32.11 | Improved |
| use CodeIP instead of Yoo et al. 2023 baseline | Code Llama · CodeSearchNet Go | CodeBLEU: 28.29 -> 26.49 | Hurt |
| increase beta (ablation) | CodeIP · Java, three LLMs | extraction rate: approx 0.9 when beta exceeds 5 | Improved |
| increase gamma beyond a threshold (ablation) | CodeIP · Java | CodeBLEU | Mixed |
| increase gamma (ablation) | CodeIP · Java | extraction rate | No clear effect |
| longer generated code (ablation) | CodeIP · Java | extraction rate | Improved |
| crop 50% of generated code | CodeIP (Code Llama) · CodeSearchNet Java | extraction rate: 0.92 -> 0.71 | Hurt |
Closest papers by meaning
- Unbiased Watermark for Large Language Models (ICLR 2024 · similarity 0.87)
- Majority Bit-Aware Watermarking for Large Language Models (NeurIPS 2026 · similarity 0.87)
- StealthInk: A Multi-bit and Stealthy Watermark for Large Language Models (ICML 2025 · similarity 0.86)
- ArcMark: Distortion-Free Multi-Byte LLM Watermark via Optimal Transport (NeurIPS 2026 · similarity 0.86)
- BiMark: Unbiased Multilayer Watermarking for Large Language Models (ICML 2025 · similarity 0.86)
- LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code (ICLR 2025 · similarity 0.86)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
