Filtering Variational Objectives

Chris J. Maddison, Dieterich Lawson, George Tucker, Nicolas Heess, Mohammad Norouzi, Andriy Mnih, Arnaud Doucet, Yee Whye Teh

TL;DR

FIVO introduces a new family of variational objectives for sequential latent variable models. By replacing the standard Evidence Lower Bound (ELBO) with a tighter bound derived from a particle filter, FIVO leverages Sequential Monte Carlo (SMC) to estimate marginal likelihood. This approach explicitly exploits the temporal structure of data, achieving state-of-the-art results in modeling complex sequences like speech and polyphonic music.

The Problem with ELBO in Sequential Models

Learning in latent variable models typically involves maximizing the marginal log-likelihood of the data. Because this marginalization requires solving an intractable integral for most interesting models, practitioners rely on optimizing a surrogate objective: the Evidence Lower Bound (ELBO).

While powerful, the ELBO is often a "loose" bound. This looseness acts as a penalty that forces the model's posterior to stay too close to a simple prior, limiting model capacity and frequently leading to "posterior collapse"—a phenomenon where the model ignores the latent variables entirely. Methods like the Importance Weighted Autoencoder (IWAE) tighten this bound using multiple independent samples, but they fail to explicitly account for the sequential dependencies inherent in time-series data. FIVO addresses this by creating a tighter, more efficient bound specifically tailored for sequential models.

Methods: Monte Carlo Objectives and Particle Filtering

The authors introduce Monte Carlo Objectives (MCOs), a generalization demonstrating that the log of any unbiased, positive estimator of the marginal likelihood serves as a valid lower bound. Crucially, the tightness of this bound is directly related to the relative variance of the estimator.

FIVO is an MCO where the estimator is a Particle Filter (Sequential Monte Carlo).

The FIVO computation graph showing resampling, proposal, and gradient steps.
  • Sequential Importance Resampling: Unlike IWAE, which treats samples independently, FIVO propagates a set of "particles" (latent trajectories) through time.
  • Resampling: At each timestep, low-probability particles are discarded while high-probability ones are duplicated. This focuses the model's computational budget on the most promising regions of the latent space.
  • Optimization: To train the model, the authors use the reparameterization trick to backpropagate through the particle filter. Because the "full" unbiased gradient (which includes terms for the resampling steps) exhibits extremely high variance, they use a biased gradient that ignores resampling stochasticity and only flows through the latent trajectories.

Key Insights and Ideas

  • Variance as a Metric for Tightness: The paper mathematically demonstrates that the gap between the lower bound and the true log-likelihood is approximately half the relative variance of the estimator. To get a better objective, one must find a lower-variance estimator.
  • Exploiting Sequential Structure: Particle filters scale much better for sequential data (often linearly with time) compared to naive importance sampling (which scales exponentially). This makes FIVO inherently superior to IWAE for long sequences.
  • Solving Posterior Collapse: FIVO-trained models maintain a high KL divergence between the posterior and the prior throughout training. This indicates that FIVO encourages the model to actively use its latent states to represent data, rather than letting them collapse to the prior.
  • The Biased Gradient Success: Intentionally using a biased gradient is counter-intuitive, but the authors show that the variance reduction gained by ignoring resampling terms far outweighs the theoretical cost of the bias.
Training metrics showing the impact of the biased gradient (left) and FIVO's ability to maintain high KL divergence, preventing posterior collapse (right).

Datasets and Key Results

The authors evaluated FIVO on challenging sequential modeling domains using Variational Recurrent Neural Networks (VRNNs):

  1. Polyphonic Music: Four MIDI datasets (Nottingham, JSB Chorales, MuseData, Piano-midi.de).
  2. Speech: The TIMIT dataset (raw audio waveforms).

Results: * Superior Performance: FIVO consistently outperformed both ELBO and IWAE across all benchmarks. * Efficiency: A FIVO objective with only 4 particles often yielded a tighter bound and better test performance than an IWAE objective using 16 or more samples. * TIMIT Breakthrough: On the TIMIT speech task, FIVO showed massive quantitative gains. For a 256-unit model, FIVO achieved a log-likelihood bound of 21,536 nats, compared to 13,069 for IWAE and 9,918 for ELBO.

Limitations and Future Work

While highly effective, FIVO is not "sharp" in the general case; even with an optimal variational distribution, it might not reach the true marginal likelihood unless specific independence properties are met. Additionally, finding a way to incorporate the resampling logic into the gradient without exploding the variance remains an open research question. Finally, implementing a particle filter is more computationally intensive and complex regarding memory management than standard VAE or IWAE approaches.

Summary updated

BibTeX
@inproceedings{maddison2017filtering,
  author = {Chris J. Maddison and Dieterich Lawson and George Tucker and Nicolas Heess and Mohammad Norouzi and Andriy Mnih and Arnaud Doucet and Yee Whye Teh},
  title = {{Filtering Variational Objectives}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=erCNsjZV2a5},
}
Figure