RingFormer用环形注意力提升语音合成速度与质量。
RingFormer: A Neural Vocoder with Ring Attention and Convolution-Augmented Transformer
- 环形注意力+轻量变换器,兼顾局部细节与全局信息
- 实测生成速度达250帧/秒,支持实时语音合成
- 适合需低延迟语音生成的应用场景
尽管变换器在各类音频任务中表现优异,但在神经声码器中的应用仍面临挑战。声码器需以样本级生成长时音频信号,要求高时间分辨率,导致注意力计算成本高昂,且难以高效处理全局与局部信息。此外,样本的顺序生成特性阻碍了实时处理,使直接使用变换器不切实际。为此,我们提出RingFormer,将环形注意力机制融入轻量级变换器结构——卷积增强变换器(Conformer)。环形注意力能有效捕捉局部细节并整合全局信息,适用于长序列处理,支持实时音频生成。RingFormer采用双判别器对抗训练,应用于文本转语音模型VITS的解码器,在相同条件下与HiFi-GAN、iSTFT-Net、BigVGAN等先进声码器对比。实验结果表明,RingFormer性能相当或更优,尤其在实时生成方面表现突出。代码与音频样例已开源。
原文摘要 · Abstract (English)
While transformers demonstrate outstanding performance across various audio tasks, their application to neural vocoders remains challenging. Neural vocoders require the generation of long audio signals at the sample level, which demands high temporal resolution. This results in significant computational costs for attention map generation and limits their ability to efficiently process both global and local information. Additionally, the sequential nature of sample generation in neural vocoders poses difficulties for real-time processing, making the direct adoption of transformers impractical. To address these challenges, we propose RingFormer, a neural vocoder that incorporates the ring attention mechanism into a lightweight transformer variant, the convolution-augmented transformer (Conformer). Ring attention effectively captures local details while integrating global information, making it well-suited for processing long sequences and enabling real-time audio generation. RingFormer is trained using adversarial training with two discriminators. The proposed model is applied to the decoder of the text-to-speech model VITS and compared with state-of-the-art vocoders such as HiFi-GAN, iSTFT-Net, and BigVGAN under identical conditions using various objective and subjective metrics. Experimental results show that RingFormer achieves comparable or superior performance to existing models, particularly excelling in real-time audio generation. Our code and audio samples are available on GitHub.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。