SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1904.02399 · 2019

Riemannian Normalizing Flow on Variational Wasserstein Autoencoder for Text Modeling

arXiv · PDF · Open in the Atlas

Code that ran

13 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 12 have no contract verdict; 1 failure of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/1904.02399.json · badge: /api/ran/1904.02399.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
kingofspace0wzz/wae-rnf-lm canonical (classifier label)
classifier basis: census
13 ran · 1 no recorded run
FunctionStatusWhere it lives
bow_recon_loss Ran
ran on a synthesized input
kingofspace0wzz/wae-rnf-lm/copula-lm/loss.py
code served (permissive licence) · get_code("05ee14317de0f42a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# outputs: bag-of-words log likelihood predictions
# Should be log probabilities, shape (batch_size, vocab_size)
outputs = torch.randn(2, 4, requires_grad=True)

# targets: target counts
# Should be counts/frequencies, same shape as outputs
targets = torch.randint(0, 5, (2, 4)).float()

ARGS = {
    "outputs": outputs,
    "targets": targets,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
detach Ran
ran; our contract draft was wrong, not the code
kingofspace0wzz/wae-rnf-lm/copula-lm/model.py
pointer only (licence: MIT); the stored copy get_code serves, from gtshs2/BetaLSTM, is pointer only (licence: NONE) · get_code("83d1c2e11d595efa")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from gtshs2/BetaLSTM, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

flow_kld Ran
ran on a synthesized input
kingofspace0wzz/wae-rnf-lm/loss.py
code served (permissive licence) · get_code("6ad6d375bcd296f1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from torch.distributions import Normal

torch.manual_seed(0)

# Create simple distribution objects for q_z and p_z
# They need to support .entropy() and be usable with kl_divergence()
batch_size = 2
latent_dim = 4

# q_z: approximate posterior distribution
q_z = Normal(
    loc=torch.randn(batch_size, latent_dim),
    scale=torch.ones(batch_size, latent_dim) * 0.5
)

# p_z: prior distribution
p_z = Normal(
    loc=torch.zeros(batch_size, latent_dim),
    scale=torch.ones(batch_size, latent_dim)
)

# z: sampled latent variable from q_z
z = q_z.rsample()

# z0: initial latent variable (for flow models)
z0 = torch.randn(batch_size, latent_dim)

# sum_log_j: sum of log jacobian determinants
sum_log_j = torch.randn(batch_size)

ARGS = {
    "q_z": q_z,
    "p_z": p_z,
    "z": z,
    "z0": z0,
    "sum_log_j": sum_log_j
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
forgy Ran
ran on a synthesized input
kingofspace0wzz/wae-rnf-lm/clustering/kmeans.py
code served (permissive licence) · get_code("309c3db1dd9740dc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# The forgy function takes:
# - X: an array-like object that supports len() and indexing with a numpy array of indices
# - n_clusters: an integer specifying the number of clusters

# Create a small numpy array as X
X = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0],
    [9.0, 10.0, 11.0, 12.0],
    [13.0, 14.0, 15.0, 16.0],
    [17.0, 18.0, 19.0, 20.0]
])

n_clusters = 2

ARGS = {
    "X": X,
    "n_clusters": n_clusters
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
group_pairwise Ran
ran on a synthesized input
kingofspace0wzz/wae-rnf-lm/clustering/pairwise.py
code served (permissive licence) · get_code("b067a64447478f3f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create small sample data: 6 samples with 4 features each
X = torch.randn(6, 4)

# Define groups as lists of indices
# Group 0: samples [0, 1]
# Group 1: samples [2, 3]
# Group 2: samples [4, 5]
groups = [[0, 1], [2, 3], [4, 5]]

# Device parameter (CPU only)
device = -1

# Custom function that uses pairwise_distance
def custom_fun(r, c):
    from __main__ import pairwise_distance
    return pairwise_distance(r, c, device=-1).cpu()

ARGS = {
    "X": X,
    "groups": groups,
    "device": device,
    "fun": lambda r, c: torch.cdist(r, c) ** 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
__main__, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
im_metric Ran
ran on a synthesized input
kingofspace0wzz/wae-rnf-lm/stochastic/flow.py
code served (permissive licence) · get_code("493fdeb2279b439e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# z: batch of latent vectors, shape (batch_size, z_dim)
z = torch.randn(2, 4)

# centers: cluster centers, shape (n_centers, z_dim)
centers = torch.randn(3, 4)

ARGS = {
    "z": z,
    "centers": centers,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
log_sum_exp Ran
ran on a synthesized input
kingofspace0wzz/wae-rnf-lm/model.py
code served (permissive licence) · get_code("7b95c648cb0fb5f2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor for testing
# Using shape (2, 4) - batch size 2, dimension 4
value = torch.randn(2, 4)

# Test with dim=None (sum over all elements)
ARGS = {
    "value": value,
    "dim": None,
    "keepdim": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
metric Ran
ran on a synthesized input
kingofspace0wzz/wae-rnf-lm/stochastic/flow.py
code served (permissive licence) · get_code("ca442985ac3b7e16")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# z: batch of embeddings, shape (batch_size, embedding_dim)
z = torch.randn(2, 4)

# centers: cluster centers, shape (n_centers, embedding_dim)
centers = torch.randn(3, 4)

# band: bandwidth parameter for the kernel
band = 0.5

ARGS = {
    "z": z,
    "centers": centers,
    "band": band,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
pairwise_distance Ran
ran on a synthesized input
kingofspace0wzz/wae-rnf-lm/clustering/pairwise.py
code served (permissive licence) · get_code("b67c0c61b3e58c05")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create two small tensors for pairwise distance computation
# data1: shape (2, 4) - 2 samples, 4 dimensions
# data2: shape (3, 4) - 3 samples, 4 dimensions
data1 = torch.randn(2, 4)
data2 = torch.randn(3, 4)

ARGS = {
    "data1": data1,
    "data2": data2,
    "device": -1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
seq_recon_loss Ran
ran on a synthesized input
kingofspace0wzz/wae-rnf-lm/copula-lm/loss.py
code served (permissive licence) · get_code("06daa8767944cf66")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn.functional as F

torch.manual_seed(0)

# Create outputs tensor: shape (batch_size, seq_len, vocab_size)
# batch=2, seq_len=3, vocab_size=4
outputs = torch.randn(2, 3, 4)

# Create targets tensor: shape (batch_size, seq_len)
# batch=2, seq_len=3
targets = torch.randint(0, 4, (2, 3))

# Set some values to pad_id to test ignore_index functionality
pad_id = 0
targets[0, 1] = pad_id

ARGS = {
    "outputs": outputs,
    "targets": targets,
    "pad_id": pad_id
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
square_norm Ran
ran on a synthesized input
kingofspace0wzz/wae-rnf-lm/stochastic/flow.py
code served (permissive licence) · get_code("1bb0df71b00e39af")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

x = torch.randn(2, 4)
y = torch.randn(3, 4)

ARGS = {
    "x": x,
    "y": y,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
total_kld Ran
ran on a synthesized input
kingofspace0wzz/wae-rnf-lm/loss.py
code served (permissive licence) · get_code("e80403ae8dfd6e68")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from torch.distributions import Normal

torch.manual_seed(0)

# Create two Normal distributions for q_z and p_z
# kl_divergence expects distribution objects that support the KL divergence computation
# Normal distribution requires loc (mean) and scale (std dev) parameters

# q_z: approximate posterior distribution
q_loc = torch.randn(2, 4)  # batch_size=2, latent_dim=4
q_scale = torch.ones(2, 4) * 0.5
q_z = Normal(q_loc, q_scale)

# p_z: prior distribution (typically standard normal)
p_loc = torch.zeros(2, 4)
p_scale = torch.ones(2, 4)
p_z = Normal(p_loc, p_scale)

ARGS = {
    "q_z": q_z,
    "p_z": p_z
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
total_kld Ran
ran on a synthesized input
kingofspace0wzz/wae-rnf-lm/copula-lm/loss.py
code served (permissive licence) · get_code("405fac421afa9586")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch.distributions import Normal

torch.manual_seed(0)

# Create two Normal distributions for posterior and prior
# The function uses kl_divergence(posterior, prior) which expects
# torch.distributions objects with batch and event dimensions

# Posterior distribution: batch_shape=(2,), event_shape=(4,)
posterior = Normal(
    loc=torch.randn(2, 4),
    scale=torch.abs(torch.randn(2, 4)) + 0.1
)

# Prior distribution: batch_shape=(2,), event_shape=(4,)
prior = Normal(
    loc=torch.zeros(2, 4),
    scale=torch.ones(2, 4)
)

ARGS = {
    "posterior": posterior,
    "prior": prior
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
recon_loss Not yet run
unverified (harvested, no recorded run)
kingofspace0wzz/wae-rnf-lm/loss.py
code served (permissive licence) · get_code("f78950c60af411a7")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 13 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
detach 1 other paper
1 later
1905.10521 (2019-05)
Bivariate Beta-LSTM

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("1904.02399")
get_code_for_paper("1904.02399")
have("1904.02399")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/1904.02399.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/1904.02399.svg)](https://syntology.ai/paper/1904.02399)

Connect an agent — have() is free.