paper-with-me

Papers

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

2020-03-23 · ICLR 2020 1 · Kevin Clark, Minh-Thang Luong, Quoc V. Le, Christopher D. Manning

Masked language modeling (MLM) pre-training methods such as BERT corrupt the input by replacing some tokens with [MASK] and then train a model to reconstruct the original tokens. While they produce good results when transferred to downstream NLP tasks, they generally require large amounts of compute to be effective. As an alternative, we propose a more sample-efficient pre-training task called replaced token detection. Instead of masking the input, our approach corrupts it by replacing some tokens with plausible alternatives sampled from a small generator network. Then, instead of training a model that predicts the original identities of the corrupted tokens, we train a discriminative model that predicts whether each token in the corrupted input was replaced by a generator sample or not. Thorough experiments demonstrate this new pre-training task is more efficient than MLM because the task is defined over all input tokens rather than just the small subset that was masked out. As a result, the contextual representations learned by our approach substantially outperform the ones learned by BERT given the same model size, data, and compute. The gains are particularly strong for small models; for example, we train a model on one GPU for 4 days that outperforms GPT (trained using 30x more compute) on the GLUE natural language understanding benchmark. Our approach also works well at scale, where it performs comparably to RoBERTa and XLNet while using less than 1/4 of their compute and outperforms them when using the same amount of compute.

📄 PDF Abstract BibTeX arXiv:2003.10555

Code (19)

google-research/electra 공식 구현 tf
2024-MindSpore-1/Code2/tree/main/model-1/electra mindspore
MalteHB/-l-ctra tf
PaddlePaddle/PaddleNLP/tree/develop/model_zoo/electra paddle
ThilinaRajapakse/simpletransformers pytorch
YChen1993/ELECRec pytorch
bcaitech1/p2-klue-Heeseok-Jeong pytorch
facebookresearch/multihop_dense_retrieval pytorch
gregdurrett/nlp-qa-finalproj pytorch
huggingface/transformers pytorch
jbeno/sentiment pytorch
lucidrains/electra-pytorch pytorch
okanvk/ENELPI---Soru-Cevap-Sistemi pytorch
okanvk/Turkish-Reading-Comprehension-Question-Answering-Dataset pytorch
richarddwang/electra_pytorch pytorch
rwbfd/OpenCompetitionV2 pytorch
smallbenchnlp/ELECTRA-DeBERTa pytorch
stefan-it/europeana-bert tf
tensorflow/models/blob/master/official/nlp/tasks/electra_task.py tf

Tasks

GPULanguage ModelingLanguage ModellingMasked Language ModelingNatural Language UnderstandingQuestion AnsweringSentiment Analysis

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Residual Connection 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.
Linear Warmup With Cosine Annealing Linear Warmup With Cosine Annealing is a learning rate schedule where we increase the learning rate linearly for $n$ updates and then anneal according to a cosine schedule…
ELECTRA 설명 없음
RoBERTa 설명 없음

Similar Papers 제목 키워드 기반

BioELECTRA:Pretrained Biomedical text Encoder using Discriminators

2021-06-11 · ACL Anthology 2021 6 · Kamal raj Kanakarajan, Bhuvana Kundumani, Malaikannan Sankarasubbu

Recent advancements in pretraining strategies in NLP have shown a significant improvement in the performance of models on various text mining tasks. We apply ‘replaced token detection’ pretraining technique proposed by E…

ArticlesLanguage ModelingLanguage ModellingMedical Named Entity Recognition+3

AraELECTRA: Pre-Training Text Discriminators for Arabic Language Understanding

2020-12-31 · EACL (WANLP) 2021 4 · Wissam Antoun, Fady Baly, Hazem Hajj

Advances in English language representation enabled a more sample-efficient pre-training task by Efficiently Learning an Encoder that Classifies Token Replacements Accurately (ELECTRA). Which, instead of training a model…

Language ModelingLanguage ModellingMasked Language Modelingnamed-entity-recognition+4

Pretraining Text Encoders with Adversarial Mixture of Training Signal Generators

2022-04-07 · ICLR 2022 4 · Yu Meng, Chenyan Xiong, Payal Bajaj, Saurabh Tiwary 외

We present a new framework AMOS that pretrains text encoders with an Adversarial learning curriculum via a Mixture Of Signals from multiple auxiliary generators. Following ELECTRA-style pretraining, the main encoder is t…

Training ELECTRA Augmented with Multi-word Selection

2021-05-31 · Findings (ACL) 2021 8 · Jiaming Shen, Jialu Liu, Tianqi Liu, Cong Yu 외

Pre-trained text encoders such as BERT and its variants have recently achieved state-of-the-art performances on many NLP tasks. While being effective, these pre-training methods typically demand massive computation resou…

Binary ClassificationMulti-Task Learning

GYM at Qur’an QA 2023 Shared Task: Multi-Task Transfer Learning for Quranic Passage Retrieval and Question Answering with Large Language Models

2023-12-07 · ArabicNLP at EMNLP 2023 · Ghazaleh Mahmoudi, Yeganeh Morshedzadeh, Sauleh Eetemadi

This work addresses the challenges of question answering for vintage texts like the Quran. It introduces two tasks: passage retrieval and reading comprehension. For passage retrieval, it employs unsupervised fine-tuning …

Multi-Task LearningPassage RetrievalQuestion AnsweringReading Comprehension+3