Bidirectional Long Short-Term Memory Variational Autoencoder

Henglin Shi, Xin Liu, Xiaopeng Hong, Guoying Zhao

Abstract

This paper introduces the bidirectional Long Short-Term Memory Variational Autoencoder (bLSTM-VAE), a novel generative model designed to handle sequential data by leveraging bidirectional LSTMs for both encoding and decoding. Unlike standard VAEs that assume independent data points, the bLSTM-VAE captures the global temporal context of a sequence, allowing it to learn robust, frame-wise latent representations. When applied to 3D skeleton-based gesture recognition, the model significantly outperforms traditional VAEs and unidirectional RNN architectures by effectively modeling the dependencies between past, present, and future states.

Introduction

Variational Autoencoders (VAEs) are highly effective at learning compact, noise-resistant representations. However, their standard formulation assumes that data points are independent and identically distributed (i.i.d.), which is problematic for time-series data like human gestures. In such sequences, the meaning of a single frame is heavily dependent on its temporal context.

Previous attempts to adapt VAEs for sequences typically suffered from two main issues:

  1. Global Encoding: Compressing an entire sequence into a single latent vector, which discards fine-grained temporal details.
  2. Causal Encoding: Encoding states based only on past observations, ignoring the critical context provided by the future trajectory of a motion.

The authors address these limitations by proposing a VAE that utilizes the global context of the entire sequence to encode and decode every individual time step.

The bLSTM-VAE Architecture

The core contribution is the bidirectional LSTM-VAE. Unlike a standard feed-forward or unidirectional RNN encoder, the bLSTM-VAE processes the sequence in both forward and backward directions to produce the parameters (mean $\mu$ and variance $\sigma$) of the latent variable $z_t$ at each time step $t$.

The bLSTM-VAE architecture illustrates the bidirectional dependencies between the input sequence $x$ and the latent sequence $z$.

Key Components

  • Bidirectional Encoder: For any time-step $t$, it processes the sequence forward (from $x_1$ to $x_t$) and backward (from $x_T$ to $x_t$). The combined outputs parameterize the latent distribution.
  • Bidirectional Decoder: The decoder reconstructs the input $x_t$ using the latent variable $z_t$ along with hidden states from both previous and succeeding time steps.
  • Theoretical Foundation: The authors derived a new Evidence Lower Bound (ELBO) specifically tailored for this bidirectional structure, ensuring the model remains mathematically grounded in variational inference.

For gesture recognition, the bLSTM-VAE acts as a feature extractor. It is first trained unsupervised to reconstruct skeletal sequences. The resulting latent sequences ($z_{1:T}$) are then fed into a separate 3-layer bLSTM classifier to predict gesture categories.

Experimental Evaluation

The model was evaluated on two major benchmarks for 3D skeletal data: the ChaLearn Look at People (LAP) 2014 dataset and the NTU RGB+D dataset. These datasets present challenges such as sensor noise and significant variation in how different subjects perform the same gesture.

Key Results

The bLSTM-VAE approach demonstrated superior performance over standard VAEs and several specialized RNN architectures. On the ChaLearn LAP dataset, it achieved an accuracy of 92.88%, outperforming standard LSTMs and HMM-based methods.

Comparison of gesture recognition accuracies on the ChaLearn LAP dataset, showing the bLSTM-VAE's competitive performance.

On the massive NTU RGB+D dataset, the model achieved 71.60% accuracy, significantly outperforming the baseline bLSTM (65.22%) and a standard VAE (67.42%). Ablation studies confirmed that the bidirectional VAE features were more discriminative for classification than raw data or features from a causal (forward-only) VAE.

Insights and Discussion

  • Contextual Robustness: By mining information from the entire sequence, the model handles the inherent noise of sensors (like the Kinect) and natural variations in human movement. The latent mean ($\mu$) acts as a robust low-frequency approximation of the signal, while the variance ($\sigma$) captures high-frequency noise.
  • Simplicity: The bLSTM-VAE performs remarkably well using raw skeletal coordinates, avoiding the need for complex manual preprocessing like joint velocity calculations or rotation alignment.

Limitations

While powerful, the model requires the full sequence to be available before processing, which may limit its use in zero-latency real-time applications. Future work could involve extending this to a Conditional VAE (CVAE) framework to integrate multiple modalities, such as RGB and depth data, more effectively.

Summary updated

BibTeX
@inproceedings{shi2018bidirectional,
  author = {Henglin Shi and Xin Liu and Xiaopeng Hong and Guoying Zhao},
  title = {{Bidirectional Long Short-Term Memory Variational Autoencoder}},
  booktitle = {BMVC},
  year = {2018},
}
Figure