Skip to main content
QUICK REVIEW

[Paper Review] Discrete Contrastive Diffusion for Cross-Modal Music and Image Generation

Ye Zhu, Yu Wu|arXiv (Cornell University)|Jun 15, 2022
Music and Audio ProcessingComputer Science10 citations
TL;DR

This paper proposes Conditional Discrete Contrastive Diffusion (CDCD), a novel method that explicitly enhances input-output correspondence in cross-modal diffusion models by maximizing mutual information through a contrastive learning objective. By integrating a contrastive loss with denoising diffusion, CDCD improves generation fidelity, reduces required diffusion steps by 35%+, and achieves state-of-the-art or competitive results in music-audio and image generation tasks with stronger cross-modal alignment.

ABSTRACT

Diffusion probabilistic models (DPMs) have become a popular approach to conditional generation, due to their promising results and support for cross-modal synthesis. A key desideratum in conditional synthesis is to achieve high correspondence between the conditioning input and generated output. Most existing methods learn such relationships implicitly, by incorporating the prior into the variational lower bound. In this work, we take a different route -- we explicitly enhance input-output connections by maximizing their mutual information. To this end, we introduce a Conditional Discrete Contrastive Diffusion (CDCD) loss and design two contrastive diffusion mechanisms to effectively incorporate it into the denoising process, combining the diffusion training and contrastive learning for the first time by connecting it with the conventional variational objectives. We demonstrate the efficacy of our approach in evaluations with diverse multimodal conditional synthesis tasks: dance-to-music generation, text-to-image synthesis, as well as class-conditioned image synthesis. On each, we enhance the input-output correspondence and achieve higher or competitive general synthesis quality. Furthermore, the proposed approach improves the convergence of diffusion models, reducing the number of required diffusion steps by more than 35% on two benchmarks, significantly increasing the inference speed.

Motivation & Objective

  • To address the lack of explicit input-output correspondence in conditional diffusion models, which often results in weak alignment between conditioning inputs and generated outputs.
  • To improve the faithfulness of cross-modal generation by explicitly maximizing mutual information between conditioning inputs and generated outputs.
  • To integrate contrastive learning with diffusion modeling in a way that enhances both training stability and inference efficiency.
  • To demonstrate the effectiveness of CDCD across diverse conditional synthesis tasks, including text-to-image, class-conditioned, and dance-to-music generation.

Proposed method

  • Proposes a Conditional Discrete Contrastive Diffusion (CDCD) loss that explicitly maximizes mutual information between conditioning inputs and generated outputs.
  • Designs two contrastive diffusion mechanisms: step-wise parallel diffusion and sample-wise auxiliary diffusion, to effectively incorporate the CDCD loss into the denoising process.
  • Combines the CDCD loss with the conventional variational lower bound objective, enabling joint optimization of both objectives during training.
  • Introduces intra- and inter-negative sampling strategies to improve contrastive learning by providing disordered and instance-level negative samples.
  • Employs a downsampled contrastive step strategy to reduce computational cost while maintaining performance, inspired by classifier-free guidance.
  • Applies noise reduction to high-fidelity audio outputs to improve perceptual quality, though audio quality is not the primary focus.

Experimental results

Research questions

  • RQ1Can explicit mutual information maximization improve input-output correspondence in conditional diffusion models for cross-modal generation?
  • RQ2How does integrating contrastive learning with diffusion training affect convergence speed and inference efficiency?
  • RQ3To what extent does CDCD improve generation quality and alignment in diverse cross-modal tasks such as text-to-image and dance-to-music generation?
  • RQ4What is the impact of contrastive loss strength (λ) and sampling strategy on model performance and training stability?
  • RQ5Can the CDCD framework be effectively applied to both continuous and discrete conditioning inputs across different modalities?

Key findings

  • CDCD reduces the number of required diffusion steps by over 35% on two benchmarks, significantly accelerating inference without sacrificing quality.
  • The method achieves state-of-the-art or competitive performance on three tasks: dance-to-music, text-to-image, and class-conditioned image synthesis.
  • Beat alignment scores in dance-to-music generation reach 93.9% coverage and 90.7% hit rate, demonstrating strong cross-modal correspondence.
  • The ablation study shows that λ = 5e-5 provides a good balance between performance and training stability, with minimal sensitivity to hyperparameter variation.
  • Downsampled contrastive steps reduce computational cost with only a minor drop in performance (e.g., 93.4% coverage at Tc=80 vs. 93.9% at Tc=100), confirming efficiency gains.
  • The CDCD loss acts as an effective auxiliary regularizer, improving model convergence and generalization across diverse conditional generation tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.