BudgetFusion: Perceptually-Guided Adaptive Diffusion Models

Qinchan Li, Kenneth Chen, Changyue Su, Qi SunarXiv 2024

TL;DR

BudgetFusion is a perceptually-aware framework that dynamically determines the optimal number of denoising steps for text-to-image diffusion models based on the complexity of the input prompt. By predicting when human-perceivable quality improvements plateau before generation even begins, it reduces inference time by up to 64% without sacrificing visual fidelity or content diversity.

What Problem Does This Paper Address?

State-of-the-art diffusion models generate stunning, highly realistic images, but their iterative denoising process is computationally expensive and energy-intensive. Standard models apply a fixed number of denoising steps (often 50 to 100) regardless of what they are drawing.

However, not all text prompts require the same amount of computational effort. Generating a simple image like "a white and empty wall" reaches a perceptually acceptable quality much faster than a complex scene like "a colorful park with a crowd." Current efficiency techniques—such as model distillation or network pruning—apply a "one-size-fits-all" reduction that ignores this prompt-dependent complexity, often leading to inconsistent image quality. BudgetFusion addresses this gap by asking: How much do humans actually gain from additional denoising computations, per watt of energy, for a specific prompt?

Example of how prompt complexity impacts required computation.

Methods

BudgetFusion acts as a pre-generation guidance model. Given an input text prompt, it predicts how three distinct levels of human visual perception will evolve across diffusion timesteps, treating the trajectory as a time-series function.

  1. Multi-Scale Perceptual Metrics: The authors evaluate image quality across three scales:
  2. Pixel-level: Measured via Laplacian Signal-to-Noise Ratio (L-SNR) to evaluate sharpness and blur.
  3. Mid-level: Measured via DreamSim (D-SIM) to evaluate spatial layout and structural consistency.
  4. Semantic-level: Measured via CLIP caption similarity (I-CLIP) to ensure the image aligns with the text prompt's meaning.
  5. Predictive Architecture: The system uses a bidirectional LSTM (BiLSTM) network. It takes a CLIP-embedded text prompt and a position-embedded timestep vector to forecast the scores of the three perceptual metrics across potential denoising steps.
  6. Plateau Detection: Once the curves are predicted, BudgetFusion applies a statistical turning-point detection algorithm to find the "plateau point" ($t^*$) for each metric—the point where further iterations yield diminishing returns for human eyes. The final recommended step count is the maximum plateau point among the three metrics.
The BudgetFusion pipeline, mapping text prompts to predicted perceptual metric curves to find the optimal stopping step.

Datasets

To train the predictive model, the authors generated a large-scale synthetic dataset:

  • Prompts: 18,384 diverse text prompts systematically sampled from the COCO dataset using a CLIP-based cosine dissimilarity threshold to ensure semantic variety.
  • Images: Using Stable Diffusion 2 and the Euler Scheduler, images were generated across 12 sampled timesteps guided by a power law (up to 129 steps) using 4 random seeds. This yielded a total of 882,432 images (768×768 resolution).
  • Splits: 90% of the prompts were used for training the BiLSTM, and 10% (1,839 prompts) were reserved for evaluation.

Key Insights and Ideas

  • Perceptual Saturation Varies by Scale: Pixel-level details (sharpness) often stabilize much faster than high-level semantic alignment. By tracking all three scales, BudgetFusion ensures an image isn't cut off while it still looks semantically incorrect or structurally warped.
  • Pre-Computation is Cheap: Predicting the optimal timestep using the BiLSTM takes a mere 0.004 seconds. This negligible overhead unlocks massive computational savings during the actual image generation phase.
  • Adaptive Compute Beats Uniform Compute: Even when a uniform baseline is tuned to use the exact same average compute budget across a dataset, dynamically shifting those steps to harder prompts yields significantly better overall image quality.

Key Results

  • Time Savings: On an NVIDIA RTX 3090 GPU, BudgetFusion achieved an average generation time of 2.89 seconds per image, compared to 8.00 seconds for the standard empirical reference of 65 steps. This represents a 63.9% reduction in time and computational resource usage.
  • Efficiency Gains: BudgetFusion demonstrated superior quality-computation efficiency (perceptual gain per TFLOPS) compared to standard uniform baselines and alternative acceleration methods like DDIM, DeepCache, and DistriFusion.
  • User Validation: A crowd-sourced user study with 72 participants using a two-alternative forced-choice (2AFC) protocol revealed that:
  • Users preferred BudgetFusion images over a uniform baseline with equal compute 60.3% of the time.
  • When compared against the high-compute reference (65 steps), BudgetFusion fell well within the 1 Just-Noticeable-Difference (JND) threshold, meaning humans could rarely perceive any drop in quality.
User study results showing preference distributions and perceptual indistinguishability from the high-compute reference.

Limitations and Future Work

  • Sparse Timestep Sampling: The training dataset relied on non-uniform, sparse sampling of timesteps combined with linear interpolation. Denser, uniform sampling could provide finer-grained guidance.
  • Dataset Dependence: The optimal timesteps are inherently bounded by the characteristics of the training dataset. Adapting the framework to allow users to pre-define a strict compute budget or target a specific hardware profile remains an open challenge.
  • Extension to Video: BudgetFusion currently operates purely in the spatial domain for static images. Extending this to video generation would require modeling complex spatio-temporal perceptual metrics, which demands significantly more data and compute.

Summary updated

BibTeX
@misc{li2024budgetfusion,
  author = {Qinchan Li and Kenneth Chen and Changyue Su and Qi Sun},
  title = {{BudgetFusion: Perceptually-Guided Adaptive Diffusion Models}},
  year = {2024},
  eprint = {2412.05780},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.05780},
}
Figure