MWS AI Open-Sources Russian Encoders and Lifts a Third-Party Model's Accuracy from 70.88% to 74.12%
Encoders turn text into numbers for finding similar phrases, classifying texts, and ranking documents. MWS AI has open-sourced two such models, for Russian and English, and proposed a method: fine-tune a ready-made model in three ways and average the weights. On RussianSuperGLUE, the average accuracy of RuModernBERT-base across seven tasks rose from 70.88% to 74.12%. If you already have a Russian encoder, try averaging before starting new pretraining.
AI-processed from Habr AI; edited by Hamidun News
If you are building knowledge base search, sorting support tickets, or ranking documents in RAG, the engine under the hood is most likely not a giant chat model but a small BERT-style encoder. It reads text and turns it into a set of numbers (a vector), which makes it easy to compare, search, and classify. Open models of this class for Russian are scarce. The MWS AI team has released two new ones, small and base, and also described a technique that improved even someone else's ready-made model: the average accuracy of RuModernBERT-base across seven Russian RussianSuperGLUE tasks rose from 70.88% to 74.12%.
How the Models Were Trained
Basic encoder training resembles a "fill in the blank" exercise. In the phrase "The train departs from platform [MASK]," the model must guess the missing word from the words on the left and right. Across billions of such examples, it learns both the language and facts about the world.
MWS AI trained its 34-million-parameter small model from scratch. They made it deep and narrow: 21 layers with a hidden size of 320. RuModernBERT-small has 12 layers and a size of 384. For the first 128 billion tokens, the model learned from Russian FineWeb-2. In the final stage, they attached a "teacher," their own base model. The student had to assign roughly the same probabilities to answer options as the teacher. In total, small saw about 140 billion tokens.
Base was built differently. The team took the multilingual mmBERT, which had already been trained on roughly 3 trillion tokens across more than 1,800 languages, and swapped its vocabulary for their own of 50,368 tokens (Russian, English, and code). If a token existed in both the old and new vocabularies, its vector was copied. If not, the new token was split into old pieces and their vectors were summed. The model was then trained on another 88 billion tokens. For comparison, the RuModernBERT tables list 1.6 trillion tokens for small and 2 trillion for base.
Triple-Merge: Three Training Runs and One Average
The article's main idea is post-training. An already finished encoder is given additional exercises on dialogues from the ZeroAgency corpus. In assistant replies there is often a visible line of reasoning: a cause, steps to a solution, and a conclusion.
There are three exercises:
- Next-word prediction. The encoder temporarily works as an ordinary generative model, sees only preceding words, and then returns to filling in blanks.
- Continuation prediction through CLS. The main encoder sees only the question ("Where do I [MASK]?"), while an auxiliary single-layer head reconstructs the answer ("At the next station") based on the shared question vector. This pushes the question vector to hold more meaning. After training, the auxiliary part is discarded.
- Substitution detection. A fragment of a reply is replaced with a lexically similar fragment from another dialogue: "The ticket is booked for tomorrow early morning" becomes "The ticket is booked until the end of this week." The model must notice the substitution and find its boundaries.
All three copies start from the same checkpoint, and their architecture and tokenizer are identical, so the weights can simply be summed element-wise, each taken at one-third. For the next-word branch, the authors first averaged two checkpoints equally: one right after that exercise and one after returning to fill-in-the-blank training. The result is a single ordinary encoder with no extra parts. It can then be fine-tuned for classification or used to produce ready-made vectors for text comparison. The authors ran the averaging separately on their small model, their base model, and RuModernBERT-base.
What the Measurements Show and How to Read Them
Quality was tested on seven RussianSuperGLUE tasks. For example, TERRa asks whether one statement follows from another, RUSSE asks whether a word is used with the same meaning in two contexts, and PARus asks the model to choose a cause or an effect. For each model-task pair, the team tried 27 combinations of learning rate, batch size, and number of epochs, with five runs per combination. They then ran ten more runs with the best settings to estimate the mean and the spread.
The ready-made RuModernBERT-base benefited the most from post-training, rising from 70.88% to 74.12% average accuracy. The authors' own small model already outperformed RuModernBERT-small before merging: 66.61% versus 65.41%. However, the variance between runs is noticeable for some models, reaching several points on individual tasks, so small differences should be treated as noise.
To separate the effect of the exercises from the effect of the dialogues themselves, the authors separately fine-tuned their base model on assistant replies using ordinary fill-in-the-blank training. The variants with the task change were compared against this control.
Practical takeaway. If you have a Russian encoder for classification or search, you can test averaging several fine-tuned copies before starting new pretraining. But compare the models on your own data first: the authors themselves note that the right choice depends on the use case. Fine-tuning an encoder for a specific task is one thing; using its vectors with frozen weights, as in the Encodechka benchmark, is another.
- Nov 26, 2026PrismML Shrinks Qwen3.8-27B from 53.8 GB to 5.9 GB and Keeps 90% of Its Agentic Coding Quality
- Nov 26, 2026GigaChat 4 Launches with a 1M-Token Context and Two Models, at 37B and 708B Parameters
- Nov 26, 2026Codex audit: reasoning cuts off at exactly 516 tokens, and quotas have nothing to do with it
- Nov 25, 2026Sber's OrbitLM Scores 14.2 Points Higher on School Math Problems Thanks to Looped Layers
Key Questions Answered
How the Models Were Trained?
Basic encoder training resembles a "fill in the blank" exercise. In the phrase "The train departs from platform [MASK]," the model must guess the missing word from the words on the left and right. Across billions of such examples, it learns both the language and facts about the world. MWS AI trained its 34-million-parameter small model from scratch. They made it deep and narrow: 21 layers with a hidden size of 320. RuModernBERT-small has 12 layers and a size of 384.
What are the key details on Triple-Merge: Three Training Runs and One Average?
The article's main idea is post-training. An already finished encoder is given additional exercises on dialogues from the ZeroAgency corpus. In assistant replies there is often a visible line of reasoning: a cause, steps to a solution, and a conclusion. There are three exercises: Next-word prediction. The encoder temporarily works as an ordinary generative model, sees only preceding words, and then returns to filling in blanks. Continuation prediction through CLS.
What the Measurements Show and How to Read Them?
Quality was tested on seven RussianSuperGLUE tasks. For example, TERRa asks whether one statement follows from another, RUSSE asks whether a word is used with the same meaning in two contexts, and PARus asks the model to choose a cause or an effect. For each model-task pair, the team tried 27 combinations of learning rate, batch size, and number of epochs, with five runs per combination. They then ran ten more runs with the best settings to estimate the mean and the spread.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
