Skip to main content
QUICK REVIEW

[Paper Review] Stochastic Wasserstein Autoencoder for Probabilistic Sentence Generation

Hareesh Bahuleyan, Lili Mou|arXiv (Cornell University)|Jun 22, 2018
Topic ModelingComputer Science9 citations
TL;DR

This paper proposes a stochastic Wasserstein autoencoder (WAE) for probabilistic sentence generation, addressing the instability and poor training performance of variational autoencoders (VAEs) in NLP. By introducing a KL penalty to preserve encoder stochasticity, the method achieves higher BLEU scores and improved generation diversity than VAEs, while eliminating the need for KL annealing or word dropout.

ABSTRACT

The variational autoencoder (VAE) imposes a probabilistic distribution (typically Gaussian) on the latent space and penalizes the Kullback--Leibler (KL) divergence between the posterior and prior. In NLP, VAEs are extremely difficult to train due to the problem of KL collapsing to zero. One has to implement various heuristics such as KL weight annealing and word dropout in a carefully engineered manner to successfully train a VAE for text. In this paper, we propose to use the Wasserstein autoencoder (WAE) for probabilistic sentence generation, where the encoder could be either stochastic or deterministic. We show theoretically and empirically that, in the original WAE, the stochastically encoded Gaussian distribution tends to become a Dirac-delta function, and we propose a variant of WAE that encourages the stochasticity of the encoder. Experimental results show that the latent space learned by WAE exhibits properties of continuity and smoothness as in VAEs, while simultaneously achieving much higher BLEU scores for sentence reconstruction.

Motivation & Objective

  • Address the challenge of training variational autoencoders (VAEs) in NLP, where the KL divergence term often collapses to zero, leading to poor latent space modeling.
  • Overcome the limitations of VAEs, which require complex heuristics like KL annealing and word dropout to train effectively.
  • Explore the use of Wasserstein autoencoders (WAEs) as a more stable alternative for probabilistic sentence generation with continuous latent spaces.
  • Investigate the tendency of stochastic WAE encoders to collapse into Dirac-delta functions and propose a solution to preserve meaningful stochasticity.
  • Demonstrate that the proposed method achieves superior reconstruction and generation quality compared to both VAEs and deterministic autoencoders in text generation tasks.

Proposed method

  • Adopt the Wasserstein autoencoder (WAE) framework, which minimizes the Wasserstein distance between the aggregated posterior and prior distributions instead of relying on KL divergence.
  • Use a stochastic encoder to map input sentences to a latent distribution, with the decoder reconstructing sentences from sampled latent vectors.
  • Introduce a heuristic KL penalty term to prevent the stochastic encoder from collapsing into a deterministic Dirac-delta function, thereby preserving stochasticity.
  • Formulate the training objective as a weighted sum of reconstruction loss, WAE regularizer (Wasserstein distance), and an auxiliary KL term to encourage encoder stochasticity.
  • Train the model end-to-end using stochastic gradient descent without requiring KL annealing or word dropout, simplifying training compared to VAEs.
  • Extend the WAE framework to an encoder-decoder architecture (WED) for dialogue response generation, evaluating both deterministic and stochastic encoder variants.

Experimental results

Research questions

  • RQ1Why do stochastic encoders in standard WAEs tend to collapse into deterministic Dirac-delta functions in NLP tasks?
  • RQ2Can a modified WAE with an auxiliary KL penalty effectively preserve stochasticity in the encoder while maintaining the benefits of the WAE framework?
  • RQ3How does the proposed WAE variant compare to VAEs in terms of reconstruction quality (BLEU) and generation diversity (entropy, distinct n-grams)?
  • RQ4Does the proposed method eliminate the need for training heuristics like KL annealing or word dropout in text generation?
  • RQ5Can the WAE-based model achieve high-quality, diverse, and fluent sentence generation in dialogue systems compared to VAE-based models?

Key findings

  • The proposed WAE with KL penalty achieves a BLEU-4 score of 22.5 on the SNLI sentence generation task, outperforming VAEs by 40 BLEU points and approaching the performance of deterministic autoencoders (DAE).
  • WAE with the KL penalty achieves the highest output diversity, with a Dist-2 score of 0.309 on the DailyDialog corpus, significantly outperforming VAE-based models (0.204) and deterministic WAEs (0.272).
  • The stochastic WAE variant maintains high reconstruction performance (BLEU-4 ≈ 22.5) while enabling diverse and fluent generation, unlike deterministic WAEs which lack diversity.
  • The model achieves superior results without requiring KL annealing or word dropout, demonstrating robustness and ease of training compared to VAEs.
  • In dialogue generation, the WED-S model with the KL-penalized stochastic encoder outperforms VED, WED-D, and DED in both BLEU scores and diversity metrics, confirming improved generation quality and variety.
  • Theoretical and empirical analysis confirms that the original stochastic WAE encoder tends to collapse into a Dirac-delta function, justifying the need for the proposed KL regularization.

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.