Vikhr: Constructing a State-of-the-art Bilingual Open-Source Instruction-Following Large Language Model for Russian

Aleksandr Nikolich, Konstantin Korolev, Sergei Bratchikov, Igor Y. Kiselev, Artem Shelmanov2024 · DOI

Note: This paper is marked as RETRACTED by the ACL Anthology. While this summary describes the methods and findings as presented in the original document, readers should exercise caution regarding the reliability of the results.

Abstract

There has been a surge in the development of various Large Language Models (LLMs). However, text generation for languages other than English often faces significant challenges, including poor generation quality and reduced computational performance due to the disproportionate representation of tokens in the model's vocabulary. In this work, we address these issues by developing a pipeline for adaptation of English-oriented pre-trained models to other languages and constructing efficient bilingual LLMs. Using this pipeline, we construct Vikhr, a state-of-the-art bilingual open-source instruction-following LLM designed specifically for the Russian language. "Vikhr" refers to the name of the Mistral LLM series and means a "strong gust of wind." Unlike previous Russian-language models that typically rely on LoRA adapters on top of English-oriented models, sacrificing performance for lower training costs, Vikhr features an adapted tokenizer vocabulary and undergoes the continued pre-training and instruction tuning of all weights. This not only enhances the model's performance but also significantly improves its computational and contextual efficiency. The remarkable performance of Vikhr across various Russian-language benchmarks can also be attributed to our efforts in expanding instruction datasets and corpora for continued pre-training. Vikhr not only sets the new state of the art among open-source LLMs for Russian but even outperforms some proprietary closed-source models on certain benchmarks.

Introduction

Most top-tier open-source LLMs are "English-centric," leading to several hurdles when applied to Russian:

  1. Tokenization Inefficiency: Standard tokenizers break Russian words into many tiny pieces (sub-tokens), increasing computational costs and effectively shrinking the context window.
  2. Performance Degradation: Models often struggle with complex reasoning in non-English languages and lack local cultural context.
  3. Catastrophic Forgetting: Teaching an English model a new language often results in the loss of original logical reasoning skills learned during initial training.

Vikhr aims to solve these by redesigning the tokenizer for Russian efficiency and using a specialized continued pre-training pipeline with regularization to maintain core reasoning capabilities.

Methodology

The authors developed a three-stage pipeline to transform the English-centric Mistral-7B model into a bilingual powerhouse.

1. Vocabulary Adaptation

The original tokenizer was replaced with a new one trained on a large Russian corpus using SentencePiece with a 40,000-word vocabulary. To avoid starting from scratch, new Russian word embeddings were initialized by averaging the embeddings of the sub-tokens they were composed of in the original model.

2. Continued Pre-training with Regularization

All model weights were trained on 11 billion tokens of high-quality Russian text. To prevent catastrophic forgetting, the team employed KL-divergence regularization. This acts as a tether, ensuring the new model's internal logic doesn't drift too far from the original Mistral model's distribution.

3. Instruction Tuning

The model was fine-tuned on approximately 680,000 instruction-output pairs. This included Russian translations of English sets (Veles, ruFLAN), existing Russian datasets (Saiga), and English datasets (Nectar) to maintain bilingual proficiency.

Table 5: Hyperparameters for instruction tuning and hardware details.

Tokenization and Efficiency

A key innovation in Vikhr is the improved tokenization density. The authors demonstrated that while Mistral’s original tokenizer required 13 tokens to represent a specific Russian sentence, Vikhr’s adapted tokenizer needed only 7. This nearly doubles the effective context window and significantly speeds up text generation for the same hardware.

Figure 2: Tokenization density comparison across different models.

Key Results

  • State-of-the-Art Performance: Vikhr-7B-instruct_0.2 became the top-performing open-source model of its size on Russian benchmarks like MERA (0.485) and Ru-MMLU (0.80).
  • Bilingual Balance: Unlike many adapted models that lose English proficiency, Vikhr maintained an En-MMLU score of 0.62, slightly higher than the base Mistral model.
  • Qualitative Improvement: Analysis showed that Vikhr avoids "code-switching" (randomly inserting English words into Russian sentences), a common failure mode for unadapted models.

Limitations and Future Work

Beyond the retraction status, the model lacks RLHF (Reinforcement Learning from Human Feedback) alignment due to resource constraints. It may also inherit biases from the LLM-generated or translated data used in training. Future work aims to apply this pipeline to other languages such as Belarusian, Serbian, and Kazakh.

Summary updated

Abstract

There has been a surge in the development of various Large Language Models (LLMs).However, text generation for languages other than English often faces significant challenges, including poor generation quality and reduced computational performance due to the disproportionate representation of tokens in the model's vocabulary.In this work, we address these issues by developing a pipeline for adaptation of English-oriented pre-trained models to other languages and constructing efficient bilingual LLMs.Using this pipeline, we construct Vikhr, a state-of-the-art bilingual opensource instruction-following LLM designed specifically for the Russian language."Vikhr" refers to the name of the Mistral LLM series and means a "strong gust of wind."Unlike previous Russian-language models that typically rely on LoRA adapters on top of Englishoriented models, sacrificing performance for lower training costs, Vikhr features an adapted tokenizer vocabulary and undergoes the continued pre-training and instruction tuning of all weights.This not only enhances the model's performance but also significantly improves its computational and contextual efficiency.The remarkable performance of Vikhr across various Russian-language benchmarks can also be attributed to our efforts in expanding instruction datasets and corpora for continued pretraining.Vikhr not only sets the new state of the art among open-source LLMs for Russian but even outperforms some proprietary closedsource models on certain benchmarks.The model weights, instruction sets, and code are publicly available 1 .
BibTeX
@misc{nikolich2024vikhr,
  author = {Aleksandr Nikolich and Konstantin Korolev and Sergei Bratchikov and Igor Y. Kiselev and Artem Shelmanov},
  title = {{Vikhr: Constructing a State-of-the-art Bilingual Open-Source Instruction-Following Large Language Model for Russian}},
  year = {2024},
  doi = {10.18653/v1/2024.mrl-1.15},
}
Figure