Skip to content
InfoResearchPreprintLLM-specific

RoCoMark: Robust Code Watermarking Against LLM-Based Functionality-Preserving Rewriting Attacks

Published
Record updated
View JSON

Summary

RoCoMark is a code watermarking framework designed to survive LLM-based rewriting that preserves functionality. The authors attribute existing methods' failures to a distribution mismatch between training perturbations and LLM rewriting behavior. Across four benchmarks and attacks from five LLMs, RoCoMark reaches an average detection AUROC of 74.2% and a Rewrite BitACC of 75.3%, with a code pass rate above 99.7%.