Skip to main content
QUICK REVIEW

[Paper Review] Scaling Factorial Hidden Markov Models: Stochastic Variational Inference without Messages

Yin Cheng Ng, Pawel M. Chilinski|arXiv (Cornell University)|Aug 12, 2016
Bayesian Methods and Mixture ModelsComputer Science21 references6 citations
TL;DR

This paper proposes a scalable stochastic variational inference algorithm for Factorial Hidden Markov Models (FHMMs) that eliminates message passing by using shared feed-forward neural networks to parameterize bivariate Gaussian copula chains. The method enables distributed, stochastic optimization over long sequences, achieving better performance than structured mean-field on large-scale data with no additional approximation bias.

ABSTRACT

Factorial Hidden Markov Models (FHMMs) are powerful models for sequential data but they do not scale well with long sequences. We propose a scalable inference and learning algorithm for FHMMs that draws on ideas from the stochastic variational inference, neural network and copula literatures. Unlike existing approaches, the proposed algorithm requires no message passing procedure among latent variables and can be distributed to a network of computers to speed up learning. Our experiments corroborate that the proposed algorithm does not introduce further approximation bias compared to the proven structured mean-field algorithm, and achieves better performance with long sequences and large FHMMs.

Motivation & Objective

  • To address the computational intractability of exact inference in FHMMs with long sequences and large state spaces.
  • To eliminate the need for message passing in variational inference for FHMMs, enabling distributed computation.
  • To scale variational inference to long sequences by reparameterizing copula parameters with shared recognition neural networks.
  • To maintain approximation accuracy comparable to structured mean-field while enabling stochastic optimization on large datasets.
  • To demonstrate superior performance on long sequences and large models where traditional methods fail due to computational limits.

Proposed method

  • The method uses bivariate Gaussian copulas to model dependencies between latent variables in FHMMs, replacing traditional message-passing schemes.
  • It introduces shared feed-forward neural networks (recognition networks) to parameterize copula chain parameters across time points, enabling efficient and scalable inference.
  • The algorithm employs stochastic gradient descent with mini-batches of randomly sampled subchains to optimize the stochastic lower bound of the log-marginal likelihood.
  • The recognition networks are trained jointly with model parameters (covariance, emission weights, transition matrices) via end-to-end optimization.
  • The approach avoids explicit message passing between latent variables, allowing parallelization across multiple computing nodes.
  • The use of reparameterization enables backpropagation through stochastic subchains, making the method amenable to deep learning optimization techniques.

Experimental results

Research questions

  • RQ1Can we scale FHMM inference to long sequences without relying on message passing?
  • RQ2Does a stochastic variational inference approach using neural networks and subchain sampling maintain approximation accuracy compared to structured mean-field?
  • RQ3Can the proposed method outperform structured mean-field in terms of model likelihood and predictive performance on long sequences with limited computational budgets?
  • RQ4Is it feasible to use shared recognition networks to decouple inference in unbounded-length stochastic processes?
  • RQ5Can the method effectively leverage large-scale sequential data to improve model performance?

Key findings

  • The proposed algorithm achieves competitive performance with structured mean-field on short sequences, as shown by similar log-likelihood values in simulated and Bach chorales data.
  • On long sequences, the proposed method significantly outperforms structured mean-field under fixed computational budgets, with the latter failing to complete even a single iteration on sequences of length 150,000.
  • In the household power consumption dataset with 1 million time steps, the proposed method achieved lower test MSE (mean 0.106) than SMF-EM (mean 0.194), demonstrating improved predictive accuracy.
  • For the 6-dimensional power consumption data, the proposed method reduced MSE by up to 65% in some dimensions compared to SMF-EM, indicating better model fitting on large data.
  • The algorithm successfully learned a 10-chain FHMM on a 1 million-step sequence, a task infeasible for SMF-EM due to computational constraints.
  • The use of shared recognition networks reduced memory and computation costs, enabling scalability as the number of Markov chains increased.

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.