[Paper Review] Neural Speech Synthesis with Transformer Network
This paper proposes a Transformer-based end-to-end text-to-speech (TTS) model that replaces recurrent neural networks (RNNs) in Tacotron2 with multi-head self-attention mechanisms, enabling parallel training and improved modeling of long-range dependencies. The model achieves state-of-the-art performance with a mean opinion score (MOS) of 4.39, very close to human quality (4.44), and accelerates training by 4.25× compared to Tacotron2.
Although end-to-end neural text-to-speech (TTS) methods (such as Tacotron2) are proposed and achieve state-of-the-art performance, they still suffer from two problems: 1) low efficiency during training and inference; 2) hard to model long dependency using current recurrent neural networks (RNNs). Inspired by the success of Transformer network in neural machine translation (NMT), in this paper, we introduce and adapt the multi-head attention mechanism to replace the RNN structures and also the original attention mechanism in Tacotron2. With the help of multi-head self-attention, the hidden states in the encoder and decoder are constructed in parallel, which improves the training efficiency. Meanwhile, any two inputs at different times are connected directly by self-attention mechanism, which solves the long range dependency problem effectively. Using phoneme sequences as input, our Transformer TTS network generates mel spectrograms, followed by a WaveNet vocoder to output the final audio results. Experiments are conducted to test the efficiency and performance of our new network. For the efficiency, our Transformer TTS network can speed up the training about 4.25 times faster compared with Tacotron2. For the performance, rigorous human tests show that our proposed model achieves state-of-the-art performance (outperforms Tacotron2 with a gap of 0.048) and is very close to human quality (4.39 vs 4.44 in MOS).
Motivation & Objective
- To address the inefficiency and long-range dependency limitations of RNN-based TTS models like Tacotron2.
- To adapt the Transformer architecture—originally designed for machine translation—to end-to-end text-to-speech synthesis.
- To improve training speed by enabling full parallelization of encoder and decoder hidden state computation.
- To enhance prosody and audio quality by modeling long-range dependencies through self-attention mechanisms.
- To achieve near-human speech quality with a fully end-to-end TTS system using phoneme inputs and a WaveNet vocoder.
Proposed method
- Replaces the RNN-based encoder and decoder in Tacotron2 with multi-head self-attention mechanisms to enable parallel computation of hidden states.
- Introduces multi-head self-attention in both the encoder and decoder to capture long-range dependencies without sequential recurrence.
- Uses phoneme sequences as input and generates mel spectrograms end-to-end, followed by a WaveNet vocoder for waveform synthesis.
- Employs a modified version of the standard Transformer architecture with relative positional encoding to better model temporal dependencies in speech.
- Applies residual connections and layer normalization to stabilize training and improve gradient flow.
- Trains the model using a sequence-to-sequence framework with cross-entropy loss on mel spectrogram predictions.
Experimental results
Research questions
- RQ1Can the Transformer architecture effectively replace RNNs in TTS to improve training efficiency?
- RQ2Does multi-head self-attention in the encoder and decoder improve modeling of long-range dependencies in speech sequences?
- RQ3Can a Transformer-based TTS model achieve near-human speech quality compared to Tacotron2?
- RQ4How does the training speed of the proposed model compare to Tacotron2?
- RQ5What hyperparameters, such as layer count and head count, most significantly affect model performance and stability?
Key findings
- The proposed Transformer TTS model achieves a mean opinion score (MOS) of 4.39, which is very close to human reference quality (4.44).
- The model outperforms Tacotron2 by a margin of 0.048 in CMOS, demonstrating state-of-the-art performance.
- Training speed is accelerated by 4.25× compared to Tacotron2 due to full parallelization of hidden state computation.
- Increasing the number of layers (e.g., from 3 to 6) improves modeling of high-frequency regions in mel spectrograms and enhances audio quality.
- Batch size is found to be a critical factor for training stability, especially in deeper models.
- The model successfully mitigates the long-range dependency problem by allowing direct attention between any two time steps through self-attention.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.