Stochastic WaveNet: A Generative Latent Variable Model for Sequential Data

Guokun Lai, Bohan Li, Guoqing Zheng, Yiming YangarXiv 2018

Abstract

How to model distribution of sequential data, including but not limited to speech and human motions, is an important ongoing research problem. It has been demonstrated that model capacity can be significantly enhanced by introducing stochastic latent variables in the hidden states of recurrent neural networks. Simultaneously, WaveNet, equipped with dilated convolutions, achieves astonishing empirical performance in natural speech generation task. In this paper, we combine the ideas from both stochastic latent variables and dilated convolutions, and propose a new architecture to model sequential data, termed as Stochastic WaveNet, where stochastic latent variables are injected into the WaveNet structure. We argue that Stochastic WaveNet enjoys powerful distribution modeling capacity and the advantage of parallel training from dilated convolutions. In order to efficiently infer the posterior distribution of the latent variables, a novel inference network structure is designed based on the characteristics of WaveNet architecture. State-of-the-art performances on benchmark datasets are obtained by Stochastic WaveNet on natural speech modeling and high quality human handwriting samples can be generated as well.

Introduction

Modeling sequential data such as speech, text, or motion requires capturing complex, multi-modal distributions. Standard autoregressive models like vanilla WaveNet or PixelCNN are largely deterministic in their hidden states, introducing randomness only at the final output layer. This often limits the model's capacity to represent the true underlying distribution—a limitation known as the "softmax bottleneck" in discrete cases or a "unimodal assumption" in continuous cases.

While Recurrent Neural Networks (RNNs) have successfully integrated stochastic latent variables (e.g., VRNN, SRNN) to address this, they must be trained sequentially, making them computationally expensive on modern hardware. Stochastic WaveNet (SWaveNet) addresses this by combining the parallelizable speed of dilated convolutions with the rich probabilistic modeling of stochastic latent variables.

Methodology

SWaveNet modifies the standard WaveNet architecture by injecting a set of stochastic latent variables ($z$) into every hidden layer of the dilated convolution stack.

Hierarchical Latent Structure

The latent variables are organized across layers, allowing the model to capture dependencies at different temporal scales due to increasing dilation factors. This hierarchical approach enables the model to learn both fine-grained and global features of the sequence simultaneously.

Architecture of the Stochastic WaveNet generative and inference models.

Inference and Training

To efficiently infer the posterior distribution of the latent variables, the authors designed a novel inference network based on a "reversed WaveNet" structure. By looking at "future" data, this network better informs the latent variables at the current time step, leading to a tighter evidence lower bound (ELBO). Additionally, a cosine KL annealing strategy is employed during training to mitigate the "KL vanishing" problem, where the model ignores latent variables in favor of the deterministic path.

Experiments and Results

The model was evaluated on three primary benchmarks: the Blizzard and TIMIT speech corpora, and the IAM-OnDB handwriting dataset.

Performance in Speech Modeling

SWaveNet significantly outperformed vanilla WaveNet and established new state-of-the-art results. On the Blizzard dataset, it achieved a log-likelihood of $\ge 15708$ (compared to WaveNet's $-5777$). On TIMIT, it reached $\ge 72463$, a massive improvement over the vanilla model's $26074$.

Impact of Stochastic Layers

The authors found that performance improves as more stochastic layers are added, typically reaching an optimal point around 3-4 layers. Beyond this, the information density per layer tends to drop, suggesting a "sweet spot" for hierarchical depth in sequential modeling.

Log-likelihood performance across different numbers of stochastic layers for three benchmark datasets.

Handwriting Generation

In handwriting tasks using the IAM-OnDB dataset, SWaveNet produced visually clearer and more recognizable characters than RNN-based models. Even when numerical log-likelihoods were comparable to models like VRNN, the qualitative samples from SWaveNet demonstrated superior structural coherence and faster training times.

Conclusion

Stochastic WaveNet demonstrates that the efficiency of dilated convolutions can be successfully integrated with the representational power of stochastic latent variables. By leveraging a hierarchical structure and a novel inference network, the model provides a powerful framework for high-fidelity sequential data generation, matching or exceeding the performance of recurrent models while maintaining the benefits of parallel training.

Summary updated

BibTeX
@misc{lai2018stochastic,
  author = {Guokun Lai and Bohan Li and Guoqing Zheng and Yiming Yang},
  title = {{Stochastic WaveNet: A Generative Latent Variable Model for Sequential Data}},
  year = {2018},
  eprint = {1806.06116},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.06116},
}
Figure