Abstract
Transformer language models (LMs) are fundamental to NLP research methodologies and applications in various languages. However, developing such models specifically for the Russian language has received little attention. This paper introduces a collection of 13 Russian Transformer LMs, which spans encoder (ruBERT, ruRoBERTa, ruELECTRA), decoder (ruGPT-3), and encoder-decoder (ruT5, FRED-T5) architectures. We provide a report on the model architecture design and pretraining, and the results of evaluating their generalization abilities on Russian language understanding and generation datasets and benchmarks. By pretraining and releasing these specialized Transformer LMs, we aim to broaden the scope of the NLP research directions and enable the development of industrial solutions for the Russian language.
Introduction
The current landscape of Natural Language Processing (NLP) is significantly biased toward the English language. While multilingual models like mBERT, XLM-R, and mT5 offer broad coverage, they often function as "jack-of-all-trades" that fail to capture the specific linguistic nuances of individual languages like Russian. Prior to this work, the Russian NLP ecosystem lacked a comprehensive suite of modern architectures, particularly large-scale generative decoders and encoder-decoders.
This paper addresses this gap by introducing a diverse family of 13 pretrained Transformer language models specifically optimized for Russian. These models were trained on curated corpora of up to 450GB, providing a robust foundation for both academic research and industrial applications in the Russian language.
Methodology and Model Architectures
The authors developed 13 models across three primary Transformer paradigms: Encoders (ruBERT, ruRoBERTa, ruELECTRA), Decoders (ruGPT-3), and Encoder-Decoders (ruT5, FRED-T5).
A significant contribution of this work is the FRED-T5 (Full-scale Russian Enhanced Denoisers) architecture. Inspired by the UL2 framework, FRED-T5 utilizes a "mixture of denoisers" pretraining objective. This approach combines masked language modeling, span corruption, and causal language modeling, allowing the model to excel in both understanding and generation tasks. The models utilize Byte-Level BPE (BBPE) or SentencePiece tokenization to handle the morphological complexity of Russian.
Pretraining Data
The models were pretrained on a massive, diverse Russian corpus. The data sources include Russian and English Wikipedia, news archives (Taiga, Lenta, Interfax), literature (librusec), filtered web crawls (Russian C4), and OpenSubtitles. The total data volume ranged from 30GB for smaller models to 450GB for the largest generative models.
Evaluation and Results
The models were evaluated across a comprehensive suite of benchmarks for Natural Language Understanding (NLU) and Natural Language Generation (NLG), including Russian SuperGLUE, RuCoLA (linguistic acceptability), and various summarization and detoxification tasks.
Performance on Russian SuperGLUE
The Russian SuperGLUE benchmark serves as the primary metric for reasoning and reading comprehension. The results demonstrate that monolingual Russian models significantly outperform their multilingual counterparts.
As shown in Table 2, FRED-T5-XL achieved a state-of-the-art (SOTA) overall score of 75.2, narrowing the gap with human performance (81.1). Among pure encoders, ruRoBERTa-large led with a score of 68.1. These results underscore the value of language-specific pretraining and tokenization.
Key Insights
- Monolingual Superiority: Dedicated Russian models consistently beat massively multilingual models like mBERT and mT5.
- Effectiveness of Denoiser Mixtures: The success of FRED-T5-XL validates the use of diverse pretraining objectives for versatile performance.
- Efficiency: The ruELECTRA family, particularly the 42M parameter small version, offers a highly efficient alternative for edge-device applications where compute is limited.
- NLG Metric Nuance: In text simplification tasks, the authors observed that multilingual models often achieved high automated scores by copying input verbatim, highlighting the necessity of human evaluation in generation.
Discussion and Limitations
While these models represent a significant leap forward for Russian NLP, several limitations remain. The generative models are currently limited to a context window of 2048 tokens, which may hinder performance on long-document tasks. Additionally, as the models were trained on internet-sourced data, they likely inherit societal biases and stereotypes present in those corpora. Future work will focus on extending context windows through efficient finetuning (e.g., LongLoRA), conducting rigorous safety and bias evaluations, and exploring performance in low-resource finetuning scenarios.
Conclusion
By releasing this family of 13 Transformer models, we provide the Russian NLP community with a powerful set of tools to advance the state of the art. The superior performance of these monolingual models over multilingual baselines demonstrates the importance of language-specific development in the era of large language models.
Summary updated