Replaced Token Detection › In Practice: ELECTRA Performance Benchmarks

Michael BrenndoerferUpdated July 12, 20253 min read
Language AI HandbookAll chapters
Part 22 of 67Pre-training Objectives
Chapter 160Replaced Token Detection › In Practice: ELECTRA Performance Benchmarks
Reading section 14 of 17 · In Practice: ELECTRA Performance Benchmarks · 3 minSection 14 of 17 · 3 min

Book contents

Section 14 of 17 · 3 min read

Replaced Token Detection › In Practice: ELECTRA Performance BenchmarksOne section · Sections in this chapter14 / 17 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

The efficiency claims in the ELECTRA paper are backed by concrete benchmark results. ELECTRA-Small, trained for 1M steps on the same dataset as BERT, outperforms GPT (a model many times its compute cost) on the GLUE benchmark. ELECTRA-Base matches RoBERTa-Base while using about 25% of its compute. ELECTRA-Large, trained to the same compute budget as RoBERTa-Large, exceeds RoBERTa-Large's performance.

Out[30]:
Visualization
Line plot comparing GLUE score vs compute budget for MLM and RTD, showing RTD reaching the same score faster.
Simulated GLUE score vs compute budget for MLM (BERT/RoBERTa) and RTD (ELECTRA) approaches, based on trends reported in the ELECTRA paper. RTD reaches a given performance level with substantially less compute, with the gap most pronounced at low-to-medium compute budgets. Both approaches converge toward similar performance at very high compute.

The key takeaway from these results is that ELECTRA's advantage is most pronounced at lower compute budgets. When you can afford to train for a long time (rightward on the x-axis), both objectives eventually converge to similar performance levels. When you have limited compute, the RTD advantage is dramatic. This is why the original ELECTRA paper emphasizes the efficiency framing: it speaks directly to the practitioners who cannot afford the compute budgets of large industrial research labs.