Papers › Riemannian Normalizing Flow on Variational Wasserstein Autoencoder for Text Modeling

Riemannian Normalizing Flow on Variational Wasserstein Autoencoder for Text Modeling

4 Apr 2019NAACL 2019 6arXiv:1904.02399archive 2025-07-28

Prince Zizhuang Wang, William Yang Wang

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1904.02399")

Code

Syntology Ran 1 of 14 code samples harvested from 1 repository linked to this paper; 13 have no recorded run. Of those that ran: 1 ran · our draft was wrong.

By repository: official repository: 14 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

kingofspace0wzz/wae-rnf-lm officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 1 ran; 0 honoured the contract we drafted; 13 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
13unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from kingofspace0wzz/wae-rnf-lm. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

detach kingofspace0wzz/wae-rnf-lm/copula-lm/model.py official repository ran · our draft was wrong MIT (permissive) · 83d1c2e11d595efa · report
bow_recon_loss kingofspace0wzz/wae-rnf-lm/copula-lm/loss.py official repository unverified MIT (permissive) · 05ee14317de0f42a · report
flow_kld kingofspace0wzz/wae-rnf-lm/loss.py official repository unverified MIT (permissive) · 6ad6d375bcd296f1 · report
forgy kingofspace0wzz/wae-rnf-lm/clustering/kmeans.py official repository unverified MIT (permissive) · 309c3db1dd9740dc · report
group_pairwise kingofspace0wzz/wae-rnf-lm/clustering/pairwise.py official repository unverified MIT (permissive) · b067a64447478f3f · report
im_metric kingofspace0wzz/wae-rnf-lm/stochastic/flow.py official repository unverified MIT (permissive) · 493fdeb2279b439e · report
log_sum_exp kingofspace0wzz/wae-rnf-lm/model.py official repository unverified MIT (permissive) · 7b95c648cb0fb5f2 · report
metric kingofspace0wzz/wae-rnf-lm/stochastic/flow.py official repository unverified MIT (permissive) · ca442985ac3b7e16 · report
pairwise_distance kingofspace0wzz/wae-rnf-lm/clustering/pairwise.py official repository unverified MIT (permissive) · b67c0c61b3e58c05 · report
recon_loss kingofspace0wzz/wae-rnf-lm/loss.py official repository unverified MIT (permissive) · f78950c60af411a7 · report
seq_recon_loss kingofspace0wzz/wae-rnf-lm/copula-lm/loss.py official repository unverified MIT (permissive) · 06daa8767944cf66 · report
square_norm kingofspace0wzz/wae-rnf-lm/stochastic/flow.py official repository unverified MIT (permissive) · 1bb0df71b00e39af · report
total_kld kingofspace0wzz/wae-rnf-lm/loss.py official repository unverified MIT (permissive) · e80403ae8dfd6e68 · report
total_kld kingofspace0wzz/wae-rnf-lm/copula-lm/loss.py official repository unverified MIT (permissive) · 405fac421afa9586 · report

Tasks

Language ModelingLanguage ModellingText Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections