Editor’s introduction
The research evaluates Group Relative Policy Optimization (GRPO) in diffusion transformer-based text-to-audio models, testing various reward functions such as CLAP, KL divergence, and Fréchet Distance. It finds that GRPO significantly enhances audio fidelity and prompt adherence, especially when combining multiple rewards to balance distributional and semantic consistency. The study measures improvements in key metrics like FAD, KL, and CLAP, showing stronger alignment between text prompts and generated audio.
Introduction
Text-to-audio (TTA) generation holds significant promise for content creation and artistic applications, from powering podcasts and storytelling platforms to enabling speech-driven video synthesis and immersive sound design. However, generating coherent, prompt-aligned audio—particularly for complex or lengthy prompts—has historically required intensive data labeling and precise text-audio alignment. Recent advancements in TTA models have introduced innovative techniques, such as latent consistency models for rapid inference with minimal sampling steps, flow-matching paradigms for accelerated and high-fidelity generation, training-free timing planning for long-form controllability, progressive diffusion for decoupled temporal and semantic control, timestamp- or natural-language-based temporal guidance, and open-source architectures optimized for variable-length sound effects and music. These developments have markedly improved diversity, expressiveness, inference efficiency, long-form synthesis, and fine-grained controllability, facilitating applications like synchronized audiovisual content and extended narrative audio. Despite these advances, a significant gap remains: achieving high-fidelity audio with robust semantic and temporal alignment is still challenging for intricate or extended prompts involving multiple sequential events, subtle nuances, or prolonged narratives. Existing methods frequently struggle to capture fine-grained textual details, resulting in event omissions, hallucinations, misordered sequences, or weakened text-audio correspondence—particularly in real-world, long-form scenarios.
We attribute the aforementioned limitations primarily to deficiencies in data quality and modeling approaches. Data quality plays a critical role in the controllability and fidelity of text-to-audio generation systems, where poor-quality captions frequently lead to incorrect audio events, disordered temporal sequencing, or semantic misinterpretations of the input prompt. To address these issues, we propose enhancing prompt-following capability by augmenting the training data with higher-quality, more detailed textual descriptions. Specifically, we first design a set of carefully engineered prompts that elicit rich, accurate, and structurally consistent audio captions from large language models (LLMs). These prompts are then applied to our base audio dataset, leveraging powerful LLMs such as GPT-4, DeepSeek-V2, and Qwen-2.5 to generate enhanced descriptions automatically. Finally, we fine-tune text-to-audio models on this augmented dataset, resulting in substantially improved alignment, controllability, and overall synthesis quality. We then apply reinforcement learning, specifically Group Relative Policy Optimization (GRPO), with a diverse set of reward functions (including CLAP, KL, FAD, and their weighted combinations) to further enhance text-to-audio (T2A) generation quality. Through systematic experimentation, we analyze how different reward designs influence key aspects of T2A synthesis, including distributional fidelity, sample-level alignment, semantic prompt adherence, and overall audio quality.
Pretraining of text-to-audio (T2A) models—whether autoregressive or diffusion-based—commonly results in imprecise text-audio alignment. In contrast, post-training reinforcement learning techniques have proven highly effective in large language models (LLMs) for mitigating alignment mismatches. The substantial progress in LLMs owes much to alignment stages, typically using Reinforcement Learning from Human Feedback (RLHF) or similar reward-based optimization methods, which align model outputs closely with human preferences. However, this alignment paradigm remains underexplored in T2A development, largely due to a key tooling gap: the scarcity of reliable, large-scale preference pair datasets. Unlike the LLM domain, which benefits from established reward models and abundant human feedback resources, the T2A field currently lacks standardized, scalable approaches for collecting and utilizing such preference data, hindering effective post-training alignment. In this work, we address this limitation by exploring reinforcement learning-based alignment for T2A generation. Specifically, we investigate dataset preparation strategies for RL training and systematically examine how different reward function designs (including CLAP, KL, FAD, and their combinations) influence final audio quality. Our goal is to reduce alignment mismatches beyond what data augmentation alone can achieve, providing insights into effective reward modeling for text-to-audio synthesis.
Generative Speech Models
Generative speech models based on autoregressive or diffusion architectures have significantly advanced end-to-end speech quality across tasks such as text-to-speech (TTS), speech recognition, speech-to-speech conversion, and multimodal modeling.Continuous speech features—such as mel-spectrograms derived from signal processing method or discrete speech tokens obtained via residual vector quantization (RVQ)-based codec models—have frequently served as effective intermediate representations in speech modeling, demonstrating strong performance in TTS and speech-to-speech tasks. These successes in speech synthesis have inspired similar architectural, data-scaling, and training strategies for text-to-audio (T2A) generation, which has emerged as a prominent recent research trend.
Text-to-Audio
Text-to-audio (T2A) generation has emerged as a prominent field, enabling models to reliably synthesize audio that is semantically consistent with given text descriptions. The domain now predominantly relies on diffusion and flow-matching models, which iteratively denoise pure noise in the latent space conditioned on text embeddings and time steps. Diffusion-based approaches have become the dominant paradigm, owing to their superior audio fidelity and generation efficiency. Recent research has increasingly focused on long-form generation and precise time-aligned audio synthesis. Stable Audio advanced long-form capabilities by training diffusion models on large-scale proprietary datasets and incorporating timing-conditioned embeddings, though these primarily regulate overall duration rather than providing fine-grained control over specific event timing. TANGO and TangoFlux improved compositional accuracy and alignment with complex prompts through instruction-tuned language models and preference-based fine-tuning. Despite these advances, achieving precise, event-level text-audio alignment within diffusion frameworks remains a critical challenge. Several recent efforts have directly addressed this control gap. ControlAudio pretrains a Diffusion Transformer (DiT) on large-scale text-audio pairs and integrates timing and phoneme features via unified semantic representations, enabling scalable and fine-grained controllability. PicoAudio2 advances data-centric methods by employing a grounding model to annotate event timestamps in real audio-text datasets, thereby curating a strongly temporally aligned corpus that augments existing synthetic data. Finally, FreeAudio introduces a training-free T2A approach that simultaneously achieves precise timing control and coherent long-form synthesis from complex natural language prompts, marking a significant step toward structurally consistent and controllable audio generation.
Group Relative Policy Optimization (GRPO)
Reinforcement learning (RL) has emerged as a key paradigm for aligning large language models (LLMs) across modalities, including text, image, and—most recently—speech. The lightweight, policy-based method Group Relative Policy Optimization (GRPO) has proven particularly effective in LLM post-training, enhancing both safety and utility. Building on this success, recent studies have explored RL’s potential in speech processing tasks, including Automatic Speech Recognition (ASR) and Text-to-Speech (TTS). For ASR, applied the GRPO framework, experimenting with various rule-based reward functions and examining the impact of RL data construction strategies. In TTS, introduced Differentiable Reward Optimization (DiffRO), which directly computes rewards based on neural codec tokens, significantly improving pronunciation accuracy in TTS systems. Extending ASR research, proposed a more informative composite reward function that integrates Character Error Rate (CER) with Negative Log-Likelihood (NLL) from the ASR model, delivering more accurate and stable reward signals.
Method
We adopt the pretrained TangoFlux model as our experimental baseline. TangoFlux is built upon Diffusion Transformer (DiT) and Multimodal Diffusion Transformer (MMDiT) architectures and generates high-fidelity 44.1 kHz audio clips up to 30 seconds in duration. It learns a rectified flow trajectory in the continuous latent space of audio—encoded via the variational autoencoder (VAE) from Stable Audio Open—while conditioning on text representations from FLAN-T5. To construct reinforcement learning experiment, we first construct an enriched dataset with more detailed and semantically precise text descriptions, which then serves as the training set for subsequent reinforcement learning.
Descriptions Augmentation
Obtaining diverse and high-quality training data remains a major challenge in developing high-performance text-to-audio (T2A) generation models. Existing labeled audio datasets are typically limited by short, low-diversity, and occasionally inaccurate captions. While human annotators can produce detailed and reliable descriptions, manual annotation is expensive and difficult to scale. To construct an effective training set for reinforcement learning experiments, we employ a data augmentation pipeline that leverages large language models (LLMs) to generate rich, detailed audio descriptions from sparse original tags and short captions. Our approach consists of the following steps: We design multiple prompting rule sets engineered to elicit longer, more descriptive, and semantically faithful outputs from the LLM. We systematically evaluate these rule sets across several LLMs using a small, human-verified evaluation subset. Human annotators score the generated descriptions for quality and fidelity, and we select the highest-performing configuration based on average scores. Once the optimal prompt template and LLM are determined, we apply them at scale to the full collection of original tags and labels, producing a substantially enriched corpus of detailed textual descriptions. During training, we combine the newly generated descriptions with the original captions by randomly sampling from both sources according to a controllable mixing ratio. Model performance is continuously monitored on a held-out validation set to identify the most effective ratio and to avoid overfitting to synthetic descriptions. This pipeline enables scalable, high-quality data augmentation that significantly enhances prompt adherence and overall synthesis fidelity in subsequent reinforcement learning stages.
Flow-Matching
Diffusion-based generative models are highly sensitive to the choice of noise scheduler; suboptimal schedules can substantially degrade performance. In contrast, the flow matching (FM) framework demonstrates exceptional robustness to hyperparameter variations and has recently achieved state-of-the-art results across diverse audio generation tasks, including text-to-audio (T2A), text-to-speech (TTS), and speech-to-speech conversion. Flow matching learns a time-dependent velocity field that directly transports samples from a simple base distribution (typically Gaussian noise) to the target data distribution. This enables straight-through training via a straightforward velocity regression objective and supports exact likelihood computation through ordinary differential equations (ODEs). The paradigm has also driven recent breakthroughs in text-to-image generation, yielding photorealistic images of unprecedented fidelity. Furthermore, reinforcement learning (RL)—which previously delivered transformative gains in autoregressive language modeling—has recently been successfully integrated with flow matching objectives, yielding substantial additional improvements in controllable and expressive text-to-speech synthesis.
Group Relative Policy Optimization
Reinforcement learning (RL) has driven substantial progress in aligning large language models (LLMs) with human preferences. Preference-based optimization methods such as Direct Preference Optimization (DPO) and Group Relative Policy Optimization (GRPO) have proven highly effective, markedly improving the safety, helpfulness, and utility of generated text. These techniques have recently been extended to speech and audio generation domains. A critical factor in applying RL to audio synthesis is the careful selection of reward functions that accurately reflect perceptual and objective audio quality. In text-to-speech (TTS) systems, RL-based alignment commonly employs rewards based on speaker similarity (SIM) or word error rate (WER). These metrics leverage speech encoders (e.g., WavLM) to capture acoustic properties such as prosody, intonation, pitch, and pauses, while automatic speech recognition models ensure content consistency and intelligibility. For text-to-audio (T2A) generation, suitable reward signals include CLAP similarity (for text-audio semantic alignment), Kullback–Leibler (KL) divergence (for distributional similarity at the sample level), and Fréchet Audio Distance (FAD) (for overall distributional fidelity). In our GRPO-based enhancement pipeline, we adopt these three metrics as primary rewards. GRPO refines the pretrained generation policy by updating it to favor samples that maximize the specified reward. The update relies on an advantage estimate computed from relative rewards within each training batch (or group) of generated samples: the advantage reflects how much better a given output performs compared to the batch average. Following standard practice, we initialize both the policy model and the frozen reference model with the same pretrained weights (e.g., from TangoFlux). Throughout GRPO training, the reference model remains unchanged to provide a stable baseline for advantage computation. We primarily use CLAP similarity, KL divergence, and FAD as reward components, as they collectively capture the most essential dimensions of T2A quality: semantic prompt adherence, sample-level distributional alignment, and global distributional realism.
Reward function
Our reward function integrates three complementary components—CLAP (for text-audio semantic alignment), FAD (Fréchet Audio Distance, for global distributional fidelity), and KL (Kullback–Leibler divergence, for sample-level distributional similarity)—to comprehensively capture diverse aspects of generated audio quality. We present experimental results demonstrating the training progress and final performance under individual reward configurations as well as their weighted combination.
CLAP
The CLAP (Contrastive Language–Audio Pretraining) score quantifies the semantic alignment between a generated audio sample and its text prompt by computing the cosine similarity between their embeddings in a shared representation space. This metric effectively captures how well the audio matches the described events, content, and overall intent—analogous to how CLIP (Contrastive Language–Image Pretraining) evaluates text-image alignment in image generation tasks. CLAP is typically pretrained on large-scale audio–text pairs, enabling it to learn a joint embedding space that aligns raw waveforms (or their features) with corresponding natural-language descriptions. Thanks to this contrastive learning objective, CLAP has proven effective across downstream applications, including zero-shot audio classification, automatic audio captioning, and evaluation of text-to-audio (T2A) generation models.
FAD
The Fréchet Audio Distance (FAD) adapts the Fréchet Inception Distance (FID)—a widely used metric originally developed for image generation—to the audio domain. Like FID, FAD has become a standard objective metric for evaluating the quality of text-to-audio (T2A) and general audio generative models, with a particular focus on measuring perceptual fidelity and distributional similarity to real audio. FAD is computed as follows: embeddings are extracted from both generated and reference (real) audio samples using a pretrained audio classifier (e.g., VGGish, PANNs, or similar). The distributions of these embeddings are then modeled as multivariate Gaussians, and the Fréchet distance (also known as the 2-Wasserstein distance between Gaussians) is calculated between the two distributions. Lower FAD values indicate that the generated audio better matches the reference set in terms of both fidelity and diversity.
KL
The Kullback–Leibler (KL) divergence serves as a semantic consistency metric in text-to-audio (T2A) evaluation. For each generated–reference audio pair, embeddings are extracted and passed through an AudioSet-pretrained classifier to obtain softmax probability vectors over semantic classes. The KL divergence is then computed from the reference distribution to the generated distribution, quantifying the information loss when approximating the reference semantics with those of the generated audio. Because KL operates at the per-sample level and directly measures mismatch in predicted semantic label distributions, it effectively captures whether the generated audio faithfully preserves the fine-grained content, events, and concepts described by the text prompt (or present in any conditioning signal), complementing global distributional metrics such as FAD.
Training details
For training, we used the AdamW optimizer in conjunction with a cosine annealing learning rate scheduler to ensure stable and efficient convergence. The initial learning rate was set to 1e-4 for both the data-augmentation pretraining stage and the subsequent GRPO fine-tuning stage, with cosine decay applied to gradually reduce it to a minimum value of 5e-6. All experiments were conducted on NVIDIA A100 GPUs. We utilize an internal audio dataset as the source for data augmentation and reinforcement learning experiments.
Conclusion
In this study, we investigate Group Relative Policy Optimization (GRPO) as a reinforcement learning approach for text-to-audio (T2A) generation. We systematically explore a range of reward functions—including CLAP, KL divergence, Fréchet Distance (FD), and their weighted combination—and analyze their effects on key evaluation metrics (FAD, KL, CLAP). Our results show that GRPO, especially when using multi-reward weighting, substantially improves overall generation quality by effectively balancing distributional fidelity (FD), sample-level semantic consistency (KL), and prompt adherence (CLAP). Future work will prioritize scaling the training dataset size to enhance model robustness and performance. We intend to conduct controlled experiments examining how increased data volume affects GRPO training dynamics, convergence stability, sample efficiency, and final audio quality in T2A synthesis.


