
On 26 November 2026, Knowledgator published "The Illustrated ModernELECTRA" on the Hugging Face blog, with a companion preprint, arXiv 2611.31495. It introduces two compact encoders, EdgeCoder-31M for English and EdgeCoder-Multilingual-61M for 46 languages. Each was trained on about one trillion tokens and reads up to 8192 tokens.
The recipe keeps replaced-token detection, the training objective used by ELECTRA and DeBERTaV3, and adds boundary-window reconstruction, weighted at 0.003. The authors want one compact encoder that stays strong at classification and can be the base model for sentence embeddings. The published scores fit that aim. The causal claim about the window task does not. The authors did not train a matched model without the window task, and they say the reason was cost.
[1][2]On the GLUE development set, EdgeCoder-31M scores 86.0, against 83.5 for Ettin-Enc-32m and 84.6 for MiniLM-L12. BERT-base, with 3.5 times more parameters, scores 84.7. ModernBERT-base, at 149.0 million parameters, is still ahead at 88.4. The largest gains over BERT-base are on CoLA, 64.9 against 59.0, and on RTE, 82.7 against 78.2. The authors flag their GLUE rows as single runs, the best of a hyperparameter sweep, and warn against reading gaps below about one point. The multilingual 61 million parameter model scores 85.1 on GLUE, ahead of mmBERT-small at 84.7, which is 2.3 times larger.
Each encoder is then fine-tuned once on 1 million MS MARCO triplets, for one epoch, by averaging token vectors and using a contrastive loss that pulls matching pairs together and pushes others apart. The scores describe that fine-tuned encoder, not the raw checkpoint. On MTEB English v2, 41 tasks, EdgeCoder-31M scores 51.1 on the mean-type metric, level with same-size masked-language models at 50.9 to 51.3. The multilingual model scores 50.4, behind mmBERT-small at 52.1. On the 26 XTREME languages in its pre-training corpus, after English fine-tuning, EdgeCoder-Multilingual-61M averages 67.8, ahead of Multilingual MiniLM at 67.3 and behind mmBERT-small at 70.0, with about half their parameters.
Both are DeBERTa-v3-style encoders and load as ordinary DeBERTa-v2 checkpoints. EdgeCoder-31M has 8 layers and 31.0 million parameters, or 14.2 million without embeddings. The multilingual model has 16 layers and 61.0 million parameters. Training ran for about 210,000 update steps, about 5 million real tokens in each step. The English corpus is about 1.0 trillion tokens from fourteen sources: FineWeb-Edu, CC-News, FinePDFs-Edu, Wikipedia, Gutenberg, Pile of Law, StarCoderData, SciCode, Open-Web-Math, AutoMathText, peS2o, arXiv LaTeX, PubMed Central OA, and Stack Exchange. The multilingual corpus is about 1.1 trillion tokens across 46 languages and 10 scripts, built from the English mix plus FineWeb-2 and FinePDFs, with temperature sampling that gives smaller languages a larger share. About 90 percent of the English training tokens were seen at length 512, then 2048 and 8192.
[1][2]Replaced-token detection, or RTD, is a yes-or-no task at every word piece. A small helper model, the generator, is trained first and then frozen. It swaps some tokens for others that still look plausible. In the blog's example, "cooked" becomes "ate". The encoder sees only the altered sentence and decides whether each token is original or replaced. Every token contributes to the loss, which is why these models have been strong classifiers.
The authors say this one-bit decision is also why RTD encoders have been weak bases for embeddings. After the same retrieval fine-tuning, they report that DeBERTaV3-base reaches about half the BEIR score of BERT-base. A sentence embedding is usually the average of the final token vectors. If each vector only needs to say whether its token fits the context, it can drop the token's identity, so the average carries little about the sentence.
Boundary-window reconstruction is meant to put that information back. For every token, the trainer samples a window of 3 to 12 tokens that contains it and uses only the two border vectors, blended with more weight on the closer border. The model must name the original token, "cooked", not the replacement it actually saw, "ate". The target token's own vector is not fed in, so the answer cannot be copied from it. The authors argue that each border must then carry words up to about ten positions away, so their average can describe the sentence.
The window loss is multiplied by 0.003 and added to the RTD loss, so RTD stays the main signal. The authors say a larger weight improves MTEB and lowers GLUE. A thin extra layer is used at training only. The generator's sampling temperature falls from 1.5 to about 0.9. Long context was made practical, the authors say, by FlashDeBERTa, fused kernels that never store an n-by-n attention score matrix. On DeBERTa-v3-base they report a forward pass about 10 times faster, using 93 percent less memory at 4096 tokens, an out-of-memory reference run at 8192 on the same GPU, and training steps 9.8 times faster at 2048 tokens.
[1][2]The hole in the thesis is the missing ablation. The authors did not train a matched encoder without the window task on the same data, because a trillion-token run was outside their budget. The preprint calls that evidence "indirect". The new models differ from earlier RTD encoders in data mix, length curriculum, and attention kernels, any of which could have helped MTEB.
GLUE and XTREME are single runs with one seed. Gaps of 0.4 and 0.5 points are not settled rankings. Baseline rows are copied from the Ettin and mmBERT papers. The preprint notes that learning-rate selection and minor details differ. MTEB parity is with tiny masked-language peers, not with ModernBERT-base at 54.0 on the same mean-type metric. Languages outside the 46, and scripts the preprint lists as absent from pre-training, including Thai, Tamil, Telugu, Malayalam, Burmese, and Georgian, are not supported.
[1][2]A 31 million parameter encoder that scores 86.0 on GLUE, ahead of BERT-base at 84.7, and 51.1 on MTEB English v2, level with same-size masked models, is already a useful encoder. Teams that now keep two encoders, one for classification and one for retrieval, may be able to keep one checkpoint instead.
A smaller model, or a copy split off mid-training with the window loss turned off, could test whether the 0.003 weight is doing the work. Until that test exists, the honest claim is that this recipe produced a compact encoder that is strong on GLUE and not collapsed on MTEB, not that the window task has been shown to be the cause.
[1][2]The result to watch over the next six months is whether anyone isolates the 0.003 window loss. That could be a smaller Knowledgator ablation, which the preprint calls the most important follow-up, or an independent reimplementation. If a no-window run stays near 51.1 on MTEB English v2, data or engineering already fixed the collapse. If it falls back toward the usual RTD embedding failure while GLUE stays high, the 0.003 weight will have earned its place.
Other groups should be able to reproduce the 86.0 and 51.1 pair from the released checkpoint under the stated MS MARCO protocol. The multilingual model still trails mmBERT-small by 2.2 points on the 26-language XTREME average, 67.8 against 70.0. If later work closes that gap without a large size jump, the 61 million parameter model becomes a clearer substitute. If not, the GLUE win will not settle the cross-lingual case.
[1][2]