Abstract
Generating long, coherent text remains a challenge for standard Variational Autoencoders (VAEs) due to issues like lack of long-term planning and posterior collapse. This paper introduces the Multi-Level VAE (ml-VAE), which utilizes a hierarchical "plan-ahead" decoder and a two-layer latent variable structure. Experimental results on Yelp reviews and arXiv abstracts demonstrate that ml-VAE significantly improves text coherence and effectively mitigates posterior collapse, outperforming standard flat VAE models in both quantitative metrics and human evaluations.
Introduction
While modern AI models excel at generating individual sentences, producing coherent paragraphs is significantly more difficult. Standard VAEs often struggle with two primary issues: a lack of long-term structural planning and "posterior collapse." Posterior collapse occurs when the decoder ignores the latent variables provided by the encoder, essentially reverting to a simple language model. This research proposes a multi-level architecture to address these hurdles, enabling the generation of diverse and structured long-form content.
Methodology: The Multi-Level VAE
The core innovation of this work is the Multi-Level VAE (ml-VAE). Unlike standard "flat" VAEs, the ml-VAE employs a hierarchical approach in both its encoding and decoding stages.
Hierarchical "Plan-Ahead" Decoder
The model uses a two-stage generation process. A sentence-level LSTM first produces a sequence of "plan vectors"—one for each intended sentence. Subsequently, a word-level LSTM uses these vectors as blueprints to generate the actual text. This separation of high-level intent from low-level word choice ensures global structure and topical consistency across the paragraph.
Double Latent Variables (ml-VAE-D)
To combat posterior collapse, the authors introduced a hierarchy of two latent variables, $z_1$ and $z_2$. Instead of a fixed Gaussian prior, the distribution of the lower-level variable ($z_1$) is conditioned on the top-level variable ($z_2$). This learned, flexible prior makes it much harder for the decoder to ignore the latent information, ensuring that the generated text remains grounded in the encoded "thought" vector.
Experimental Results
The models were evaluated on the Yelp Reviews and arXiv Abstracts datasets. The double latent version (ml-VAE-D) showed superior performance across several key metrics.
As shown in the results table, the ml-VAE-D model achieved significantly higher KL divergence (e.g., 6.8 vs. 0.01 on Yelp) compared to the flat-VAE. This high KL term is a direct indicator that the model is actively utilizing its latent space, successfully overcoming posterior collapse. Furthermore, the model reduced perplexity (PPL) on the arXiv dataset from 58.1 to 54.3, demonstrating improved predictive accuracy.
Qualitative assessments and human evaluations further supported these findings. In head-to-head tests, human reviewers preferred ml-VAE-D's output for its superior fluency and logical flow. While standard models often produced repetitive or contradictory sentences, the ml-VAE-D maintained a coherent narrative throughout the generated paragraphs.
Conclusion and Future Work
The ml-VAE framework represents a significant advancement in generating structured, long-form text. By learning a flexible prior and employing a hierarchical decoding strategy, the model effectively addresses the long-standing problem of posterior collapse. Future research directions include improving content preservation during style transfer tasks and integrating multi-level latent variables with Transformer-based architectures to further enhance generation quality.
Summary updated