paper-with-me

Papers

Who Wrote this Code? Watermarking for Code Generation

2023-05-24 · Taehyun Lee, Seokhee Hong, Jaewoo Ahn, Ilgee Hong, Hwaran Lee, Sangdoo Yun, Jamin Shin, Gunhee Kim

Since the remarkable generation performance of large language models raised ethical and legal concerns, approaches to detect machine-generated text by embedding watermarks are being developed. However, we discover that the existing works fail to function appropriately in code generation tasks due to the task's nature of having low entropy. Extending a logit-modifying watermark method, we propose Selective WatErmarking via Entropy Thresholding (SWEET), which enhances detection ability and mitigates code quality degeneration by removing low-entropy segments at generating and detecting watermarks. Our experiments show that SWEET significantly improves code quality preservation while outperforming all baselines, including post-hoc detection methods, in detecting machine-generated code text. Our code is available in https://github.com/hongcheki/sweet-watermark.

📄 PDF Abstract BibTeX arXiv:2305.15060

Code (1)

hongcheki/sweet-watermark 공식 구현

Tasks

Code GenerationText Detection

Methods 이 논문이 사용한 방법론

fail 설명 없음

Similar Papers 제목 키워드 기반

Commenting with Copilot: A Taxonomy and Multi-Year Analysis of Student Code-Generation Specifications

2026-07-12 · Nasser Giacaman, Valerio Terragni, Paul Denny, Viraj Kumar arxiv

As AI code tools become integrated into programming environments, students increasingly describe intended behavior in natural language and rely on these tools to generate code, shifting emphasis from code writing to spec…

Code Generation

Guidance Watermarking for Diffusion Models

2025-09-26 · Enoal Gesny, Eva Giboulot, Teddy Furon, Vivien Chappelier arxiv

This paper introduces a novel watermarking method for diffusion models. It is based on guiding the diffusion process using the gradient computed from any off-the-shelf watermark decoder. The gradient computation encompas…

LaWa: Using Latent Space for In-Generation Image Watermarking

2024-08-11 · Ahmad Rezaei, Mohammad Akbari, Saeed Ranjbar Alvar, Arezou Fatemi 외

With generative models producing high quality images that are indistinguishable from real ones, there is growing concern regarding the malicious usage of AI-generated images. Imperceptible image watermarking is one viabl…

RTLMarker: Protecting LLM-Generated RTL Copyright via a Hardware Watermarking Framework

2025-01-05 · Kun Wang, Kaiyan Chang, Mengdi Wang, Xinqi Zou 외

Recent advances of large language models in the field of Verilog generation have raised several ethical and security concerns, such as code copyright protection and dissemination of malicious code. Researchers have emplo…

CODE ACROSTIC: Robust Watermarking for Code Generation

2025-12-14 · Li Lin, Siyuan Xin, Yang Cao, Xiaochun Cao arxiv

Watermarking large language models (LLMs) is vital for preventing their misuse, including the fabrication of fake news, plagiarism, and spam. It is especially important to watermark LLM-generated code, as it often contai…

Code Generation