All models

KoELECTRA

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

Language · 303 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 (27 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
112.9M
Operations
303
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
m12703
Graph hash
1aa005dbf107cd68f30dd43f11a4be4dfe22bfe49e11c33e5a0bf798ae8d07f7
Skeleton hash
2cb03f6dd1a2430e6fcb5526b3ca3d88c96aa83511223ab26ea73c4a60b9b678
Architecture hash
7232f74b4d6a498c8c2f46443ac7c85e325011370a07eb0c252bff9c376a818d
Diagram SHA-256
9d3e07a725c1038fff6ff94d04cef66f72ea978e8b8f8cd4dac0d61534b3af14
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

KoELECTRA is a pretrained ELECTRA language model for Korean, and this model is the v3 base discriminator.

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}, 
}