ARCH: Efficient Adversarial Regularized Training with Caching

Simiao Zuo, Chen Liang, Haoming Jiang, Pengcheng He, Xiaodong Liu +3 more
9/15/2021
cs.CL

Official code: SimiaoZuo/Caching-Adv (6 stars, Python, MIT, last commit 2021-09-23).

Abstract

Adversarial regularization can improve model generalization in many natural language processing tasks. However, conventional approaches are computationally expensive since they need to generate a perturbation for each sample in each epoch.

Show full abstract

We propose a new adversarial regularization method ARCH (adversarial regularization with caching), where perturbations are generated and cached once every several epochs. As caching all the perturbations imposes memory usage concerns, we adopt a K-nearest neighbors-based strategy to tackle this issue. The strategy only requires caching a small amount of perturbations, without introducing additional training time. We evaluate our proposed method on a set of neural machine translation and natural language understanding tasks. We observe that ARCH significantly eases the computational burden (saves up to 70% of computational time in comparison with conventional approaches). More surprisingly, by reducing the variance of stochastic gradients, ARCH produces a notably better (in most of the tasks) or comparable model generalization. Our code is available at https://github.com/SimiaoZuo/Caching-Adv.

View on arXivView PDF

Code Implementations(1)

MIT

Code for ARCH: Adversarial Regularization with Caching, Findings of EMNLP 2021.

60Python, CudaSep 23, 20215 years agoMIT
adversarial-trainingdeep-learningmachine-translation

Similar Papers

Cite this paper

@article{zuo2021arch,
  title  = {ARCH: Efficient Adversarial Regularized Training with Caching},
  author = {Simiao Zuo and Chen Liang and Haoming Jiang and Pengcheng He and Xiaodong Liu and Jianfeng Gao and Weizhu Chen and Tuo Zhao},
  year   = {2021},
  eprint = {2109.07048},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.07048}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.07048.svg)](https://codeofpaper.com/paper/2109.07048)

Discussion