Introduction
Aligning text-to-music generation with human preferences remains a significant challenge in generative AI. While current models can generate music that matches a text prompt, they often suffer from perceptual flaws such as poor audio quality, unstable rhythms, or a lack of semantic coherence. MR-FlowDPO addresses these issues by adapting Direct Preference Optimization (DPO) for flow-matching models, utilizing a multi-reward system to improve the production value and rhythmic stability of generated music.
Methodology
The MR-FlowDPO framework introduces several key innovations to align music generation with human preference:
DPO for Flow-Matching
Unlike standard DPO used in Large Language Models, which compares log probabilities, MR-FlowDPO adapts the formulation for flow-matching. It calculates the difference in the model's predicted vector fields between preferred (positive) and non-preferred (negative) audio samples.
Multi-Reward Suite and Strong Domination
The system employs three distinct reward models to evaluate generated samples:
- Text Alignment: Uses the CLAP model to ensure audio-prompt correspondence.
- Production Quality: An aesthetic score predictor trained on human ratings of audio clarity and dynamics.
- Semantic Consistency (Musicality): A HuBERT model re-trained on music to act as a proxy for rhythmic and melodic coherence.
To prevent "reward hacking"—where a model over-optimizes one metric at the expense of others—the researchers introduced Multi-Reward Strong Domination (MRSD). This strategy selects training pairs where the "winner" is significantly better in at least one dimension and at least equal in all others.
Reward Prompting
During training, reward scores (e.g., "Audio quality is 8.24") are prepended to text prompts. At inference, the model is prompted with high scores to guide generation toward high-quality outputs.
Experimental Setup
The models were trained on 20,000 hours of licensed music (approximately 400k tracks). Evaluation was conducted using the MusicCaps benchmark, consisting of 5.5K high-quality music-text pairs, alongside a held-out set of 1K instrumental tracks for ablation studies.
Results and Analysis
MR-FlowDPO demonstrates significant improvements across both objective and subjective metrics.
Objective Performance
As shown in the table below, the MR-FlowDPO-1B model achieved state-of-the-art results in Aesthetic (Aes) and Content Enjoyment (EA) scores. Notably, it significantly improved rhythmic stability, reducing the BPM standard deviation (BPM-std) from 9.09 to 6.11, indicating much steadier rhythms.
The FAD Paradox
An interesting finding was the increase in Fréchet Audio Distance (FAD). While typically a lower FAD is better, the authors suggest that as the model aligns more closely with high-quality human preferences, it moves away from the "average" distribution of the training set. This highlights a potential limitation of FAD as a universal quality metric for preference-aligned models.
Human Preference
In blind studies, humans preferred MR-FlowDPO-1B over the baseline MelodyFlow-1B by a wide margin, particularly noting a 71% net win rate in audio quality and a 25% net win rate for overall preference.
Conclusion
MR-FlowDPO successfully bridges the gap between technical prompt matching and human musical preference. By leveraging a multi-reward system and a novel DPO formulation for flow-matching, the framework produces music with superior production quality and rhythmic consistency. Future work will explore scaling these techniques to larger foundation models and expanding the reward suite to capture more nuanced musical attributes.
Summary updated