Training with MAF, sampling with IAF #62
-
|
Is it possible to get both the training speed benefits of using a Masked Autoregressive Flow, and then after training, the sampling speed of the Inverse Autoregressive Flow? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hello @EthanMarx 👋 I don't think there is an easy way to find an efficient inverse for an autoregressive flow. However, it should be possible to train one! You could take your trained MAF |
Beta Was this translation helpful? Give feedback.
Hello @EthanMarx 👋
I don't think there is an easy way to find an efficient inverse for an autoregressive flow.
However, it should be possible to train one! You could take your trained MAF$z = f(x)$ and train an IAF $x = g(z)$ to solve $x = g(f(x))$ or $z = f(g(z))$ . Both training objectives have advantages. The former requires access to data points $x$ , but no back-propagation through $f$ . The latter requires back-propagation through $f$ , but only needs latent (Gaussian) samples $z$ .