[Paper Review] Structured Black Box Variational Inference for Latent Time Series Models
This paper proposes a linear-time black box variational inference algorithm for structured latent time series models using a tridiagonal Gaussian variational distribution. By adapting the forward-backward algorithm to reparameterization gradients, it enables efficient, scalable training of complex models like dynamic word embeddings, outperforming baselines in predictive likelihood while maintaining O(T) complexity.
Continuous latent time series models are prevalent in Bayesian modeling; examples include the Kalman filter, dynamic collaborative filtering, or dynamic topic models. These models often benefit from structured, non mean field variational approximations that capture correlations between time steps. Black box variational inference with reparameterization gradients (BBVI) allows us to explore a rich new class of Bayesian non-conjugate latent time series models; however, a naive application of BBVI to such structured variational models would scale quadratically in the number of time steps. We describe a BBVI algorithm analogous to the forward-backward algorithm which instead scales linearly in time. It allows us to efficiently sample from the variational distribution and estimate the gradients of the ELBO. Finally, we show results on the recently proposed dynamic word embedding model, which was trained using our method.
Motivation & Objective
- To address the computational inefficiency of standard black box variational inference (BBVI) when applied to structured, non-mean-field variational approximations in time series models.
- To enable scalable Bayesian inference in non-conjugate latent time series models by reducing the O(T²) cost of gradient estimation to O(T).
- To develop a reparameterization trick compatible with structured variational distributions that avoids dense matrix operations.
- To demonstrate the method's effectiveness on dynamic word embedding models, showing improved generalization and predictive performance.
Proposed method
- Adapts the forward-backward algorithm to BBVI by decomposing the tridiagonal precision matrix into bidiagonal factors for efficient linear-time computation.
- Uses a reparameterization scheme that avoids matrix inversion or multiplication, enabling gradient estimation via forward and backward passes through time.
- Employs auxiliary variables and solves linear systems using forward and backward substitution on bidiagonal matrices to compute gradients efficiently.
- Derives gradient estimators for the evidence lower bound (ELBO) by leveraging the structure of the variational distribution and likelihood model.
- Applies the method to dynamic word embedding models, where the variational distribution models latent word vectors as a latent Ornstein-Uhlenbeck process.
- Uses Monte Carlo sampling from the structured variational distribution and computes gradients via reparameterization, maintaining differentiability through the time series structure.
Experimental results
Research questions
- RQ1Can black box variational inference be made efficient for structured, non-mean-field variational approximations in time series models?
- RQ2Is it possible to reduce the O(T²) cost of gradient estimation in structured BBVI to O(T) while preserving accuracy?
- RQ3How does structured BBVI with linear-time inference compare to mean-field or filtering-based approaches in dynamic modeling tasks?
- RQ4Can this method improve predictive performance in dynamic word embedding models compared to existing baselines?
Key findings
- The proposed structured BBVI algorithm achieves O(T) complexity, making it scalable to long time series, unlike naive BBVI which scales quadratically.
- On the Google Books corpus (T=209), the method outperforms SGI, SGP, and DSG-F in predictive log-likelihood, demonstrating superior generalization.
- The dynamic skip-gram smoothing algorithm (DSG-S) significantly improves predictive likelihood over the filtering variant (DSG-F), especially in early time steps.
- The method enables training of complex non-conjugate latent time series models with structured posteriors, such as dynamic word embeddings, with high efficiency and accuracy.
- The forward-backward-inspired reparameterization trick allows exact gradient computation without dense matrix operations, preserving differentiability and scalability.
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.