# Diffusion Posterior Sampling is Computationally Intractable

확산 사후 샘플링은 계산적으로 다루기 어렵다

Shivam Gupta, Ajil Jalal, Aditya Parulekar, Eric Price, Zhiyang Xun · arXiv · 2024년 2월 20일

- **연구 문제** 노이즈가 섞인 선형 측정이 주어졌을 때 확산 모델로 사후 분포를 다항 시간에 샘플링할 수 있는지가 불분명합니다.
- **연구 방법** 논문은 well-modeled 분포와 선형 측정 모델을 정의한 뒤, rejection sampling의 지수 시간 상한과 one-way function 가정 아래의 사후 샘플링 하한을 증명합니다.
- **주요 결과** rejection sampling은 m에 대해 지수 시간으로 사후 샘플러가 되며, one-way function 가정 아래 하드 분포에서 사후 샘플링은 초다항 시간이 걸립니다.

## 사후 샘플링의 질문

노이즈가 섞인 선형 측정 y가 주어졌을 때 사전 분포 p(x)에서 사후 분포 p(x\|y)를 샘플링하는 문제는 inpainting, super-resolution, MRI 재구성 같은 작업에서 중요합니다. 최근 여러 알고리즘이 이를 휴리스틱하게 근사해 왔지만, 다항 시간에 올바른 분포로 수렴한다고 알려진 방법은 없습니다. 이 논문은 이 공백을 계산 복잡도 관점에서 다룹니다. 무조건 샘플링은 확산 모델의 근사 score로 빠르게 수행할 수 있는 반면, 사후 샘플링에 대해서는 근본적인 난해성이 존재하는지를 묻습니다.

## well-modeled 분포와 측정 모델

논문은 smoothed score가 다항 크기 신경망으로 다항 정밀도까지 표현되는 분포를 well-modeled 분포라고 정의합니다. 측정 모델은 y = Ax + η이며 η는 βN(0, I\_m)입니다. 사후 샘플러는 대부분의 y에 대해 참 조건부 분포 p(x\|y)와 (τ, δ) 근접한 샘플을 내야 합니다. 이 정의들이 있어야 무조건 샘플러의 오차를 사후 샘플링 오차로 옮겨 생각할 수 있습니다.

## rejection sampling의 상한

rejection sampling은 무조건 샘플 x를 얻은 뒤 우도 e^{-∥Ax-y∥²/2β²}에 따라 수락하거나 기각합니다. Theorem 1.7은 O(C)-well-modeled 분포와 β \> 1/d^C인 선형 측정에서 이 절차가 poly(d)(O(1)/β√δ)^m 시간에 사후 샘플러가 된다고 보입니다. 즉 상한의 지수는 측정 수 m에 의존합니다. 이 결과는 well-modeled 분포라는 조건과 δ \> 1/d^C라는 조건이 있을 때 성립합니다.

## 하드 분포에서의 하한

Theorem 1.8은 one-way function이 존재한다고 가정할 때 m \> d^0.01인 임의의 설정에 대해 well-modeled 분포와 β = Θ(1/log²d)인 측정 모델이 있어, (1/10, 1/10)-사후 샘플링이 d에 대해 초다항 시간을 요구한다고 말합니다. Theorem 1.9는 2^{Ω(m)} 시간에 역상되는 one-way function을 가정하면 사후 샘플링이 2^{Ω(m)} 시간이 걸린다고 보입니다. 이 하한은 하드 분포 g가 구성된 특정 설정에서 얻어진 결과입니다.

## 사후 샘플링에서 역상으로의 환원

하드 분포는 seed s와 f(s)를 함께 담는 분포입니다. 처음 d개 좌표는 평균 R·s\_i인 가우시안이고, 나머지 좌표는 f(s)에 따라 위상이 달라지는 이산화 가우시안입니다. 측정은 마지막 d' 좌표에 노이즈를 더한 값입니다. Lemma 3.4는 (1/10, 1/10) 사후 샘플러가 있으면 z = f(s)를 입력받아 f의 역상을 구하는 알고리즘을 만들 수 있다고 보입니다. 따라서 사후 샘플러의 실행 시간은 역상 알고리즘의 실행 시간을 하한으로 가집니다.

