One-shot Text-aligned Virtual Instrument Generation Utilizing Diffusion Transformer

Qihui Yang, Jiahe Lei, Qiuqiang KongAudio Imagination @ NeurIPS 2024

TL;DR

This paper introduces TaVIG, a novel model for generating realistic musical performances from text descriptions and MIDI data. TaVIG leverages a Diffusion Transformer and a disentanglement approach to precisely control instrument timbre and musical structure, addressing limitations in current text-to-music generation for professional use.

What Problem Does This Paper Address?

While text-to-music generation has seen impressive progress, existing models often fall short when it comes to professional music production. Musicians need fine-grained control over instrument timbre and musical nuances like pitch, timing, and dynamics. Current systems struggle with issues like:

  • Structure Misalignment: Generating extra tracks or misaligning instruments with the intended MIDI.
  • Poor Sound Quality: Producing blurry or artifact-ridden audio.
  • Inconsistent Timbre: Instruments sounding like something else entirely.
  • Limited Instrument Variety: Being restricted to a narrow set of trained instruments.
  • Single Note Synthesis: Failing to capture the complexity of full performances.

TaVIG aims to bridge this gap by enabling one-shot generation of musical performances with high fidelity and user-controlled timbre and structure.

Methods

TaVIG is built upon a four-phase framework:

  1. Text-aligned Timbre Extractor-Encoder: This component uses a pre-trained CLAP model to create a unified 512-dimensional representation for both text descriptions and audio clips. This allows the model to understand timbre from either modality. The authors fine-tune this on a custom dataset of timbre-related texts and audio.
  2. Musical Structure Encoder: This module takes MIDI data (specifically, a piano roll representation) and extracts structural information like pitch, onset, duration, offset, and velocity. It uses a convolutional network similar to prior work.
  3. Disentangled Representation Learning Module: A key innovation is the explicit separation of timbre and musical structure. The authors propose a mathematical framework to ensure these two aspects are uncorrelated. They train a predictor to recover timbre from structure, using this as a "negative guidance" to encourage disentanglement.
  4. Audio Synthesis Model: The core synthesis is performed by a Diffusion Transformer (DiT). This model is conditioned on both the disentangled timbre and structure representations, allowing for precise control over the generated audio. The DiT uses an AdaLN (Adaptive Layer Normalization) mechanism for conditioning.

Datasets

The paper evaluates TaVIG on two synthetic datasets:

  • Slakh2100: A multi-track audio and MIDI dataset for music source separation and multi-instrument transcription, featuring synthesized instruments.
  • NSynth: A large collection of isolated musical notes from diverse instruments, with detailed labels for pitch, velocity, instrument type, and acoustic qualities.

The authors also mention using real audio recordings from datasets like Maestro and Guitarset for capturing natural performance nuances, though the primary evaluation seems to be on synthetic data.

Key Insights and Ideas

  • Timbre and Structure Disentanglement is Crucial: The paper strongly advocates for explicitly separating timbre and musical structure. They propose a novel mathematical framework and training objective to achieve this, arguing that it's essential for precise control in music generation.
  • CLAP for Cross-Modal Timbre Understanding: Leveraging CLAP's ability to align text and audio embeddings is a smart way to enable timbre control from both modalities without needing extensive paired text-audio data for every instrument.
  • Diffusion Transformers for High-Fidelity Audio: The choice of a Diffusion Transformer for audio synthesis is motivated by its proven success in generating high-quality, detailed outputs, building on advancements in image and video generation.

Key Results

The paper presents quantitative results in Table 1, evaluating TaVIG on Slakh and NSynth datasets using metrics like:

  • FAD (Frechet Audio Distance): Measures audio quality. Lower is better.
  • ClapAudio (Slakh): 0.51
    • ClapText (Slakh): 0.25
    • ClapAudio (NSynth): 0.52
    • ClapText (NSynth): 0.29
  • FADec (Frechet Audio Distance - Encodec): Another audio quality metric.
  • Slakh: 2.23, 2.28
    • NSynth: 2.34, 1.78
  • Transcription F1: Assesses alignment with MIDI structure. Higher is better.
  • Slakh: 0.47, 0.53
    • NSynth: 0.48, 0.54
  • Clap Score: Measures alignment with text/audio prompts. Higher is better.
  • Slakh: 0.090, 0.135
    • NSynth: 0.150, 0.152

The results show that TaVIG, particularly when conditioned on text prompts (ClapText), achieves competitive or superior performance in terms of audio quality and structural alignment compared to audio-conditioned generation, especially on the NSynth dataset.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges the computational demands of training CLAP from scratch, hence their reliance on a pre-trained model.
  • While the model handles one-shot multi-note synthesis, the complexity of real-world polyphonic music and intricate instrumentations might still be a challenge.
  • Future Work:
    • Refining the disentanglement of timbre and structure, especially for subtle timbral variations.
  • Improving the diversity of generated timbres while maintaining fidelity to text prompts.
  • Extending the model's capabilities to handle more complex musical arrangements and instrumentations.

Summary updated

BibTeX
@inproceedings{yang2024one,
  author = {Qihui Yang and Jiahe Lei and Qiuqiang Kong},
  title = {{One-shot Text-aligned Virtual Instrument Generation Utilizing Diffusion Transformer}},
  booktitle = {Audio Imagination @ NeurIPS},
  year = {2024},
  url = {https://openreview.net/forum?id=VOLIcUJ6Sy},
}
Figure