T-Mimi: A Transformer-based Mimi Decoder for Real-Time On-Phone TTS
Haibin Wu, Bach Viet Do, Naveen Suda, Julian Chan, Madhavan C R, Gene-Ping Yang, Yi-Chiao Wu, Naoyuki Kanda, Yossef Adi, Xin Lei, Yue Liu, Florian Metze, Yuzong Liu
TL;DR
The paper tackles the latency bottleneck of Mimi-based on-device TTS by substituting its deconvolution upsampling with a purely transformer-based decoder, inspired by TS3-Codec. It demonstrates that the T-Mimi archi- tecture can reduce on-device decoding latency from 42.1 ms to 4.4 ms for 80 ms audio frames, enabling real-time streaming on mobile hardware. Through quantization-aware training, it reveals that final waveform-proximate layers must remain in full precision to preserve audio quality, guiding a selective-precision strategy that reduces storage significantly while maintaining performance. The results show competitive or superior perceptual quality with substantial efficiency gains, offering a practical, generalizable path for deploying convolution-based neural audio codecs on resource-constrained devices.
Abstract
Neural audio codecs provide promising acoustic features for speech synthesis, with representative streaming codecs like Mimi providing high-quality acoustic features for real-time Text-to-Speech (TTS) applications. However, Mimi's decoder, which employs a hybrid transformer and convolution architecture, introduces significant latency bottlenecks on edge devices due to the the compute intensive nature of deconvolution layers which are not friendly for mobile-CPUs, such as the most representative framework XNNPACK. This paper introduces T-Mimi, a novel modification of the Mimi codec decoder that replaces its convolutional components with a purely transformer-based decoder, inspired by the TS3-Codec architecture. This change dramatically reduces on-device TTS latency from 42.1ms to just 4.4ms. Furthermore, we conduct quantization aware training and derive a crucial finding: the final two transformer layers and the concluding linear layers of the decoder, which are close to the waveform, are highly sensitive to quantization and must be preserved at full precision to maintain audio quality.
