NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CoT: Cooperative Training for Generative Modeling of Discrete Data

Sidi Lu, Lantao Yu, Siyuan Feng, Yaoming Zhu, Weinan ZhangICML 2019

TL;DR

Generative Adversarial Networks (GANs) struggle to generate discrete sequential data like text because the discrete nature of words prevents standard gradient backpropagation, forcing reliance on unstable reinforcement learning tricks. This paper introduces Cooperative Training (CoT), a novel framework that replaces the adversarial min-max game of GANs with a cooperative joint maximization approach. By using a "mediator" module to help explicitly optimize the Jensen-Shannon Divergence, CoT achieves state-of-the-art text generation quality, diversity, and training stability without needing the standard crutch of Maximum Likelihood pre-training.

The Problem: Exposure Bias and Adversarial Instability

Training models to generate sequential discrete data (like natural language) is notoriously difficult. The standard approach, Maximum Likelihood Estimation (MLE), suffers from exposure bias—during training, the model only sees ground-truth data, but during generation, it must rely on its own previous (and potentially flawed) predictions. This causes errors to compound quickly.

To fix this, researchers have tried using GANs (like SeqGAN). However, GANs are designed for continuous data (like images). You cannot backpropagate gradients through discrete text tokens. To bypass this, text GANs use reinforcement learning algorithms like REINFORCE. Unfortunately, REINFORCE introduces massive variance and instability. Text GANs frequently suffer from mode collapse (generating the same safe, bland sentences over and over to fool the discriminator) and almost always require extensive MLE pre-training just to converge. The authors aim to build a stable, low-variance alternative that optimizes a balanced distribution metric without relying on adversarial RL hacks.

Methods: Cooperative Training (CoT)

The authors propose Cooperative Training (CoT), which fundamentally shifts the architecture from an adversarial setup to a cooperative one.

Instead of a Generator and a Discriminator fighting each other, CoT uses:

  1. A Generator ($G$): Produces the discrete sequences.
  2. A Mediator ($M$): An auxiliary predictive module. Instead of classifying "real vs. fake," the mediator is trained to estimate the mixture distribution of the real data and the generated data (i.e., it tries to model a 50/50 blend of both).
Cooperative Training Framework

Key Technical Innovations: * Direct JSD Optimization: Standard GANs implicitly optimize the Jensen-Shannon Divergence (JSD). CoT uses the Mediator to explicitly estimate and optimize the JSD. * Markov Backward Reduction: The authors derive a mathematical technique to break down the JSD objective over a sequence of tokens into step-by-step isomorphic problems, making it computable for sequences. * Gradient Factorization: To escape the high-variance trap of REINFORCE, the authors factorize the training gradient into two parts: a high-variance REINFORCE-like term and a low-variance term. By dropping the noisy term, they create a slightly biased but highly stable and low-variance training signal.

Key Insights and Results

By turning the min-max game into a joint maximization problem, training becomes vastly more stable. Both the generator and the mediator share a similar goal (approaching the data distribution), eliminating the volatile dynamics of a discriminator overpowering a generator.

Training Stability Comparison
  • No Pre-training Required: Because CoT avoids the high-variance REINFORCE algorithm and maintains overlapping distribution supports from the start, it works completely independently. It does not require MLE pre-training, which is a massive practical advantage over models like SeqGAN (as seen in the divergence during SeqGAN's adversarial phase above).
  • A Real-Time Progress Indicator: In standard GANs, the loss curve tells you almost nothing about how well the model is actually doing. In CoT, the mediator's training loss acts as a reliable, real-time indicator of training progress.
  • Superior Quality and Diversity: In the Synthetic Turing Test, CoT achieved an NLL_oracle of 8.19 (beating SeqGAN's 8.68 and MLE's 9.08; lower is better). Crucially, it maintained high diversity, avoiding the mode collapse that plagued SeqGAN.
  • Real-World Text Generation: On the WMT News dataset, CoT achieved state-of-the-art BLEU scores (e.g., BLEU-5 of 0.310 vs. LeakGAN's 0.271) while also scoring the best on diversity metrics like estimated Word Mover Distance (eWMD).
  • Computational Efficiency: Because it doesn't rely on complex RL rollouts, CoT is remarkably fast. It runs at 53.94 seconds/epoch, which is an order of magnitude faster than SeqGAN (817.64s).

Limitations and Future Work

To achieve low variance, the authors drop a specific term in their gradient calculation. While empirically successful, this introduces a slight mathematical bias into the optimization. Additionally, while much faster than GANs, the sampling steps still make it slightly slower than pure MLE per epoch. Future work will explore better ways to factorize the dropped gradient term—perhaps combining a low-variance term with a high-variance residual—to further improve performance without sacrificing stability.

Summary updated

BibTeX
@inproceedings{lu2019cot,
  author = {Sidi Lu and Lantao Yu and Siyuan Feng and Yaoming Zhu and Weinan Zhang},
  title = {{CoT: Cooperative Training for Generative Modeling of Discrete Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=r14U0iW_br},
}
Figure