[Paper Review] Preventing Posterior Collapse with Levenshtein Variational Autoencoder
This paper proposes the Levenshtein Variational Autoencoder (Lev-VAE), a novel VAE objective that prevents posterior collapse by optimizing a bound on the KL divergence between a Levenshtein-distance-based kernel density estimator and the model distribution. By encouraging the generator to predict optimal sequence continuations at each step using Levenshtein distance, the model learns disentangled, informative latent representations without architectural changes, outperforming β-VAE and cyclical annealing VAE on downstream tasks like sentiment analysis and natural language inference.
Variational autoencoders (VAEs) are a standard framework for inducing latent variable models that have been shown effective in learning text representations as well as in text generation. The key challenge with using VAEs is the {\it posterior collapse} problem: learning tends to converge to trivial solutions where the generators ignore latent variables. In our Levenstein VAE, we propose to replace the evidence lower bound (ELBO) with a new objective which is simple to optimize and prevents posterior collapse. Intuitively, it corresponds to generating a sequence from the autoencoder and encouraging the model to predict an optimal continuation according to the Levenshtein distance (LD) with the reference sentence at each time step in the generated sequence. We motivate the method from the probabilistic perspective by showing that it is closely related to optimizing a bound on the intractable Kullback-Leibler divergence of an LD-based kernel density estimator from the model distribution. With this objective, any generator disregarding latent variables will incur large penalties and hence posterior collapse does not happen. We relate our approach to policy distillation \cite{RossGB11} and dynamic oracles \cite{GoldbergN12}. By considering Yelp and SNLI benchmarks, we show that Levenstein VAE produces more informative latent representations than alternative approaches to preventing posterior collapse.
Motivation & Objective
- To address the posterior collapse problem in variational autoencoders, where the generator ignores the latent variable during generation.
- To develop a simple, efficient, and general-purpose training objective that prevents posterior collapse without modifying the model architecture.
- To demonstrate that the proposed method yields more informative latent representations than existing approaches like β-VAE and cyclical annealing VAE.
- To show that the method generalizes across different tasks, including representation learning and language modeling.
- To provide a probabilistically grounded objective derived from a bound on the KL divergence between a KDE and the model distribution.
Proposed method
- Replace the standard ELBO objective with a new loss that encourages the generator to predict optimal continuations of the generated sequence at each time step.
- Define optimal continuations using the Levenshtein distance between the current generated prefix and the ground-truth target sequence.
- Use dynamic programming to efficiently compute the set of optimal continuations at each step, enabling differentiable training.
- Formulate the objective as an upper bound on the intractable KL divergence between a Levenshtein-based kernel density estimator and the model distribution.
- Train the model using a combination of reconstruction loss based on optimal continuation prediction and KL regularization between prior and posterior distributions.
- Apply the method to both non-conditional generation and downstream classification tasks, using linear probes on latent representations.
Experimental results
Research questions
- RQ1Can a new VAE objective based on Levenshtein distance prevent posterior collapse without architectural modifications?
- RQ2How does the performance of the proposed Levenshtein VAE compare to β-VAE and cyclical annealing VAE in terms of representation quality?
- RQ3To what extent does the model’s latent space capture meaningful sentence structure, especially when the model cannot rely on gold-standard prefixes?
- RQ4Does the method generalize to downstream NLP tasks such as natural language inference and sentiment classification?
- RQ5Can the model maintain strong generation quality while avoiding exposure bias, given its training regime?
Key findings
- On the SNLI dataset, the Levenshtein VAE with α=1.0 achieved a linear probe accuracy of 63.80%, outperforming β-VAE (60.33%) and cyclical annealing VAE (55.54%) under similar training conditions.
- The simple non-variational Levenshtein autoencoder (Lev. AE) achieved 61.49% accuracy on SNLI, surpassing the standard VAE (43.36%) and demonstrating the effectiveness of the core idea even without latent regularization.
- On the Yelp sentiment analysis dataset, the Lev-VAE model achieved higher accuracy than β-VAE and cyclical annealing VAE, despite using larger KL values, indicating more informative latent codes.
- Word reconstruction accuracy was higher in the Lev-VAE compared to β-VAE across all positions in the input sentence, showing that Lev-VAE better utilizes latent codes rather than relying on ground-truth prefixes.
- In a semi-supervised setup with varying labeled data, Lev-VAE outperformed β-VAE across all data regimes, confirming robustness and generalization capability.
- The model achieved near-perfect autoencoding performance (reconstruction loss ≈1.49) on the Yelp dataset, indicating that the latent space captures full sentence information.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.