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

ROSE:预训练语言模型的鲁棒选择性微调

ROSE: Robust Selective Fine-tuning for Pre-trained Language Models

Tsinghua University(清华大学);Tencent Inc.(腾讯公司);Renmin University of China(中国人民大学)

Lan Jiang, Hao Zhou, Yankai Lin, Peng Li, Jie Zhou, Rui Jiang

摘要:

大规模语言模型虽然取得了很好的性能,但也遭受着各种各样的对抗攻击。已经提出了大量的防御方法。然而,由于冗余的攻击搜索空间和无法防御各种类型的攻击,它们仍然是有限的。在这项工作中,我们提出了一种新的微调方法,称为\textbf{RO}胸围\textbf{SE}主动微调(\textbf{ROSE}),以解决这个问题。ROSE在使预训练模型适应下游任务时进行选择性更新,过滤掉参数的宝贵和不稳健的更新。具体来说,我们提出了两种策略:一阶和二阶ROSE选择目标鲁棒参数。实验结果表明,ROSE在各种下游NLP任务上的对抗鲁棒性都有显著提高,集成方法甚至超过了上述两种变体。此外,ROSE可以很容易地结合到现有的微调方法中,以进一步提高其对抗鲁棒性。实证分析证实,ROSE消除了不稳健的虚假更新微调过程中,导致解决方案相对应的平坦和更广泛的最优比传统的方法。代码可从\url{https://github.com/jiangllan/ROSE}获得。

英文摘要:

Even though the large-scale language models have achieved excellent performances, they suffer from various adversarial attacks. A large body of defense methods has been proposed. However, they are still limited due to redundant attack search spaces and the inability to defend against various types of attacks. In this work, we present a novel fine-tuning approach called \textbf{RO}bust \textbf{SE}letive fine-tuning (\textbf{ROSE}) to address this issue. ROSE conducts selective updates when adapting pre-trained models to downstream tasks, filtering out invaluable and unrobust updates of parameters. Specifically, we propose two strategies: the first-order and second-order ROSE for selecting target robust parameters. The experimental results show that ROSE achieves significant improvements in adversarial robustness on various downstream NLP tasks, and the ensemble method even surpasses both variants above. Furthermore, ROSE can be easily incorporated into existing fine-tuning methods to improve their adversarial robustness further. The empirical analysis confirms that ROSE eliminates unrobust spurious updates during fine-tuning, leading to solutions corresponding to flatter and wider optima than the conventional method. Code is available at \url{https://github.com/jiangllan/ROSE}.

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

↑