What happens to diffusion model likelihood when your model is conditional?

Mattias Cross, Anton RagniarXiv 2024 · DOI

Abstract

Diffusion Models (DMs) are increasingly utilized for conditional generation tasks such as Text-to-Speech (TTS) and Text-to-Image synthesis. While these models allow for the calculation of "exact likelihood" via the Probability Flow Ordinary Differential Equation (ODE), this paper identifies a critical disconnect: in conditional settings, higher likelihood does not necessarily imply better alignment with the input prompt. Our findings suggest that for speech synthesis, likelihood scores are largely agnostic to the text being spoken, and for image generation, they fail to capture basic compositional reasoning.

Introduction

In generative modeling, likelihood is traditionally viewed as a gold-standard metric for distribution matching. For unconditional models, a high likelihood indicates that a sample is a plausible representative of the training data. However, modern AI applications are predominantly conditional, relying on specific prompts to guide output. This research investigates whether the conditional likelihood $p(x|y)$ truly measures the compatibility between the output $x$ and the condition $y$, or if it merely reflects the perceptual quality of the output. If likelihood fails to track the conditioning signal, its utility for model evaluation and ranking is fundamentally compromised.

Methodology

The study examines two prominent conditional diffusion architectures:

  1. Grad-TTS: A Text-to-Speech framework utilizing a Mean-Reverting Variance-Preserving SDE to map text to Mel-spectrograms.
  2. Stable Diffusion XL (SDXL): A leading Text-to-Image model that employs Classifier-Free Guidance (CFG) to align image generation with text prompts.

To compute exact log-probabilities, the researchers utilized the Probability Flow ODE, applying the instantaneous change-of-variables formula. These likelihood values were then benchmarked against standard quality and intelligibility metrics to determine their correlation with prompt adherence.

Experimental Setup

The researchers evaluated these models across several diverse benchmarks to capture different modalities and reasoning tasks:

  • Speech Synthesis: Evaluated using LJSpeech and TED-LIUM to measure audio quality and Word Error Rate (WER).
  • Image Domain/Class: Tested on the PACS dataset, which contains images across four domains: Photo, Art, Cartoon, and Sketch.
  • Compositional Reasoning: Utilized the CLEVR diagnostic dataset to assess if likelihood could distinguish between simple geometric variations, such as a "red sphere" versus a "red cube."
Visual benchmarks from CLEVR (a) and PACS (b) used to test conditional likelihood in image generation.

Analysis of Conditional Likelihood

The "Agnostic" Likelihood in Speech

In TTS tasks, the likelihood score appears to be almost entirely "text-agnostic." While the model assigns high scores to spectrograms that sound like the target speaker or appear perceptually smooth, it shows little sensitivity to whether the audio actually matches the input transcript.

The Intelligibility Paradox

A striking finding is the inverse relationship between likelihood and intelligibility. As the model's likelihood for a speech sample increases, the Word Error Rate (WER) often increases as well. This suggests that the diffusion process may prioritize local smoothness or speaker characteristics over the linguistic accuracy required for clear speech.

Metrics over time showing the disconnect between likelihood (BPD) and intelligibility (WER).

Reasoning Failures in Image Generation

For SDXL, while the likelihood is more expressive than in the speech domain, it remains unreliable for reasoning. The model frequently fails to use likelihood to correctly pair an image with its caption when presented with confounding prompts (e.g., swapping colors or shapes). Furthermore, on the PACS dataset, using exact likelihood to identify the correct artistic domain resulted in 0% accuracy in several configurations, whereas alternative metrics like CLIP-score remained highly accurate.

Key Results and Discussion

  • ASR Rescoring: When Grad-TTS likelihood was used to select the best transcript from a candidate list, it performed significantly worse than standard acoustic models, failing to capture essential linguistic nuances.
  • Reconstruction Inconsistency: The authors discovered that "reconstructing" an image—passing it through the noise process and back—could artificially inflate its likelihood score without a corresponding improvement in quality or prompt alignment. This indicates that likelihood can be "gamed" by the internal mechanics of the ODE solver.

Conclusion and Future Work

This study provides empirical evidence that conditional likelihood in diffusion models is often decoupled from the conditioning signal. While these models generate high-quality outputs, their internal likelihood estimators do not currently serve as reliable proxies for prompt adherence. Future research is required to develop "conditional-sensitive" likelihood estimators and to provide a theoretical framework explaining why this decoupling occurs in specific SDE and ODE formulations.

Summary updated

BibTeX
@misc{cross2024what,
  author = {Mattias Cross and Anton Ragni},
  title = {{What happens to diffusion model likelihood when your model is conditional?}},
  year = {2024},
  eprint = {2409.06364},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.06364},
}
Figure