Decision-Making with Auto-Encoding Variational Bayes

Romain Lopez, Pierre Boyeau, Nir Yosef, Michael I. Jordan, Jeffrey Regier

TL;DR

This paper argues that using the variational distribution directly for decision-making with Variational Auto-Encoders (VAEs) leads to biased and suboptimal decisions. They propose a three-step approach: first, fit the generative model; second, fit several distinct approximate posterior distributions; and third, combine these posteriors using multiple importance sampling for decision-making. This method demonstrably improves performance in challenging real-world tasks like single-cell RNA sequencing.

What Problem Does This Paper Address?

Many machine learning applications, especially those involving complex data like images or biological sequences, benefit from generative models. Variational Auto-Encoders (VAEs) are a popular class of such models, capable of learning compressed representations of data. However, VAEs are often trained to maximize the Evidence Lower Bound (ELBO), which is a proxy for the true data likelihood. While this is effective for representation learning, using the learned variational distribution directly as a surrogate for the true posterior distribution to make decisions (e.g., classification, hypothesis testing) can lead to poor outcomes. This is because: 1) the VAE's learned generative model might not perfectly match the true data distribution, and 2) the learned variational distribution might not accurately approximate the true posterior distribution under the learned model. The paper aims to bridge this gap by developing a more robust decision-making framework on top of VAEs.

Methods

The authors propose a novel three-step procedure for decision-making with VAEs:

  1. Model Fitting: Fit the generative model using one of several objective functions (e.g., VAE, IWAE, WW, or a new X-VAE). The "best" model is selected based on a metric like the IWELBO on held-out data.
  2. Approximate Posterior Fitting: With the model fixed, fit several distinct approximate posterior distributions. These include posteriors derived from the same objective functions used in step 1, as well as annealed importance sampling (AIS).
  3. Decision Making: Combine the learned approximate posteriors as proposal distributions for multiple importance sampling (MIS). This mixture is expected to be a better proposal than any single component, especially for complex posteriors, leading to decisions that minimize expected loss.

A key novel element is the "X-VAE," a variant of the Wake-Wake (WW) algorithm that minimizes the $\chi^2$ divergence.

Datasets

The paper evaluates their approach on:

  • Probabilistic Principal Component Analysis (pPCA): A toy example used for theoretical analysis and initial experiments.
  • MNIST Dataset: Used for a classification-based decision theory task, specifically for rejecting a specific digit (label 9) and classifying others. This is framed as a semi-supervised learning problem.
  • Single-cell RNA sequencing (scRNA-seq) Data: A real-world case study involving Bayesian hypothesis testing for detecting differentially expressed genes. The authors generate synthetic scRNA-seq data for this experiment.

Key Insights and Ideas

  • Variational Distribution is a Poor Surrogate for Decisions: The core insight is that the variational distribution learned by standard VAE training (optimizing ELBO) is often a poor choice for making downstream decisions because it can systematically underestimate variance, leading to overconfidence and biased risk estimates.
  • Separating Model Learning and Decision-Making Inference: The paper advocates for a separation of concerns: optimizing the generative model (e.g., via ELBO) is distinct from approximating the posterior for decision-making. Different inference strategies might be optimal for each task.
  • Multiple Importance Sampling for Robustness: Combining multiple, diverse approximate posterior proposals via MIS is shown to be more robust than relying on a single proposal, especially when the true posterior is complex. Each proposal can capture different aspects of the posterior.
  • X-VAE as a Promising Inference Method: The proposed X-VAE, which minimizes the $\chi^2$ divergence, shows promise as an inference procedure that can lead to better posterior approximations compared to standard VAEs.

Key Results

  • Theoretical Analysis on pPCA: The paper provides theoretical analysis on the pPCA model, showing that underdispersed proposals (like those from standard VAEs) lead to significant errors in importance sampling estimators. It also suggests that overdispersion might be beneficial for decision-making inference, even if it can exacerbate biases in model learning.
  • Improved Decision-Making Performance:
    • On the pPCA model, their three-step procedure (using MIS with learned proposals) significantly outperforms single-proposal methods in estimating posterior expectations.
  • On the MNIST classification task, their approach (IWAE-MIS) outperforms single-proposal alternatives, achieving better area under the precision-recall curve (AUPRC) for rejecting the "nine" label.
  • On the scRNA-seq differential gene expression task, their proposed method (X-VAE-MIS) achieves the best false discovery rate (FDR) estimates, significantly outperforming VAE, IWAE, WW, and even X-VAE with AIS. The standard VAE model showed highly inaccurate FDR control.

Limitations and Future Work

  • Computational Overhead: The proposed three-step procedure involves fitting multiple VAEs, leading to increased computational cost compared to a standard VAE. However, the authors argue this overhead is manageable, especially for offline decision-making scenarios.
  • Model Selection vs. Decision-Making: The paper highlights that the best objective for learning a generative model might not be the best for decision-making, suggesting further research into aligning these objectives.
  • Hybrid Algorithms: The authors suggest that combining their approach with techniques like loss-calibrated inference or amortized Monte Carlo integration could be promising future directions.
  • Broader Impact and Robustness: While neural networks offer flexibility, their "black-box" nature poses challenges for ensuring model quality and reliability, especially in high-stakes applications. More research is needed to guarantee worst-case performance and diagnose fit problems.

Summary updated

BibTeX
@inproceedings{lopez2020decision,
  author = {Romain Lopez and Pierre Boyeau and Nir Yosef and Michael I. Jordan and Jeffrey Regier},
  title = {{Decision-Making with Auto-Encoding Variational Bayes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=m0R_WIX6ijs},
}
Figure