![Figure 1: The distribution of each coordinate in gs, has independent coordinates. For any seed s ∈ {±1} d , the first d bits are normal distributions whose…](https://refivu.com/papers/ac02f2c2-04dc-4800-8421-4bd7e87ecef5/figures/figure-e3283d121a4baef9b22db4695578012c.png?thumb=512)

**Figure 1** : The distribution of each coordinate in gs, has independent coordinates. For any seed s ∈ {±1} d , the first d bits are normal distributions whose mean is specified by si , and the last d ′ bits are a discretized standard normal where the discretization is specified by f(s)j . The full distribution g is a mixture over all seeds s of gs.

[원문](https://arxiv.org/abs/2402.12727v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shivam Gupta, Ajil Jalal, Aditya Parulekar, Eric Price, Zhiyang Xun · Diffusion Posterior Sampling is Computationally Intractable · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

![Figure 3: ψ1 and ψ−1 are discretized Gaussians with discretization width ε and phase 0 and ε/2 respectively. If we convolve with N (0, σ2 ), we get a distrib…](https://refivu.com/papers/ac02f2c2-04dc-4800-8421-4bd7e87ecef5/figures/figure-e1acf48054aa7ee68336f8b6e410df82.png?thumb=512)

**Figure 3** : ψ1 and ψ−1 are discretized Gaussians with discretization width ε and phase 0 and ε/2 respectively. If we convolve with N (0, σ2 ), we get a distribution close to Gaussian when σ ≥ ε for each of ψ1, ψ−1.

[원문](https://arxiv.org/abs/2402.12727v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shivam Gupta, Ajil Jalal, Aditya Parulekar, Eric Price, Zhiyang Xun · Diffusion Posterior Sampling is Computationally Intractable · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## 하드 분포가 well-modeled인 이유

Corollary 3.6은 하드 분포 g̃가 큰 상수 C에 대해 O(C)-well-modeled임을 보입니다. 증명은 큰 σ에서는 분포가 가우시안 혼합에 가까워 곱 분포처럼 다룰 수 있고, 작은 σ에서는 orthant를 식별하는 방식으로 score를 근사한다는 구성에 기반합니다. 이 score는 ReLU 네트워크로 표현됩니다. 따라서 하드니스가 score를 표현하지 못해서 생기는 것이 아니라는 점이 이 절의 논지입니다.

![Figure 2: Piecewise-Linear Approximations of Scores σ](https://refivu.com/papers/ac02f2c2-04dc-4800-8421-4bd7e87ecef5/figures/figure-ad577598ff9f4093d822fe195caea78b.png?thumb=512)

**Figure 2** : Piecewise-Linear Approximations of Scores σ

[원문](https://arxiv.org/abs/2402.12727v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shivam Gupta, Ajil Jalal, Aditya Parulekar, Eric Price, Zhiyang Xun · Diffusion Posterior Sampling is Computationally Intractable · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

논문은 하드 분포가 one-way function에서 구성되어 자연 데이터 분포처럼 보이지 않는다고 스스로 밝힙니다. 따라서 결과는 최악의 분포에 대한 하드니스이며, 실제 확산 모델에서 근사 사후 샘플링이 잘 작동하는 이유를 설명하지는 않습니다. 저자들은 사후 샘플링의 긍정적 이론을 위해서는 데이터의 분포적 가정이 필요하다고 해석합니다. 또한 상한과 하한은 서로 다른 조건에서 얻어졌으므로 둘 사이의 간격 전체를 닫은 것은 아닙니다.

## 논문 정보

- **저자**: Shivam Gupta, Ajil Jalal, Aditya Parulekar, Eric Price, Zhiyang Xun
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2024년 2월 20일
- **등록일**: 2026년 10월 30일
- **수정일**: 2025년 11월 9일
- **버전**: v2
- **arXiv**: 2402.12727
- **분류**: cs.LG · cs.AI · math.ST · stat.ML
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2402.12727v2) · [원문 PDF ↗](https://arxiv.org/pdf/2402.12727v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Diffusion models are a remarkably effective way of learning and sampling from a distribution $p(x)$. In posterior sampling, one is also given a measurement model $p(y \\mid x)$ and a measurement $y$, and would like to sample from $p(x \\mid y)$. Posterior sampling is useful for tasks such as inpainting, super-resolution, and MRI reconstruction, so a number of recent works have given algorithms to heuristically approximate it; but none are known to converge to the correct distribution in polynomial time. In this paper we show that posterior sampling is computationally intractable: under the most basic assumption in cryptography -- that one-way functions exist -- there are instances for which every algorithm takes superpolynomial time, even though unconditional sampling is provably fast. We also show that the exponential-time rejection sampling algorithm is essentially optimal under the stronger plausible assumption that there are one-way functions that take exponential time to invert.

## 원문 인용

Shivam Gupta, Ajil Jalal, Aditya Parulekar, Eric Price, Zhiyang Xun (2024). Diffusion Posterior Sampling is Computationally Intractable. arXiv:2402.12727v2. https://arxiv.org/abs/2402.12727v2

**BibTeX**

```
@misc{gupta2024diffusion,
  title = {{Diffusion Posterior Sampling is Computationally Intractable}},
  author = {Shivam Gupta and Ajil Jalal and Aditya Parulekar and Eric Price and Zhiyang Xun},
  year = {2024},
  eprint = {2402.12727},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.12727v2}
}
```

## 이 논문의 용어

- [확산 모델](https://refivu.com/terms/a03936900d94-diffusion-model)
- [rejection sampling](https://refivu.com/terms/40f65d094f14-rejection-sampling)
- [Langevin dynamics](https://refivu.com/terms/ef119eb66d5d-langevin-dynamics)
- [posterior sampling](https://refivu.com/terms/3046e6c171f0-posterior-sampling)
- [Sequential Monte Carlo](https://refivu.com/terms/d4d9d006bb48-sequential-monte-carlo)
- [ReLU network](https://refivu.com/terms/c9d08ea1818f-relu-network)

## 다른 논문 해설

- [Understanding and Mitigating Memorization in Diffusion Models for Tabular Data](https://refivu.com/papers/2e0c0b7d-5f43-4c79-8153-0c1c40c51b92-understanding-and-mitigating-memorization-in-diffusion.md)
- [FlexiFlow: decomposable flow matching for generation of flexible molecular ensemble](https://refivu.com/papers/535ef434-6ca5-4fe8-ab5c-9610f3f3d068-flexiflow-decomposable-flow-matching-for-generation-of.md)
- [Adversarial Training for Process Reward Models](https://refivu.com/papers/7c1e0ad9-7845-4aad-83fa-ef13917667e0-adversarial-training-for-process-reward-models.md)
- [The Diffusion Duality](https://refivu.com/papers/f26ce130-61df-42ce-8b6b-010dee449d4d-the-diffusion-duality.md)
- [Amortized Variational Inference for Partial-Label Learning: A Probabilistic Approach to Label Disambiguation](https://refivu.com/papers/ff12f71e-13c8-478d-b246-8cd68a0ac11d-amortized-variational-inference-for-partial-label-learning-a.md)
- [VJEPA: Variational Joint Embedding Predictive Architectures as Probabilistic World Models](https://refivu.com/papers/7d1a7573-5ea9-499e-aa7c-6e83cdbefb6b-vjepa-variational-joint-embedding-predictive-architectures.md)
- [Internal Causal Mechanisms Robustly Predict Language Model Out-of-Distribution Behaviors](https://refivu.com/papers/a0ecf5aa-f965-4a46-b045-0717d0283a36-internal-causal-mechanisms-robustly-predict-language-model.md)
- [BanditSpec: Adaptive Speculative Decoding via Bandit Algorithms](https://refivu.com/papers/6700034d-7c08-40c5-aa82-a9a07368d19f-banditspec-adaptive-speculative-decoding-via-bandit.md)
- [Weight-sparse transformers have interpretable circuits](https://refivu.com/papers/57b058ed-824e-41f1-9bf7-37d4673924a5-weight-sparse-transformers-have-interpretable-circuits.md)
- [When, Where and Why to Average Weights?](https://refivu.com/papers/ea0222d8-22c9-471c-905e-e439a053b57c-when-where-and-why-to-average-weights.md)
- [Plantain: Plan-Answer Interleaved Reasoning](https://refivu.com/papers/384622e7-377a-495a-9a0f-a608b143e26f-plantain-plan-answer-interleaved-reasoning.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/ac02f2c2-04dc-4800-8421-4bd7e87ecef5-diffusion-posterior-sampling-is-computationally-intractable)
