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

使用健壮的早鸟票进行高效的对抗训练

Efficient Adversarial Training with Robust Early-Bird Tickets

Fudan University(复旦大学);International Human Phenome Institutes (Shanghai)(国际人类表型组研究院(上海))

Zhiheng Xi, Rui Zheng, Tao Gui, Qi Zhang, Xuanjing Huang

摘要:

对抗训练是提高预训练语言模型(PLM)鲁棒性的最有效方法之一。然而,这种方法通常比传统的微调更昂贵,因为需要通过梯度下降生成对抗性示例。深入研究对抗训练的优化过程,我们发现鲁棒的连接模式出现在早期训练阶段(通常是$0.15\sim0.3$时期),远远早于参数收敛。受这一发现的启发,我们挖掘出了健壮的早鸟票(即,子网络)来开发一种有效的对抗性训练方法:(1)在早期阶段搜索具有结构化稀疏性的鲁棒票据;(2)在剩余时间内微调鲁棒票据。为了尽可能早地提取出健壮的票,我们设计了一个票收敛度量来自动终止搜索过程。实验表明,所提出的高效对抗训练方法可以实现高达$7\times \sim 13 \times$的训练加速,同时保持与最具竞争力的最先进的对抗训练方法相比相当甚至更好的鲁棒性。

英文摘要:

Adversarial training is one of the most powerful methods to improve the robustness of pre-trained language models (PLMs). However, this approach is typically more expensive than traditional fine-tuning because of the necessity to generate adversarial examples via gradient descent. Delving into the optimization process of adversarial training, we find that robust connectivity patterns emerge in the early training phase (typically $0.15\sim0.3$ epochs), far before parameters converge. Inspired by this finding, we dig out robust early-bird tickets (i.e., subnetworks) to develop an efficient adversarial training method: (1) searching for robust tickets with structured sparsity in the early stage; (2) fine-tuning robust tickets in the remaining time. To extract the robust tickets as early as possible, we design a ticket convergence metric to automatically terminate the searching process. Experiments show that the proposed efficient adversarial training method can achieve up to $7\times \sim 13 \times$ training speedups while maintaining comparable or even better robustness compared to the most competitive state-of-the-art adversarial training methods.

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

↑