Marking Code Without Breaking It: Code Watermarking for Detecting LLM-Generated Code
26 Feb · Jungin Kim, Shinwoo Park, Yo-Sub Han · arXiv:2502.18851
Identifying LLM-generated code through watermarking poses a challenge in preserving functional correctness. Previous methods rely on the assumption that watermarking high-entropy tokens effectively maintains output quality. Our analysis reveals a fundamental limitation of this assumption: syntax-critical tokens such as keywords often exhibit the highest entropy, making existing approaches vulnerable to logic…