arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.22291cs.CRcs.SE
收藏

无效训练:功能保持污染以防止未经授权使用代码数据集

Train in Vain: Functionality-Preserving Poisoning to Prevent Unauthorized Use of Code Datasets

Nanjing University(南京大学);University of New South Wales(新南威尔士大学);Singapore Management University(新加坡管理大学);University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);National University of Singapore(新加坡国立大学)

Yuan Xiao, Jiaming Wang, Yuchen Chen, Wei Song, Jun Sun, Shiqing Ma, Yanzhou Mu, Juan Zhai, Chunrong Fang, Jin Song Dong, Zhenyu Chen

AI总结:

本文提出FunPoison,一种保持功能的污染方法,通过注入可编译的弱使用片段来有效防止未经授权的数据集使用,同时保持100%的编译正确性。

摘要:

大规模代码数据集的广泛可用性加速了代码大语言模型(CodeLLMs)的发展,引发了对未经授权数据集使用的担忧。数据集污染提供了一种主动防御措施,通过降低此类未经授权训练的效用。然而,现有污染方法通常需要完整数据集污染并引入破坏代码编译性的转换。在本文中,我们引入FunPoison,一种保持功能的污染方法,通过在执行代码路径中注入短且可编译的弱使用片段。FunPoison利用可重用的语句级模板,结合自动修复和保守的安全检查,确保副作用自由,同时类型感知的合成模块抑制静态分析警告并增强隐蔽性。广泛的实验表明,FunPoison通过仅污染10%的数据集实现有效的污染,同时保持100%的编译正确性,并对各种先进的代码净化技术保持稳健。

英文摘要:

The widespread availability of large-scale code datasets has accelerated the development of code large language models (CodeLLMs), raising concerns about unauthorized dataset usage. Dataset poisoning offers a proactive defense by reducing the utility of such unauthorized training. However, existing poisoning methods often require full dataset poisoning and introduce transformations that break code compilability. In this paper, we introduce FunPoison, a functionality-preserving poisoning approach that injects short, compilable weak-use fragments into executed code paths. FunPoison leverages reusable statement-level templates with automatic repair and conservative safety checking to ensure side-effect freedom, while a type-aware synthesis module suppresses static analysis warnings and enhances stealth. Extensive experiments show that FunPoison achieves effective poisoning by contaminating only 10% of the dataset, while maintaining 100% compilability and functional correctness, and remains robust against various advanced code sanitization techniques.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