All models

Ru-ELECTRA

An ELECTRA text encoder, pre-trained to detect which input tokens were replaced.

Language · 304 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (28 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
ELECTRA
Parameters
42.4M
Operations
304
Framework
PyTorch
Recurrent
No
Published
ICLR 2020
Cited by
3,072 (as of 9 November 2026)
Authors
Kevin Clark, Minh-Thang Luong, Quoc V. Le, Christopher D. Manning
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m12874
Graph hash
513e4a2d0128efd7609b479fada3cb78c79bdc802f9a8da1ee3a8caad5908f61
Skeleton hash
74757e9e682118bdd4d5b076c2b0c0d9c22bd8597b568f57a3be22789b807b73
Architecture hash
4efcc833bd6b7ff56ebfd20f7eac8f4cdeb759d04d2f3c00a6742ac1c23ad4d7
Diagram SHA-256
827af6832d7bfd82b37f9004c05ef9cabb39a83937022ed18f76181dc5ff8569
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

This model is the RU-ELECTRA small model, built for embeddings in the Russian language.

About this model's family

ELECTRA is a method for pre-training text encoders with a task called replaced token detection. Instead of masking the input, it corrupts the text by replacing some tokens with plausible alternatives sampled from a small generator network. A discriminator then predicts, for each token, whether it was replaced by a generator sample or not. The paper argues this is more efficient than masked language modeling (MLM) because the task is defined over all input tokens rather than just the small subset that was masked out.

The name stands for Efficiently Learning an Encoder that Classifies Token Replacements Accurately. Although the two networks are structured like a GAN, the generator is trained with maximum likelihood rather than adversarially. After pre-training, the generator is thrown out and only the discriminator is fine-tuned on downstream tasks.

The paper reports that a model trained on one GPU for 4 days outperforms GPT on the GLUE natural language understanding benchmark. At scale, it reports performing comparably to RoBERTa and XLNet while using less than 1/4 of their compute.

Key idea. The paper replaces masked language modeling with replaced token detection, training a discriminator to tell original tokens from ones substituted by a small generator network.

  • electra
  • replaced token detection
  • text encoder
  • discriminator pre-training
  • banglabert
  • koelectra
  • ruelectra
  • bangla
  • korean
  • russian

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{clark2020electrapretrainingtextencoders,
      title={ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators}, 
      author={Kevin Clark and Minh-Thang Luong and Quoc V. Le and Christopher D. Manning},
      year={2020},
      eprint={2003.10555},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2003.10555}, 
}