Abstract
Generating realistic sequences is a central task in many machine learning applications. There has been considerable recent progress on building deep generative models for sequence generation tasks. However, the issue of mode-collapsing remains a main issue for the current models. In this paper we propose a GAN-based generic framework to address the problem of mode-collapse in a principled approach. We change the standard GAN objective to maximize a variational lower-bound of the log-likelihood while minimizing the Jensen-Shanon divergence between data and model distributions. We experiment our model with text generation task and show that it can generate realistic text with high diversity.
Introduction
Generative Adversarial Networks (GANs) have demonstrated remarkable success in generating realistic continuous data like images. However, applying GANs to discrete sequence generation, such as text, presents significant challenges. First, the discrete nature of text makes the generation process non-differentiable, preventing standard backpropagation. Second, GANs are prone to "mode collapse," where the generator learns to produce a limited set of high-quality samples that fool the discriminator, failing to capture the full diversity of the training data. While Reinforcement Learning (RL) approaches like SeqGAN have been proposed, they often suffer from high variance and do not inherently resolve the diversity issue.
Methodology: Adversarial Auto-regressive Networks (ARN)
The proposed Adversarial Auto-regressive Network (ARN) framework addresses these challenges by integrating a Variational Autoencoder (VAE) with a GAN objective.
The architecture consists of three primary components:
- VAE Initialization: A VAE encodes the initial token ($x_1$) into a latent space ($z$), providing a stochastic "seed" for the sequence.
- Autoregressive Generator: An LSTM-based generator produces subsequent tokens conditioned on the latent seed.
- Hybrid Objective: The generator is trained to simultaneously maximize a variational lower-bound of the log-likelihood and minimize the Jensen-Shannon divergence. This dual objective ensures the model stays close to the data distribution while maintaining high entropy (diversity).
- Gumbel-Softmax Relaxation: To enable end-to-end training via backpropagation, the Gumbel-Softmax trick is employed to approximate discrete sampling in a differentiable manner.
Experimental Setup
The model was evaluated on the IMDB movie reviews dataset, consisting of 100,000 reviews. Preprocessing involved limiting sequences to 20 words and a vocabulary of 10,000 tokens. The ARN model was benchmarked against SeqGAN, a well-known baseline for adversarial text generation.
Results and Discussion
The evaluation focused on the trade-off between quality (measured by BLEU scores) and diversity (measured by Diversity and Feature Coverage metrics).
As shown in the results, while SeqGAN achieves higher BLEU-3 scores (54.19% vs 30.70%), this often indicates a collapse onto a few common patterns that the discriminator finds "safe." In contrast, the ARN model demonstrates significantly superior diversity (64.21% vs 49.98% for Diversity-3) and better feature coverage (FC). This suggests that the ARN framework effectively mitigates mode collapse, producing a wider variety of grammatically coherent sentences that better represent the underlying data distribution.
Conclusion
The ARN framework provides a principled approach to diverse text generation by combining variational inference with adversarial training. By optimizing a modified objective function, the model achieves a superior balance between sample quality and variety compared to standard RL-based GANs. Future work will focus on improving individual sentence quality and exploring more sophisticated latent space mappings to further enhance the controllability of the generation process.
Summary updated