寻找训练数据与Transformer文本模型对抗鲁棒性之间相关性的一个奇怪案例
A Curious Case of Searching for the Correlation between Training Data and Adversarial Robustness of Transformer Textual Models
摘要:
现有的工作表明,微调的文本Transformer模型实现了最先进的预测性能,但也容易受到敌对文本扰动。传统的对抗性评估通常是通过\textit{only after}对模型进行微调而忽略训练数据。在本文中,我们想证明训练数据和模型鲁棒性之间也有很强的相关性。为此,我们提取了13个不同的特征,代表了广泛的输入微调语料库属性,并使用它们来预测微调模型的对抗鲁棒性。主要集中在编码器仅Transformer模型BERT和RoBERTa与BART,ELECTRA和GPT 2的其他结果,我们提供了不同的证据来支持我们的论点。首先,实证分析表明:(a)提取的特征可以与轻量级分类器(如随机森林)一起使用,以有效地预测攻击成功率;(b)对模型鲁棒性影响最大的特征与鲁棒性具有明显的相关性。其次,我们的框架可以作为一种快速有效的鲁棒性评估工具,因为它(a)与传统技术相比节省了30 - 193倍的运行时间,(b)可以跨模型转移,(c)可以在对抗训练下使用,(d)对统计随机性具有鲁棒性。我们的代码可在\url{https://github.com/CaptainCuong/RobustText_ACL2024}上公开获取。
英文摘要:
Existing works have shown that fine-tuned textual transformer models achieve state-of-the-art prediction performances but are also vulnerable to adversarial text perturbations. Traditional adversarial evaluation is often done \textit{only after} fine-tuning the models and ignoring the training data. In this paper, we want to prove that there is also a strong correlation between training data and model robustness. To this end, we extract 13 different features representing a wide range of input fine-tuning corpora properties and use them to predict the adversarial robustness of the fine-tuned models. Focusing mostly on encoder-only transformer models BERT and RoBERTa with additional results for BART, ELECTRA, and GPT2, we provide diverse evidence to support our argument. First, empirical analyses show that (a) extracted features can be used with a lightweight classifier such as Random Forest to predict the attack success rate effectively, and (b) features with the most influence on the model robustness have a clear correlation with the robustness. Second, our framework can be used as a fast and effective additional tool for robustness evaluation since it (a) saves 30x-193x runtime compared to the traditional technique, (b) is transferable across models, (c) can be used under adversarial training, and (d) robust to statistical randomness. Our code is publicly available at \url{https://github.com/CaptainCuong/RobustText_ACL2024}.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。