Adding A Filter Based on The Discriminator to Improve Unconditional Text Generation

Xingyuan Chen, Ping Cai, Peng Jin, Hongjun Wang, Xinyu Dai +1 more
4/5/2020
cs.CVcs.CL

Official code: cp-pc/D_Improves_G_without_Updating_G (6 stars, Python, last commit 2023-07-06).

Abstract

The autoregressive language model (ALM) trained with maximum likelihood estimation (MLE) is widely used in unconditional text generation. Due to exposure bias, the generated texts still suffer from low quality and diversity.

Show full abstract

This presents statistically as a discrepancy between the real text and generated text. Some research shows a discriminator can detect this discrepancy. Because the discriminator can encode more information than the generator, discriminator has the potentiality to improve generator. To alleviate the exposure bias, generative adversarial networks (GAN) use the discriminator to update the generator's parameters directly, but they fail by being evaluated precisely. A critical reason for the failure is the difference between the discriminator input and the ALM input. We propose a novel mechanism by adding a filter which has the same input as the discriminator. First, discriminator detects the discrepancy signals and passes to filter directly (or by learning). Then, we use the filter to reject some generated samples with a sampling-based method. Thus, the original generative distribution is revised to reduce the discrepancy. Two ALMs, RNN-based and Transformer-based, are experimented. Evaluated precisely by three metrics, our mechanism consistently outperforms the ALMs and all kinds of GANs across two benchmark data sets.

View on arXivView PDF

Code Implementations(1)

A Discriminator Improves Text Generation without Updating the Generator

60PythonDec 9, 20193 years ago

Similar Papers

Cite this paper

@article{chen2020adding,
  title  = {Adding A Filter Based on The Discriminator to Improve Unconditional Text Generation},
  author = {Xingyuan Chen and Ping Cai and Peng Jin and Hongjun Wang and Xinyu Dai and Jiajun Chen},
  year   = {2020},
  eprint = {2004.02135},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2004.02135}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2004.02135.svg)](https://codeofpaper.com/paper/2004.02135)

Discussion