Introduction
Diffusion models have proven incredibly powerful at learning data distributions and generating unconditional samples (i.e., sampling from a prior $p(x)$). However, their real-world utility often hinges on solving downstream inverse problems. For example, given a noisy or incomplete observation $y$—such as a blurry photograph or an undersampled MRI scan—practitioners want to use a pre-trained diffusion model to sample from the posterior distribution $p(x \mid y)$.
While many recent papers have proposed heuristic algorithms to approximate this posterior sampling by modifying the reverse diffusion process, these methods sometimes fail in practice. More importantly, none are mathematically guaranteed to converge in polynomial time. This paper tackles a fundamental theoretical question: Is it actually possible to design a fast, robust posterior sampling algorithm that works for any distribution a diffusion model can learn? The authors prove that, in the general case, efficient posterior sampling is computationally intractable under standard cryptographic assumptions.
Theoretical Framework and Methods
This work approaches the problem through the lens of theoretical computer science, relying heavily on complexity theory and cryptographic reductions.
The authors construct a specific, mathematically rigorous "well-modeled" distribution. A distribution is considered well-modeled if its smoothed score function (the gradients that the diffusion model learns) can be efficiently represented by a polynomial-sized neural network. For such distributions, standard unconditional sampling via diffusion is provably fast.
To prove that posterior sampling is hard, the authors embed a cryptographic "one-way function"—a function that is easy to compute but hard to invert—into the phase of a discretized Gaussian distribution.
They mathematically prove that if an algorithm could efficiently sample from the posterior of this distribution given a simple linear measurement, that algorithm could be used to invert the embedded one-way function. Because inverting one-way functions is a foundational assumption of modern cryptography (i.e., it is assumed to be computationally intractable), posterior sampling in this generalized setting must also be intractable.
Key Insights and Results
The paper bridges generative AI and cryptography, revealing that the computational landscapes for unconditional and conditional sampling are fundamentally different. Just because a diffusion model can easily learn and sample from a prior distribution does not mean it can efficiently sample from its posterior. The failure to find a fast, universal posterior sampler is not merely a lack of clever engineering; it is deeply tied to the existence of one-way functions.
The authors establish several rigorous bounds:
- Superpolynomial Lower Bound: Assuming standard one-way functions exist, there is a well-modeled distribution and a linear measurement model with $m$ measurements where any posterior sampling algorithm requires superpolynomial time in the dimension $d$.
- Exponential Hardness: Under the stronger, yet widely believed, assumption that some one-way functions require $2^{\Omega(m)}$ time to invert, the authors prove that posterior sampling also requires at least $2^{\Omega(m)}$ time.
- Matching Upper Bound: The most naive approach to posterior sampling is rejection sampling: generating unconditional samples repeatedly until one randomly matches the observation $y$. The authors prove that this naive algorithm achieves posterior sampling in time exponential in $m$. Up to a small logarithmic factor, this matches their lower bound, proving that rejection sampling is essentially the optimal general-purpose algorithm for worst-case scenarios.
Limitations and Future Directions
As a purely theoretical work, no empirical datasets were used. The primary limitation—which the authors readily acknowledge—is that the "hard" distribution they constructed is highly artificial. It was specifically engineered to encode a cryptographic function and looks nothing like "nice" real-world data distributions, such as natural images or audio.
Because practitioners successfully run approximate posterior sampling algorithms on real images every day, real-world data must possess specific structural properties that bypass these worst-case cryptographic lower bounds. The authors suggest that future theoretical work must move away from seeking general-purpose samplers. Instead, the field should focus on identifying the specific distributional assumptions (the "niceness" of real data) that make efficient posterior sampling possible, and design algorithms explicitly tailored to those assumptions.
Summary updated