arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.07704eess.AScs.AI
收藏

超单调对齐搜索

Super Monotonic Alignment Search

Center for Language and Speech Processing, Johns Hopkins University, Baltimore, MD, USA(语言与语音处理中心,约翰霍普金斯大学,巴尔的摩,马里兰州,美国);Supertone Inc.(Supertone公司)

Junhyeok Lee, Hyeongju Kim

AI总结:

本文提出在GPU上通过Triton内核和PyTorch JIT脚本加速单调对齐搜索,使其在极端长度情况下速度提升72倍。

摘要:

单调对齐搜索(MAS),由Glow-TTS引入,是文本到语音领域中用于估计文本与语音之间未知对齐关系最流行的算法之一。由于该算法需要通过动态规划搜索最可能的对齐方式,并缓存所有可能的路径,因此该算法的时间复杂度为O(T×S),其中T是文本长度,S是语音表示长度。Glow-TTS的作者在CPU上运行此算法,尽管他们提到该算法难以并行化,但我们发现MAS可以在文本长度维度上并行化,而CPU执行过程中由于设备间复制消耗了大量时间。因此,我们实现了Triton内核和PyTorch JIT脚本,以在GPU上加速MAS,避免设备间复制。结果表明,在极端长度情况下,Super-MAS Triton内核的速度提升了72倍。代码可在https://github.com/supertone-inc/super-monotonic-align上获得。

英文摘要:

Monotonic alignment search (MAS), introduced by Glow-TTS, is one of the most popular algorithm in text-to-speech to estimate unknown alignments between text and speech. Since this algorithm needs to search for the most probable alignment with dynamic programming by caching all possible paths, the time complexity of the algorithm is $O(T \times S)$, where $T$ is the length of text and $S$ is the length of speech representation. The authors of Glow-TTS run this algorithm on CPU, and while they mentioned it is difficult to parallelize, we found that MAS can be parallelized in text length dimension and CPU execution consumes an inordinate amount of time for inter-device copy. Therefore, we implemented a Triton kernel and PyTorch JIT script to accelerate MAS on GPU without inter-device copy. As a result, Super-MAS Triton kernel is up to 72 times faster in the extreme-length case. The code is available at https://github.com/supertone-inc/super-monotonic-align.

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

↑