F5R-TTS: Improving Flow-Matching based Text-to-Speech with Group Relative Policy Optimization

Bowen Wu, Xiaohui Sun, Ruitong Xiao, Jianye Mo, Bowen Wu 0001, Qun Yu, Baoxun WangarXiv 2025 · DOI

Introduction

Text-to-Speech (TTS) systems have traditionally faced a trade-off between the high accuracy of Autoregressive (AR) models and the inference efficiency of Non-Autoregressive (NAR) models like Flow-Matching. While AR models have successfully integrated Reinforcement Learning (RL) to align with human preferences, NAR models have struggled due to their deterministic nature, which complicates gradient calculation in RL frameworks. F5R-TTS bridges this gap by introducing the first successful integration of Group Relative Policy Optimization (GRPO) into a flow-matching architecture, achieving significant improvements in both intelligibility and speaker similarity.

Methodology

The F5R-TTS framework introduces two core innovations to enable RL in flow-matching models:

  1. Output Probabilization: Standard flow-matching models predict a deterministic velocity. F5R-TTS modifies the final linear layer to predict the mean ($\mu$) and variance ($\sigma$) of a Gaussian distribution. This allows for the calculation of log-likelihoods and KL-divergence penalties, stabilizing RL training.
  2. GRPO Integration: The model utilizes Group Relative Policy Optimization (GRPO), an efficient RL algorithm that eliminates the need for a separate critic model. Instead, it computes advantages by comparing a group of outputs generated from the same prompt.
  3. Dual Reward System: The policy is optimized using a Semantic Reward (based on Word Error Rate from an ASR model) and a Speaker Reward (based on cosine similarity from a speaker verification model).
The F5R-TTS reinforcement learning training pipeline using GRPO and dual rewards.

Experimental Setup

The model was pretrained on the WenetSpeech4TTS Basic dataset (7,226 hours). The RL enhancement phase utilized a 100-hour subset. Evaluation was conducted using the Seed-TTS-eval benchmark, which categorizes samples into normal, hard (tongue twisters), and noisy sets to test robustness and zero-shot cloning capabilities.

Key Results

F5R-TTS demonstrates superior performance over the vanilla F5-TTS baseline across all metrics and test conditions.

  • Speech Intelligibility: The model achieved a 29.5% relative reduction in WER on general test sets. Notably, it maintained high accuracy on "hard" samples where standard NAR models often fail.
  • Speaker Similarity: There was a 4.6% relative increase in SIM scores, indicating more faithful voice cloning.
  • Robustness: The RL alignment process effectively taught the model to avoid common NAR pitfalls such as word skipping or hallucinations, even in noisy environments.
Comparison of SIM and WER across different training sets and test conditions for F5, F5-P, and F5R-TTS.

Conclusion and Future Work

F5R-TTS proves that RL can be effectively applied to non-autoregressive flow-matching models. By transforming deterministic outputs into probabilistic distributions, the researchers unlocked the ability to fine-tune for semantic accuracy and speaker identity. Future research will focus on incorporating subjective human-centric rewards (e.g., prosody and emotion) and exploring the scalability of this approach with larger datasets and alternative RL algorithms like DPO.

Summary updated

BibTeX
@misc{wu2025f,
  author = {Bowen Wu and Xiaohui Sun and Ruitong Xiao and Jianye Mo and Bowen Wu and Qun Yu and Baoxun Wang},
  title = {{F5R-TTS: Improving Flow-Matching based Text-to-Speech with Group Relative Policy Optimization}},
  year = {2025},
  eprint = {2504.02407},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.02407},
}
Figure