Towards Flow-Matching-based TTS without Classifier-Free Guidance

Yuzhe Liang, Wenzhe Liu, Chunyu Qiang, Zhikang Niu, Yushen Chen, Ziyang Ma, Wenxi Chen, Nan Li, Chen Zhang, Xie ChenarXiv 2025 · DOI

Abstract

Flow matching has demonstrated strong generative capabilities and has become a core component in modern Text-to-Speech (TTS) systems. To ensure high-quality speech synthesis, Classifier-Free Guidance (CFG) is widely used during the inference of flow-matching-based TTS models. However, CFG incurs substantial computational cost as it requires two forward passes, which hinders its applicability in real-time scenarios. In this paper, we explore removing CFG from flow-matching-based TTS models to improve inference efficiency, while maintaining performance. Specifically, we reformulated the flow matching training target to directly approximate the CFG optimization trajectory. This training method eliminates the need for unconditional model evaluation and guided tuning during inference, effectively cutting the computational overhead in half. Furthermore, it can be seamlessly integrated with existing optimized sampling strategies. We validate our approach using the F5-TTS model on the LibriTTS dataset. Experimental results show that our method achieves a 9$\times$ inference speed-up compared to the baseline F5-TTS, while preserving comparable speech quality. We will release the code and models to support reproducibility and foster further research in this area.

Introduction: The Bottleneck of Classifier-Free Guidance

In modern diffusion and flow-matching generative models, Classifier-Free Guidance (CFG) is the standard technique to ensure generated output aligns strongly with input prompts. CFG works by executing the model twice at every denoising step: once with the text condition and once unconditionally. By extrapolating between these two predictions, the model "pushes" the generation toward the text prompt.

While effective for quality, CFG is a massive bottleneck for real-time TTS because it doubles the computational cost of inference. Furthermore, standard CFG introduces a theoretical mismatch: models are trained by randomly dropping conditions, but during inference, they are forced to interpolate between two separate vector fields. This research addresses this by training a flow-matching model to natively predict the CFG-adjusted trajectory, eliminating the need for CFG at inference time.

Methodology: Baking Guidance into Training

Building on the F5-TTS architecture (a flow-matching model using a Diffusion Transformer), the authors introduce a model-guidance training approach. Instead of using a standard flow-matching loss, they reformulate the loss function so the training target matches the linear interpolation of conditional and unconditional predictions—the exact math CFG uses at inference.

Crucially, a stop-gradient operation is applied to the unconditional prediction during loss calculation. This prevents unconditional model parameters from being corrupted by conditional updates, allowing the model to learn the "guided" trajectory natively. At inference time, the model performs a single, standard conditional forward pass, discarding CFG entirely.

Experimental Setup

  • Training: LibriTTS, a multi-speaker English corpus containing approximately 585 hours of read speech from 2,456 speakers.
  • Evaluation: LibriSpeech-PC subset (1,127 samples) for testing zero-shot cross-sentence generation.

Key Insights: Faster Convergence and Stability

A significant finding is that moving the CFG math into the training loss helps the model converge faster. As shown in Figure 1, the model-guided approach reaches a lower Word Error Rate (WER) in 100k steps than the baseline does in 200k steps.

Comparison of WER and SIM-O over training steps for baseline F5-TTS vs. F5-TTS with Model Guidance (MG).

However, the training process is sensitive to the guidance weight ($w$). While standard inference CFG often uses a scale of 2.0, setting $w \ge 1.0$ during training causes gradient explosions. The authors identified $w=0.7$ as the optimal value for stability.

Results: Efficiency and Quality

The proposed method effectively halves the computational cost per sampling step. When combined with reduced sampling steps (7 steps), the model achieves a Real-Time Factor (RTF) of 0.04, compared to the baseline F5-TTS (32 steps with CFG) at 0.31—representing a 9$\times$ speedup.

Performance comparison across different inference configurations and sampling steps (NFE).

As detailed in the table above, the proposed model (FM w/o CFG) at 32 steps actually outperforms the baseline F5-TTS in both Word Error Rate (1.80% vs 2.28%) and subjective Mean Opinion Score (3.939 vs 4.026). While training compute overhead is 1.5$\times$ higher per step due to the double forward pass, this is offset by the significantly faster convergence rate.

Conclusion and Future Work

By reformulating the training objective to internalize guidance, this work demonstrates that high-quality TTS can be achieved without the inference-time overhead of CFG. Future work will involve extending this model-guidance training to other flow-matching architectures and evaluating its scalability on larger, more diverse datasets.

Summary updated

BibTeX
@misc{liang2025towards,
  author = {Yuzhe Liang and Wenzhe Liu and Chunyu Qiang and Zhikang Niu and Yushen Chen and Ziyang Ma and Wenxi Chen and Nan Li and Chen Zhang and Xie Chen},
  title = {{Towards Flow-Matching-based TTS without Classifier-Free Guidance}},
  year = {2025},
  eprint = {2504.20334},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.20334},
  howpublished = {arXiv},
}
Figure