[Paper Review] A Batch Normalized Inference Network Keeps the KL Vanishing Away
This paper proposes Batch Normalized-VAE (BN-VAE), a simple yet effective method to prevent posterior collapse in VAEs with autoregressive decoders by ensuring the Kullback-Leibler (KL) divergence follows a distribution across the dataset and maintaining a positive expectation. By batch-normalizing the parameters of the approximate posterior, BN-VAE enforces a lower bound on the expected KL without modifying the objective or adding new components, outperforming strong baselines in language modeling, text classification, and dialogue generation while preserving training efficiency.
Variational Autoencoder (VAE) is widely used as a generative model to approximate a model's posterior on latent variables by combining the amortized variational inference and deep neural networks. However, when paired with strong autoregressive decoders, VAE often converges to a degenerated local optimum known as "posterior collapse". Previous approaches consider the Kullback Leibler divergence (KL) individual for each datapoint. We propose to let the KL follow a distribution across the whole dataset, and analyze that it is sufficient to prevent posterior collapse by keeping the expectation of the KL's distribution positive. Then we propose Batch Normalized-VAE (BN-VAE), a simple but effective approach to set a lower bound of the expectation by regularizing the distribution of the approximate posterior's parameters. Without introducing any new model component or modifying the objective, our approach can avoid the posterior collapse effectively and efficiently. We further show that the proposed BN-VAE can be extended to conditional VAE (CVAE). Empirically, our approach surpasses strong autoregressive baselines on language modeling, text classification and dialogue generation, and rivals more complex approaches while keeping almost the same training time as VAE.
Motivation & Objective
- To address the posterior collapse problem in VAEs when paired with strong autoregressive decoders, which causes the KL divergence to vanish.
- To develop a method that maintains a positive expectation of the KL divergence across the dataset, preventing degenerate solutions.
- To avoid the limitations of fixed KL values or additional training loops, ensuring high training efficiency.
- To extend the approach to conditional VAE (CVAE) for dialogue generation and other conditional generation tasks.
- To demonstrate that a distributional view of KL divergence is sufficient to prevent posterior collapse without modifying the VAE objective.
Proposed method
- Propose modeling the KL divergence as a distribution across the dataset rather than treating it per data point.
- Introduce Batch Normalized-VAE (BN-VAE), which applies batch normalization to the parameters of the inference network’s output layer to regularize the distribution of the posterior mean and variance.
- Show that this regularization ensures a positive lower bound on the expected KL divergence, preventing it from collapsing to zero.
- Maintain the standard VAE objective without introducing new components or modifying the loss function.
- Extend BN-VAE to conditional VAE (CVAE) by applying the same batch normalization to the conditional inference network.
- Use the Gaussian prior as a base case, with potential extension to other priors via Gaussian approximation.
Experimental results
Research questions
- RQ1Can modeling the KL divergence as a distribution across the dataset prevent posterior collapse in VAEs with autoregressive decoders?
- RQ2Is maintaining a positive expectation of the KL distribution sufficient to avoid degenerate solutions?
- RQ3Can batch normalization of posterior parameters effectively regularize the KL distribution without modifying the VAE objective?
- RQ4Does BN-VAE outperform strong autoregressive baselines in downstream NLP tasks while maintaining training speed?
- RQ5Can BN-VAE be effectively extended to conditional VAEs for dialogue generation?
Key findings
- BN-VAE effectively prevents posterior collapse in VAEs with autoregressive decoders, as confirmed by stable and non-zero KL values across training.
- On language modeling, BN-VAE surpasses strong autoregressive baselines and rivals more complex methods, with BLEU scores competitive with state-of-the-art.
- In text classification, BN-VAE achieves higher accuracy than standard VAE and comparable results to more complex models.
- In dialogue generation, BN-VAE produces more relevant, fluent, and informative responses than standard CVAE, with higher human evaluation scores for relevance and informativeness.
- Human evaluation shows BN-VAE achieves the highest proportion of responses rated as 'High' (score=3) in fluency, relevance, and informativeness.
- Automatic evaluation confirms that BN-VAE outperforms standard CVAE in recall and cosine distance metrics, indicating better response diversity and quality.
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.