Skip to content

DeCoMa: Detecting and purifying code dataset watermarks via dual-channel code abstractionDeCoMa: Detecting and Purifying Code Dataset Watermarks through Dual Channel Code Abstraction

arXiv· arXiv:2504.07002· ISSTA 2025· Yuan Xiao, Yuchen Chen, Shiqing Ma, Haocheng Huang, Chunrong Fang, Yanwei Chen, Weisong Sun, Yunfeng Zhu, Xiaofang Zhang, Zhenyu Chen·Indexed by this site · 25 days ago· Originally publishedAttacks
AI summary

The researchers propose DeCoMa, which uses dual-channel code constraints to map code samples into standardized templates, then extracts hidden watermarks by identifying anomalous associations between paired elements in the templates, and finally removes watermarked samples to purify the dataset. Experiments cover 14 code watermarks and 3 types of intelligent code tasks, 14 scenarios in total; detection recall is stable at 100%, significantly outperforming the baselines. The method can attack code watermarks with embedding rates as low as 0.1%, and the performance of models trained after purification is comparable to the original. Since detection requires no model training, it is 31.5 to 130.9 times faster than all baselines. The code is open-sourced on GitHub.

Read originalISSTA 2025