Skip to main content
QUICK REVIEW

[Paper Review] Riemannian Normalizing Flow on Variational Wasserstein Autoencoder for Text Modeling

Prince Zizhuang Wang, William Yang Wang|arXiv (Cornell University)|Apr 4, 2019
Generative Adversarial Networks and Image SynthesisComputer Science29 references9 citations
TL;DR

This paper proposes a Riemannian Normalizing Flow (RNF) within a Variational Wasserstein Autoencoder (WAE) to improve text modeling by learning latent representations that respect the geometric structure of input text space. By replacing the standard Gaussian prior with a Riemannian metric-aware latent space, the model avoids the KL vanishing problem, achieves state-of-the-art perplexity on most benchmarks, and generates more diverse, meaningful text samples.

ABSTRACT

Recurrent Variational Autoencoder has been widely used for language modeling and text generation tasks. These models often face a difficult optimization problem, also known as the Kullback-Leibler (KL) term vanishing issue, where the posterior easily collapses to the prior, and the model will ignore latent codes in generative tasks. To address this problem, we introduce an improved Wasserstein Variational Autoencoder (WAE) with Riemannian Normalizing Flow (RNF) for text modeling. The RNF transforms a latent variable into a space that respects the geometric characteristics of input space, which makes posterior impossible to collapse to the non-informative prior. The Wasserstein objective minimizes the distance between the marginal distribution and the prior directly and therefore does not force the posterior to match the prior. Empirical experiments show that our model avoids KL vanishing over a range of datasets and has better performances in tasks such as language modeling, likelihood approximation, and text generation. Through a series of experiments and analysis over latent space, we show that our model learns latent distributions that respect latent space geometry and is able to generate sentences that are more diverse.

Motivation & Objective

  • Address the KL divergence vanishing problem in recurrent VAEs for text generation, where posterior collapses to prior and latent codes become uninformative.
  • Overcome limitations of standard VAEs that assume a diagonal Gaussian prior, which fails to capture the intrinsic geometric structure of natural language data.
  • Leverage the Wasserstein objective to minimize marginal distribution distance to the prior, reducing reliance on posterior matching and mitigating KL collapse.
  • Develop a novel Riemannian Normalizing Flow (RNF) that transforms latent variables into a curved space respecting input data geometry, making posterior collapse to a standard Gaussian impossible.
  • Improve both likelihood approximation (perplexity) and text generation quality by learning more informative, diverse, and geometry-aware latent representations.

Proposed method

  • Integrate Riemannian Normalizing Flow (RNF) into a Wasserstein Variational Autoencoder (WAE), where the latent space is transformed via a flow that respects the Riemannian metric tensor derived from input data geometry.
  • Use the Riemannian metric tensor to define a curved latent space that encodes intrinsic geometric properties of the input sentence manifold.
  • Apply normalizing flows to map a simple base distribution (e.g., standard Gaussian) to a complex, Riemannian-structured posterior distribution in the latent space.
  • Employ the Wasserstein GAN objective to minimize the distance between the marginal posterior and the prior, avoiding forced posterior-prior matching.
  • Train the model end-to-end using stochastic gradient descent with reparameterization, optimizing the WAE objective with RNF-based normalizing flows.
  • Use Monte Carlo estimation to approximate mutual information between latent codes and input data, evaluating the informativeness of learned representations.

Experimental results

Research questions

  • RQ1Can Riemannian Normalizing Flows effectively prevent posterior collapse in VAEs for text modeling by encoding geometric structure of input data?
  • RQ2Does the Wasserstein objective, combined with RNF, lead to better language modeling performance (measured by perplexity) compared to standard VAEs and WAEs?
  • RQ3To what extent do Riemannian latent representations preserve mutual information between input sentences and latent codes compared to Euclidean latent spaces?
  • RQ4How does the use of RNF affect the diversity and semantic quality of generated text samples?
  • RQ5Can the proposed RNF-WAE model achieve state-of-the-art results in text generation and likelihood approximation across standard NLP benchmarks?

Key findings

  • The RNF-WAE model achieves state-of-the-art perplexity on most standard language modeling datasets, including PTB and Yelp, outperforming prior VAE-based models.
  • The model significantly reduces the KL divergence vanishing problem by ensuring the posterior cannot collapse to a standard Gaussian due to the geometric constraints of the Riemannian latent space.
  • Mutual information between latent codes and input sentences is higher in the Riemannian space ($I(oldsymbol{z}^{oldsymbol{ackprime}}, oldsymbol{x}) > I(oldsymbol{z}, oldsymbol{x})$) than in Euclidean space, indicating more informative representations.
  • Texts generated from the Riemannian latent space exhibit greater diversity in meaning and structure, as the flow enables broader posterior support across different input conditions.
  • The combination of RNF and the Wasserstein objective enables more stable and effective training, with improved trade-offs between reconstruction quality and latent code informativeness.
  • Empirical results show that even when perplexity improvements are modest, the RNF-WAE model consistently improves in mutual information and generation diversity, confirming the value of geometrically-aware latent spaces.

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.