Skip to main content
QUICK REVIEW

[Paper Review] A Hybrid Convolutional Variational Autoencoder for Text Generation

Stanislau Semeniuta, Aliaksei Severyn|arXiv (Cornell University)|Feb 8, 2017
Topic ModelingComputer Science33 references46 citations
TL;DR

This paper proposes a hybrid convolutional variational autoencoder (VAE) that replaces recurrent networks in both encoder and decoder with feed-forward 1D convolutional and deconvolutional layers, combined with a residual RNN head. The architecture stabilizes training by preventing KL collapse, enabling better disentanglement and diverse, realistic text generation, especially on long sequences, outperforming fully recurrent VAEs in latent space utilization and convergence.

ABSTRACT

In this paper we explore the effect of architectural choices on learning a Variational Autoencoder (VAE) for text generation. In contrast to the previously introduced VAE model for text where both the encoder and decoder are RNNs, we propose a novel hybrid architecture that blends fully feed-forward convolutional and deconvolutional components with a recurrent language model. Our architecture exhibits several attractive properties such as faster run time and convergence, ability to better handle long sequences and, more importantly, it helps to avoid some of the major difficulties posed by training VAE models on textual data.

Motivation & Objective

  • To address the critical problem of KL term collapse in VAE-based text generation, where the decoder ignores the latent vector and behaves like a standard language model.
  • To improve training stability and convergence of VAEs on long sequences, which is challenging for recurrent architectures.
  • To enable better control over generated text by ensuring the latent vector contributes meaningfully to generation, facilitating disentangled attribute control.
  • To explore the effectiveness of deconvolutional decoders in natural language generation, a novel application in this domain.
  • To empirically validate the trade-off between reconstruction loss and KL divergence, and propose a more effective regularization strategy.

Proposed method

  • The model uses a 1D convolutional encoder with ReLU activation and increasing filter maps to extract hierarchical features from input text.
  • The decoder employs deconvolutional layers with transposed convolutions to upsample latent representations, followed by an LSTM layer to model autoregressive dependencies.
  • A hybrid architecture combines the global context modeling of convolutional layers with the sequential modeling strength of an RNN head, enabling long-sequence generation.
  • An auxiliary reconstruction loss term is introduced to strengthen the training signal from the input, helping prevent KL collapse regardless of receptive field size.
  • The model is trained end-to-end using a variational objective that balances reconstruction loss and KL divergence, with hyperparameters tuned for stability.
  • The architecture avoids recurrent bottlenecks by using dilated convolutions and skip connections, though these are not used in the final model to prioritize interpretability and training stability.

Experimental results

Research questions

  • RQ1Can a feed-forward convolutional architecture stabilize VAE training for text generation and prevent KL term collapse?
  • RQ2How does the receptive field size of the convolutional encoder affect the model’s ability to utilize the latent vector?
  • RQ3Does introducing an auxiliary reconstruction term improve latent space utilization and training convergence?
  • RQ4Can a hybrid CNN-RNN architecture generate more diverse and realistic text than a fully recurrent VAE, especially on long sequences?
  • RQ5How does the trade-off between reconstruction and KL loss affect the quality and diversity of generated text?

Key findings

  • The hybrid model achieves significantly higher KL divergence values (12.5 vs. 3.8) than the LSTM-based VAE, indicating stronger utilization of the latent vector.
  • The model successfully avoids KL collapse even with large receptive fields (up to 4), unlike the LSTM-based VAE, which collapses when receptive field exceeds 3.
  • Greedy decoding generates diverse tweet samples, while the LSTM-based VAE produces repetitive, low-variability outputs dominated by '@userid' sequences.
  • The hybrid model converges faster and more reliably than the fully recurrent alternative, which fails to converge on longer texts in experiments.
  • The auxiliary reconstruction term (α = 0.2) effectively maintains non-zero KL values across different receptive field sizes, stabilizing training.
  • Despite comparable parameter counts (10.5M vs. 10.8M), the hybrid model outperforms the LSTM VAE in both latent space utilization and generation diversity.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.