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

通过离散对抗训练实现模型鲁棒性

Achieving Model Robustness through Discrete Adversarial Training

Tel-Aviv University(特拉维夫大学);The Allen Institute for AI(艾伦人工智能研究所)

Maor Ivgi, Jonathan Berant

摘要:

离散对抗攻击是对语言输入的符号扰动,保留输出标签,但导致预测错误。虽然这种攻击已被广泛探讨的目的,评估模型的鲁棒性,其效用,以提高鲁棒性已被限制为离线增强。具体地说,给定一个训练好的模型,攻击被用来生成扰动(对抗)示例,模型只被重新训练一次。在这项工作中,我们解决了这一差距,并利用离散攻击进行在线增强,在每个训练步骤中都生成对抗性示例,以适应模型不断变化的性质。我们提出了(i)一个新的离散攻击,基于最佳优先搜索,和(ii)随机抽样攻击,不像以前的工作是基于昂贵的搜索为基础的程序。令人惊讶的是,我们发现随机采样在鲁棒性方面带来了令人印象深刻的收益,优于常用的离线增强,同时在训练时间上加快了约10倍。此外,基于搜索的攻击的在线增强证明了更高的训练成本,显着提高了三个数据集的鲁棒性。最后,我们证明了我们的新攻击与以前的方法相比大大提高了鲁棒性。

英文摘要:

Discrete adversarial attacks are symbolic perturbations to a language input that preserve the output label but lead to a prediction error. While such attacks have been extensively explored for the purpose of evaluating model robustness, their utility for improving robustness has been limited to offline augmentation only. Concretely, given a trained model, attacks are used to generate perturbed (adversarial) examples, and the model is re-trained exactly once. In this work, we address this gap and leverage discrete attacks for online augmentation, where adversarial examples are generated at every training step, adapting to the changing nature of the model. We propose (i) a new discrete attack, based on best-first search, and (ii) random sampling attacks that unlike prior work are not based on expensive search-based procedures. Surprisingly, we find that random sampling leads to impressive gains in robustness, outperforming the commonly-used offline augmentation, while leading to a speedup at training time of ~10x. Furthermore, online augmentation with search-based attacks justifies the higher training cost, significantly improving robustness on three datasets. Last, we show that our new attack substantially improves robustness compared to prior methods.

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

↑