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

Diffsound:用于文本生成声音的离散扩散模型

Diffsound: Discrete Diffusion Model for Text-to-sound Generation

Peking University(北京大学);Tencent AI Lab(腾讯人工智能实验室)

Dongchao Yang, Jianwei Yu, Helin Wang, Wen Wang, Chao Weng, Yuexian Zou, Dong Yu

AI总结:

针对文本生成声音任务中传统自回归解码器存在单向偏差、误差累积及生成速度慢的问题,提出基于离散扩散模型的非自回归解码器Diffsound,在提升生成质量的同时将生成速度提升至自回归解码器的5倍。

摘要:

生成符合人类需求的音效是一个重要研究方向,但目前该领域的声音生成研究仍较为匮乏。本研究针对文本提示条件下的声音生成任务展开探索,提出了一种新型文本生成声音框架,由文本编码器、向量量化变分自编码器(Vector Quantized Variational Autoencoder, VQ-VAE)、解码器和声码器组成。该框架首先借助VQ-VAE,通过解码器将文本编码器提取的文本特征转换为梅尔频谱图,再利用声码器将生成的梅尔频谱图转化为波形。研究发现解码器对生成性能影响显著,因此本研究重点聚焦于高性能解码器的设计。研究首先以传统自回归解码器为基础,该解码器已在过往声音生成研究中被证实为当前最优方法,但自回归解码器始终按顺序逐个预测梅尔频谱图令牌,会引入单向偏差与误差累积问题,且采用该解码器时,声音生成时间随声音时长呈线性增长。为解决自回归解码器的上述缺陷,本研究提出一种基于离散扩散模型的非自回归解码器,命名为Diffsound。具体而言,Diffsound可一步预测所有梅尔频谱图令牌,再在后续步骤中对预测令牌进行优化,经过若干步骤后即可得到最优预测结果。实验结果表明,本文提出的Diffsound不仅生成效果优于自回归解码器,生成速度也更快,例如平均意见得分(MOS)为3.56对比自回归解码器的2.786,且生成速度是自回归解码器的5倍。

英文摘要:

Generating sound effects that humans want is an important topic. However, there are few studies in this area for sound generation. In this study, we investigate generating sound conditioned on a text prompt and propose a novel text-to-sound generation framework that consists of a text encoder, a Vector Quantized Variational Autoencoder (VQ-VAE), a decoder, and a vocoder. The framework first uses the decoder to transfer the text features extracted from the text encoder to a mel-spectrogram with the help of VQ-VAE, and then the vocoder is used to transform the generated mel-spectrogram into a waveform. We found that the decoder significantly influences the generation performance. Thus, we focus on designing a good decoder in this study. We begin with the traditional autoregressive decoder, which has been proved as a state-of-the-art method in previous sound generation works. However, the AR decoder always predicts the mel-spectrogram tokens one by one in order, which introduces the unidirectional bias and accumulation of errors problems. Moreover, with the AR decoder, the sound generation time increases linearly with the sound duration. To overcome the shortcomings introduced by AR decoders, we propose a non-autoregressive decoder based on the discrete diffusion model, named Diffsound. Specifically, the Diffsound predicts all of the mel-spectrogram tokens in one step and then refines the predicted tokens in the next step, so the best-predicted results can be obtained after several steps. Our experiments show that our proposed Diffsound not only produces better text-to-sound generation results when compared with the AR decoder but also has a faster generation speed, e.g., MOS: 3.56 \textit{v.s} 2.786, and the generation speed is five times faster than the AR decoder.

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

↑