arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2210.12409cs.CL
收藏

循环促进多样性!基于变换的变分自编码器中的递归隐变量

Recurrence Boosts Diversity! Revisiting Recurrent Latent Variable in Transformer-Based Variational AutoEncoder for Diverse Text Generation

Tsinghua University(清华大学);Beijing National Research Center for Information Science and Technology(北京国家信息科学与技术研究中心);Institute for Artificial Intelligence, Tsinghua University(清华大学人工智能研究院);Microsoft Research Asia(微软亚洲研究院);Jiangsu Normal University(江苏师范大学);Jiangsu Collaborative Innovation Center for Language Ability(江苏省语言能力协同创新中心)

Jinyi Hu, Xiaoyuan Yi, Wenhao Li, Maosong Sun, Xing Xie

摘要:

变分自动编码器(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分析而来,可能存在错误,请以论文正文为准。

↑