NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Flow Models for Arbitrary Conditional Likelihoods

Yang Li, Shoaib Akbar, Junier B. OlivaarXiv 2019

TL;DR

This paper introduces ACFlow, a novel flow-based generative model that can learn any conditional probability distribution $p(x_u | x_o)$ between arbitrary subsets of variables in a dataset. This is a significant advancement over existing methods that are limited to fixed conditioning sets, enabling more flexible modeling and improved performance on tasks like feature imputation.

What Problem Does This Paper Address?

In machine learning, understanding the relationships between different features in a dataset is crucial for many tasks, from generating new data to filling in missing information. Most generative models focus on learning the overall joint distribution $p(x)$ of all features. However, this often makes it difficult or impossible to efficiently compute conditional probabilities, such as the probability of a subset of features ($x_u$) given another subset ($x_o$), i.e., $p(x_u | x_o)$. Traditional methods for this are rigid, requiring a separate model for each specific combination of conditioning and target features. This quickly becomes computationally infeasible as the number of features grows. The paper addresses this by proposing a single, flexible model that can handle any arbitrary subset of features for conditioning.

Methods

The core of ACFlow is an extension of flow-based generative models. These models work by transforming a simple base distribution (like a Gaussian) into the complex data distribution through a series of invertible transformations. The key innovation here is the development of arbitrary conditional transformations. These transformations allow the model to learn dependencies between variables even when the conditioning set ($x_o$) and the target set ($x_u$) are arbitrary subsets of the full feature space.

To achieve this, ACFlow uses:

  • Zero Imputation: A technique to create a fixed-dimensional conditioning vector by padding the observed features with zeros where features are missing.
  • Conditional Transformations: Novel building blocks like conditional affine coupling and conditional linear transformations that can adapt to arbitrary conditioning sets.
  • Autoregressive Likelihoods: Similar to existing TANs (Transformation Autoregressive Networks), ACFlow uses an autoregressive approach to model the conditional distribution in the latent space, allowing for flexible and tractable likelihoods.

For the specific application of feature imputation, ACFlow introduces a novel "best guess" objective. Since flow models don't have an analytical mean for imputation, this objective uses an auxiliary loss to encourage the model's output to minimize the Mean Squared Error (MSE) with the true unobserved values, without sacrificing the diversity of generated samples.

Datasets

The paper evaluates ACFlow on a variety of datasets:

  • Synthetic Datasets: 2-dimensional datasets designed to have highly multi-modal conditional distributions.
  • Image Datasets: MNIST, Omniglot, and CelebA for image inpainting tasks.
  • Real-valued Tabular Datasets: UCI repository datasets (bsds, gas, hepmass, miniboone, power) for feature imputation and marginal likelihood evaluation.

Key Insights and Ideas

  • Unified Arbitrary Conditioning: The most significant insight is the ability to model any conditional distribution $p(x_u | x_o)$ with a single model. This breaks the limitation of fixed conditioning sets in previous approaches.
  • Flexibility in Imputation: ACFlow provides a unified framework for both single and multiple imputation. The "best guess" objective is a clever way to get a single, high-quality imputation without relying on an analytical mean, which is often unavailable in flow models.
  • State-of-the-Art Performance: The model achieves competitive or superior results across various tasks, including arbitrary conditional likelihood estimation and feature imputation, outperforming established methods.
  • Learning Multi-modal Distributions: ACFlow demonstrates a strong capability to capture complex, multi-modal conditional distributions, a weakness observed in some competing models like VAEAC.

Key Results

  • Arbitrary Conditional Likelihoods: ACFlow outperforms VAEAC by a large margin on image datasets (MNIST, Omniglot, CelebA) in terms of negative log-likelihood (NLL), indicating better modeling of arbitrary conditional distributions.
  • Joint Likelihood: ACFlow achieves comparable or better joint likelihoods than RealNVP on image datasets, despite being trained on conditional likelihoods.
  • Imputation Performance:
    • Image Inpainting: ACFlow generates sharper and more detailed inpaintings than VAEAC, with higher PSNR and PRD scores. The "best guess" objective further improves PSNR.
  • Feature Imputation (UCI datasets): ACFlow, especially with the "best guess" objective, achieves state-of-the-art NRMSE scores across various missing rates, outperforming VAEAC, GAIN, MICE, and MissForest.
  • Marginal Likelihoods: ACFlow performs comparably to TAN models trained specifically for marginal tasks, demonstrating its ability to learn multiple marginals within a single model.

Limitations and Future Work

  • Computational Cost: While ACFlow is flexible, the complexity of arbitrary conditioning can lead to higher computational costs compared to models with fixed conditioning.
  • "Best Guess" Blurriness: The "best guess" imputation, while improving PSNR, can lead to slightly blurrier samples compared to diverse imputations.
  • Future Work: The authors suggest applying ACFlow to causal reasoning and learning underlying graphical structures. They also mention exploring Gibbs sampling for exploring local manifolds in more detail. The code is publicly available.

Summary updated

BibTeX
@misc{li2019flow,
  author = {Yang Li and Shoaib Akbar and Junier B. Oliva},
  title = {{Flow Models for Arbitrary Conditional Likelihoods}},
  year = {2019},
  eprint = {1909.06319},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.06319},
}

Loading related content...

Figure