Differentiable Reward Optimization for LLM based TTS system

Changfeng Gao, Zhihao Du, Shiliang Zhang

Abstract

Aligning Large Language Model (LLM) based Text-to-Speech (TTS) systems with human preferences is traditionally challenging due to the computational overhead of audio synthesis and the non-differentiable nature of discrete token generation. We present Differentiable Reward Optimization (DiffRO), a novel framework that optimizes TTS models by calculating rewards directly from neural codec tokens. By employing the Gumbel-Softmax trick to maintain differentiability, DiffRO allows for direct backpropagation into the language model. Our approach achieves state-of-the-art pronunciation accuracy and enables zero-shot control over emotional and speaker attributes, as demonstrated on the seed-tts-eval and EmoBox benchmarks.

Introduction

Modern TTS systems leverage LLMs to convert text into discrete neural codec tokens, which are subsequently decoded into audio. However, standard Reinforcement Learning from Human Feedback (RLHF) techniques, such as PPO or DPO, face significant hurdles in this domain. First, generating full audio waveforms for reward calculation is computationally expensive. Second, the low diversity in generated samples makes it difficult for reward models to distinguish quality. Finally, balancing subjective metrics like naturalness with objective metrics like pronunciation accuracy remains a complex evaluation task.

Methodology

The core innovation of DiffRO is the shift of reward calculation from the audio domain to the token domain.

Token-Domain Reward and Differentiability

Instead of synthesizing audio, the reward model analyzes predicted codec tokens ($\tilde{U}$), which encapsulate essential linguistic and acoustic features. To overcome the non-differentiable nature of discrete token selection (typically an argmax operation), we utilize the Gumbel-Softmax technique. This provides a continuous approximation of token selection, enabling gradients to flow directly from the reward model back to the TTS Language Model (LM) via standard backpropagation.

The DiffRO architecture: Gumbel-Softmax sampling enables gradient flow from the Multi-Task Reward (MTR) model back to the Neutral Codec Token LM.

Multi-Task Reward (MTR) Model

We developed a comprehensive MTR model trained on over 13,000 hours of speech data. This model provides multidimensional feedback by simultaneously performing Automatic Speech Recognition (ASR), Speech Emotion Recognition (SER), Speech Quality Assessment (SQA), and speaker attribute prediction (age/gender).

Experimental Setup

Our baseline is the Cosyvoice2.0-0.5B model. Training involved 4,000 Mandarin samples for Supervised Fine-Tuning (SFT) and 10,000 multilingual prompts for the optimization phase. Reward signals were derived from high-performance teacher models like SenseVoice and EmoBox.

Results and Discussion

DiffRO demonstrates significant improvements across multiple dimensions of speech synthesis.

Pronunciation Accuracy

As shown in the table below, DiffRO-ASR significantly reduces the Word Error Rate (WER) across multiple languages. Notably, on the "hard" subset of the seed-tts-eval benchmark, WER dropped from 6.91% to 5.58%.

Performance comparison (WER) on Seed-TTS and CMV benchmarks, showing the effectiveness of DiffRO-ASR in improving pronunciation accuracy.

Emotional Control and Emergent Behaviors

The system achieved near-perfect accuracy in following emotional instructions, such as 100% accuracy for "Happy" Mandarin speech. Interestingly, the model developed emergent behaviors, synthesizing non-verbal cues like laughter and breaths to enhance emotional expression, despite the lack of explicit labels for these cues in the training data.

Conclusion

DiffRO provides a more efficient and effective path for aligning LLM-based TTS systems. By bypassing the need for full audio synthesis and complex RL algorithms, it enables direct optimization of linguistic and acoustic quality. Future work will focus on extending this differentiable approach to the Flow Matching and Vocoder modules to achieve even finer control over acoustic textures.

Summary updated

BibTeX
@inproceedings{gao2025differentiable,
  author = {Changfeng Gao and Zhihao Du and Shiliang Zhang},
  title = {{Differentiable Reward Optimization for LLM based TTS system}},
  booktitle = {Interspeech},
  year = {2025},
  doi = {10.21437/interspeech.2025-704},
}
Figure