PaddingFlow: Improving Normalizing Flows with Padding-Dimensional Noise

13 Mar 2024  ·  Qinglong Meng, Chongkun Xia, Xueqian Wang ·

Normalizing flow is a generative modeling approach with efficient sampling. However, Flow-based models suffer two issues: 1) If the target distribution is manifold, due to the unmatch between the dimensions of the latent target distribution and the data distribution, flow-based models might perform badly. 2) Discrete data might make flow-based models collapse into a degenerate mixture of point masses. To sidestep such two issues, we propose PaddingFlow, a novel dequantization method, which improves normalizing flows with padding-dimensional noise. To implement PaddingFlow, only the dimension of normalizing flows needs to be modified. Thus, our method is easy to implement and computationally cheap. Moreover, the padding-dimensional noise is only added to the padding dimension, which means PaddingFlow can dequantize without changing data distributions. Implementing existing dequantization methods needs to change data distributions, which might degrade performance. We validate our method on the main benchmarks of unconditional density estimation, including five tabular datasets and four image datasets for Variational Autoencoder (VAE) models, and the Inverse Kinematics (IK) experiments which are conditional density estimation. The results show that PaddingFlow can perform better in all experiments in this paper, which means PaddingFlow is widely suitable for various tasks. The code is available at: https://github.com/AdamQLMeng/PaddingFlow.

PDF Abstract

Results from the Paper


 Ranked #1 on Density Estimation on MNIST (MMD-L2 metric)

     Get a GitHub badge
Task Dataset Model Metric Name Metric Value Global Rank Benchmark
Density Estimation BSDS300 PaddingFlow CD 0.495 # 1
EMD 0.0248 # 1
MMD-CD 0.48 # 1
MMD-EMD 0.0212 # 2
Density Estimation Caltech-101 PaddingFlow MMD-L2 17.9 # 1
COV-L2 98.7% # 2
Density Estimation Freyfaces PaddingFlow MMD-L2 0.621 # 1
COV-L2 100% # 1
Density Estimation MNIST PaddingFlow MMD-L2 11.0 # 1
COV-L2 100% # 1
Density Estimation OMNIGLOT PaddingFlow MMD-L2 20.3 # 1
COV-L2 98.8% # 2
Density Estimation UCI GAS PaddingFlow CD 0.89 # 1
EMD 0.131 # 1
MMD-CD 0.39 # 1
MMD-EMD 0.121 # 1
Density Estimation UCI HEPMASS PaddingFlow CD 13.8 # 1
EMD 0.161 # 1
MMD-CD 13.7 # 1
MMD-EMD 0.153 # 1
Density Estimation UCI MINIBOONE PaddingFlow CD 24.5 # 1
EMD 0.268 # 1
MMD-CD 24.0 # 1
MMD-EMD 0.255 # 2
Density Estimation UCI POWER PaddingFlow CD 0.142 # 1
EMD 0.105 # 1
MMD-CD 0.135 # 1
MMD-EMD 0.098 # 1

Methods