Re-examination of the Role of Latent Variables in Sequence Modeling

Zihang Dai, Guokun Lai, Yiming Yang, Shinjae Yoo

Abstract

With latent variables, stochastic recurrent models have achieved state-of-the-art performance in modeling sound-wave sequence. However, opposite results are also observed in other domains, where standard recurrent networks often outperform stochastic models. To better understand this discrepancy, we re-examine the roles of latent variables in stochastic recurrent models for speech density estimation. Our analysis reveals that under the restriction of fully factorized output distribution in previous evaluations, the stochastic models were implicitly leveraging intra-step correlation but the standard recurrent baselines were prohibited to do so, resulting in an unfair comparison. To correct the unfairness, we remove such restriction in our re-examination, where all the models can explicitly leverage intra-step correlation with an auto-regressive structure. Over a diverse set of sequential data, including human speech, MIDI music, handwriting trajectory and frame-permuted speech, our results show that stochastic recurrent models fail to exhibit any practical advantage despite the claimed theoretical superiority. In contrast, standard recurrent models equipped with an auto-regressive output distribution consistently perform better, significantly advancing the state-of-the-art results on three speech datasets.

The Discrepancy in Sequence Modeling

In sequence modeling—predicting the next element in a series like audio or text—there has been a long-standing discrepancy. In domains like text and images, deterministic models (like PixelCNN) usually win. However, in raw sound-wave modeling, stochastic models (SRNNs) that use latent variables seemed to reign supreme. This paper investigates whether the "victory" of SRNNs in speech was due to the expressive power of latent variables or a side effect of evaluation methodologies.

Unmasking the "Unfair Advantage"

Previous benchmarks forced models to use "fully factorized" output distributions, requiring the model to predict large blocks of audio frames (e.g., 200 frames) simultaneously as if they were independent. The authors hypothesized that SRNNs were leveraging their latent variables to capture intra-step correlations between these frames—an advantage strictly prohibited for baseline deterministic RNNs.

To prove this, the authors introduced $\delta$-RNN, a deterministic model that uses a "delta posterior" to manually copy a subset of input into a latent-like state. This mimics the "leakage" suspected in SRNNs. As shown in the comparison below, this simple deterministic trick allows the model to match or exceed the performance of stochastic models (F-SRNN) under factorized conditions.

Comparison of factorized models and the delta-RNN control experiment, demonstrating that deterministic models can match stochastic performance when allowed to mimic information leakage.

Leveling the Playing Field

To fairly evaluate these architectures, the researchers introduced models that explicitly handle intra-step correlations:

  • RNN-flat / SRNN-flat: These models treat every single frame as a time step, allowing the model to naturally capture correlations frame-by-frame.
  • RNN-hier / SRNN-hier: A hierarchical approach where a high-level RNN manages the sequence and a low-level auto-regressive model handles correlations within each multi-frame step.

By using these structures, both deterministic and stochastic models were given the same capacity to model dependencies between frames.

Key Results and New State-of-the-Art

The results across a diverse range of datasets—including speech (TIMIT, VCTK, Blizzard), music (Muse, Nottingham), and handwriting (IAM-OnDB)—were a landslide for deterministic models.

Comprehensive performance comparison across multiple datasets. Deterministic models (RNN-flat and RNN-hier) consistently outperform stochastic counterparts and set new state-of-the-art benchmarks.

As seen in the table above, the deterministic RNN-flat model achieved new state-of-the-art results on all three speech datasets, significantly outperforming previous stochastic models like Z-Forcing. On the TIMIT dataset, RNN-flat achieved a log-likelihood of 117,721, nearly doubling the previous best SRNN result of 70,469. Furthermore, in high-volatility scenarios like MIDI music and handwriting, the deterministic RNN-hier consistently outperformed SRNN-hier.

Conclusion

This re-examination suggests that the perceived advantage of stochastic latent variables in speech modeling was largely an artifact of restrictive experimental setups. When deterministic RNNs are equipped with proper auto-regressive structures to handle intra-step correlations, they prove to be more effective and efficient than their stochastic counterparts. While latent variables possess theoretical appeal, current variational inference techniques struggle to realize their benefits in practice compared to well-structured deterministic models.

Summary updated

BibTeX
@inproceedings{dai2019re,
  author = {Zihang Dai and Guokun Lai and Yiming Yang and Shinjae Yoo},
  title = {{Re-examination of the Role of Latent Variables in Sequence Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=S8fmR_LzjSs},
}

Loading related content...

Figure