Abstract
Tango 2 introduces a novel approach to text-to-audio (TTA) generation by applying Direct Preference Optimization (DPO) to diffusion models. Current TTA models often struggle with semantic misalignment, failing to capture all events in a prompt or misordering them temporally. To address this, we present Audio-alpaca, a synthetic preference dataset generated through multiple inference strategies and LLM-based prompt perturbations. By fine-tuning the Tango model using a diffusion-specific DPO loss, Tango 2 achieves superior alignment and temporal accuracy, outperforming models like AudioLDM2-Large on both automated benchmarks and human evaluations.
1. Introduction
While generative AI has made massive strides in text-to-audio, current models often suffer from "semantic misalignment." For example, a prompt requesting "a dog barking followed by a car horn" might result in an output containing only one of the sounds or both occurring simultaneously. These failures typically fall into two categories: Concept Presence (missing events) and Temporal Ordering (incorrect sequences).
The core issue is that most models are trained using simple supervised learning on prompt-audio pairs. They learn what "good" audio looks like but are never explicitly taught what "bad" audio looks like. Tango 2 tackles this by introducing a preference framework, teaching the model to choose a "winner" audio sample over a "loser" sample for any given prompt.
2. Methodology
The Tango 2 pipeline consists of two main stages: creating a preference dataset and performing alignment through Diffusion-DPO.
2.1 Creating "Audio-alpaca"
To train a preference model, pairs of (Winner, Loser) audio are required for the same prompt. The researchers used three strategies to synthetically generate the Audio-alpaca dataset:
- Strategy 1 (Multiple Inferences): Multiple outputs were generated from the original Tango model. CLAP scores (which measure text-audio alignment) were used to designate the best as the "winner" and others as "losers."
- Strategy 2 (Concept Perturbation): GPT-4 was used to alter prompts by removing key events. Audio generated from these "wrong" prompts served as negative examples for the original prompt.
- Strategy 3 (Temporal Perturbation): GPT-4 swapped the order of events in a prompt (e.g., "A then B" becomes "B then A"). The resulting audio became a negative example for the original sequential prompt.
2.2 Diffusion-DPO and Ensemble Filtering
Standard DPO, originally designed for Large Language Models, was adapted into Diffusion-DPO. This modifies the diffusion loss function to penalize the model if its preference for a "loser" sample is higher than a reference model's preference, while rewarding it for favoring the "winner." To ensure high data quality, an ensemble of two different CLAP models was used to filter the dataset, keeping only pairs with high absolute alignment and a significant margin between the winner and loser.
3. Key Results
Tango 2 demonstrated significant improvements across both objective and subjective metrics:
- Text-Audio Alignment: It achieved a CLAP score of 0.57, outperforming the original Tango (0.54) and AudioLDM2-Large (0.44).
- Temporal Accuracy: On the STEAM benchmark, Tango 2 significantly reduced the Ordering Error Rate (OER) and improved Timestamp (TIME) accuracy compared to its predecessor.
- Human Preference: In subjective tests, humans rated Tango 2 higher in both Overall Quality (OVL) and Relevance (REL). Notably, it scored 4.07 in relevance, while AudioLDM2-Large trailed at 3.19.
4. Conclusion and Future Work
Tango 2 proves that a model learns more about semantic nuances by seeing "near-misses" than by seeing only perfect examples. By using LLMs as "puppeteers" to systematically generate negative examples, the authors successfully addressed persistent weaknesses in temporal awareness and concept presence.
Future work may involve incorporating actual human-labeled preferences to further refine performance and applying this alignment strategy to even larger-scale generative models. Currently, the model remains limited by the capabilities of its base generator; if the base model cannot produce a specific complex sound, DPO can only guide it toward the "least bad" option.
Summary updated