論文解説
An Introduction to Deep Generative Modeling
深層生成モデリング入門
- 課題 潜在変数とデータの間に対応がない状態で、生成器をどう学習するかが中心となる問題です。
- 手法 正規化フロー、変分オートエンコーダ、敵対的生成ネットワークという3つのアプローチを、生成器の構造と目的関数の観点から比べます。
- 結果 moonsの例では、real NVPとOT-Flowが2つの半月形の分布を生成しました。MNISTの例では、VAEのサンプルはぼやけ、GANのサンプルは鮮明ですが、一部は数字になっていません。
生成モデルの問題設定
深層生成モデル(DGM)は、多くの隠れ層を持つニューラルネットワークで、複雑な高次元の確率分布をサンプルから近似するモデルです。この論文は、生成器gが単純な潜在分布Zからサンプルを受け取り、データ分布Xに似た点を作るように学習されなければならない、という問題から出発します。鍵となる難しさは、潜在変数zとデータxの間の対応関係が、たいていは分かっていないことです。そのため、生成サンプルと実際のデータの違いを測る目的関数を設計することが、学習の中心的な課題になります。著者らは、この課題を正規化フロー、変分オートエンコーダ、敵対的生成ネットワークの3つのアプローチに分けて定式化しています。
可逆な生成器と正規化フロー
正規化フローは、生成器g_θを微分同相写像と仮定し、潜在空間の次元qがデータ空間の次元nと等しいものとして扱います。この仮定のもとでは、変数変換公式によって、積分なしで尤度を近似できます。有限正規化フローは、ヤコビ行列式の計算が容易な層f_jを合成してg_θを作り、逆変換と対数行列式を計算して最尤損失を最小化します。real NVPは、入力を2つのブロックに分け、1つのブロックを変えるアフィン変換を交互に適用するため、逆変換とヤコビ行列式を容易に得られます。この手法は、潜在空間とデータ空間の次元が等しい問題にだけ直接適用できると説明されています。
連続正規化フローと最適輸送
連続正規化フロー(CNF)は、常微分方程式の解として生成器を定義します。速度場v_θを積分して、zからy(T)への変換を得ます。逆変換は、終端値問題を逆向きに積分して求めます。対数行列式は、ヤコビの公式を使って、速度場の発散についての積分として計算されます。最適輸送と結びつけるために、著者らはL2の輸送コストを加えた正則化問題を示し、この問題では特性曲線が直線になると説明しています。OT-Flowは、フローをポテンシャルの勾配として定義し、Hamilton-Jacobi-Bellman条件をペナルティとして入れて学習するアプローチとして紹介されています。
変分オートエンコーダとエビデンス下界
変分オートエンコーダ(VAE)は、生成器が非可逆なときに尤度を直接計算できないという問題を扱います。そのために、エンコーダe_ψ(z|x)で潜在の事後分布を近似し、エビデンス下界(ELBO)を最大化することで、生成器と近似事後分布をあわせて学習します。損失は、再構成項と、近似事後分布を潜在分布の方へ引き寄せるKL項に分かれます。MNISTの実験では、近似事後分布をガウス分布とし、再パラメータ化トリックで、サンプルを平均と共分散、および標準正規ノイズの関数として表すことで、微分を可能にしています。
敵対的生成ネットワークと鞍点の学習
敵対的生成ネットワーク(GAN)は、尤度を計算せず、データ空間で生成分布と実際の分布を見分ける識別器をあわせて学習します。元の形式は2値分類の交差エントロピー損失を使い、識別器は最大化、生成器は最小化する鞍点問題になります。Wasserstein GANは、Wasserstein-1距離をKantorovich-Rubinsteinの形式で書き、リプシッツ定数が1であるという条件を満たすニューラルネットワークf_φで近似します。ただし、このリプシッツ制約を十分に保証するのは難しいと説明されています。
moonsの例の検証設定と結果
moonsの例は、2つの半月形の分布を2次元の潜在空間から生成する実験です。real NVPの実験では6つの層を使い、各層のスケールと移動のニューラルネットワークは、隠れ次元128のアフィン層3つで構成されます。学習する重みは205,848個で、ADAMで20,000回の最尤学習のステップを行い、各ステップで256個の点のミニバッチを使います。結果は、生成サンプルと逆変換のヒストグラムで可視化され、潜在変数がガウス分布とおおむね一致するものの、完全には一致しないことを示しています。OT-Flowの実験では、約1,229個の学習パラメータを使います。この実験の結果は、同じデータでの他の手法との定量的な比較としては解釈されません。

