DITTO-2: Distilled Diffusion Inference-Time T-Optimization for Music Generation

Zachary Novack, Julian J. McAuley, Taylor Berg-Kirkpatrick, Nicholas J. Bryan · DOI

Introduction

Generating high-quality music with artificial intelligence has become increasingly accessible, yet precise control over the output remains a significant challenge. Creative users often require specific adherence to melodies, volume curves (intensity), or structural forms (e.g., ABA structure). Current approaches generally fall into two categories: inflexible training-based methods that require fine-tuning for every new control task, or Inference-Time Optimization (ITO) methods like the original DITTO. While ITO is highly flexible and training-free, it is computationally expensive—often running 10 to 20 times slower than the duration of the audio produced.

DITTO-2 introduces a novel framework that bridges this gap, achieving a 10-20x speedup over its predecessor. By combining diffusion distillation with a "surrogate optimization" strategy, DITTO-2 enables controllable music generation that is faster than real-time without sacrificing audio quality or control precision.

The DITTO-2 Framework

DITTO-2 addresses the speed-control bottleneck through three primary technical innovations:

1. Diffusion Distillation (CM & CTM)

To reduce the number of sampling steps, the authors distill pre-trained diffusion models into Consistency Models (CM) or Consistency Trajectory Models (CTM). These distilled models are capable of generating clean samples from random noise in as few as one or two steps. Additionally, the framework distills the Classifier-Free Guidance (CFG) scale directly into the model, effectively halving the computational load during the inference process.

2. Surrogate Optimization

The core efficiency of DITTO-2 stems from "Surrogate Optimization." In traditional ITO, the system must backpropagate through a long chain of diffusion steps (often 20 or more) to optimize the initial noise latent. DITTO-2 instead performs optimization against a 1-step surrogate task. It identifies the optimal starting noise by evaluating how well a 1-step distilled preview matches the target control. Because distilled models produce coherent outputs in a single step—unlike standard diffusion models which produce noise—the gradients remain stable and effective for optimization.

3. Decoupled Decoding

Once the optimal noise latent is identified via the fast 1-step surrogate, the model performs a separate "decoding" pass. This pass typically uses 2–8 steps to render high-fidelity audio. By decoupling the task of finding the content from the task of rendering the audio, DITTO-2 ensures that the optimization landscape remains simple and fast while the final output remains professional in quality.

Experimental Setup and Evaluation

The base model for DITTO-2 was trained on approximately 1,800 hours of licensed music. For evaluation, the researchers utilized the MusicCaps dataset to measure audio quality and text relevance. The model's spectrogram outputs were converted into high-fidelity audio using the MusicHiFi vocoder.

Key Results and Insights

Real-Time Performance

DITTO-2 achieves a 10-20x speedup compared to the original DITTO framework. In practical terms, it can generate 6 seconds of controlled audio in approximately 5 seconds, making it viable for interactive creative applications for the first time.

Superior Control Accuracy

Counter-intuitively, the faster optimization method often yields better results. DITTO-2 achieved lower Mean Squared Error (MSE) on intensity and structural control tasks than slower methods. The researchers attribute this to the simpler optimization landscape provided by distilled models, which allows the optimizer to converge more effectively on the target features.

Zero-Shot Text-to-Music (U-DITTO-2)

One of the most striking findings involves "U-DITTO-2," an experiment where a model trained entirely without text inputs was used for text-to-music generation. By optimizing the noise latent to maximize a CLAP score (audio-text similarity), the model outperformed the popular MusicGen model in text relevance by 54%, despite the base model never having seen a text prompt during training.

Limitations and Future Directions

While DITTO-2 represents a significant leap forward, some limitations remain. The initial distillation process requires approximately 32 GPU hours, which, while modest, is a necessary prerequisite. Additionally, there is a minor "domain gap" between the 1-step optimization preview and the multi-step final decode. Future research may focus on further aligning these stages or expanding the framework to handle more abstract, high-level neural features for even more nuanced creative control.

Conclusion

DITTO-2 demonstrates that high-fidelity, controllable music generation does not have to be slow. By leveraging distilled models as optimization surrogates, the framework provides a path toward real-time, interactive AI tools that respect the precise creative intent of the user.

Summary updated

BibTeX
@misc{novack2024ditto,
  author = {Zachary Novack and Julian J. McAuley and Taylor Berg-Kirkpatrick and Nicholas J. Bryan},
  title = {{DITTO-2: Distilled Diffusion Inference-Time T-Optimization for Music Generation}},
  year = {2024},
  eprint = {2405.20289},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.20289},
}
Figure