arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.09145cs.CR
收藏

PrivCode++: 潜在条件差分隐私代码生成以实现全面保障

PrivCode++: Latent-Conditioned Differentially Private Code Generation for Comprehensive Guarantees

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);University of Virginia(弗吉尼亚大学);Alibaba Qwen(阿里巴巴通义实验室);Monash University(蒙纳士大学);University of Alberta(阿尔伯塔大学);National University of Singapore(新加坡国立大学);Zhejiang University(浙江大学);University of North Carolina at Greensboro(北卡罗来纳大学格林斯伯勒分校)

Zheng Liu, Chen Gong, Terry Yue Zhuo, Zhou Yang, Kecen Li, Wenlong Meng, Xinwen Hou, Yu Liu, Xiaochen Li

AI总结:

针对指令-代码对微调的大语言模型可能泄露敏感数据的问题,提出PrivCode-Plus,首个在微调中同时保护提示和代码的差分隐私代码生成方法,通过两阶段DP框架和无隐私潜在条件模块实现高效合成。

摘要:

在指令-代码对上微调的大语言模型可能会记忆并随后泄露敏感的训练数据。现有的差分隐私(DP)代码生成方法主要保护代码片段,同时假设提示是公开的,这在提示也可能包含敏感信息的现实场景中失效。当提示在生成过程中无法被显式学习或使用时,代码合成会遭受严重的效用下降以及多样性和保真度降低。为了解决这些挑战,我们提出了PrivCode-Plus,这是首个探索在LLM微调中同时将提示和代码片段视为敏感的DP代码生成的工作。PrivCode-Plus引入了一个两阶段DP框架,其中包含一个无隐私潜在条件模块,使得无需直接访问敏感提示或代码即可进行有效的DP微调和数据合成。大量实验表明,PrivCode-Plus实现了比基线高得多的效用,与放宽隐私假设的方法相比具有竞争力,并提供了更强的隐私保障。

英文摘要:

Large language models fine-tuned on instruction-code pairs may memorize and subsequently leak sensitive training data. Existing differentially private (DP) code generation methods primarily protect code snippets while assuming prompts are public, which fails in realistic scenarios where prompts may also contain sensitive information. When prompts cannot be explicitly learned or used during generation, code synthesis suffers from severe utility degradation as well as reduced diversity and fidelity. To address these challenges, we propose PrivCode-Plus, the first work to explore DP code generation where both prompts and code snippets are considered sensitive in LLM fine-tuning. PrivCode-Plus introduces a two-stage DP framework with a Privacy-Free Latent Conditioning module, enabling effective DP fine-tuning and data synthesis without direct access to sensitive prompts or code. Extensive experiments show that PrivCode-Plus achieves substantially higher utility than baselines, remains competitive with the method with relaxing privacy assumptions, and provides stronger privacy guarantees.

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

↑