循环促进多样性!基于变换的变分自编码器中的递归隐变量
Recurrence Boosts Diversity! Revisiting Recurrent Latent Variable in Transformer-Based Variational AutoEncoder for Diverse Text Generation
摘要:
变分自动编码器(VAE)在文本生成中得到了广泛的应用。在许多变体中,递归VAE学习令牌式潜变量,每个潜变量都以前面的潜变量为条件,这在RNN时代更好地捕捉了序列变异性。然而,目前还不清楚如何将这种经常性的动态到最近占主导地位的Transformer,由于其并行性。在这项工作中,我们提出了TRACE,一个基于transformer的递归VAE结构。TRACE对具有任意分离的文本段的逐段潜变量施加递归,并构造具有残差参数化的后验分布。此外,我们设计了一个加速方法,通过近似幂等矩阵,允许并行性,同时保持条件依赖的潜在变量。我们证明了TRACE可以增强每段和前一个潜变量的纠缠度,并推导出KL项的非零下界,为世代多样性提供了理论保证。两个无条件和一个条件生成任务的实验表明,TRACE实现了显着提高多样性,同时保持令人满意的生成质量。
英文摘要:
Variational Auto-Encoder (VAE) has been widely adopted in text generation. Among many variants, recurrent VAE learns token-wise latent variables with each conditioned on the preceding ones, which captures sequential variability better in the era of RNN. However, it is unclear how to incorporate such recurrent dynamics into the recently dominant Transformer due to its parallelism. In this work, we propose TRACE, a Transformer-based recurrent VAE structure. TRACE imposes recurrence on segment-wise latent variables with arbitrarily separated text segments and constructs the posterior distribution with residual parameterization. Besides, we design an acceleration method by approximating idempotent matrices, which allows parallelism while maintaining the conditional dependence of latent variables. We demonstrate that TRACE could enhance the entanglement of each segment and preceding latent variables and deduce a non-zero lower bound of the KL term, providing a theoretical guarantee of generation diversity. Experiments on two unconditional and one conditional generation tasks show that TRACE achieves significantly improved diversity while maintaining satisfactory generation quality.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。