Fast Decoding in Sequence Models Using Discrete Latent Variables

被引:0
|
作者
Kaiser, Lukasz [1 ]
Roy, Aurko [1 ]
Vaswani, Ashish [1 ]
Parmar, Niki [1 ]
Bengio, Samy [1 ]
Uszkoreit, Jakob [1 ]
Shazeer, Noam [1 ]
机构
[1] Google Brain, Mountain View, CA 94043 USA
关键词
QUANTIZATION;
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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. We present a method to extend sequence models using discrete latent variables that makes decoding much more parallelizable. We first autoencode 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.
引用
收藏
页数:10
相关论文
共 50 条
  • [21] Unidimensional Clustering of Discrete Data Using Latent Tree Models
    Liu, April H.
    Poon, Leonard K. M.
    Zhang, Nevin L.
    PROCEEDINGS OF THE TWENTY-NINTH AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE, 2015, : 2771 - 2777
  • [22] Identification in Models with Discrete Variables
    Lukáš Lafférs
    Computational Economics, 2019, 53 : 657 - 696
  • [23] Identification in Models with Discrete Variables
    Laffers, Lukas
    COMPUTATIONAL ECONOMICS, 2019, 53 (02) : 657 - 696
  • [24] Set inference in latent variables models
    Henry, Marc
    Mourifie, Ismael
    ECONOMETRICS JOURNAL, 2013, 16 (01): : S93 - S105
  • [25] About attitudes and perceptions: finding the proper way to consider latent variables in discrete choice models
    Francisco J. Bahamonde-Birke
    Uwe Kunert
    Heike Link
    Juan de Dios Ortúzar
    Transportation, 2017, 44 : 475 - 493
  • [26] Micro–macro multilevel latent class models with multiple discrete individual-level variables
    Margot Bennink
    Marcel A. Croon
    Brigitte Kroon
    Jeroen K. Vermunt
    Advances in Data Analysis and Classification, 2016, 10 : 139 - 154
  • [27] About attitudes and perceptions: finding the proper way to consider latent variables in discrete choice models
    Bahamonde-Birke, Francisco J.
    Kunert, Uwe
    Link, Heike
    de Dios Ortuzar, Juan
    TRANSPORTATION, 2017, 44 (03) : 475 - 493
  • [28] Learning to Cluster Using High Order Graphical Models with Latent Variables
    Komodakis, Nikos
    2011 IEEE INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV), 2011, : 73 - 80
  • [29] Modeling tumor onset and multiplicity using transition models with latent variables
    Dunson, DB
    Haseman, JK
    BIOMETRICS, 1999, 55 (03) : 965 - 970
  • [30] Sequential imputation for models with latent variables assuming latent ignorability
    Beesley, Lauren J.
    Taylor, Jeremy M. G.
    Little, Roderick J. A.
    AUSTRALIAN & NEW ZEALAND JOURNAL OF STATISTICS, 2019, 61 (02) : 213 - 233