scimeatlas

Research map / Large language models / Language, safety and interpretability

Who Wrote this Code? Watermarking for Code Generation

Taehyun Lee, Seokhee Hong, Jaewoo Ahn, Ilgee Hong, Hwaran Lee, Sangdoo Yun, Jamin Shin, Gunhee Kim

ACL 2024Large language models › Language, safety and interpretabilityapproach: Text watermarkingopen problems in this approach265 citations (OpenAlex)

Seoul National University · LG AI Research · Georgia Institute of Technology · NAVER

Read the paperPlace an idea next to itCheck your own paper ↗

13measured effects
6improved
1no clear effect
5hurt
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.

On benchmark leaderboards

Measured effects reported in the paper

What was changedWhereMeasuredEffect
apply watermark only to high-entropy tokens (SWEET) instead of all tokens (WLLM), at ~10% pass@1 dropStarCoder · MBPPAUROC: 0.718 -> 0.873Improved
apply entropy thresholding (SWEET vs WLLM) at ~10% pass@1 dropStarCoder · HumanEvalAUROC: 0.822 -> 0.943Improved
apply entropy thresholding (SWEET vs WLLM) at AUROC>=0.9StarCoder · HumanEvalpass@1: 25.3 -> 32.6Improved
apply entropy thresholding (SWEET vs WLLM) at AUROC>=0.9StarCoder · MBPPpass@1: 24.2 -> 33.2Improved
apply entropy thresholding (SWEET vs WLLM) at AUROC>=0.9StarCoder · DS-1000pass@1: 8.6 -> 18.8Improved
use distortion-free EXP-edit watermark at low temperatureStarCoder · HumanEval, MBPP, DS-1000AUROC: 0.489, 0.536, 0.546Hurt
use post-hoc detectors instead of watermarkingStarCoder · HumanEval, MBPP, DS-1000AUROCHurt
raise entropy threshold in SWEET (ablation)StarCoder · HumanEval, MBPP, DS-1000pass@1Improved
raise entropy threshold in SWEET (ablation)StarCoder · HumanEval, MBPP, DS-1000AUROCMixed
detect SWEET with generic prompts instead of gold prompt (ablation)StarCoder · HumanEvalAUROCHurt
detect with LLaMA2-7B surrogate instead of LLaMA2-13B generator (ablation)LLaMA2-13B SWEET · code benchmarksAUROCNo clear effect
rename all variables in watermarked codeSWEET · MBPPAUROC: drops to about 0.8Hurt

Open problems this paper states

Open problems in text watermarking

Can text watermarks stay detectable after paraphrasing, on short or low-entropy text, and without access to model internals?

All 5 open problems and what was already tried →

Closest papers by meaning

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.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy