Introduction
Sequence modeling often involves a trade-off between the expressiveness of Recurrent Neural Networks (RNNs) and the computational efficiency of Temporal Convolutional Networks (TCNs). While stochastic RNNs like the Variational RNN (VRNN) excel at modeling complex, multi-modal distributions, their sequential nature hinders parallel training. Conversely, TCNs leverage dilated convolutions for parallel processing but are typically deterministic, often lagging in generative quality for complex tasks like speech or handwriting synthesis.
Stochastic Temporal Convolutional Networks (STCN) bridge this gap by augmenting the parallel TCN framework with a hierarchy of stochastic latent variables. This approach achieves state-of-the-art performance while maintaining the high-speed training advantages of convolutional architectures.
Methodology
The core of STCN is a decoupled architecture that separates deterministic context from stochastic modeling. A standard TCN provides a deterministic state $d$, which conditions a separate hierarchy of latent variables $z$.
Key technical features include:
- Horizontal Independence: To ensure parallelizability, latent variables at time $t$ do not depend on those at $t-1$. Temporal dependencies are managed entirely by the underlying TCN.
- Vertical Hierarchy: Within a single time step, latent variables are arranged in a top-down hierarchy. Higher layers, conditioned on TCN layers with larger receptive fields, capture broader temporal contexts.
- STCN-dense: A variant where the final output is conditioned on a concatenation of samples from all levels of the latent hierarchy, effectively mitigating "latent variable collapse."
The model is trained using a variational approach, optimizing the Evidence Lower Bound (ELBO) through a joint inference (bottom-up) and generative (top-down) network.
Key Insights
The synergy between TCNs and stochastic hierarchies is particularly potent. Because TCN layers have varying receptive fields, the latent variables naturally learn multi-scale representations—ranging from high-level "intent" to low-level "strokes" in handwriting. Furthermore, the "dense" connections in STCN-dense proved crucial, suggesting that direct access to all levels of abstraction is necessary for complex generative tasks.
Experimental Results
STCN was evaluated on four benchmarks: IAM-OnDB and Deepwriting (handwriting), and TIMIT and Blizzard (speech). In the IAM-OnDB and Deepwriting datasets, the model's ability to capture long-range dependencies was particularly evident. Unlike deterministic TCNs, which can produce repetitive or "average" strokes, STCN's stochastic nature allows it to model the diverse ways a person might complete a character or word.
The model achieved state-of-the-art log-likelihoods across all datasets. On the TIMIT dataset, STCN-dense-large reached an ELBO of $\geq 77438$, significantly outperforming previous bests like the Variational Bi-LSTM ($\geq 73976$). Qualitatively, as seen in the figure above, STCN-dense generates highly realistic handwriting with consistent style and proper spacing over long sequences.
Conclusion and Future Work
STCN demonstrates that stochasticity can be effectively integrated into parallel convolutional architectures without sacrificing speed. While the model is parallel during training, generation remains auto-regressive. Future work may explore tighter variational bounds (e.g., IWAE) or methods to improve the utilization of high-level latent variables, as top layers currently exhibit relatively low activity.
Summary updated