Abstract: Standard Variational Auto-encoders (VAEs) for text often suffer from "posterior collapse," where the decoder ignores the latent space. This paper introduces Implicit VAEs (iVAEs), which replace rigid Gaussian distributions with flexible, sample-based representations. By utilizing a dual-form optimization trick to handle these distributions, the authors successfully mitigate posterior collapse and achieve state-of-the-art results across language modeling, style transfer, and dialog generation.
Introduction
Deep latent variable models like VAEs are designed to capture high-level features of text—such as style, topic, or sentiment—within a smooth latent space. However, applying them to natural language processing (NLP) presents two significant challenges:
- The Gaussian Assumption: Most VAEs assume the latent space follows a simple Gaussian distribution. Real-world language is far more complex, and this "approximation gap" prevents the model from learning an optimal generative process.
- Posterior Collapse: When paired with powerful auto-regressive decoders like LSTMs, VAEs often become "lazy." The encoder produces latent codes that mimic the prior noise, leading the decoder to ignore them entirely and function as a plain language model.
While existing solutions like KL-annealing or architectural tweaks offer some relief, they do not address the fundamental mismatch between the data and the assumed distribution.
Methods
The authors propose a shift from explicit distributions (defined by mathematical density formulas) to implicit ones.
Implicit Representations and Dual Optimization
Instead of outputting parameters for a Gaussian, the encoder generates samples by transforming random noise through a neural network. Since implicit distributions lack a tractable density function, standard KL-divergence calculations are impossible. The authors employ Fenchel Duality to introduce an auxiliary "dual" function—essentially a discriminator—that estimates the KL-divergence using samples.
iVAE-MI (Mutual Information)
A refined variant, iVAE-MI, matches the aggregated posterior (the average of all latent codes across the dataset) to the prior. This encourages the model to maximize the Mutual Information between the input text and the latent code, ensuring the latent space captures meaningful, sentence-specific information.
Experimental Setup
The models were evaluated on three distinct tasks using various corpora:
- Language Modeling: Penn Treebank (PTB), Yahoo, and Yelp.
- Unaligned Style Transfer: A modified Yelp dataset focused on sentiment reversal.
- Dialog Response Generation: Switchboard and Dailydialog datasets.
Key Results and Discussion
The iVAE models significantly outperformed strong baselines, including $\beta$-VAE and Cyclical VAE, particularly in overcoming posterior collapse.
Performance Metrics
- Language Modeling: On the PTB dataset,
iVAE-MIachieved a Perplexity (PPL) of 53.44, a dramatic improvement over the 108.26 achieved by a standard VAE. - Active Units (AU): This metric serves as the primary evidence for mitigating posterior collapse. While standard VAEs often utilize only 0 to 2 latent dimensions, the iVAE models successfully utilized all 32 dimensions.
- Dialog and Style Transfer: In dialog tasks,
iVAE-MIimproved diversity and relevance. In style transfer, qualitative analysis showed iVAE was superior at preserving original content while successfully altering sentiment, whereas previous methods like ARAE often hallucinated unrelated text.
Insights
By moving to implicit distributions, the model gains the necessary optimization flexibility to represent complex sentences without forcing them into a "Gaussian straitjacket." Furthermore, the auxiliary network used for KL estimation converges faster than the LSTM components, leading to a more stable training process than typical adversarial setups.
Conclusion
Implicit VAEs provide a robust framework for learning meaningful latent representations in text. While they introduce roughly 30% more computational overhead due to the auxiliary network, the gains in latent space utility and generative quality are substantial. Future research may explore the interaction between these implicit latent spaces and modern Transformer-based architectures like GPT or BERT.
Summary updated