Bowman sentence VAE2016
A single-layer LSTM sequence autoencoder with a Gaussian prior on the code, trained on the ELBO with KL annealing and word dropout to stop the decoder ignoring the latent. The origin of the posterior-collapse problem and of the two standard fixes.
- PTB for the LM experiments
- Books Corpus 12k e-books, ~80M sentences
- Books Corpus models decode right-to-left
- learned word embedding dictionary
- final state → linear → μ, σ
- params not stated
- PTB: 13-d standard, 111-d inputless
- Books Corpus dim not stated
- diagonal Gaussian posterior and prior
- z is the initial state
- word dropout replaces history with unk
- 512 hidden units on Books Corpus
- β annealed 0 → 1, sigmoid schedule
- KL closed form, reconstruction one sample
- word-dropout keep rate tuned per model
- Initialisationno pretrained model; the encoder and decoder are single-layer LSTMs described as trained from scratch§3
- Word embeddingsa learned dictionary, not pretrained vectorsFigure 1
- Explicit "random init" statementnot stated in paper
- Teacher / distillationnone§3
- Relation to prior work"essentially forming a sequence autoencoder with the Gaussian prior acting as a regularizer on the hidden code"; same high-level architecture as the VRAE of Fabius and van Amersfoort (2014)§3
- Architecturesingle-layer LSTM RNN encoder and single-layer LSTM RNN decoder§3
- Books Corpus model512 hidden units§5
- Classification-appendix model1200 hidden unitsAppendix, Text classification
- Penn Treebank VAE (tuned)embedding dim 353, LSTM state dim 191, z dim 13; inputless-decoder variant 499 / 350 / 111Table 11
- Penn Treebank RNNLM baseline (tuned)embedding dim 464, LSTM state dim 337; inputless variant 305 / 68Table 11
- Parameter countnot stated in paper
- Vocabulary size and tokenizernot stated in paper; an
unktoken and aneostoken are used§3.1, §5 - FFN width, attention headsnot applicable (LSTM)
- Formationthe encoder LSTM's final state passes through two linear maps to the mean and variance of a diagonal Gaussian q(z|x); z is a single sample from itFigure 1, §2.2
- Priorstandard diagonal Gaussian, μ = 0, σ = 1; reparameterization trick of Kingma and Welling (2015)§2.2
- Dimensionality13 (PTB, standard decoder) and 111 (PTB, inputless decoder), both chosen by the hyperparameter tuner —
Table 11; the Books Corpus models' z dim is not stated in paper - How the decoder reads itz is the initial state of the decoding LSTMFigure 1
- Variant triedconcatenating z to the decoder input at every time step — "little difference"§3
- Variants triedsoftplus variance parametrization, and feedforward stacks between encoder and latent and between latent and decoder; the latter only trains with highway layers§3
- Richer posteriors triedDRAW-style multistep recognition and normalizing flows; "unable to reap significant gains over our plain vae"§3
- Normalisation of znot stated in paper
- Downstream usethe posterior mean is taken as the sentence vectorAppendix, Text classification
- Objectivethe variational lower bound L(θ;x) = −KL(qθ(z|x) ‖ p(z)) + Eqθ(z|x)[log pθ(x|z)] ≤ log p(x)§2.2, Eq. 1
- Estimatorreconstruction from one sample of q(z|x) per step, KL in closed form§2.2
- Failure mode addressedwithout intervention q(z|x) collapses to p(z), KL goes to zero and the model is an RNNLM§3.1
- KL cost annealinga weight on the KL term starting at 0 and raised gradually to 1, at which point the weighted cost is the true lower bound; "annealing from a vanilla autoencoder to a vae"§3.1
- Annealing schedulesigmoid; rate tuned as a hyperparameter, value not stated§3.1, Figure 2
- Word dropouta fraction of the ground-truth previous-word tokens the decoder conditions on are replaced with
unk, parameterised by a keep rate k ∈ [0,1] and tuned for both VAE and RNNLM§3.1 - Historyless / inputless decodingk = 0, so the decoder conditions only on the number of words emitted so far; its generation process is fully differentiable§3.1, §4
- Keep rates used0.62 VAE / 0.66 RNNLM on Penn Treebank; a fixed 75% keep rate for the Books Corpus model and everything after itTable 11, §5
- Standard embedding dropouttried in the decoder, "did not help the model learn to use the latent variable"§3.1
- Both tricks requiredwithout word dropout and cost annealing together, training "reliably results in models with equivalent performance to the baseline rnnlm, and zero kl divergence"§4
- Decoding directionthe Books Corpus models are trained to decode right-to-left, to shorten dependencies for the VAE§5
- Optimizerstochastic gradient descent —
§2.2; no variant named - Learning rate, batch size, steps/epochsnot stated in paper
- Hyperparameter searchBayesian optimisation after Snoek et al. (2012), 10 hours per configuration, 12 in parallel, best of 200 runs on devAppendix, Hyperparameter tuning
- Hardware and total wall-clocknot stated in paper
- Penn Treebank(Marcus et al., 1993), standard train–test split, for the §4 language-modelling experiments —
§4; sentence and token counts not stated in paper - Books Corpus(Kiros et al., 2015) for imputation, analysis and classification: "text from 12k e-books, mostly fiction", "after pruning, contains approximately 80m sentences"§5
- Held-out set10k Books Corpus sentences; train and test performance "very similar"§6.1
- Languagenot stated in paper; all data and samples are English§5
- Max sentence length, vocabulary cut-off, pruning criterianot stated in paper
- Evaluation data320k sentences split 80/10/10 for the adversarial classifiers, half real endings and half imputed, with the final 20% of each sentence imputed; MSRP and TREC for the classification appendix§5, Appendix
On Penn Treebank language modelling with a standard decoder the VAE loses to the plain RNNLM: test NLL 101 with a KL term of 2 and test perplexity 119, against the RNNLM's 100 and 116 (Table 2) — the paper bills this as a negative result in the abstract, and notes the comparison is already conservative because the VAE figure is a lower bound while the RNNLM's is exact. The VAE only wins once the decoder is crippled: with an inputless decoder it reaches test NLL 125 (KL 15) and perplexity 380 against 135 and > 600. The KL term never dominates the reconstruction term in any run. On imputing the final 20% of Books Corpus sentences, evaluated by how well a discriminator separates completions from real endings, the VAE reaches 22.39% adversarial error against a unigram classifier and 35.59% against an LSTM classifier, versus 28.32% and 38.92% for a compute-matched RNNLM beam search (Table 4); the two models' sentence NLLs are near-identical at 46.14 and 46.01. Sweeping the word-dropout keep rate on Books Corpus moves information into z monotonically — KL 0.01 at 100% keep, 8.75 at 75%, 20.91 at 0% — while total likelihood degrades somewhat (Figure 3). As sentence features the posterior means are middling: 72.9 accuracy / 81.4 F1 on MSRP against skip-thought's 73.0 / 81.9, and 87.0 on TREC against skip-thought's 91.4, though they beat a plain sequence autoencoder's 84.2 and are complementary to skip-thought when concatenated (Tables 9, 10). Qualitatively, linear interpolations between codes stay grammatical (Tables 8, 12) where a plain sequence autoencoder's do not (Table 1).
Release: no code or weights release is mentioned anywhere in the paper.
This card was read from arXiv:1511.06349v4 over all 12 pages including both appendices. Parameter count, vocabulary size, tokenizer, learning rate, batch size, training steps, hardware, wall-clock, the numeric KL annealing rate, the Books Corpus latent dimensionality and the language are all left off because the paper does not state them; the only dimensionalities given are the tuner-selected Penn Treebank values in Table 11 and the 512 / 1200 hidden-unit counts for the Books Corpus models.
models/bowman-vae.md