What changed
Hugging Face introduced ModernELECTRA, a pre-training recipe for compact encoders, along with the first two models trained using this method: EdgeCoder-31M for English and EdgeCoder-Multilingual-61M for 46 languages. Each model was trained on approximately one trillion tokens and can process sequences up to 8192 tokens. The recipe retains replaced-token detection (RTD), an objective used by ELECTRA and DeBERTaV3, and introduces an auxiliary task called boundary-window reconstruction to improve the model's utility as an embedding backbone.
What this means in practice
The new models are designed to address the limitations of RTD encoders in serving as effective embedding backbones. By incorporating boundary-window reconstruction, the final states of the models retain more contextual information, allowing their average to better represent the content of a sentence. This makes the models suitable for both classification tasks and embedding-based applications. The training process involves a combined objective with RTD as the dominant signal and a small window loss weighted at 0.003. The generator model, used to create replaced tokens, is trained first and then frozen, with its temperature decreasing during training to make replacements more plausible over time. Training also follows a length curriculum, starting with sequences of 512 tokens and progressing to longer documents of up to 8192 tokens.
Limitations and availability
The supplied announcement does not specify the exact release date or availability of the models beyond their training and development phases. The models are built using a shared pipeline for training data, with the English model trained on 1.0T tokens from various sources and the multilingual model trained on 1.1T tokens across 46 languages. The training data includes web text, news, educational materials, Wikipedia, books, legal text, source code, and scientific papers. The models are available for use through Hugging Face's platform, though the exact access route or licensing conditions are not detailed in the provided snapshot.
