Super Monotonic Alignment Search

Junhyeok Lee, Hyeongju Kim
9/12/2024
eess.AScs.AI

Official code: supertone-inc/super-monotonic-align (175 stars, MIT, last commit 2024-09-19).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT
17513Cython, PythonJun 29, 20242 years agoMIT

Similar Papers

Cite this paper

@article{lee2024super,
  title  = {Super Monotonic Alignment Search},
  author = {Junhyeok Lee and Hyeongju Kim},
  year   = {2024},
  eprint = {2409.07704},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.07704v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.07704.svg)](https://codeofpaper.com/paper/2409.07704)

Discussion