Abstract
In recent years, large language models (LLMs) have played an important role in automatic speech recognition (ASR) and text-to-speech (TTS) systems. While reinforcement learning (RL) has significantly enhanced LLM performance in text-based tasks, its application to ASR and TTS remains underexplored due to the complexity of training audio-based models. In this study, we propose a lightweight RL framework tailored for audio-based LLMs that can process audio inputs and generate audio outputs. Based on this framework, we evaluate the effectiveness of reinforcement learning on both ASR and TTS tasks. For the ASR task, we experiment with different rule-based reward functions within the Group Relative Policy Optimization (GRPO) framework and investigate the impact of RL data construction. For the TTS task, we compare GRPO with Differentiable Reward Optimization (DiffRO) and further combine the two approaches to achieve improved performance. Our experiments demonstrate that RL can significantly enhance the performance of both ASR and TTS systems, even with limited training data and a small number of optimization steps.
Introduction
While Reinforcement Learning (RL) has revolutionized text-based Large Language Models (LLMs) through techniques like RLHF, its application to audio tasks such as Automatic Speech Recognition (ASR) and Text-to-Speech (TTS) has been limited. Audio LLMs face unique challenges: they must process both discrete acoustic tokens and continuous embeddings, and they are prone to specific failure modes like "hallucinations" (generating text not present in the audio) or poor prosodic rhythm.
Furthermore, training RL for audio is computationally intensive. Existing frameworks often struggle with the memory overhead of managing multiple models (Actor, Critic, Reward, Reference) alongside heavy audio components. This research introduces a resource-efficient training framework and effective reward designs to bridge this gap.
Methodology
The proposed lightweight RL framework optimizes GPU usage by alternately allocating resources. Instead of maintaining all models in memory simultaneously, the system cycles through the audio encoder, the rollout engine (using SGLang for efficiency), and the FSDP-based policy model.
ASR Optimization via GRPO
For ASR, the framework utilizes Group Relative Policy Optimization (GRPO), a "critic-less" RL algorithm. Advantages are computed based on the relative performance of a group of generated hypotheses. Three rule-based rewards were designed:
- ASR Accuracy: Based on $1 - \text{WER}$.
- Hallucination Detection: Penalties for repeated, non-existent, or translated results.
- Keyword Accuracy: Higher weights for specific entities like brand names.
TTS Optimization: Hybrid DiffRO and GRPO
For TTS, the system combines two distinct RL approaches:
- DiffRO (Differentiable Reward Optimization): Directly optimizes the model using gradients from a differentiable reward model (e.g., an ASR system checking pronunciation).
- GRPO: Addresses non-differentiable, subjective qualities like audio duration and pitch diversity.
- Sample Filter: A novel strategy where DiffRO loss is applied only to "positive" samples identified by GRPO, stabilizing the training process.
Experimental Results
ASR Performance
The RL-tuned ASR model achieved a 5.3% relative improvement in Word Error Rate (WER) across both short and long speech segments. A critical finding was that targeted RL rewards specifically penalizing insertions (hallucinations) were more effective than simple WER-based rewards, particularly for long or noisy audio.
TTS Performance and Stability
In TTS tasks, the hybrid "Combined + Filter" approach yielded the best balance. For English, it reduced WER from 6.074 to 5.279. A key insight was the stability trade-off: while GRPO is efficient, it can become unstable after approximately 1500 training steps. The "Combined-Filter" method maintains stability over longer training durations.
Efficiency
The framework demonstrates high performance, achieving a Real-Time Factor (RTF) of 0.015 for ASR training on 8x A100 GPUs. This efficiency makes it viable for industrial-scale deployment compared to traditional frameworks like VerL.
Conclusion
This study demonstrates that RL can significantly enhance the performance of both ASR and TTS systems. While RL improves semantic accuracy and reduces hallucinations, challenges remain in perfectly preserving speaker identity. Future work will focus on developing reward models that capture "expressiveness" and "rhythm richness" without sacrificing unique vocal characteristics.
Summary updated