Improved Training Of Mixture-Of-Experts Language GANs

Yekun Chai, Qiyue Yin, Junge Zhang

Abstract

Generative Adversarial Networks (GANs) have achieved remarkable success in continuous domains like image synthesis but continue to face significant hurdles in discrete sequence generation, such as text. Primary challenges include the discrete bottleneck, which prevents direct backpropagation, and the sparsity of reward signals provided by a binary discriminator. This paper introduces MoEGAN, a framework that integrates a Mixture-of-Experts (MoE) generator with a novel Feature Statistics Alignment (FSA) technique. By increasing model capacity through collaborative experts and providing fine-grained training signals via latent feature matching, MoEGAN achieves state-of-the-art results across multiple benchmarks, including MS COCO and EMNLP2017 WMT News.

1. Introduction

The application of GANs to natural language processing (NLP) is notoriously difficult. Unlike the continuous pixel values in images, words are discrete tokens. This creates a "discrete bottleneck" where the standard GAN gradient cannot flow from the discriminator back to the generator. While techniques like Gumbel-Softmax relaxation and Reinforcement Learning (RL) have been employed to bypass this, they often result in weak or uninformative learning signals. Furthermore, standard generators often lack the expressive power to capture the complex, multi-modal distributions inherent in human language, leading to issues like exposure bias and mode collapse.

To address these limitations, we propose MoEGAN. Our approach focuses on two fronts: enhancing the generator's architectural capacity and refining the quality of the feedback signal provided to that generator.

2. Methodology

The MoEGAN framework consists of three primary components designed to stabilize training and improve output quality.

2.1 Mixture-of-Experts (MoE) Generator

Rather than relying on a single monolithic network, MoEGAN utilizes a generator composed of multiple "experts." These experts collaboratively determine the probability distribution of the next token in a sequence. This ensemble-like structure significantly boosts the model's representation capacity. Crucially, this approach is architecture-agnostic, allowing for the use of LSTMs or Transformers as the underlying expert units. By distributing the learning task across multiple agents, the model can better capture diverse linguistic patterns without a linear increase in per-step computational parameters.

2.2 Feature Statistics Alignment (FSA)

Feature Statistics Alignment serves as the "secret sauce" of our framework, addressing the problem of uninformative discriminator signals. In a standard GAN, the discriminator provides a scalar value indicating whether a sample is real or fake. This is often too blunt for nuanced language learning.

FSA utilizes an auxiliary encoder to map both real and generated text into a latent feature space. The framework then minimizes the distance between the mean statistics (centroids) of the generated data and the real data. This provides a "dense" and "smooth" gradient: even if the discriminator is temporarily fooled, the FSA ensures the underlying distribution of features remains grounded in the real data distribution. To maintain efficiency, we implement weight sharing by using the discriminator's own feature layers as the auxiliary encoder, keeping them frozen during the generator's update phase.

2.3 Relativistic Classifier

To further stabilize the minimax game of GAN training, we replace the standard binary classifier with a relativistic one. Instead of judging a sample in isolation, the relativistic classifier measures the probability that a real sample is more realistic than a randomly sampled fake one. This comparative approach prevents the generator from collapsing into a few "safe" modes and ensures a more consistent learning gradient throughout the training process.

3. Experimental Evaluation

We evaluated MoEGAN against several strong baselines, including SeqGAN, LeakGAN, and RelGAN, across three distinct datasets:

  1. Synthetic Data: A controlled environment using an Oracle LSTM to measure the model's ability to recover a known mathematical distribution.
  2. MS COCO Captions: A dataset of short, descriptive human-written sentences.
  3. EMNLP2017 WMT News: A challenging dataset featuring long-form news articles with complex syntax.

3.1 Quantitative Results

MoEGAN demonstrated a significant leap in performance. On the MS COCO dataset, MoEGAN achieved a BLEU-4 score of 0.814, substantially outperforming the Maximum Likelihood Estimation (MLE) baseline (0.305) and the previous state-of-the-art, RelGAN (0.502). Importantly, the model maintained high diversity, as evidenced by competitive $NLL_{gen}$ scores, indicating that the model was not merely memorizing the training set.

3.2 Qualitative and Human Evaluation

In blind human evaluations, participants rated MoEGAN's outputs on a scale of 1 to 5 for grammatical correctness and semantic meaningfulness. MoEGAN received an average score of 4.08/5.0, a marked improvement over existing GAN-based text generators, which often struggle with coherence in longer sequences.

4. Conclusion and Future Work

MoEGAN effectively addresses the twin challenges of capacity and signal sparsity in language GANs. The combination of a collaborative expert architecture and feature-level alignment allows for the generation of high-quality, diverse text that closely mimics human language.

Future research will explore incorporating higher-order statistics (such as variance and covariance) into the FSA process to further refine the feature matching. Additionally, we aim to investigate more sophisticated gating mechanisms for the MoE generator and scale the framework to massive Transformer-based Large Language Models (LLMs).

Summary updated

BibTeX
@inproceedings{chai2023improved,
  author = {Yekun Chai and Qiyue Yin and Junge Zhang},
  title = {{Improved Training Of Mixture-Of-Experts Language GANs}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  doi = {10.1109/icassp49357.2023.10095401},
}
Figure