Abstract
Generating high-quality music from text descriptions (Text-to-Music) is hindered by the scarcity of clean, high-fidelity datasets. Existing open-source audio data often suffers from low recording quality and sparse, inaccurate captions. We present QA-MDT (Quality-aware Masked Diffusion Transformer), a framework that leverages low-quality data by explicitly modeling audio quality. By integrating a pseudo-MOS quality extractor and a masked transformer architecture, QA-MDT allows for precise control over output fidelity. Our model achieves state-of-the-art performance on the MusicCaps benchmark with a Frechet Audio Distance (FAD) of 1.65, significantly outperforming existing diffusion-based models.
1. Introduction
The primary challenge in Text-to-Music (TTM) generation is the "Filtering Paradox." High-quality music datasets are limited due to copyright and production costs. While large-scale open-source datasets like AudioSet or FMA exist, they are often "noisy," containing low-bitrate recordings and mismatched captions. Simply filtering out low-quality data drastically reduces the dataset size, preventing models from learning complex musical structures. QA-MDT addresses this by retaining low-quality data but explicitly labeling it, teaching the model to distinguish between musical content and recording noise.
2. Methodology
The QA-MDT architecture consists of three core components designed to handle data noise and improve generation quality.
2.1 Quality Information Injection
To utilize noisy data effectively, we employ a "pseudo-MOS" (Mean Opinion Score) model to grade every training clip. This quality information is injected into the model via two mechanisms:
- Quality Prefixes: Textual descriptors such as "high quality" or "low quality" are prepended to the input prompt.
- Quality Tokens: Numerical quality scores are embedded directly into the transformer as learnable tokens.
2.2 Masked Diffusion Transformer (MDT)
Moving beyond standard U-Net or Diffusion Transformer (DiT) architectures, we adapt a Masked Diffusion Transformer. During training, segments of the musical latent space are masked, forcing the model to learn global context and long-range dependencies to reconstruct the hidden parts. This approach enhances the "musicality" and structural coherence of the generated audio.
2.3 Three-Stage Caption Refinement
To address poor label quality, we implement a refinement pipeline involving automated re-captioning, CLAP filtering to ensure text-audio alignment, and LLM fusion to merge original tags with detailed descriptions into rich training prompts.
3. Experiments and Results
QA-MDT was trained on a 12,500-hour multi-source dataset, including AudioSet, MagnaTagTune, and Pixabay.
3.1 Quantitative Performance
QA-MDT achieves state-of-the-art (SOTA) results on the MusicCaps benchmark. Notably, it reached a Frechet Audio Distance (FAD) of 1.65, outperforming Meta’s MusicGen (3.80) and AudioLDM 2 (4.04). It also demonstrated superior text-audio consistency with a CLAP score of 0.35.
3.2 Quality as a Control Knob
A key advantage of QA-MDT is the ability to steer the generation process toward high-fidelity outputs regardless of the training data's average quality. By setting the quality token to its maximum level during inference, the model effectively "de-noises" its learned distribution.
4. Discussion and Conclusion
QA-MDT demonstrates that explicitly modeling audio quality allows generative models to benefit from large-scale, noisy datasets without sacrificing output fidelity. The MDT architecture provides a significant boost in learning global musical context compared to traditional diffusion backbones. Future work will focus on extending generation duration beyond 10 seconds and increasing the sampling rate to professional standards (44.1kHz+).
Summary updated