第 16 章 の敵対的な生成器(generator)は、ノイズをデータへ写像する生成器に直接的な回帰目標(regression target)がないため、識別器(discriminator)またはクリティックという 2 つ目のネットワークを必要とした。拡散モデル(diffusion model)とフローマッチングモデルは、各訓練例をガウスノイズで段階的に破壊することによって回帰目標を構築する。小さなガウスノイズのステップを逆転させるには、ノイズを含む観測が与えられたもとでのクリーンなデータの条件付き期待値(conditional expectation)を推定する必要がある。
この視点は、非平衡熱力学とノイズ除去拡散確率モデル(denoising diffusion probabilistic model、DDPM)(Sohl-Dickstein ほか 2015年; Ho ほか 2020年)、スコアベース生成モデリング(score-based generative modeling)(Song と Ermon 2019年; Song ほか 2021年)、およびフローマッチングや確率的補間(stochastic interpolant)(Lipman ほか 2023年; Liu ほか 2023年; Albergo ほか 2023年) という 3 つの研究系譜を統合するものである。これら 3 つの定式化のいずれにおいても、単一のニューラルネットワークがクリーンなデータ(または等価的に、付加されたノイズ、スコア関数 \(\nabla_{\mathbf{x}} \log p_t(\mathbf{x})\)、あるいは経路に沿った速度)をあらゆるノイズレベル \(t \in [0, 1]\) で予測するように学習し、数値サンプラがその予測を \(t = 1\) の純粋なノイズから \(t = 0\) のデータへと逆向きに積分する。
敵対的なミニマックス目的関数を回帰に置き換えることで、GAN の 3 つの限界が解消される。すなわち、訓練に必要なのは二乗誤差で最適化される単一のネットワークのみであり、重み付き回帰損失は対数尤度(log-likelihood)の変分境界(さらに確率フロー ODE を通じた厳密な対数尤度)を与え、尤度目的関数は欠落したモードにペナルティを科す。本章全体を通じて、デフォルトの定式化では DDPM における分散保持(variance-preserving)経路上のノイズ予測器と並行して、線形経路 \(\mathbf{x}_t = (1 - t)\mathbf{x}_0 + t\boldsymbol\epsilon\) に沿った速度を回帰する (Esser ほか 2024年)。
最初の 3 節では、真の密度、スコア関数、事後平均(posterior mean)、速度場(velocity field)が閉形式で得られる 3 つのガウス分布の 2 次元混合分布を用いて、数学的・アルゴリズム的な中核を完全に構築する。17.4 節 では Fashion-MNIST 画像へと進み、時間条件付き U-Net、フレシェ距離(Fréchet distance)による評価、および分類器なしガイダンス(classifier-free guidance)を導入する。続く 4 節では、サンプラ(17.5 節)、尤度境界と設計空間(17.6 節)、潜在拡散(latent diffusion)と Transformer バックボーン(17.7 節)、およびフロー写像(flow map)による少数ステップ蒸留(17.8 節)を検討する。最後に 17.9 節 では、ガウスノイズをトークンマスキングに置き換えることで、拡散を離散トークンへと拡張する。より長い数学的証明は 第 38 章 に掲載されており、外部のチュートリアル、講義、参照実装は 17.10 節 にまとめられている。
Albergo, Michael S., Nicholas M. Boffi, と Eric Vanden-Eijnden. 2023年. 「Stochastic interpolants: a unifying framework for flows and diffusions」. arXiv preprint arXiv:2303.08797.
Esser, Patrick, Sumith Kulal, Andreas Blattmann, ほか. 2024年.
「Scaling Rectified Flow Transformers for High-Resolution Image Synthesis」.
Proceedings of the 41st International Conference on Machine Learning, Proceedings of Machine Learning Research, vol. 235: 12606–33.
https://arxiv.org/abs/2403.03206.
Ho, Jonathan, Ajay Jain, と Pieter Abbeel. 2020年.
「Denoising diffusion probabilistic models」.
Advances in Neural Information Processing Systems 33: 6840–51.
https://arxiv.org/abs/2006.11239.
Lipman, Yaron, Ricky T. Q. Chen, Heli Ben-Hamu, Maximilian Nickel, と Matt Le. 2023年. 「Flow matching for generative modeling」. International Conference on Learning Representations.
Liu, Xingchao, Chengyue Gong, と Qiang Liu. 2023年. 「Flow straight and fast: learning to generate and transfer data with rectified flow」. International Conference on Learning Representations.
Sohl-Dickstein, Jascha, Eric Weiss, Niru Maheswaranathan, と Surya Ganguli. 2015年.
「Deep unsupervised learning using nonequilibrium thermodynamics」.
International Conference on Machine Learning, 2256–65.
https://proceedings.mlr.press/v37/sohl-dickstein15.html.
Song, Yang, と Stefano Ermon. 2019年.
「Generative modeling by estimating gradients of the data distribution」.
Advances in Neural Information Processing Systems 32.
https://arxiv.org/abs/1907.05600.
Song, Yang, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, と Ben Poole. 2021年.
「Score-Based Generative Modeling through Stochastic Differential Equations」.
International Conference on Learning Representations.
https://arxiv.org/abs/2011.13456.