[Paper Review] The Neural Moving Average Model for Scalable Variational Inference of State Space Models
This paper proposes the Neural Moving Average (nMA) model, a novel generative framework for state space models that enables scalable mini-batch variational inference by ensuring locality in latent state sampling. By using a convolutional neural network with limited receptive fields, the nMA allows efficient, O(1)-cost sampling of subsequences, facilitating stochastic gradient optimization and achieving accurate parameter estimation in minutes on long time series, even with sparse or partial observations.
Variational inference has had great success in scaling approximate Bayesian inference to big data by exploiting mini-batch training. To date, however, this strategy has been most applicable to models of independent data. We propose an extension to state space models of time series data based on a novel generative model for latent temporal states: the neural moving average model. This permits a subsequence to be sampled without drawing from the entire distribution, enabling training iterations to use mini-batches of the time series at low computational cost. We illustrate our method on autoregressive, Lotka-Volterra, FitzHugh-Nagumo and stochastic volatility models, achieving accurate parameter estimation in a short time.
Motivation & Objective
- To address the computational intractability of Bayesian inference in long time series state space models due to O(T) likelihood evaluation costs.
- To enable scalable variational inference for continuous-state SSMs by introducing a variational family with a locality property for efficient mini-batch training.
- To develop a generative model for latent states that supports unbiased log-density estimation from mini-batches while capturing complex temporal dependencies.
- To demonstrate effectiveness on challenging SSMs with sparse observations, partial state access, low observation noise, and large T, including real-world data.
Proposed method
- Proposes the Neural Moving Average (nMA) model, a normalizing flow-based generative model that produces latent states as a convolutional transformation of i.i.d. N(0,1) noise and observed data.
- Uses a CNN with finite receptive field to ensure that each latent state depends only on a local window of inputs, enabling O(1) sampling of subsequences.
- Treats the nMA as a normalizing flow to allow unbiased estimation of the full log-density of the latent chain from mini-batch samples.
- Employs stochastic gradient variational inference to minimize the KL divergence between the approximate posterior and the true posterior, using mini-batch gradients.
- Implements the method using amortized inference with a recognition network to parameterize the variational posterior q(x|y;φ).
- Applies the framework to autoregressive, Lotka-Volterra, FitzHugh-Nagumo, and stochastic volatility models, with scalable training on long time series.
Experimental results
Research questions
- RQ1Can a variational inference method for state space models achieve O(1) cost per training iteration by enabling mini-batch sampling of latent states?
- RQ2Can a neural generative model for latent states support unbiased estimation of the full log-density from subsequences, enabling scalable inference?
- RQ3Does the proposed nMA-based variational inference method achieve accurate parameter estimation in SSMs with long time series, sparse observations, and unobserved components?
- RQ4How does the method compare in accuracy and training time to existing approaches on challenging SSMs like stochastic volatility and FitzHugh-Nagumo?
Key findings
- The nMA model enables O(1) cost sampling of latent state subsequences by restricting the CNN’s receptive field, satisfying the locality property required for mini-batch training.
- The method achieves accurate posterior estimation for all tested models, including those with unobserved components and sparse observations, with results indistinguishable from the true posterior in some cases.
- Training on a 1,000,000-step FitzHugh-Nagumo model took approximately 180 minutes, yielding parameter estimates consistent with ground truth.
- The stochastic volatility model was analyzed on 1,508 weekly observations in just 20 minutes on a single GPU, with results matching those from MCMC in prior work.
- The approach outperforms prior variational methods in training speed and scalability, especially on long time series, while maintaining high accuracy.
- The method successfully handles challenging observation regimes such as low observation variance and partial state observation, demonstrating robustness and flexibility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.