Figure 2 : Visualizing the training data of the two moons dataset in Example 1. Here, the data distribution (samples represented by blue squares in right subplot) form two disjoint half moon shaped clusters. As the dataset does not live on a lower dimensional manifold, we assume an intrinsic dimension of two and try to find a generator from the q = 2 dimensional normal distribution (left subplot) to the data. In practice, it is common to model the generator as an invertible transformation, which simplifies the training; see Section 3.
出典 · CC BY 4.0 · Lars Ruthotto, Eldad Haber · An Introduction to Deep Generative Modeling · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。
Figure 5 : Normalizing flow results for the moon problem described in Example 1. Here, we use a real NVP approach with six hidden layers to transform samples from the standard normal distribution (red dots) to match the given data (blue squares). In the first subplot from the left, we show one batch of the training data. In the second subplot, we show the likelihood estimate superimposed by generated samples (blue square). Here, it is worth noting that, due to the flow model’s smoothness, the two half-moons appear to be connected. In the third subplot, we show the generator’s hidden layers for six randomly chosen latent variables as inputs (red dots). Due to the alternating fashion of the layers, the transformation for every layer is limited to one of the coordinates. In the fourth subplot, we show a two-dimensional histogram of the inverse transformation applied to 50,000 samples from the moon data set, superimposed by a few randomly chosen examples. As expected, the latent variables do approximately, but not perfectly, match a Gaussian distribution; see, for example, a narrow blue line passing approximately vertically through the origin that separates the parts associated with each cluster of the dataset.
出典 · CC BY 4.0 · Lars Ruthotto, Eldad Haber · An Introduction to Deep Generative Modeling · 論文の図を引用 · 元のPDFの10ページ目から図の部分を抽出しています。![Figure 6: Continuous normalizing flow results for the moon problem described in Example 1. Here, we use
the OT-Flow approach [36] to transform samples from the…](/papers/02e18aa5-91fb-46d1-afb1-87e9dbd71146/figures/figure-013d72d9fbef0864afa03718c71d5acf.png?thumb=512)
Figure 6 : Continuous normalizing flow results for the moon problem described in Example 1. Here, we use the OT-Flow approach [36] to transform samples from the standard normal distribution (red dots) to match the given data (blue squares). In the first subplot from the left, we show one batch of the training data. In the second subplot, we show the likelihood estimate superimposed by generated samples (blue square). Despite the smoothness of the model, the two half-moons appear almost disconnected. In the third subplot, we show the hidden layers of the generator for six randomly chosen latent variables as inputs (red dots). Since the training is regularized by the transport costs, the characteristics are almost straight lines, which allows to invert the flow by integrating backwards in time. In the fourth subplot, we show a two-dimensional histogram of the inverse transformation applied to 50,000 samples from the moon data set, superimposed by a few randomly chosen examples. As expected, the latent variables do approximately, but not entirely, match a Gaussian distribution. In particular, note the narrow gap in the center of the domain that separates the parts associated with each cluster of the dataset.
出典 · CC BY 4.0 · Lars Ruthotto, Eldad Haber · An Introduction to Deep Generative Modeling · 論文の図を引用 · 元のPDFの12ページ目から図の部分を抽出しています。MNISTの例の生成結果と限界
MNISTの実験は、28×28ピクセルの手書き数字の画像を、2次元の潜在空間から生成する例です。VAEで学習した生成器のサンプルは、実際の画像よりぼやけて見えますが、それでも大半のサンプルで手書き数字を判別できると報告されています。一方、GAN系のサンプルはより鮮明ですが、数字に見えないサンプルも含まれています。近似事後分布のサンプルの分布は標準正規分布と異なって見えるため、潜在空間のサンプリングに対する懸念が残ります。

