Skip to main content
QUICK REVIEW

[Paper Review] Revisiting Reweighted Wake-Sleep for Models with Stochastic Control Flow

Tuan Anh Le, Adam R. Kosiorek|arXiv (Cornell University)|May 26, 2018
Gaussian Processes and Bayesian InferenceComputer Science31 references24 citations
TL;DR

This paper revisits the reweighted wake-sleep (rws) algorithm for training stochastic control-flow models (scfms), demonstrating that rws outperforms state-of-the-art methods like importance-weighted autoencoders (IWAE) and continuous relaxation approaches. Unlike IWAE, rws improves both model and inference network quality with increasing particles, offering lower-variance gradient estimators and robust performance across diverse scfm architectures.

ABSTRACT

Stochastic control-flow models (SCFMs) are a class of generative models that involve branching on choices from discrete random variables. Amortized gradient-based learning of SCFMs is challenging as most approaches targeting discrete variables rely on their continuous relaxations---which can be intractable in SCFMs, as branching on relaxations requires evaluating all (exponentially many) branching paths. Tractable alternatives mainly combine REINFORCE with complex control-variate schemes to improve the variance of naive estimators. Here, we revisit the reweighted wake-sleep (RWS) (Bornschein and Bengio, 2015) algorithm, and through extensive evaluations, show that it outperforms current state-of-the-art methods in learning SCFMs. Further, in contrast to the importance weighted autoencoder, we observe that RWS learns better models and inference networks with increasing numbers of particles. Our results suggest that RWS is a competitive, often preferable, alternative for learning SCFMs.

Motivation & Objective

  • To address the challenge of amortized gradient-based learning in stochastic control-flow models (scfms), where discrete branching prevents standard continuous relaxation techniques.
  • To evaluate whether reweighted wake-sleep (rws) can outperform existing state-of-the-art methods such as IWAE with control variates or continuous relaxations in scfm learning.
  • To investigate the failure modes of existing methods like wake-sleep (ws) and weighted wake-sleep (ww), particularly branch-pruning in low-particle regimes.
  • To propose and validate a defensive sampling extension, δ-ww, to mitigate bias in low-particle ww training and improve inference network quality.

Proposed method

  • Revisits the reweighted wake-sleep (rws) algorithm, which alternates between optimizing the generative model and inference network using a reweighted estimator based on multiple particles.
  • Employs a self-normalized importance sampling estimator to compute gradients for both model and inference network parameters, reducing variance compared to naive reinforce estimators.
  • Introduces δ-ww, a variant of weighted wake-sleep that combines the inference network with a uniform proposal (qϕ,δ(z|x) = (1−δ)qϕ(z|x) + δUniform(z)) to reduce bias in low-particle regimes.
  • Uses multiple particle settings (K=2, K=4, K=8) to evaluate scalability and performance improvements across different computational budgets.
  • Applies rws to three benchmark tasks: a probabilistic context-free grammar (PCFG), the Attend, Infer, Repeat (AIR) model for multi-digit MNIST, and a Gaussian Mixture Model (GMM) to analyze failure modes.
  • Employs model evidence lower bound (ELBO) maximization as the training objective, with gradient estimation via reweighted importance sampling to handle discrete stochastic control flow.

Experimental results

Research questions

  • RQ1Does rws outperform state-of-the-art methods such as IWAE with control variates or continuous relaxations in learning stochastic control-flow models?
  • RQ2How does the performance of rws scale with increasing numbers of particles, and does it improve both model and inference network quality?
  • RQ3What causes the branch-pruning failure mode in wake-sleep variants, and can it be mitigated through defensive sampling?
  • RQ4In what regimes (e.g., low vs. high particle count) is ws or ww preferable, and how does data distribution bias affect learning outcomes?
  • RQ5Can a simple modification like δ-ww improve the stability and performance of ww in low-particle settings without sacrificing high-particle performance?

Key findings

  • rws consistently outperforms IWAE-based methods, including vimco, relax, and reinforce with control variates, in both model likelihood and inference network quality across all evaluated tasks.
  • Unlike IWAE, where inference network quality degrades with more particles (especially in AIR), rws shows monotonically improving performance on both model and inference network as particle count increases.
  • In the GMM experiment, standard ww suffers from a bias-induced branch-pruning failure mode in low-particle regimes (K=2), where the model collapses to a narrow support and fails to explore the full latent space.
  • The proposed δ-ww variant successfully mitigates this bias, outperforming all other methods in the low-particle regime (K=2) while maintaining strong performance at higher particle counts.
  • rws is effective in scenarios where continuous relaxations fail, such as in PCFGs with potentially infinite recursion, demonstrating its applicability to complex control-flow structures.
  • The study confirms that the choice between ws and ww variants depends on the dominant source of gradient bias: data distribution bias favors ww, while self-normalized estimator bias favors ws.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.