ARCH:带缓存的高效对抗性规则化训练
ARCH: Efficient Adversarial Regularized Training with Caching
摘要:
对抗正则化可以在许多自然语言处理任务中提高模型泛化能力。然而,传统方法在计算上是昂贵的,因为它们需要在每个时期中为每个样本生成扰动。我们提出了一种新的对抗正则化方法(adversarial regularization with caching),其中每隔几个时期生成并缓存一次扰动。由于缓存所有的扰动施加内存使用的问题,我们采用了K-最近邻为基础的策略来解决这个问题。该策略只需要缓存少量的扰动,而不会引入额外的训练时间。我们评估我们提出的方法对一组神经机器翻译和自然语言理解任务。我们观察到,该方法大大减轻了计算负担(与传统方法相比,节省了高达70%的计算时间)。更令人惊讶的是,通过减少随机梯度的方差,ESTA产生了一个显着更好的(在大多数任务)或可比的模型泛化。我们的代码可在https://github.com/SimiaoZuo/Caching-Adv上获得。
英文摘要:
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. 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。