Skip to content
← Models
Open weightsGoogle/10 trustMetrics-checked

ELECTRA

Sample-efficient pretraining via replaced-token detection instead of masking.

Visit official page →

About

ELECTRA, from Stanford and Google Brain (ICLR 2020), replaced BERT's masked-language-modeling objective with replaced token detection: a small generator network corrupts the input with plausible alternative tokens, and the discriminator (the model you actually use) learns to detect which tokens were replaced. Because the loss applies to every input token rather than just the 15% that are masked, pretraining is far more compute-efficient.

The efficiency gains were dramatic at small scale: an ELECTRA model trained on a single GPU for four days outperformed GPT on the GLUE benchmark despite GPT using 30x more compute, and at large scale it matched RoBERTa and XLNet with less than a quarter of their compute. Google released official code and checkpoints. A historical landmark entry in efficient pretraining, though the field has since moved to generative pretraining at scale.

Specs

Context window

Pricing

Free quota

API access

Weights

Open weights

Released

March 23, 2020

Benchmarks

Provider-reported unless a source says otherwise. Benchmarks are marketing-adjacent by nature — treat them as directional.

Use cases

text-classificationquestion-answeringnlpefficient-training

Trust score — 6/10

/10 trustMetrics-checked

Scored 6/10 (metrics tier, metrics-v1). Evidence: Verified via vendor site/docs/GitHub and reputable coverage, wave 78; Trending score 60/100 from researcher assessment.

Sources