Improving Training-free Conditional Diffusion Model via Fisher Information

Kaiyu Song, Hanjiang LaiarXiv 2024

TL;DR

The paper introduces Fisher Information-based Conditional Diffusion (FICD), a method that eliminates the expensive gradient calculations typically required by training-free conditional diffusion models. By leveraging the Cramér-Rao upper bound of Fisher information, FICD achieves up to a 2x sampling speedup while simultaneously improving image quality across complex, non-linear guidance tasks.

What Problem Does This Paper Address?

Conditional diffusion models allow users to guide image generation using specific inputs like text prompts, sketches, or segmentation maps. While training-based methods yield high-quality results, retraining or fine-tuning these models for every new downstream task is computationally prohibitive.

To avoid retraining, researchers developed training-free conditional diffusion models (such as DPS and FreeDom). These methods use "posterior sampling" to guide an off-the-shelf unconditional model toward a given condition at test time. However, this guidance requires computing a "posterior part"—essentially backpropagating through the massive UNet architecture at every single denoising step to compute gradients. This makes the generation process painfully slow.

While some recent acceleration methods try to drop this posterior calculation entirely by assuming a linear manifold, they fail completely when dealing with highly non-linear conditions like face parsing maps or sketches. The authors of this paper set out to find a method that is both fast and capable of handling complex, non-linear guidance.

Methods

The authors break down the conditional score estimator into two distinct components:

  1. The Measurement Part: Dictates the direction of the condition (e.g., making the image match a sketch).
  2. The Posterior Part: Acts as a weight function that determines how much information from the condition is integrated at each time step.

The key mathematical insight is that the intractable portion of the posterior part—the gradient of the unconditional score function—is precisely the definition of Fisher Information.

Instead of calculating this heavy Jacobian matrix explicitly through backpropagation, the authors apply information theory. They use the Cramér-Rao bound to establish an analytical upper bound for the Fisher Information based solely on the model's predefined noise schedule parameters:

$$\frac{\partial \hat{x}_{0|t}}{\partial x_t} \approx \frac{2}{\sqrt{\hat{\alpha}_t}}$$

By substituting the exact gradient calculation with this elegant analytical approximation, FICD completely bypasses the need to compute UNet gradients for the posterior part, radically slashing the time cost per iteration.

Datasets

The method was evaluated across several standard generative tasks and configurations:

  • Face-Related Generation: Utilizing text, face parsing maps, and sketches as conditions.
  • Style-Guided Generation: Using Stable Diffusion to transfer styles from a reference image based on text prompts.
  • Multi-Guidance ControlNet Tasks: Combining multiple independent conditions, such as Face ID images alongside pose mappings, or sketches combined with style images.

No new datasets were introduced; the authors utilized standard open-source diffusion models and evaluation setups to ensure a fair comparison against state-of-the-art baselines like FreeDom, MPGD, and LGD.

Key Insights and Ideas

  • Fisher Information as a Control Knob: Viewing the posterior part through the lens of information theory reveals that it acts as a gatekeeper for information gain.
  • The Early-Phase Bottleneck: Empirical analysis showed that standard training-free methods suffer from an information deficit during the early and late denoising phases. As seen in Figure 1, the gradient norm is naturally suppressed early on. This is counterintuitive because the early phase is precisely when the noisy image is furthest from the condition and needs the strongest guidance.
Figure 1: An empirical study for gradient norm based on the style guidance tasks with stable diffusion. We show the value of the ||∇xt log p(c|ˆx0|t)||2 among different timesteps to show the information gain. Concretely (a), (b), (c), and (d) report the values under 200, 100, 50, and 30 sampling steps respectively.
  • The Power of the Upper Bound: Replacing the exact Fisher information with its Cramér-Rao upper bound naturally increases the guidance weight during the critical early phase. This allows the model to accumulate more information gain early on, leading to faster convergence and better alignment with the condition.

Key Results

Quantitative Speed and Quality Boosts

  • Style-Guided Generation (Stable Diffusion): At $T=100$ steps, FICD reduced generation time from 63 seconds (FreeDom) to 27 seconds, while improving the CLIP score from 28.07 to 29.59 and maintaining a superior Style score. At $T=30$ steps, FICD still delivered strong performance in just 11 seconds.
  • ControlNet Multi-Guidance: For face-related tasks, FICD improved the pose distance metric from 54.21 to 40.01 compared to FreeDom, while cutting the execution time from 193 seconds down to just 42 seconds.

Qualitative Advantages

As illustrated in Figure 2, previous fast acceleration methods like MPGD fail completely on non-linear tasks because they break the linear hypothesis theory. FICD, however, successfully generates high-quality images that strictly adhere to complex conditions like sketches and parsing maps without the heavy computational overhead.

Figure 2: Qualitative examples of using a single condition human face images. The included conditions are (a) text, (b) face parsing maps, and (c) sketches. We compare the results with those of three baselines. It can be found that MPGD is invalid since these tasks break the linear hypothesis theory, and FICD performs well.

Limitations and Future Work

The primary limitation acknowledged by the authors is that completely dropping the exact score function gradient inherently results in some information loss. While this approximation works beautifully for single or simple conditions, it can introduce optimization conflicts when handling highly complex, multi-conditional setups simultaneously (e.g., trying to satisfy a strict pose, a specific face ID, and a text prompt all at once). The authors plan to investigate methods to mitigate these multi-condition conflicts in future work.

Summary updated

BibTeX
@misc{song2024improving,
  author = {Kaiyu Song and Hanjiang Lai},
  title = {{Improving Training-free Conditional Diffusion Model via Fisher Information}},
  year = {2024},
  eprint = {2404.18252},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.18252},
}
Figure