Vikhr: Constructing a State-of-the-art Bilingual Open-Source Instruction-Following Large Language Model for Russian
Paper · 2024 · Aleksandr Nikolich, Konstantin Korolev, Sergei Bratchikov et al.
Summary
An instruction-following system can answer a question in Russian and still handle the language inefficiently. Before it reads a prompt or writes a reply, it divides the text into pieces called tokens. An English-oriented vocabulary can turn a familiar Russian word into a long sequence of fragments, taking up space that could have held more of the prompt and adding steps to generation. The Vikhr paper addresses this cost alongside a question about answer quality. Can an open system built from Mistral learn to work better in Russian while preserving the abilities that made Mistral a useful starting point? The first change concerns how the system represents text through tokenization.
The authors train a new tokenizer on Russian text and install it in Mistral 7B. Vocabulary entries shared with Mistral inherit their original representations. New entries start from averages of the representations for their constituent pieces. The authors then continue pretraining on a filtered Russian corpus of 11 billion tokens and introduce a penalty intended to preserve useful behavior from the original system. Finally, they train on instructions paired with answers, using Russian data alongside the English Nectar collection. Both training stages update the full set of weights. The paper reports releases of the resulting weights, instruction data, and code.
Vikhr-7B-instruct_0.2 leads the open systems in the main comparison on every reported measure. It scores 0.80 accuracy@1 on Ru-MMLU, the Russian translation of a multiple-choice benchmark, and 0.62 on the original English benchmark, compared with Mistral’s 0.60 there. The rankings depend on the task. GigaChat-7B earns 0.451 F1 on the open-ended Russian quiz benchmark CheGeKa, where Vikhr earns 0.231. The paper also presents selected examples in which Vikhr produces more coherent Russian replies than Mistral, including explanations of foods and instructions for making fish soup.
The component experiments give several reasons to pay attention to the training procedure. A filtered pretraining corpus produces better results on the tasks used in that comparison in spite of containing fewer tokens. The penalty that keeps Vikhr’s predictions closer to those of its reference system improves the reported Russian inference score. Vocabulary size has a less straightforward effect. The setting with the lowest perplexity, a measure of how well the system predicts a collection of text, differs from the setting with the strongest inference result. The tests make the case for selecting a tokenizer and a training procedure together. Their conclusions are tied to the starting checkpoints, datasets, and measures used in each comparison.
Deep dive: Vikhr: Constructing a State-of-the-art Bilingual Open-Source Instruction-Following Large Language Model for Russian
Vikhr adapts Mistral for Russian and English by rebuilding its tokenizer, continuing pretraining, and tuning it to follow instructions. · about 33 minutes to read
The problem and its context
The cost of reading and writing Russian
The paper begins from an imbalance in the resources available to train an instruction-following system. The authors describe a much larger supply of English text and English instruction-and-answer examples. Developers can draw on that supply to train systems that respond directly to requests, and researchers adapting those systems can start from abilities already learned on broad collections. An English-oriented system may also have seen some text in other languages. The paper treats that exposure as a source of partial multilingual ability. It gives the authors a reason to begin with a working system and a reason to inspect which parts of its behavior carry over. The paper cites the study LLaMA Beyond English in this connection.
The uneven distribution of training text affects which pieces of writing enter a system’s vocabulary. The paper discusses byte-pair tokenization as a process that leaves infrequent strings split into smaller pieces. Common strings in the material used to build a tokenizer have a better chance of appearing as entries in their own right. A Russian word can therefore be ordinary to a reader while requiring several entries from an English-oriented vocabulary. In extreme cases described by the authors, the pieces can be individual characters. This is a property of the way text is encoded before the system processes it, a subject the paper connects to research on Language Model Tokenizers Introduce Unfairness Between Languages.
The authors give this problem a concrete scale in terms of the work done on a sentence. A prompt enters as a sequence of tokens, and the context window limits the length of that sequence. If the same passage requires more tokens, fewer paragraphs of comparable text fit within the window. The cost also applies to the reply, since generating a sentence takes a series of token predictions. Reducing fragmentation can help the same system handle more written material within its token budget. That is the sense in which the paper discusses contextual efficiency. It also motivates the expectation of faster generation, a practical consequence whose magnitude would depend on how it was measured.
The authors distinguish this encoding problem from the difficulty of producing a good answer. A system may need to know what a Russian question refers to, draw on relevant facts, carry out a reasoning task, and express the result in idiomatic Russian. A compact representation gives it a more economical way to read and write those words. Acquiring knowledge and using it in the requested language also depend on training. The authors’ concern about cultural knowledge is especially visible in open questions, where the respondent has to produce an answer without being given a set of candidates.
Why concentrate on a language pair
The paper describes a broad multilingual strategy that brings many languages into a shared system. BLOOMz, mGPT, and Bactrian-X are among the examples it discusses. A multilingual collection can give languages more substantial representation than they receive in an English-oriented corpus. The same design allocates one vocabulary and one set of parameters across those languages. The authors argue that this sharing can constrain performance in an individual language, particularly for systems at sizes such as 7B and 13B. These examples place Vikhr in a line of work concerned with tradeoffs in multilingual and cross-lingual NLP.
A bilingual design narrows the target to a regional language and English. The example the paper gives is Jais, which prioritizes Arabic while also drawing on English data. The motivation for retaining English is practical. Its larger supply of training material can help a system acquire knowledge and skills that may be available when it answers in its other language. The authors name logical and commonsense reasoning as examples. The design also reserves more attention for the regional language’s writing and cultural context. The paper takes Jais and Jais-chat as a precedent for this choice.
For Vikhr, the regional language is Russian, which the authors describe as well resourced and already represented in multilingual systems. The gap they identify concerns the combination of efficiency, ability to follow instructions, and access for research. A researcher may want the raw scores that precede a prediction, the intermediate outputs of layers, or the ability to change the weights and check how behavior responds. A service that supplies answers through an interface gives the researcher a different kind of access. The paper also points out the difficulty of reproducing results when a service changes or a particular version is retired.
The authors regard Russian proprietary systems as serious competitors. They name MTS AI, GigaChat, and YandexGPT as examples of work focused on Russian. Their case for Vikhr rests on making changes and measurements possible at the level of the system itself. The released weights matter for that purpose, as do the training data and code the authors say they have made available. The argument for openness is therefore tied to how researchers would investigate an adaptation, as well as to who can run it.
The Russian adaptation routes the authors build on
One route was to train on Russian from the beginning. The ruGPT family used a large Russian corpus to learn the usual text prediction task, and the versions discussed in the paper reached up to 13 billion parameters. The authors credit this training with producing tokenization suited to Russian. They also describe a limitation from the narrower language coverage of the training material and point out that the ruGPT versions they discuss lacked instruction training. The paper situates that effort in the work on the Russian pretrained Transformer family.
A second route began with an existing English-oriented system and adapted its responses using a much smaller set of trainable weights. Saiga used Russian instruction-and-answer examples and trained adapters using LoRA. An adapter learns changes that affect the behavior of the underlying system while keeping the original weights fixed. This makes the adaptation less expensive than updating the full system. Saiga’s approach also retained the original vocabulary. A better answer learned from Russian examples could therefore still require the same fragmented encoding on input and output.
The authors describe ruadapt as a step towards addressing that encoding cost. Its approach paired training on Russian text with changes to the tokenizer, the representations on the input side, and the component that scores possible next tokens on the output side. During continued pretraining, the other weights stayed fixed. The Vikhr paper treats that decision as a limit on re-learning how the system combines the new tokens. The broader idea of rebuilding the vocabulary comes from earlier adaptation work. Vikhr makes that idea part of training that also allows the internal layers to change.
Instruction training supplies a separate part of the design. A system trained to predict text has learned how text continues. Showing it a request alongside an appropriate answer gives it a more direct way to learn the behavior expected in a conversation. The paper credits prior work with showing that this can let a system answer new requests with less care spent on finding a particular prompt. The precedent it cites includes Training Language Models to Follow Instructions with Human Feedback.
Vikhr combines a Russian-oriented vocabulary with a general starting checkpoint, continued exposure to Russian text, and direct training on requests. The choice to update all the weights gives the internal layers room to adapt to the vocabulary and corpus. It also brings a risk the paper considers central. Training on the new material can move predictions away from behaviors inherited from the starting checkpoint. The method therefore includes an explicit way to keep the original system involved during continued pretraining.
The method, step by step
Start from Mistral and change the vocabulary
The construction described in detail starts from Mistral 7B. The authors choose it for the knowledge and reasoning abilities they attribute to the Mistral series. The main evaluation compares the result with Mistral-7B-Instruct-v0.2. Some component experiments use different starting checkpoints. The important distinction for following the method is that Vikhr is an adaptation of a trained system. Its internal weights carry over at the start, while the pieces that enter and leave those layers have to be brought into line with the new vocabulary.
How the authors adapt Mistral into Vikhr
The steps in order.
The tokenizer learns how to divide a string into units it can look up in its vocabulary. In this case, the authors train a 40k vocabulary on RuLM with SentencePiece. A vocabulary entry can be a complete word or a shorter piece. Building a vocabulary from Russian data gives the tokenizer the opportunity to learn common Russian strings directly. The table in the paper illustrates the result with a sentence about machine learning changing the world. The Russian word for learning appears as separate fragments under Mistral’s tokenizer and as the single piece обучение under Vikhr’s. Vikhr likewise preserves the Russian verb for changing and the word for world as single pieces in that example. The opening word is still split under both tokenizers.
The sentence illustrates what subword tokenization allows. The vocabulary can give some words their own entries while still representing other words as a sequence of entries. The procedure avoids needing an entry for every word that a writer might use. It also explains why the authors judge the new tokenizer using Russian text. The aim is to make the splitting pattern better suited to the target language. The paper’s tokenizer figure compares the efficiency of Vikhr’s tokenizer on Russian with that of other systems, alongside the particular sentence used to show what the fragments look like.
Give the vocabulary entries initial values
Changing the vocabulary changes the correspondence between text and learned numerical representations. On the input side, an embedding matrix supplies a vector for each token. The system receives those vectors as it processes the sequence. On the output side, the language modeling head computes scores for the possible next tokens. Its choices must use the same vocabulary that the tokenizer uses to represent text. The embedding matrix and the head therefore both need to accommodate the new inventory.
The authors take the entries common to the old and new vocabularies and copy their existing embeddings. A new entry has no old vector of its own, but the old tokenizer can still split its text into pieces. The authors retrieve the old embeddings for those pieces and average them to initialize the new entry. The pieces used in that average come from the original tokenization of the entry’s text. The averaging is an initialization rule. It gives the new vector a connection to quantities Mistral already used, and continued training can then change it.
The output head receives a similar treatment. Its scores need to support both entries inherited from Mistral and entries created by the Russian tokenizer. Using a corresponding initialization on the two sides gives the newly added pieces a starting point when they appear in a prompt and when the system might predict them in a reply. The paper describes this step in terms of the old pieces and their representations. It leaves the process of learning when a new piece should appear to training on sequences of text.
This is where the choice to update the full checkpoint matters. A newly introduced token can stand where the original system would have encountered a sequence of fragments. Copying or averaging vectors sets initial values, while the subsequent training gives the internal layers a chance to learn how sequences built from the revised vocabulary now behave. The new token inventory and the retained internal weights are useful starting points for different reasons. Continued pretraining makes them work together.
Assemble the corpus for continued pretraining
The authors use several kinds of Russian writing so that adaptation extends across more than a collection of conversational prompts. The scientific material comes from papers in peer-reviewed journals and conferences. Wikipedia supplies encyclopedic prose, and a news collection supplies articles. The authors also take the top 100k up-voted posts from Habr, a community whose topics include software, technology, and science. The paper’s corpus breakdown also includes a category for other sources.
The sizes in that breakdown describe the source groups in approximate storage and token volume. Scientific papers account for 20 GB and 2.5 billion tokens, while news accounts for 4 GB and 1 billion tokens. Wikipedia is listed at 25 GB and 4 billion tokens. Habr is listed at 6 GB and 1 billion tokens. The other sources account for 20 GB and 2.5 billion tokens. These figures describe the makeup of the material available for continued pretraining. They give the reader a sense of which types of material carry weight in the corpus, even though the paper gives the final filtered size as an overall total.
The authors first remove repetition at the paragraph level using MIHash. Paragraph-level deduplication matters for a corpus whose sources can contain repeated passages inside otherwise distinct documents. The unit of comparison is smaller than the full article, so removing repetition can address fragments shared across documents. The paper names the algorithm and the unit at which it was used. It gives no detailed account of the thresholds that determined which paragraphs were treated as duplicates.
Filtering then makes a judgment about the remaining material’s suitability. The authors use GPT-4-turbo to annotate 20k documents. The requested judgments cover whether a text is informative and useful for learning, along with its grammar, style, and safety. They train a smaller Russian system, RuBERT-tiny, using those annotations and apply it to the deduplicated corpus. This separates the creation of examples for the filter from the act of filtering the full collection. The final corpus contains 11 billion tokens.
The corpus serves several purposes in the procedure. It gives newly introduced tokens opportunities to occur in context, and it exposes the internal weights to extended Russian writing. Its source mix also makes Russian factual and cultural material available during adaptation. The loss used at this stage is still based on predicting text. The change to training on direct user requests comes later, once the vocabulary and weights have had this exposure.
Continue pretraining with a reference prediction penalty
A risk emerges when the authors train on the Russian corpus. In preliminary trials, they find that a system trained further can score below the original English-oriented checkpoint even on Russian tests. They interpret this as evidence that some useful reasoning behavior can deteriorate during adaptation. In the paper’s terminology, this is a form of catastrophic forgetting. The practical issue is that fitting the new material more closely can undo some of what made the original checkpoint worth adapting.
The authors introduce a regularizer, an extra term in the training objective that penalizes certain changes in the adapted system. Their equation adds a cross-entropy loss for predicting the training text to a measure of disagreement with the original English-oriented reference.
L_Vikhr = L_CE + KL(P_Vikhr ∥ P_Ref)
L_Vikhr is the objective for training Vikhr. L_CE is the cross-entropy loss. In this setting it penalizes the system when it assigns little probability to the next token observed in the training sequence. P_Vikhr denotes the probability distribution produced by the adapting system, and P_Ref denotes the distribution produced by the English-oriented reference. KL is the Kullback–Leibler divergence, a measure of how one probability distribution differs from another. The symbol ∥ gives the ordering of its arguments. The equation measures divergence from P_Vikhr to P_Ref in the order written. + combines the loss and penalty, and = defines the resulting training objective.
Cross-entropy and the reference penalty provide different signals. The observed next token anchors learning in the Russian corpus. The distribution from the reference supplies information about the relative probabilities assigned to possible continuations. A reference distribution can convey that several continuations seem plausible, even when the corpus gives only the one that actually occurred. The aim of adding the penalty is to keep that inherited pattern of predictions relevant while training on the new data. It is a constraint on the adaptation process. Whether particular reasoning abilities persist is a question for the evaluations.
For its implementation, the paper describes spherical linear interpolation, abbreviated SLERP, applied to the losses. It cites Arcee’s MergeKit in this passage. Interpolation here concerns how the losses are combined in practice. The objective gives the reader the intended relationship between the two prediction distributions, while the implementation description specifies the use of SLERP at the level of the losses. The paper leaves open the details of how distributions over the old and new vocabularies are made comparable and how the interpolation is configured.
All weights are trainable during continued pretraining. The authors use AdamW, an optimizer that adjusts the weights from the training signals, and give robustness to the choice of settings as their reason for using it despite the memory tradeoff. They also use an optimized Flash attention implementation to speed up training. Attention is the part of the computation that allows positions in a sequence to use information from other positions. The optimized implementation concerns how that computation is carried out. It serves a different role from the tokenizer, which changes how many positions the original text requires. The architecture behind this distinction uses Transformer and attention.
The reported learning rate for continued pretraining is 1 × 10−3, with AdamW epsilon 1 × 10−8 and beta values 0.99, 0.95. The learning rate governs the scale of weight updates. Epsilon helps keep the numerical update stable, and the beta settings govern how the optimizer accumulates information from gradients. The paper lists 10 warmup steps, which are the initial steps used to bring the optimizer to its working learning rate. It gives 128 accumulation steps, a batch size of 3, a sequence length of 1024, and 1 epoch. Accumulation lets gradient contributions from multiple batches inform an update. Sequence length is measured in tokens, and an epoch describes a pass through the training data.
Teach the system how to respond to instructions
The next stage changes what an example asks the system to learn. In continued pretraining, the target text comes from a corpus of Russian writing. In instruction training, the example pairs a request with a response. These pairs show what it looks like to answer directly or carry out a task in the requested form. The authors build their collection around existing Russian material and augment it with collections derived from English sources. This stage is a form of fine-tuning.
Saiga contributes Russian pairs based on an approach similar to Alpaca. In the account given by the paper, much of the core Saiga collection was created by querying gpt-3.5-turbo. Saiga gives the authors an existing store of examples written as requests and replies. The instruction-data breakdown lists it at 100k Russian instances. The role of Vikhr’s new data is to expand the range of examples available for that kind of training.
For ruFLAN, the authors translate FLAN instructions into Russian and use ChatGPT to generate answers in Russian. The FLAN material originally came from applying templates to annotated task datasets. Such a template turns an item from an existing task into something the system can read as an instruction. This yields examples of different tasks presented through a common request format. The authors carry that variety into ruFLAN, which the paper lists at 500k Russian instances. The source of those prompts is FLAN.
Veles and Nectar contribute different kinds of material. Veles is the paper’s Russian translation of OpenHermes and is listed at 30k instances. Nectar remains in English and accounts for 50k instances. The authors include Nectar so the instruction stage continues to expose the system to English requests and replies. In the resulting collection, English is a deliberate part of the training procedure alongside the Russian additions. Nectar’s role in that mixture differs from its role as a standalone translated instruction set in a later comparison.
The authors deduplicate the collection and use a reward system to filter low-quality pairs. Here a reward system means a scorer that has learned to distinguish preferable answers and can be applied to examples outside its training collection. The authors start from multilingual-e5-large so the scorer can work with both Russian and English. The answer preference data are based on human-written prompts and annotated by GPT-4. The human-authored prompts and the automated preference annotation are distinct inputs to the filtering procedure. The underlying representation system is described in the Multilingual E5 technical report.
The scorer is used to decide which pairs survive into the supervised training collection. Its presence therefore changes the examples from which Vikhr learns. It is separate from a later preference optimization stage that would tune Vikhr directly from such judgments. During instruction training, Vikhr learns from the retained request-and-response pairs. The authors again update all weights, using a learning rate of 1 × 10−5. They list epsilon at 1 × 10−8, beta values of 0.99, 0.95, and 10 warmup steps. This stage uses 64 accumulation steps, a batch size of 3, a sequence length of 1024, and 3 epochs.
Training resources and releases
The paper describes training on eight NVIDIA A100 GPUs with 80GB of memory each. It reports roughly 1,000 GPU hours for continued pretraining and gives the instruction stage as 60 hours. The account presents the units that way, so the figures are best read as the paper reports them for each stage. The preceding settings show where the work goes: the system first adapts across an extended Russian corpus, then makes repeated passes over the smaller body of instruction data.
The authors report releasing the weights, instruction collections, and code. They name the Veles release as Veles-2.5 and make the Russian MMLU and MMLU-Pro benchmarks available as well. The released artifacts reflect the stages of the work. The weights contain the results of training, the instruction collections supply examples used for supervised training, and the benchmarks give researchers a way to put the resulting system through the tasks the authors constructed.
Experiments and results
What the benchmarks ask of a system
The main comparison brings together multiple-choice questions, open-ended answers, language understanding tasks, and a broad Russian benchmark suite. These tests stress different behaviors. Choosing an answer from a short list gives the system a specific set of candidates to compare. Producing a quiz answer requires it to find the relevant phrase on its own. A suite average provides a broad view, with the tradeoff that the result combines tasks that can respond differently to the same adaptation.
En-MMLU is the English version of MMLU. It uses multiple-choice questions spanning 57 subjects and is intended to probe knowledge and reasoning. The authors use it to check what happens to English performance after Russian adaptation. The metric is accuracy@1, which credits the system when its first-choice answer is correct. This gives the reader one common basis on which to compare the original Mistral instruction checkpoint, Vikhr, and the other systems with reported English scores. The task comes from MMLU.
For a corresponding test in Russian, the authors create Ru-MMLU by translating MMLU with GPT-3.5. They create Ru-MMLU-pro by translating MMLU-Pro with GPT-4. Both Russian datasets use accuracy@1, as the paper describes the evaluation. Ru-MMLU is part of the main comparison, while Ru-MMLU-pro appears in the component studies. Their similar names can make the results easy to confuse. The original MMLU supplies the questions behind Ru-MMLU, while the source for the other Russian set is MMLU-Pro.
CheGeKa is based on questions from the Russian counterpart of Jeopardy. It contains 29,376 training instances and 416 test instances. The questions are open-ended and can call for world knowledge as well as reasoning. The evaluation reports F1, a metric that balances precision and recall, instead of asking whether a selection from a list ranks first. The paper also uses this task to consider whether training exposure to Russian material helps with culturally specific knowledge. CheGeKa derives from the Russian Jeopardy question-answering dataset.
Russian SuperGLUE groups tasks such as reading comprehension and textual entailment. Entailment asks whether a statement follows from another piece of text. The results table reports accuracy@1 for the benchmark. Its role here is to show how the systems handle a set of Russian language understanding tasks under a different evaluation from quiz answers or subject-knowledge questions. The paper introduces it by comparison with SuperGLUE.
MERA covers 21 tasks across 11 skill domains. The total score is an average across the non-diagnostic tasks, which are the tasks used in that aggregate. MERA includes CheGeKa, RuMMLU, and the RWSD subtask of Russian SuperGLUE. Its overall result brings additional tasks into view while also incorporating material represented elsewhere in the evaluation. The comparison thus has several views of Russian performance, with some test content contributing to more than one view.
The experiments also use ruXNLI, the Russian portion of the cross-lingual natural language inference evaluation cited by the paper. This task supplies an outcome for comparing vocabulary sizes, filtering the corpus, and regularizing the loss. The component comparisons report ruXNLI alongside perplexity and, for filtering, Ru-MMLU-pro. An inference task asks how pieces of text relate to one another. This gives the authors a way to check whether a change that affects text prediction also affects a task that requires the text to be interpreted.
Who Vikhr is compared with
Mistral-7B-Instruct-v0.2 is the most direct baseline for the complete adaptation. Its scores show how the English-oriented starting family performs on the same task names before the package of changes embodied in Vikhr. The comparison also includes the Mistral-based ruadapt system, which is closer to Vikhr in its vocabulary adaptation. The ruGPT entry represents a Russian pretrained system with a different development history. aya101 supplies a multilingual instruction-following comparison and is described in the paper as covering 101 languages.
Two Saiga checkpoints allow the comparison to include Russian instruction training on English-oriented starting systems. One uses Mistral and the other uses Llama-3. The authors describe these as examples of adaptation with LoRA and Saiga data. Their relative performance matters because a change of starting checkpoint can improve a result even when the adaptation belongs to the same family of methods. Conversely, the comparison between Vikhr and a Saiga checkpoint changes several things at once, including data, tokenizer, and which parameters can be updated.
MTS AI Chat 7B and GigaChat-7B provide the proprietary Russian comparisons. The authors obtain both sets of scores from leaderboards. The English MMLU entries for these systems are blank in the main table. The closed-system comparisons therefore concern the reported Russian benchmarks. For open systems, the table also records whether the authors classify the checkpoint as having been pretrained on Russian and describes the kind of training it underwent. Those labels give context for a ranking of finished systems whose development procedures differ.
The main scores
Vikhr posts the highest score among the open systems on En-MMLU. It earns 0.62 accuracy@1, with the parent Mistral checkpoint at 0.60 and the ruadapt entry at 0.61. The Llama-3-based Saiga scores 0.59. For the authors, this is evidence that adaptation to Russian did not come at the cost of a lower score on the English test they ran. They propose longer training as one possible explanation for the improvement over Mistral. The comparison shows the outcome of the full pipeline and leaves the cause of the English result open.
Ru-MMLU is one of the Russian tests on which the original Mistral already scores strongly. Its accuracy@1 is 0.78, the same reported value as the Llama-3-based Saiga. Vikhr reaches 0.80. The Mistral-based Saiga earns 0.76 and ruadapt earns 0.72. The proprietary entries listed for Ru-MMLU are MTS AI Chat at 0.689 and GigaChat at 0.67. Vikhr leads on this translated subject-knowledge evaluation. Its smaller margins over the strongest open systems show how much ability these baselines already bring to the test.
System comparison on Ru-MMLU accuracy@1
Vikhr leads on the Russian multiple-choice benchmark, with Mistral and Llama-based Saiga the nearest entries.
The numbers
| System or setting | accuracy@1 |
|---|---|
| Vikhr-7B-instruct_0.2 (this paper) | 0.80 |
| Mistral-7B-Instruct-v0.2 | 0.78 |
| saiga-llama3-8b | 0.78 |
| saiga-mistral-7b-lora | 0.76 |
| ruadapt Mistral | 0.72 |
| MTS AI Chat 7B | 0.689 |
| GigaChat-7B | 0.67 |
The ranking changes on CheGeKa. Vikhr earns 0.231 F1 on the benchmark’s open-ended questions. That is the best result among the open entries, with the Llama-3-based Saiga at 0.225 and the Mistral-based Saiga at 0.223. The ruGPT entry scores 0.132, while Mistral and ruadapt each score 0.005. GigaChat earns 0.451 and leads the full comparison on this task. MTS AI Chat scores 0.083. A reader interested in Russian quiz questions would therefore draw a different ranking from this test than from translated multiple-choice questions.
System comparison on CheGeKa F1
Vikhr leads the open systems on open-ended quiz answers, while GigaChat leads the full comparison.
The numbers
| System or setting | F1 |
|---|---|
| GigaChat-7B | 0.451 |
| Vikhr-7B-instruct_0.2 (this paper) | 0.231 |
| saiga-llama3-8b | 0.225 |
| saiga-mistral-7b-lora | 0.223 |
| rugpt13b | 0.132 |
| MTS AI Chat 7B | 0.083 |
| Mistral-7B-Instruct-v0.2 | 0.005 |
The authors suggest that Mistral’s low score on CheGeKa may reflect less exposure to the cultural knowledge the questions draw on. They offer a similar interpretation for the weak MTS AI Chat score and suggest that GigaChat’s lead may reflect a larger Russian pretraining collection. The scores establish differences in how the systems answer the quiz. The explanations remain hypotheses because the results compare whole systems and the paper gives no matching record of their training corpora.
On Russian SuperGLUE, Vikhr scores 0.67 accuracy@1. The Llama-3-based Saiga scores 0.66, with the Mistral-based Saiga and ruadapt both at 0.64. The starting Mistral entry is at 0.57. GigaChat leads with 0.71, and MTS AI Chat earns 0.56. The highest open result and the highest overall result thus belong to different systems here, as they do on CheGeKa. The gap between Vikhr and its nearest open comparator is small on the reported scale.
On MERA, Vikhr leads the table with a total score of 0.485. The leaderboard values for GigaChat and MTS AI Chat are both 0.479. The Llama-3-based Saiga follows at 0.476, and the Mistral-based Saiga scores 0.442. Mistral’s total is 0.400. This aggregate rewards performance across its range of tasks. Its ordering can coexist with a substantial GigaChat lead on an individual included task because the total combines results across the suite.
The Llama-3-based Saiga comes close to Vikhr throughout the Russian comparison. The authors take the stronger Saiga results with that starting checkpoint as a reason to consider applying the Vikhr procedure to Llama-3. That suggestion follows from the observed importance of the starting point. The main study ranks the finished versions that were tested. Some of the component experiments use other checkpoints to address narrower questions about the training procedure.
What the generated replies look like
The paper places selected free-form answers beside the benchmark scores. The examples ask about cheburek, khachapuri, and the fish soup ukha. They are simple requests whose replies can still fail in ways a multiple-choice evaluation would miss. The text can switch languages mid-sentence, mix fragments from different languages within a word, or introduce an irrelevant instruction. The authors compare Mistral-7B-Instruct-v0.2 directly with Vikhr on the same examples.
In the cheburek example, Mistral inserts English food terms and descriptive words into otherwise Russian prose. Vikhr produces a continuous Russian description of a pastry and its filling. The khachapuri example shows a different problem. Mistral’s reply runs through malformed wording and mixed-language fragments, while Vikhr identifies the dish in Russian and moves into a recipe. This pair shows why a system can recognize the subject of a request and still have trouble writing an intelligible reply.
For ukha, Mistral’s answer includes a suggestion about removing fur from fish, accompanied by garbled wording. Vikhr identifies the requested dish as fish soup and supplies ingredients for a recipe in fluent Russian. The paper reports that the starting checkpoint sometimes answers in English even when the prompt is Russian. The examples make it possible to inspect errors in language choice and wording, while the benchmark scores describe success on a fixed collection of tasks. Together they show why the authors examine text generation separately.
What the ablations show
The best vocabulary depends on the measure
The vocabulary comparison changes the number of entries in intermediate Vikhr checkpoints after continued pretraining. These checkpoints are based on LLaMa-2 7b. The authors evaluate perplexity on instruction data and compare performance on ruXNLI. Perplexity summarizes how much uncertainty the system assigns to the text it is tested on. Lower perplexity means the observed sequence receives stronger predictions according to that evaluation. The use of LLaMa-2 matters when interpreting how directly the result carries to the final Mistral-based checkpoint. The starting family for this comparison is Llama 2.
At a vocabulary size of 33k, the authors report perplexity of 10.2 on the instruction data and a ruXNLI score of 0.42. At 40k, perplexity is 14.4 and ruXNLI reaches 0.46. The 60k vocabulary gives perplexity of 16.7 and a ruXNLI score of 0.43. At 80k, perplexity reaches 20.4 and the inference score is 0.41. The authors choose 40k because it gives the strongest result on the inference task in the tested range.
Vocabulary size comparison on ruXNLI score after continued pretraining
The selected vocabulary gives the highest inference score, and the score falls at larger settings.
The numbers
| System or setting | ruXNLI score |
|---|---|
| 33k vocabulary | 0.42 |
| 40k vocabulary (this paper) | 0.46 |
| 60k vocabulary | 0.43 |
| 80k vocabulary | 0.41 |
The two measurements answer distinct questions. Perplexity characterizes prediction on the instruction text under a given tokenization. ruXNLI scores whether the system handles the inference items successfully. A vocabulary change can affect the units over which perplexity is measured, since the same string can be expressed as a different sequence of tokens. This makes the ruXNLI result particularly relevant to the authors’ selection. It compares the outcome on a task whose underlying items remain the same while the way they enter the system changes.
The experiment provides a reason to choose the reported setting among the alternatives tried. It also helps explain what rebuilding a vocabulary entails. A larger inventory can accommodate more entries, but each entry has to be represented and learned through the training procedure. The downstream result reaches its peak before the largest inventory in this experiment. How the preferred vocabulary size would move with a different corpus, checkpoint, or target language remains open.
Filtering improves the results in the corpus comparison
The corpus study compares training on an unfiltered collection of 17b tokens with training on a filtered collection of 11b tokens. The outcome matters because the filtering procedure discards material that the system could otherwise have learned from. In this experiment, the smaller retained collection gives better values on each of the reported measures. The result connects the quality selection procedure in the method to an observable training outcome.
Perplexity on the instruction dataset is 8.4 with the unfiltered corpus and 7.2 with the filtered corpus. On ruXNLI, the reported score goes from 0.37 to 0.46. The Ru-MMLU-pro column lists 10.2 without filtering and 11.1 with filtering. Those are the values printed for this comparison. The experimental setup names accuracy@1 for Ru-MMLU-pro, and the paper also gives that benchmark as decimals in the instruction-set comparison. It leaves the relationship between the presentations unexplained, so the corpus study supports the reported ordering on Ru-MMLU-pro without a numerical comparison across those tables.
The comparison is informative about a choice the authors actually faced. They could use the larger body of material or use the corpus after applying the quality filter. The filtered result scores better on predicting instruction text and on the task results reported here. A size-matched experiment would answer a narrower question about selection quality. The reported comparison changes the count of tokens at the same time as the material they represent. It also applies the quality criteria together, leaving open which criteria made the largest contribution.
The authors interpret the result as evidence for taking corpus quality seriously when adapting a system. The inference score helps support that reading because it asks for behavior beyond assigning probabilities to text. The English test and broader Russian suite are reported for the completed checkpoint. Their aggregate results do not isolate the effect of the corpus filter, so the strongest evidence for this stage comes from the measures that were actually repeated in the corpus comparison.
The reference penalty helps on Russian inference
The regularization experiment compares continued pretraining with the loss penalty against continued pretraining without it. Perplexity is 8.1 without regularization and 7.2 with regularization. On ruXNLI the condition without the penalty scores 0.34, and the condition with it scores 0.45. The directions agree across the two measures. In the comparison presented by the authors, keeping the reference prediction signal gives better results in text prediction and on the inference task.
This is the direct ablation behind the authors’ argument about preserving useful behavior. They observed in preliminary trials that further training could leave a system weaker on Russian tasks, even though the new corpus was Russian. The ablation shows that the penalty can improve an intermediate result relative to training without it. In practical terms, it provides evidence about how to continue pretraining in this pipeline. The final English and Russian scores reflect the combination of changes, while this comparison gives a separate view of one change to the objective.
Several broader questions are left to other experiments. The penalty acts on predictions, while forgetting can concern many abilities. The task result here concerns Russian inference. Measuring retention across a wider skills inventory would require comparisons with the reference and both training conditions on that inventory. The paper’s result supplies a particular instance in which preserving a connection to the reference predictions improved the downstream score.
The instruction collection earns its place as a mixture
The instruction-set comparison asks how training on different collections affects Ru-MMLU-pro. The starting checkpoint is Llama-3 8b. Training on Saiga SFT gives 0.21, and training on translated Nectar gives 0.20. The authors’ instruction collection yields 0.27. In this setup, the expanded collection produces the strongest accuracy@1 result on the translated benchmark. The result supports the decision to use the assembled instruction data as a package.
Translated Nectar in this experiment is a comparator. The Nectar examples incorporated into Vikhr’s training mix are English. The distinction matters because there are two separate questions here. One is how a translated instruction collection works when used as the training set for a Russian evaluation. The other is whether English instruction data belongs in the mix for a system intended to serve both languages. The reported comparison bears directly on the first question and on the performance of the full mixture on Ru-MMLU-pro.
The winning set changes several characteristics together, including the sources of instructions, the kinds of tasks, and the languages represented. The comparison leaves the individual effects of Veles, ruFLAN, and retention of English Nectar unresolved. It also leaves the filtering stage for instruction pairs without its own isolated score. This is a test of which complete instruction collection performed best with the Llama-3 starting checkpoint. The paper uses a different experiment to establish where the resulting Mistral-based Vikhr places among open and proprietary competitors.
These component results operate at different levels. Vocabulary size changes the representation and is tested on intermediate LLaMa-2 7b checkpoints. The filter changes what text is available during continued pretraining. Regularization changes the training signal during that stage. The instruction comparison changes the examples used for supervised training and starts from Llama-3 8b. Together they give evidence for the authors’ individual decisions under specific conditions, without providing a common scale on which to rank each decision’s contribution to the final Vikhr results.
Limitations
Limits the authors identify
The authors stop after supervised instruction training. They attribute the absence of reinforcement learning from human feedback, known as RLHF, and direct preference optimization, known as DPO, to a lack of resources for human annotation. They expect these methods could lead to further improvements. In the reported procedure, the response scorer contributes by selecting training pairs. The system trained on those pairs has therefore received a different form of supervision from one whose weights are further optimized using preferences.
The authors also state that they created no additional instruction-and-answer pairs specifically for alignment. In this context, alignment concerns shaping behavior in line with intended preferences and constraints. The authors suggest that the large contribution of ChatGPT-generated answers may pass some of that behavior to Vikhr. This is their expectation about the influence of the training data. The paper leaves the resulting alignment behavior without a dedicated evaluation.
The ethical discussion identifies biases in public training material that could appear in generated answers. It also acknowledges potential misuse and the possibility that outputs will be incorrect or misleading. The safety judgments used when filtering pretraining documents and the quality judgments used for instruction pairs address the material admitted to training. The ethical concerns concern behavior after training. The paper discusses monitoring and verification in that context, under bias, fairness and safety.
The authors place usage under the license terms of the base system and the instruction collections and state that they add no further restrictions. This matters because a release assembled from prior weights and data inherits conditions from those sources. Access for examination and the conditions for reuse are both relevant to the paper’s case for open research.
Limits visible in the experiments
The paper bears a retraction marking. It gives no reason for the retraction. The scores and interpretations reported here describe the authors’ account of their experiments.
The main comparison provides a broad snapshot of performance on the named benchmarks. The table reports point scores, which leave the amount of variation across runs unquantified. This matters most where close scores determine the order of the systems. It also matters that the proprietary entries come from leaderboards. The paper compares those reported outcomes with Vikhr’s results, while offering less detail about the underlying systems and conditions than it can give for its own training.
The evidence for English retention comes primarily from En-MMLU. The positive result there concerns answering English multiple-choice questions across subject areas. English conversation, long responses, or the effect of alternating languages within a request would require other measurements. The use of English Nectar gives a training rationale for retaining instruction-following ability in English. The reported English benchmark gives an outcome for one important part of that goal.
Ru-MMLU and Ru-MMLU-pro depend on automated translation. Their design gives a Russian rendering of questions originally written in English. That is well suited to asking how a checkpoint handles those tasks in Russian, with any changes introduced by translation part of the resulting dataset. The paper gives no item-level audit showing how often translations preserve the exact reading of a question or its choices. CheGeKa adds a different source of evidence because its questions originate in a Russian quiz setting, and its relatively small test split is a separate consideration when interpreting the result.
MERA’s overlap with other reported Russian tests limits how much independence to assign to agreement across the columns. A gain on an included task can contribute to that task’s standalone result and to the aggregate. The distinct scores still answer different questions. The standalone result shows performance on the task itself, while the total shows how it contributes alongside the other tasks and domains covered by the suite.
The generated replies demonstrate recognizable failures and improvements on the chosen prompts. Their scope is illustrative. The reader can examine the language switching, malformed phrasing, and odd suggestion about the fish. The paper gives no systematic error rate for these phenomena or broad human assessment of fluency, factual correctness, and instruction adherence. Fluent Russian in a displayed recipe provides evidence about the form of that answer. Establishing factual reliability across recipes or other topics would require a wider evaluation.
The tokenizer example supports the claim that some Russian text becomes more compact, and the paper presents an efficiency comparison for the tokenizer. That evidence speaks directly to the representation of text. A runtime measurement under matched conditions would be needed to quantify the gain in latency, generation speed, or memory use for a workload. The training resource figures describe the cost of constructing Vikhr and answer a different question from the cost of running a finished checkpoint.
Finally, the component studies use different starting points, and the full pipeline is demonstrated for a language the authors describe as high resource. Its method uses substantial corpora as well as instruction examples that can be translated or generated. The authors propose applying the approach to languages with fewer resources. The paper leaves open how the vocabulary training, corpus selection, and preservation of inherited abilities would work at those different levels of data availability.
What came after
The paper closes by naming Vikhr-Nemo-12B-Instruct, based on Mistral NeMo, as the authors’ strongest publicly available Vikhr release at the time. The main results concern the Mistral 7B adaptation, and the paper gives no corresponding benchmark comparison for the NeMo release. The authors also describe plans to extend language adaptation to Belarusian, Serbian, and Kazakh. Those plans identify directions they wanted to pursue. There are no later citing studies to trace here from the adaptation procedure to an independently tested follow-up.
Cite
Cite as Aleksandr Nikolich, Konstantin Korolev, Sergei Bratchikov, Igor Kiselev and Artem Shelmanov. 2024. Vikhr: Constructing a State-of-the-art Bilingual Open-Source Instruction-Following Large Language Model for Russian. Proceedings of the Fourth Workshop on Multilingual Representation Learning (MRL 2024).
@inproceedings{nikolich2024vikhr,
title = {{Vikhr: Constructing a State-of-the-art Bilingual Open-Source Instruction-Following Large Language Model for Russian}},
author = {Aleksandr Nikolich, Konstantin Korolev, Sergei Bratchikov, Igor Kiselev and Artem Shelmanov},
booktitle = {Proceedings of the Fourth Workshop on Multilingual Representation Learning (MRL 2024)},
year = {2024},
doi = {10.18653/v1/2024.mrl-1.15},
url = {https://doi.org/10.18653/v1/2024.mrl-1.15}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/nikolich-2024-vikhr-constructing-state-art-bilingual/