Skip to main content
QUICK REVIEW

[Paper Review] Evaluating Text GANs as Language Models

Guy Tevet, Gavriel Habib|arXiv (Cornell University)|Oct 30, 2018
Topic ModelingComputer Science32 references23 citations
TL;DR

This paper proposes a Monte Carlo-based method to approximate the probability distribution of text generated by GANs, enabling evaluation using standard language model metrics like BPC and perplexity. The authors show that RNN-based text GANs currently perform significantly worse than state-of-the-art language models, with BPC scores substantially higher than those of leading LMs.

ABSTRACT

Generative Adversarial Networks (GANs) are a promising approach for text generation that, unlike traditional language models (LM), does not suffer from the problem of ``exposure bias''. However, A major hurdle for understanding the potential of GANs for text generation is the lack of a clear evaluation metric. In this work, we propose to approximate the distribution of text generated by a GAN, which permits evaluating them with traditional probability-based LM metrics. We apply our approximation procedure on several GAN-based models and show that they currently perform substantially worse than state-of-the-art LMs. Our evaluation procedure promotes better understanding of the relation between GANs and LMs, and can accelerate progress in GAN-based text generation.

Motivation & Objective

  • To address the lack of reliable evaluation metrics for text GANs, which cannot be directly evaluated using standard probability-based language model metrics.
  • To bridge the gap between GAN-based text generation and traditional language modeling by approximating the GAN’s output distribution as a probability distribution.
  • To empirically compare the performance of RNN-based text GANs against state-of-the-art language models using standard metrics like BPC and perplexity.
  • To provide a practical, reproducible evaluation framework that supports progress in GAN-based text generation.

Proposed method

  • Approximate the expected output distribution of a text GAN generator using a Monte Carlo sampling procedure over multiple generations.
  • Use the empirical frequency of tokens across sampled sequences to estimate the probability distribution at each time step.
  • Apply a convergence criterion based on the L-infinity norm of the difference between successive approximations to determine sufficient sampling size.
  • Set a threshold (γ′ = 10⁻³) and a sample interval (α = 10) to balance accuracy and computational cost.
  • Evaluate the resulting approximated distribution using standard language model metrics: Bits Per Character (BPC) and perplexity.
  • Validate the approximation accuracy by comparing it to the true BPC in models that output explicit probability distributions (e.g., SeqGAN).

Experimental results

Research questions

  • RQ1Can the output distribution of a text GAN be meaningfully approximated using Monte Carlo sampling to enable evaluation with standard language model metrics?
  • RQ2How does the performance of RNN-based text GANs compare to state-of-the-art language models when evaluated using BPC and perplexity?
  • RQ3Does adversarial training in GANs lead to a degradation in the quality of generated text, as measured by BPC and qualitative sample analysis?
  • RQ4What is the minimum number of samples required to achieve a stable and accurate approximation of the GAN’s output distribution?

Key findings

  • The proposed Monte Carlo approximation method achieves high accuracy, with approximate BPC values only slightly higher than the true BPC in SeqGAN, validating the method’s reliability.
  • All evaluated RNN-based text GANs (Press et al., 2017; Yu et al., 2017) exhibit significantly higher BPC scores than state-of-the-art language models, indicating substantially worse performance.
  • The pre-trained language model baseline in SeqGAN achieves a BPC of 1.95, which degrades to 2.06 after adversarial fine-tuning, indicating that adversarial training may harm performance.
  • Longer sequence generation (100 characters) leads to a notable increase in BPC for the Recurrent GAN (Press et al., 2017), suggesting degradation in quality at scale.
  • Qualitative samples from both models show low coherence and repetition, especially in longer sequences, supporting the quantitative BPC degradation.
  • The method requires approximately 2000 samples per time step to achieve stable approximation, as confirmed by convergence analysis on the error norm.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.