ModernELECTRA Adds Boundary-Window Reconstruction to Make Small Encoders Classify and Embed

_reachsumit · x · 2026-11-26

ModernELECTRA is a pre-training recipe that keeps ELECTRA-style replaced-token detection but adds a lightweight boundary-window reconstruction task: for each token, the model reconstructs its identity from hidden states at the edges of a 3-12 token window, forcing final-layer states to retain contextual information. Combined with a frozen generator and length/hard-negative curricula, it trains compact encoders EdgeCoder-31M (English) and EdgeCoder-Multilingual-61M (46 languages) that both classify and embed well. Released on Hugging Face.

Original post →

More from Research

Research channel →