Abstract
Standard Bidirectional LSTMs (Bi-LSTMs) typically train forward and backward paths independently, limiting their potential as a unified generative model. This paper introduces the Variational Bi-LSTM, which utilizes a Variational Autoencoder (VAE) framework to bridge the gap between these paths. By incorporating a latent channel that shares information during training, the model acts as a powerful regularizer and enables the use of bidirectional context in forward-only inference. Experimental results on speech and language benchmarks demonstrate that Variational Bi-LSTMs achieve state-of-the-art performance.
Introduction
Recurrent Neural Networks (RNNs) and LSTMs are foundational for sequence modeling. Bidirectional LSTMs improve upon unidirectional models by processing data in both directions, capturing future context. However, standard Bi-LSTMs suffer from two primary issues: independent training of paths and an inability to perform generative inference without future tokens. This work addresses these limitations by framing the interaction between forward and backward paths as a joint optimization problem within a variational framework.
Methods
The core of the Variational Bi-LSTM is a latent variable $z_t$ that serves as an information bridge between the forward state $h_{t-1}$ and the backward state $b_t$.
The model is trained by minimizing the variational lower bound (ELBO) of the joint likelihood. To ensure the latent space captures meaningful representations, auxiliary reconstruction costs are added, requiring the model to predict $b_t$ and $h_{t-1}$ from $z_t$. During inference, the backward LSTM is replaced by a learned prior distribution conditioned on $h_{t-1}$, allowing the model to sample a "summary of the future" for generative tasks. Stochastic backpropagation is employed to prevent the model from ignoring the latent variables.
Results
The Variational Bi-LSTM was evaluated across several domains, including speech modeling (Blizzard, TIMIT), language modeling (PTB), and text classification (IMDB).
On the Blizzard dataset, the model achieved an average log-likelihood of $\geq 17319$, a significant improvement over the previous state-of-the-art, Z-forcing ($\geq 14315$). Similar performance gains were observed on the TIMIT dataset. In language modeling tasks on Penn Treebank, the model achieved a competitive 1.23 Bits Per Character (BPC). Furthermore, on the IMDB dataset, word perplexity improved to 51.60 from Z-forcing's 65.68.
Discussion and Conclusion
The Variational Bi-LSTM effectively uses the backward path as a "teacher" for the forward path through the latent channel. This architecture provides a principled method for utilizing bidirectional context in generative tasks. While the model is more computationally intensive than standard LSTMs and requires careful hyperparameter tuning, its superior performance across diverse benchmarks highlights its potential for complex sequential modeling. Future work may explore more sophisticated prior distributions and applications in large-scale speech synthesis.
Summary updated