Pre-Training Transformers as Energy-Based Cloze Models

Kevin Clark, Minh-Thang Luong, Quoc V. Le, Christopher D. Manning
12/15/2020
cs.CL
transformer-attention

Official code: google-research/electra (2,366 stars, Python, Apache-2.0, TensorFlow, last commit 2024-03-23).

Abstract

We introduce Electric, an energy-based cloze model for representation learning over text. Like BERT, it is a conditional generative model of tokens given their contexts.

Show full abstract

However, Electric does not use masking or output a full distribution over tokens that could occur in a context. Instead, it assigns a scalar energy score to each input token indicating how likely it is given its context. We train Electric using an algorithm based on noise-contrastive estimation and elucidate how this learning objective is closely related to the recently proposed ELECTRA pre-training method. Electric performs well when transferred to downstream tasks and is particularly effective at producing likelihood scores for text: it re-ranks speech recognition n-best lists better than language models and much faster than masked language models. Furthermore, it offers a clearer and more principled view of what ELECTRA learns during pre-training.

View on arXivView PDF

Code Implementations(1)

TensorFlowApache-2.0

ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators

2,366345PythonMar 10, 20202 years agoApache-2.0
deep-learningnlptensorflow

Similar Papers

Cite this paper

@article{clark2020pretraining,
  title  = {Pre-Training Transformers as Energy-Based Cloze Models},
  author = {Kevin Clark and Minh-Thang Luong and Quoc V. Le and Christopher D. Manning},
  year   = {2020},
  eprint = {2012.08561},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.08561}
}

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/2012.08561.svg)](https://codeofpaper.com/paper/2012.08561)

Discussion