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

基于离散隐变量的序列模型快速译码

Fast Decoding in Sequence Models using Discrete Latent Variables

Google Brain(谷歌大脑)

Łukasz Kaiser, Aurko Roy, Ashish Vaswani, Niki Parmar, Samy Bengio, Jakob Uszkoreit, Noam Shazeer

摘要:

基于深度神经网络(如RNN、Wavenet和Transformer)的自回归序列模型在许多任务上获得了最先进的结果。然而,它们很难并行化,因此在处理长序列时很慢。RNN在训练和解码过程中都缺乏并行性,而WaveNet和Transformer等架构在训练过程中的并行性要高得多,但在解码过程中仍然按顺序操作。受[arxiv:1711.00937]的启发,我们提出了一种使用离散潜变量扩展序列模型的方法,使解码更具并行性。我们首先将目标序列自动编码为一个较短的离散潜变量序列,该序列在推理时自回归生成,最后并行地从这个较短的潜序列解码输出序列。为此,我们介绍了一种新的方法来构建一个序列的离散潜变量,并将其与以前介绍的方法进行比较。最后,我们在神经机器翻译的任务上对我们的模型进行端到端的评估,其中它在解码时比可比的自回归模型快一个数量级。虽然BLEU比纯自回归模型低,但我们的模型比以前提出的非自回归翻译模型获得了更高的分数。

英文摘要:

Autoregressive sequence models based on deep neural networks, such as RNNs, Wavenet and the Transformer attain state-of-the-art results on many tasks. However, they are difficult to parallelize and are thus slow at processing long sequences. RNNs lack parallelism both during training and decoding, while architectures like WaveNet and Transformer are much more parallelizable during training, yet still operate sequentially during decoding. Inspired by [arxiv:1711.00937], we present a method to extend sequence models using discrete latent variables that makes decoding much more parallelizable. We first auto-encode the target sequence into a shorter sequence of discrete latent variables, which at inference time is generated autoregressively, and finally decode the output sequence from this shorter latent sequence in parallel. To this end, we introduce a novel method for constructing a sequence of discrete latent variables and compare it with previously introduced methods. Finally, we evaluate our model end-to-end on the task of neural machine translation, where it is an order of magnitude faster at decoding than comparable autoregressive models. While lower in BLEU than purely autoregressive models, our model achieves higher scores than previously proposed non-autoregressive translation models.

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

↑