Figure 3 : Illustration of the MNIST image generation process in Example 2. Here, the intrinsic dimension of the dataset (right) is unknown but assumed to be much less than the number of pixels per image, n = 784. In our example, we define the latent variable to be distributed according to the q = 2-dimensional standard normal distribution (left). Compared to the moons example (see Figure 2), the generator cannot be assumed to be invertible. This complicates the density estimation and the training process.
出典 · CC BY 4.0 · Lars Ruthotto, Eldad Haber · An Introduction to Deep Generative Modeling · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。
Figure 7 : Illustrating the error caused by the approximated posterior (21) in the variational autoencoder for two example images from the MNIST dataset (row-wise). For the images in the left column, we compute the log posterior (up to a constant shift) on a rectangular grid and depict its maximum a posteriori (MAP) estimate with a blue square (second column). The third column shows the reconstruction associated with the MAP estimate, which looks comparable to the true image in both cases. For these examples, the approximate posteriors and their MAP points (red dots in the second and fourth column) are slightly different from the true posterior. The impact of this error is different in both cases. In the example shown in the first row, we observe a substantial reconstruction error (right column) leading to an incorrect digit. The situation is slightly better for the example in the bottom row, where the reconstruction error is minimal. However, we note that the true posteriors in both cases are far from being Gaussian. This motivates the use of more sophisticated approximate posteriors.
出典 · CC BY 4.0 · Lars Ruthotto, Eldad Haber · An Introduction to Deep Generative Modeling · 論文の図を引用 · 元のPDFの16ページ目から図の部分を抽出しています。
Figure 9 : Comparison of true MNIST images (top left) to randomly drawn samples from the trained VAE, DCGAN, and WGAN (first, second, and third column, respectively). While most samples from the generator trained using the VAE framework clearly show hand-written digits, the images tend to be blurry. While the best images generated using the GAN approaches are indistinguishable from the true MNIST images, there are more samples in which no hand-written digit is shown. The human eye can easily detect those as fakes.
出典 · CC BY 4.0 · Lars Ruthotto, Eldad Haber · An Introduction to Deep Generative Modeling · 論文の図を引用 · 元のPDFの18ページ目から図の部分を抽出しています。3つのアプローチの比較と適用範囲
正規化フローは、可逆性とヤコビ行列式の計算が可能な場合に尤度を直接扱えますが、潜在次元がデータの固有次元と等しくなければならないという制限があります。VAEは、非可逆な生成器と異なる潜在次元を扱えますが、近似事後分布の誤差が残ります。GANは尤度を計算せず、サンプルだけで生成器を学習しますが、鞍点問題のために学習が難しく、ハイパーパラメータに敏感だと著者らは説明しています。最尤学習ではKL発散が非対称なので、生成器のサポートに影響するという点も、あわせて考慮する必要があります。
論文情報
- 著者
- Lars Ruthotto, Eldad Haber
- 学会・ジャーナル
- arXiv · プレプリント
- 公開日
- 2021年3月9日
- 登録日
- 2026年11月6日
- 更新日
- 2021年4月12日
- バージョン
- v2
- arXiv
- 2103.05180
- カテゴリ
- cs.LG
- ライセンス
- CC BY 4.0
- 掲載内容
- 論文情報・解説・論文の図
この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。
アブストラクト
Deep generative models (DGM) are neural networks with many hidden layers trained to approximate complicated, high-dimensional probability distributions using a large number of samples. When trained successfully, we can use the DGMs to estimate the likelihood of each observation and to create new samples from the underlying distribution. Developing DGMs has become one of the most hotly researched fields in artificial intelligence in recent years. The literature on DGMs has become vast and is growing rapidly. Some advances have even reached the public sphere, for example, the recent successes in generating realistic-looking images, voices, or movies; so-called deep fakes. Despite these successes, several mathematical and practical issues limit the broader use of DGMs: given a specific dataset, it remains challenging to design and train a DGM and even more challenging to find out why a particular model is or is not effective. To help advance the theoretical understanding of DGMs, we introduce DGMs and provide a concise mathematical framework for modeling the three most popular approaches: normalizing flows (NF), variational autoencoders (VAE), and generative adversarial networks (GAN). We illustrate the advantages and disadvantages of these basic approaches using numerical experiments. Our goal is to enable and motivate the reader to contribute to this proliferating research area. Our presentation also emphasizes relations between generative modeling and optimal transport.
この論文を引用
Lars Ruthotto, Eldad Haber (2021). An Introduction to Deep Generative Modeling. arXiv:2103.05180v2. https://arxiv.org/abs/2103.05180v2
BibTeX
@misc{ruthotto2021introduction,
title = {{An Introduction to Deep Generative Modeling}},
author = {Lars Ruthotto and Eldad Haber},
year = {2021},
eprint = {2103.05180},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2103.05180v2}
}