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

扩散理论作为手术刀:检测并净化预训练语言模型中由后门或偏见导致的有毒维度

Diffusion Theory as a Scalpel: Detecting and Purifying Poisonous Dimensions in Pre-trained Language Models Caused by Backdoor or Bias

Peking University(北京大学);Tencent Inc.(腾讯公司)

Zhiyuan Zhang, Deli Chen, Hao Zhou, Fandong Meng, Jie Zhou, Xu Sun

AI总结:

提出Fine-purifying方法,利用扩散理论分析微调动态,检测并重置有毒维度,在小型干净数据集上有效净化带后门或偏见的预训练语言模型。

摘要:

预训练语言模型(PLMs)可能因可疑攻击者在微调过程中注入后门或偏见而变得有毒。净化潜在有毒PLMs的一个核心挑战是精确找到有毒维度。为解决此问题,我们提出了Fine-purifying方法,该方法利用扩散理论研究微调的动态过程以寻找潜在有毒维度。根据参数漂移与不同维度Hessian矩阵之间的关系,我们可以检测具有异常动态的有毒维度,通过将其重置为干净的预训练权重来净化它们,然后在小型干净数据集上微调净化后的权重。据我们所知,我们是首个将扩散理论引导的动态研究用于安全或防御目的。实验结果验证了即使使用小型干净数据集,Fine-purifying的有效性。

英文摘要:

Pre-trained Language Models (PLMs) may be poisonous with backdoors or bias injected by the suspicious attacker during the fine-tuning process. A core challenge of purifying potentially poisonous PLMs is precisely finding poisonous dimensions. To settle this issue, we propose the Fine-purifying approach, which utilizes the diffusion theory to study the dynamic process of fine-tuning for finding potentially poisonous dimensions. According to the relationship between parameter drifts and Hessians of different dimensions, we can detect poisonous dimensions with abnormal dynamics, purify them by resetting them to clean pre-trained weights, and then fine-tune the purified weights on a small clean dataset. To the best of our knowledge, we are the first to study the dynamics guided by the diffusion theory for safety or defense purposes. Experimental results validate the effectiveness of Fine-purifying even with a small clean dataset.

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

↑