arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.06760cs.CLcs.AI
收藏

DiffusionDialog:一种利用潜空间实现多样化对话生成的扩散模型

DiffusionDialog: A Diffusion Model for Diverse Dialog Generation with Latent Space

School of Computer Science and Technology, Soochow University(苏州大学计算机科学与技术学院);Meituan(美团)

Jianxiang Xiang, Zhenhua Liu, Haodong Liu, Yin Bai, Jia Cheng, Wenliang Chen

AI总结:

针对对话生成的一对多与多样性不足问题,本文提出 DiffusionDialog,通过编码器和基于连续潜变量的扩散先验及逐步去噪推理,在保持回复连贯性的同时显著提升多样性与推理效率。

摘要:

在真实对话中,内容具有多样性,并且存在需要多样化生成的一对多问题。以往研究尝试引入离散潜变量或基于高斯分布的连续潜变量来解决一对多问题,但其多样性有限。近年来,扩散模型在计算机视觉领域取得突破,并已在自然语言处理中进行了一些尝试。本文提出 DiffusionDialog,这是一种借助扩散模型增强对话生成多样性的新方法。在该方法中,我们将连续潜变量引入扩散模型。在对话任务中使用潜变量的难点在于,如何既构建有效的潜空间先验,又建立推理过程,以在给定上下文时获得合适的潜变量。通过将编码器与基于潜变量的扩散模型相结合,我们把回复的潜表示编码到连续空间中作为先验,而不是使用固定高斯分布或简单的离散分布。随后,我们利用扩散模型通过逐步去噪来推理潜变量。实验结果表明,我们的模型在保持连贯性的同时,大幅提升了对话回复的多样性。此外,在进一步分析中,我们发现该扩散模型实现了较高的推理效率,而推理效率正是扩散模型应用于自然语言处理的主要挑战。

英文摘要:

In real-life conversations, the content is diverse, and there exists the one-to-many problem that requires diverse generation. Previous studies attempted to introduce discrete or Gaussian-based continuous latent variables to address the one-to-many problem, but the diversity is limited. Recently, diffusion models have made breakthroughs in computer vision, and some attempts have been made in natural language processing. In this paper, we propose DiffusionDialog, a novel approach to enhance the diversity of dialogue generation with the help of diffusion model. In our approach, we introduce continuous latent variables into the diffusion model. The problem of using latent variables in the dialog task is how to build both an effective prior of the latent space and an inferring process to obtain the proper latent given the context. By combining the encoder and latent-based diffusion model, we encode the response's latent representation in a continuous space as the prior, instead of fixed Gaussian distribution or simply discrete ones. We then infer the latent by denoising step by step with the diffusion model. The experimental results show that our model greatly enhances the diversity of dialog responses while maintaining coherence. Furthermore, in further analysis, we find that our diffusion model achieves high inference efficiency, which is the main challenge of applying diffusion models in natural language processing.

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

↑