paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Patch the Leak: Strengthening CodeLLMs Against Privacy Extraction Threats

修补泄漏:增强 CodeLLM 抵御隐私抽取威胁
ISSTA Proceedings of the 34th ACM SIGSOFT International Symposium on Software Testing and Analysis2025匹配度 1/10 · 该论文聚焦 CodeLLM 的隐私抽取防御与对抗微调,目标是提升 LLM 自身的安全对齐能力,不涉及静态分析、形式化验证、浮点程序分析或贝叶斯程序分析,也未将 LLM/Agent 作为改进程序分析的工具;属于用户明确不感兴趣的研究目标本身是 LLM 的类别。引用 0 inbox
Yongjian Guo, Wanlun Ma, Xi Xiao, Sheng Wen, Peng Di, Xiaogang Zhu
crossref: 2026-09-12

AI 速览

一句话:提出 PI-ALIGN,将 CodeLLM 与 CODEBREAKER 攻击框架对抗配对,用 GRPO 微调重对齐以抵御个人信息抽取。

CodeLLM 容易记忆训练数据,并在特定提示下重建个人信息(PI)。即便基础模型已采用隐私匿名化手段,CODEBREAKER、CodexLeaks 等先进 PI 抽取攻击在多个开源与商用 CodeLLM 上仍表明这类信息无法被完全消除;作者还观察到商用模型的泄漏率比开源模型低约 20%,并推测这与更强的模型对齐有关。针对缺乏有效防御的现状,论文将 PI 泄漏视为一种模型失配(misalignment),提出受对抗学习启发的 PI-ALIGN 框架:把 CodeLLM 与 CODEBREAKER 攻击框架配对为对抗双模型,利用优化的 GRPO(组相对策略优化)在微调过程中重新对齐模型,以期通过对抗训练提升其抵御 PI 抽取攻击的鲁棒性。论文还勾勒了系统的实验评估框架以验证 PI-ALIGN 的有效性,为对抗 CodeLLM 上的 PI 抽取攻击提供思路。

问题
CodeLLM 会记忆训练数据并可在特定提示下重建个人信息,现有匿名化方法无法完全消除此类信息,且目前缺乏针对 PI 抽取攻击的有效防御。
方法
将 PI 泄漏视为模型失配,提出 PI-ALIGN:把 CodeLLM 与 CODEBREAKER 攻击框架配对成对抗双模型,并用优化的 GRPO 在微调中对抗式地重对齐模型。
评估
论文提出了系统的实验评估框架,用于验证 PI-ALIGN 抵御 PI 抽取攻击的有效性;摘要未报告具体实验结果。
原文摘要(Abstract)

CodeLLMs tend to memorize their training data and can reconstruct personal information (PI) when given specific prompts. Despite the application of privacy anonymization methods to remove PI in foundational LLMs, the previous experiments using state-of-the-art PI extraction attacks like CODEBREAKER and CodexLeaks on multiple open-source and commercial CodeLLMs demonstrate that such information cannot be fully eliminated. Furthermore, we found that commercial models exhibit significantly lower leakage rates (approximately 20% lower) compared to open-source models, and we hypothesize this is related to the stronger model alignment. Addressing the lack of effective defenses against PI extraction, we treat PI leakage as a form of misalignment and propose PI-ALIGN, a novel framework inspired by adversarial learning. PI-ALIGN pairs CodeLLMs with the CODEBREAKER attack framework as an adversarial dual model and leverages the optimized GRPO (Group Relative Policy Optimization) process to realign the model during fine-tuning. This approach is expected to enhance the model's robustness against PI extraction attacks by adversarially training it against CODEBREAKER. We also outline our experimental evaluation framework to systematically validate PI-ALIGN's effectiveness, aiming to provide insights into countering PI extraction attacks on CodeLLMs.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot9612,
  title = {Patch the Leak: Strengthening CodeLLMs Against Privacy Extraction Threats},
  author = {Yongjian Guo and Wanlun Ma and Xi Xiao and Sheng Wen and Peng Di and Xiaogang Zhu},
  booktitle = {ISSTA},
  year = {2025},
  doi = {10.1145/3713081.3732931}
}