English

Real or Fake? Learning to Discriminate Machine from Human Generated Text

Machine Learning 2019-11-26 v2 Computation and Language Machine Learning

Abstract

Energy-based models (EBMs), a.k.a. un-normalized models, have had recent successes in continuous spaces. However, they have not been successfully applied to model text sequences. While decreasing the energy at training samples is straightforward, mining (negative) samples where the energy should be increased is difficult. In part, this is because standard gradient-based methods are not readily applicable when the input is high-dimensional and discrete. Here, we side-step this issue by generating negatives using pre-trained auto-regressive language models. The EBM then works in the residual of the language model; and is trained to discriminate real text from text generated by the auto-regressive models. We investigate the generalization ability of residual EBMs, a pre-requisite for using them in other applications. We extensively analyze generalization for the task of classifying whether an input is machine or human generated, a natural task given the training loss and how we mine negatives. Overall, we observe that EBMs can generalize remarkably well to changes in the architecture of the generators producing negatives. However, EBMs exhibit more sensitivity to the training set used by such generators.

Keywords

Cite

@article{arxiv.1906.03351,
  title  = {Real or Fake? Learning to Discriminate Machine from Human Generated Text},
  author = {Anton Bakhtin and Sam Gross and Myle Ott and Yuntian Deng and Marc'Aurelio Ranzato and Arthur Szlam},
  journal= {arXiv preprint arXiv:1906.03351},
  year   = {2019}
}
R2 v1 2026-06-23T09:47:33.267Z