TL;DR
This paper introduces SeqGFMN, a novel approach for training implicit text generation models that overcomes the instability issues often encountered with discrete data like text. By matching features from pre-trained networks, SeqGFMN achieves state-of-the-art results in unconditional text generation, class-conditional generation, and unsupervised text style transfer, all without requiring complex reinforcement learning or Gumbel-softmax tricks.
What Problem Does This Paper Address?
Training generative models for discrete data, such as text, is notoriously challenging. Traditional methods like Generative Adversarial Networks (GANs) often suffer from training instabilities due to the discrete nature of text, making it difficult to backpropagate gradients through the generated output. While feature matching networks (GFMNs) have shown promise in image generation by avoiding these adversarial instabilities, their effectiveness for sequential data like text remained unexplored. This paper aims to bridge that gap by proposing and evaluating GFMN-based methods for various text generation tasks.
Methods
The core innovation is SeqGFMN (Sequence Generative Feature Matching Network). Instead of relying on adversarial discriminators, SeqGFMN trains a generator by minimizing the difference between feature statistics (mean and variance) extracted from real and generated text sequences. This feature matching is performed at the token level, leveraging pre-trained NLP models (like BERT, GloVe, FastText) as fixed feature extractors.
Key aspects of the method include:
- Token-level Feature Matching: The loss function directly compares token-level features from real and generated sequences, making it suitable for sequential data.
- Stable Training: By avoiding explicit discriminators and adversarial objectives, SeqGFMN offers more stable training.
- Soft One-Hot Representations: The generator can output soft one-hot representations, simplifying training without needing Gumbel-softmax or REINFORCE.
- No Pre-training Required: Unlike some GAN approaches for text, SeqGFMN can be trained from scratch without requiring pre-training the generator with Maximum Likelihood Estimation (MLE).
- Class-Conditional Generation: The framework is extended to class-conditional generation by performing class-wise feature matching, allowing for controlled generation based on attributes like sentiment.
- Unsupervised Text Style Transfer: SeqGFMN is adapted for style transfer by using feature matching to align the distributions of the transferred text with the target style, replacing traditional adversarial or back-translation losses.
Datasets
The paper evaluates SeqGFMN on the following datasets:
- MSCOCO: Used for unconditional text generation.
- EMNLP 2017 WMT News dataset: Also used for unconditional text generation.
- Yelp Reviews Dataset: Used for class-conditional generation (sentiment) and unsupervised text style transfer.
Key Insights and Ideas
- Feature Matching is Robust for Text: The paper demonstrates that feature matching, which has been successful in image generation, is also a viable and stable approach for discrete sequential data like text, overcoming common GAN training issues.
- BERT Features are Powerful: Using BERT as a feature extractor significantly boosts performance in text generation tasks, highlighting the value of rich, contextualized embeddings.
- Implicit Models Can Learn Without RL: SeqGFMN shows that implicit generative models can be trained effectively for text without relying on complex reinforcement learning or Gumbel-softmax, simplifying the training pipeline.
- Latent Space Structure: Interpolations in the latent space of SeqGFMN reveal meaningful semantic and syntactic structure, suggesting the model learns a well-organized representation.
Key Results
- Unconditional Text Generation: SeqGFMN, especially when using BERT features, outperforms several state-of-the-art GAN-based methods (SeqGAN, MaliGAN, RankGAN, TextGAN, RelGAN) in terms of BLEU and FID scores on both COCO and WMT News datasets. For example, SeqGFMN (BERT) achieves a BLEU-4 score of 0.186 on COCO and 0.096 on WMT News, significantly better than GANs which often produce random n-grams.
- Class-Conditional Generation: The conditional SeqGFMN model (specifically, Cond. Noise+BN) achieves high accuracy (0.745) for sentiment classification while maintaining good BLEU-3 scores (0.473), outperforming baseline unconditional models.
- Unsupervised Text Style Transfer: SeqGFMN, when combined with back-translation loss (SeqGFMN + BT), achieves the best balance of BLEU (24.5) and accuracy (96.4) compared to various baseline methods, demonstrating its effectiveness in style transfer.
Limitations and Future Work
- Feature Extractor Dependency: While BERT provides strong results, the performance is still dependent on the quality of the pre-trained feature extractor.
- Computational Cost: While avoiding adversarial training, the feature extraction process itself can be computationally intensive, especially with large models like BERT.
- Future Work: The authors suggest that this work opens new avenues for implicit generative models for sequential data. Further exploration into different feature extractors, more complex conditioning mechanisms, and larger-scale applications are implied. The paper also notes that while they use mean matching for brevity, matching covariance can further improve results.
Summary updated