ModernELECTRA: Replaced-Token Detection with Boundary-Window Reconstruction for Compact Encoders that Classify and Embed A new pre-training recipe called ModernELECTRA, described in arXiv paper 2611.31495v1, adds a boundary-window reconstruction auxiliary task to ELECTRA-style replaced-token detection so compact encoders retain token identity for embedding tasks, producing two models trained on about 1T tokens each: EdgeCoder-31M, an 8-layer English model scoring 86.0 on GLUE, and EdgeCoder-Multilingual-61M, a 16-layer model covering 46 languages scoring 85.1 on GLUE. EdgeCoder-31M beats Ettin-Enc-32m (83.5) and MiniLM-L12 (84.6) on GLUE while matching both at 51.1 on MTEB English v2, and the multilingual model outperforms the 2.3x larger mmBERT-small on GLUE plus Multilingual MiniLM and mDistilBERT on XTREME. The paper also details FlashDeBERTa, an open-source fused implementation of DeBERTa's disentangled attention that stores no n×n score matrix, runs 10x faster with 93% less memory than the reference implementation at 4096 tokens, and loads existing DeBERTa checkpoints unchanged. arXiv:2611.31495v1 Announce Type: new Abstract: ELECTRA-style replaced-token detection RTD is a sample-efficient objective for pre-training text encoders, and RTD-trained models such as DeBERTaV3 are strong on classification benchmarks. The same models, however, are known to be poor backbones for embedding tasks such as retrieval and semantic similarity: the binary "original vs. replaced" signal does not ask the final layer to retain the token identity and contextual content that dense representations rely on. We introduce ModernELECTRA, a pre-training recipe that keeps RTD as the main objective and adds a lightweight auxiliary task, boundary-window reconstruction. For every token, we sample a window of 3-12 tokens that strictly contains it and reconstruct the token's original identity only from the discriminator's hidden states at the two window boundaries. The task costs one small FFN at training time and is discarded afterwards, yet it forces every final-layer state to carry information about its neighbourhood. Combined with a frozen, separately pre-trained generator, a temperature curriculum for hard negatives and a 512-to-8192 length curriculum, we train two compact encoders: EdgeCoder-31M, an 8-layer English model, and EdgeCoder-Multilingual-61M, a 16-layer model covering 46 languages, each on about 1T tokens. They reach 86.0 and 85.1 on GLUE. The English model outperforms Ettin-Enc-32m 83.5 and MiniLM-L12 84.6 on GLUE while matching them on MTEB English v2 51.1 , and the multilingual model outperforms the 2.3x larger mmBERT-small on GLUE and Multilingual MiniLM and mDistilBERT on XTREME over the languages it covers. We also describe FlashDeBERTa, our open-source fused implementation of DeBERTa's disentangled attention that stores no $n \times n$ score matrix: at 4096 tokens it is 10x faster and uses 93% less memory than the reference implementation, and it loads existing DeBERTa checkpoints unchanged.