Bivariate Beta-LSTM

Kyungwoo Song, JoonHo Jang, Seungjae Shin, Il-Chul Moon

Abstract

Standard Long Short-Term Memory (LSTM) networks rely on rigid, deterministic sigmoid gates that assume independence between input and forget operations. This paper introduces the Bivariate Beta-LSTM (bBeta-LSTM), a novel architecture that replaces sigmoid gates with flexible, correlated Beta distributions. By leveraging a 5-Gamma parameterization, the model captures complex dependencies between "remembering" and "forgetting" while improving gradient flow. Empirical results across text classification, music modeling, and image captioning demonstrate that the bBeta-LSTM significantly outperforms standard LSTMs and recent variants.

Introduction: The Limitations of Sigmoid Gating

The success of LSTMs stems from their gating mechanism, which controls the flow of information through the cell state. Traditionally, these gates use the sigmoid function to squash values between 0 and 1. Despite its ubiquity, the authors identify three primary flaws in this approach:

  1. Lack of Flexibility: The sigmoid function is rigid and cannot easily represent skewed or multi-modal distributions of gate activations.
  2. Independence Assumption: Standard LSTMs calculate input and forget gates independently, ignoring the natural correlation between adding new context and discarding the old.
  3. Vanishing Gradients: The small derivative of the sigmoid function often leads to vanishing gradients, making it difficult to learn long-term dependencies.

The Bivariate Beta-LSTM Architecture

To address these issues, the authors propose treating gate activations as random variables drawn from a Bivariate Beta distribution. Unlike the deterministic sigmoid, the Beta distribution can adapt its shape—becoming symmetric, skewed, or U-shaped—based on its parameters.

Comparison of existing gated architectures: (a) CIFG-LSTM and (b) G2-LSTM, which the bBeta-LSTM aims to generalize and improve upon.

The core innovation, the bBeta-LSTM(5G), uses five underlying Gamma-distributed variables to construct the input and forget gates. This parameterization allows the model to explicitly represent both positive and negative correlations:

  • Negative Correlation: Essential for context shifts, where the model must forget old information to make room for new input (e.g., at a sentence boundary).
  • Positive Correlation: Useful for reinforcing complex semantic meanings where both gates need to be highly active.

Additionally, the bBeta-LSTM(5G+p) variant incorporates "Domain Customized Structured Priors," such as topic information from Latent Dirichlet Allocation (LDA), to guide gate behavior based on global context.

Experimental Evaluation

The bBeta-LSTM was evaluated against standard LSTMs and variants like CIFG-LSTM and $G^2$-LSTM across several benchmarks:

  • Permuted MNIST (pMNIST): On this difficult long-term memory task, the bBeta-LSTM reduced the error rate by 27.6% (from 1.05% to 0.76%) compared to a standard Batch-Normalized LSTM.
  • Text Classification: The model achieved state-of-the-art results on six sentiment datasets, including the Stanford Sentiment Treebank (SST) and Movie Reviews (MR).
  • Image Captioning: On the MS-COCO dataset, the model improved CIDEr scores from 94.7 to 97.3 when integrated into a standard Show & Tell architecture.

Qualitative Analysis: The "But" Effect

A key strength of the bBeta-LSTM is its ability to learn meaningful correlations. Qualitative analysis reveals that the model effectively utilizes negative correlation at transition words.

Visualization of gate values and correlations for sentiment analysis. The model shows strong negative correlation at transition points like "but" and "not," clearing old context for new input.

For instance, when the word "but" appears, the input gate spikes to capture the emerging context while the forget gate drops to clear the preceding sentiment. This dynamic adjustment is a direct result of the bivariate probabilistic framework, providing a better inductive bias for sequence modeling.

Conclusion

The Bivariate Beta-LSTM represents a significant step toward more flexible and biologically plausible recurrent units. By moving away from rigid sigmoid gates and embracing probabilistic correlation, the model ensures healthier gradients and superior performance across diverse domains. While the increased parameter count presents a computational trade-off, the gains in accuracy and interpretability suggest that flexible gating is a powerful tool for the future of recurrent neural networks.

Summary updated

BibTeX
@inproceedings{song2020bivariate,
  author = {Kyungwoo Song and JoonHo Jang and Seungjae Shin and Il-Chul Moon},
  title = {{Bivariate Beta-LSTM}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i04.6039},
}
Figure