Elamur Research

Knowledge Distillation of Russian Language Models with Reduction of Vocabulary

Paper · 2022 · Alina Kolesnikova, Yuri Kuratov, Vasily Konovalov et al.

Summary

A compact Russian language system can still carry a large table of word pieces. Each piece in its vocabulary has a corresponding vector, so cutting the number of processing layers leaves a substantial part of the system intact. Cutting the vocabulary shrinks that table, but it also changes how the same sentence is split and which pieces the system can predict. Knowledge distillation, in which a smaller student learns from a larger teacher, then loses the straightforward correspondence it usually relies on. The paper asks how to restore enough of that correspondence to train compact Russian language models.

The authors propose two ways to align the teacher and student. The match strategy compares positions where both use the same piece at the same place in the text. When comparing predictions, it also restricts the comparison to pieces in both vocabularies. The reduce strategy starts with the teacher’s segmentation and breaks each teacher piece into units the student can read. It then adds the student’s vectors for those units, producing a single vector to compare with the teacher’s. The student also learns to predict masked pieces in text segmented with its own tokenizer, the component that divides text into the units the system reads.

The authors evaluate the students after training them for Russian paraphrase detection, sentiment classification, reading comprehension, named entity recognition, and the tasks in Russian SuperGLUE. The vocabulary-reduced students are reported as (17×) to (49×) smaller on disk than the teacher, and the paper describes their quality as competitive with that of a (1.7×) compressed student that keeps the full vocabulary and cuts only the number of layers. The strongest reported configuration among the students with a 30k vocabulary learns from the teacher’s intermediate vectors and uses masked prediction, with no loss that asks it to copy the teacher’s output probabilities. Further vocabulary cuts affect the tasks differently, with scores rising on some and falling on others in the comparison that holds the training objectives fixed.

The vocabulary-reduced students reached up to (104×) the teacher’s GPU inference speed in the paper’s fixed-batch benchmark. The fastest student in that benchmark kept the teacher’s vocabulary and had fewer processing layers than the vocabulary-reduced students. Storage, working memory, and speed therefore tell different parts of the efficiency story. The authors release their training code and pretrained students.

Deep dive: Knowledge Distillation of Russian Language Models with Reduction of Vocabulary

A study of how Russian language models can learn from a larger teacher with a smaller vocabulary, and what changes in quality, storage, and speed. · about 33 minutes to read

The problem and its context

What remains after the layers are cut

A pretrained Transformer takes a sequence of tokens, looks up a vector for each, and processes the resulting sequence through successive layers. In the paper’s setting, a token can be a whole word or a piece of one. The lookup table contains a learned row for each item in the vocabulary. The layers then turn those initial vectors into representations that depend on the surrounding text. The lookup table and the processing layers contribute to the overall size in different ways. The table depends on the number of vocabulary entries and on the width of their vectors. The processing stack depends on how many layers it has and how much each layer stores and computes.

This distinction matters when the aim is to fit a system into limited disk space and working memory while keeping prediction fast. Removing layers addresses the processing stack. Narrowing the representation can affect both the stack and the table. If the vocabulary stays large, however, the table can become an increasing share of what remains. The paper illustrates this effect with selected English systems sharing a vocabulary size and notes that embeddings can account for more than 50% of the parameters in small systems. The authors take that observation as a reason to change the vocabulary itself, a separate choice in designing efficient models and compression.

A vocabulary is also part of how a language system reads. Consider a text fragment that a large vocabulary represents with one entry. If the smaller vocabulary lacks that entry, the student may have to read several pieces for the same fragment. The sequence becomes longer, and neighboring entries can end up at different numerical positions. Even if the teacher and student happen to produce sequences of equal length for some text, position alone gives no assurance that their entries cover the same spans. This is a consequence of changing subword tokenization.

The change also affects what the systems predict. In masked language modeling, some pieces of the input are hidden, and the system learns to predict the original piece at each hidden position. Its scores range over the entries of its vocabulary. A teacher can distribute probability among entries unavailable to the student. The reverse can also occur because building a smaller vocabulary does not guarantee that every student entry belongs to the teacher’s. Thus the authors have to establish correspondence along two axes. One concerns which part of the text a prediction or internal vector represents. The other concerns what each predicted class means. Aligning the positions by itself gives no way to compare the probabilities assigned to classes that exist on only one side.

What previous distillation methods assumed

The paper places distillation alongside pruning and quantization. Pruning discards some of the trained weights. Quantization uses lower precision for weights, reducing the space needed to store them. Distillation trains a student using behavior produced by a teacher. A teacher’s prediction distribution can tell the student which alternatives it considers plausible, while intermediate representations can give the student examples of how the teacher encodes the input before producing a prediction. The vocabulary issue arises when the distillation objective assumes that the student and teacher can be compared entry by entry.

The authors distinguish distillation for a specific task from distillation during general pretraining. In the task-specific approach they describe, the teacher is first adapted to the task and then used to train a student for that task. A new task can require both stages again. With general pretraining, the student learns from the teacher before any of the evaluation tasks are introduced. The pretrained student can then be adapted separately to each task, without repeating teacher adaptation. That subsequent training on labeled data is fine-tuning.

DistilBERT is the paper’s example of general pretraining with several sources of supervision. It learns to recover masked text, to approximate the teacher’s token predictions, and to make its hidden vectors point in directions similar to the teacher’s. TinyBERT introduces learned projections that let students and teachers use hidden vectors of different widths. A projection maps the coordinates of a vector into a space of the appropriate size. The paper also describes work that transfers attention information, the patterns through which a Transformer relates input positions to one another. Attention gives the student another internal signal to imitate, alongside the predictions it eventually makes.

These precedents show why width and segmentation are distinct problems. A projection can make a student vector and a teacher vector equally wide. It still needs a pair of vectors to act on, and independently segmented text may leave several student positions corresponding to one teacher position. Similarly, making prediction arrays equal in size would have little meaning if the same column referred to different pieces in the two arrays. A distillation loss needs the axes to agree in what they represent.

The authors identify mixed-vocabulary training as a precedent that directly addresses a vocabulary change. In the method they describe, training selects between teacher and student vocabularies for individual words. This lets the student’s embedding table learn while being used with the teacher. The resulting table then goes into a separate stage of ordinary masked-prediction pretraining for the student. The present paper instead puts teacher supervision into student pretraining itself, including supervision drawn from the teacher’s processing layers. This gives the student’s other parameters a way to learn from the teacher during that stage.

From a broader perspective, the authors see vocabulary mismatch as a case of distilling between classifiers with different labels. For masked prediction the labels happen to be text pieces, whose relationship can sometimes be recovered by looking at how they cover the same characters. The paper also discusses parameter sharing, factorized embedding tables, and pruning as ways to shrink a Transformer. Those techniques can coexist with vocabulary reduction. The experiments here address what changes once a decision to use a smaller vocabulary has already made the teacher’s and student’s training signals incompatible in their original form.

The method, step by step

Where the two sequences diverge

A teacher and student start with the same text. Each tokenizer converts it into a sequence according to its own vocabulary. For the reduced-vocabulary students, the authors build vocabularies with byte pair encoding, abbreviated BPE. The paper’s working expectation is that a smaller inventory will generally need more pieces to cover the same text. In one comparison, the authors use a teacher tokenizer with a vocabulary of roughly 1.2×10⁵ entries and a student tokenizer with roughly 3×10⁴. Across approximately 2.7×10⁷ sequences, only 0.2% of the student segmentations are shorter than the teacher’s. The ordering is therefore a simplifying assumption supported by that corpus comparison, with exceptions.

The distinction between a piece in a vocabulary and a piece at a position in a sequence runs through the method. A student piece may be listed in the teacher’s vocabulary but never be selected by the teacher’s tokenizer at a particular location. It might cover fewer characters than the teacher’s piece there, or its boundaries might cut across two teacher pieces. Vocabulary overlap tells the authors which prediction labels can be compared. It cannot by itself tell them where the teacher and student are describing the same portion of an input.

Pretraining a student with a reduced vocabulary

The steps in order.

Pretraining a student with a reduced vocabularyStep 1: Build the smaller student vocabulary1. Build the smaller student vocabularyStep 2: Initialize student weights from the teacher2. Initialize student weights from the teacherStep 3: Tokenize text for masked prediction3. Tokenize text for masked predictionStep 4: Match shared positions or split teacher pieces4. Match shared positions or split teacher piecesStep 5: Align vectors and shared prediction labels5. Align vectors and shared prediction labelsStep 6: Train with masked prediction and teacher signals6. Train with masked prediction and teacher signals

The starting objective

The paper introduces its method through the DistilBERT objective. Its first term is the masked language modeling loss, abbreviated MLM. The input conceals selected tokens, and the training data supply the original tokens as targets. In the starting case, the teacher and student share a vocabulary and can use the same sequence positions.

ℒₘₗₘ = −∑_{i=1, i∈M}^{|Xₜ|} ∑_{j=1}^{|Vₜ|} yᵢⱼ log(pˢᵢⱼ)

Here ℒₘₗₘ is the masked prediction loss. The symbol ∑ means to sum, and the minus sign makes a low probability on the target incur a larger loss. The outer index i runs through positions from 1 to |Xₜ|, the number of pieces in the teacher-tokenized sequence Xₜ, with i ∈ M restricting the sum to the set M of masked positions. The inner index j runs from 1 to |Vₜ|, the size of the teacher vocabulary Vₜ. The indicator yᵢⱼ selects the original token at position i by taking the value 1 for its vocabulary entry and 0 for the others. The quantity pˢᵢⱼ is the student’s predicted probability of entry j at position i, with superscript s denoting the student. The function log is the logarithm. In the reduced-vocabulary experiments, the student’s supervised MLM term uses positions and token targets from the student’s own segmentation.

The second term uses the teacher’s probabilities as soft targets. A soft target gives weight to candidate pieces according to the teacher’s predictions, including candidates other than the original piece. In the formula the paper presents, this comparison is over positions outside the masked set.

ℒ꜀ₑ = −∑_{i=1, i∉M}^{|Xₜ|} ∑_{j=1}^{|Vₜ|} pᵗᵢⱼ log(pˢᵢⱼ)

Here ℒ꜀ₑ is the cross-entropy between the teacher’s and student’s predictions. The condition i ∉ M selects positions outside M. As before, i indexes input positions, j indexes vocabulary entries, and |Xₜ| and |Vₜ| bound the two sums. The quantity pᵗᵢⱼ is the teacher probability for entry j at position i, and pˢᵢⱼ is the corresponding student probability. The superscripts t and s indicate teacher and student. The notation ∑, log, and the minus sign have the same meanings as in the MLM expression. The paper notes that Kullback–Leibler divergence, abbreviated KL, can replace this cross-entropy. The difference is a term involving the teacher probabilities and their logarithms. With a fixed teacher, that term does not depend on the student’s predictions. Both versions require that the probabilities refer to corresponding classes.

The starting objective also includes a loss on hidden states, the vectors produced inside the processing stack. Here the comparison is based on the angle between vectors. This gives a training signal even without asking which vocabulary entry either system would ultimately predict.

ℒ꜀ₒₛ = ∑_{i=1, i∉M}^{|Xₜ|} cos_dist(hᵗₙ,ᵢ, hˢₘ,ᵢ)

In this expression ℒ꜀ₒₛ is the cosine distance loss, and cos_dist computes the distance for a pair of vectors. The vector hᵗₙ,ᵢ is the teacher’s hidden state at position i from layer n. The vector hˢₘ,ᵢ is the student’s hidden state at that position from layer m. The teacher and student layer indices n and m can differ. The sum ∑ is over i from 1 to the teacher sequence length |Xₜ|, with i ∉ M again excluding the masked positions. The roles of t and s are unchanged.

cos_dist(hᵗₙ,ᵢ, hˢₘ,ᵢ) = 1 − ⟨hᵗₙ,ᵢ, hˢₘ,ᵢ⟩ / (‖hᵗₙ,ᵢ‖ ‖hˢₘ,ᵢ‖)

Here ⟨·,·⟩ denotes the dot product of the two hidden vectors and ‖·‖ their respective lengths. Dividing by the product of the lengths gives the cosine of their angle. Subtracting that quantity from 1 gives the distance used in the loss. The symbols h, t, s, n, m, and i refer to the same hidden states, systems, layers, and position as above. The reduced-vocabulary experiments use a different hidden-state comparison, mean squared error between aligned and projected vectors. The cosine formula explains the starting point and helps distinguish it from the objective later used for those experiments.

The shapes that have to agree

The paper assumes a smaller student vocabulary with some overlap with the teacher’s. Its formal condition captures both requirements.

|Vₛ| < |Vₜ|,  Vₛ ∩ Vₜ ≠ ∅

Here Vₛ is the student vocabulary and Vₜ the teacher vocabulary. Vertical bars give the number of entries in a vocabulary. The symbol < indicates that the student’s count is smaller. The intersection operator ∩ keeps entries present in both sets, and ≠ ∅ requires that this intersection differ from the empty set. This assumption matters directly for output matching, which needs shared prediction classes.

𝒳: Xₛ → Xₜ

Here 𝒳 denotes the alignment of positions. The symbols Xₛ and Xₜ represent the student and teacher token sequences for the same underlying input. The arrow gives the direction of the alignment from the student side to the teacher side. The strategies make the lengths agree in the arrays used by the loss. The ordinary tokenizer outputs can still differ in length and segmentation.

𝒱: Vₛ → Vₜ

Here 𝒱 is the correspondence between student vocabulary entries Vₛ and teacher vocabulary entries Vₜ. The arrow again indicates the direction from the student side to the teacher side. The paper implements this correspondence for prediction comparison by retaining shared entries. A student class outside the intersection receives no corresponding teacher column under this operation.

At any input position, the prediction array has a score for each vocabulary entry, while the hidden-state array has a vector of coordinates. A mismatch of sequence lengths affects both kinds of array. A mismatch of vocabularies directly affects the prediction array because its columns name vocabulary entries. A mismatch of hidden widths affects the hidden-state array because its columns are vector coordinates. The authors handle these differences with separate operations so that a sequence alignment need not also solve the vocabulary or width problem.

Matching the pieces that coincide

The authors first ask how many pieces in the smaller BPE inventories are also available in the teacher’s inventory. They report about 99% overlap from the student side for vocabularies of 5×10³, 10⁴, 2×10⁴, and 3×10⁴ entries against the teacher’s roughly 1.2×10⁵ entries. This makes shared vocabulary labels readily available, but the position test is stricter. Match uses the cases where independent tokenization produces a coinciding piece in the text. The matching pair may occur at different numerical indices because of earlier segmentation differences. The loss uses the paired positions and leaves the other positions out of the comparison.

For hidden states, matching positions gives the teacher and student the same number of rows. It leaves the widths of the vectors as they were. For output predictions, the method also keeps only columns corresponding to shared vocabulary entries. The following are the four transformations described in the paper.

(|Xₜ|, dₜ) ↦ (nₘₐₜ꜀ₕ, dₜ)

The tuple describes the teacher’s hidden-state array. Its input row count |Xₜ| is the teacher sequence length, and dₜ is its hidden width. The arrow ↦ indicates the change in array shape. After selection, nₘₐₜ꜀ₕ counts the matching positions retained for distillation. The width dₜ is unchanged by position selection.

(|Xₜ|, |Vₜ|) ↦ (nₘₐₜ꜀ₕ, |Vₘₐₜ꜀ₕ|)

This is the teacher’s prediction array. It starts with |Xₜ| rows and |Vₜ| columns, one column per teacher vocabulary entry. The arrow shows the result of selecting rows and columns. The remaining rows number nₘₐₜ꜀ₕ, the count of shared positions. The remaining columns number |Vₘₐₜ꜀ₕ|, the size of the shared vocabulary Vₘₐₜ꜀ₕ.

(|Xₛ|, dₛ) ↦ (nₘₐₜ꜀ₕ, dₛ)

This is the student’s hidden-state array. It starts with |Xₛ|, the student sequence length, and dₛ, the student hidden width. The arrow shows selection of the student rows paired with the teacher rows. It leaves nₘₐₜ꜀ₕ rows and keeps the student width dₛ.

(|Xₛ|, |Vₛ|) ↦ (nₘₐₜ꜀ₕ, |Vₘₐₜ꜀ₕ|)

This is the student’s prediction array. The original dimensions are |Xₛ| student positions and |Vₛ| student vocabulary entries. Applying the two selections indicated by the arrow yields the same nₘₐₜ꜀ₕ rows and |Vₘₐₜ꜀ₕ| columns as on the teacher side. Each compared row and column can then be associated with the same input span and prediction class, respectively.

This alignment involves little aggregation. It also discards much of the sequence-level signal. The authors report losing 75% of potentially usable teacher sub-words with the 3×10⁴ vocabulary and 96% with the 5×10³ vocabulary. The contrast with the high vocabulary overlap comes from the denominators. The overlap figure concerns entries in the student inventory. The loss of training signal concerns occurrences in text segmented by the teacher and student. Even a retained piece can sit next to different segmentation boundaries and be represented in a different token context.

Reducing the student sequence to teacher positions

The reduce strategy changes how the input used for teacher supervision is constructed. The teacher first tokenizes the text. The authors then take each teacher token in turn and split it greedily from left to right into pieces from the student vocabulary. This creates an auxiliary sequence the student can read and records which consecutive student pieces came from each teacher piece. The alignment is explicit because the group boundaries are inherited from the teacher.

The paper illustrates the segmentation difficulty with the string exciting. Its teacher version has the pieces excit and ##ing, while its independently tokenized student version has ex, ##c, ##i, ##ti, and ##ng. The continuation piece ##ti spans the boundary between the teacher’s pieces. In that independent segmentation, even collecting consecutive student positions would fail to reconstruct the teacher’s boundary cleanly. The auxiliary sequence solves this by constructing student groups separately within the teacher’s pieces from the outset. The example illustrates the problem with independent segmentation instead of specifying the exact auxiliary split the algorithm will produce.

After the student processes the auxiliary sequence, the authors sum the hidden vectors in each group. In the paper’s notation, the resulting vector is written on the side of the equality labeled by the corresponding teacher position.

hᵗᵢ = ∑_{j∈{kⁱ₁,…,kⁱₗ}} hˢⱼ,  i = 1,…,|Xₜ|

Here i indexes the teacher positions from 1 through |Xₜ|. The indices kⁱ₁ through kⁱₗ identify the l student positions created by splitting teacher piece i. The superscript i on each k identifies the group, and the subscript identifies a member of that group. The summation ∑ visits the student indices j in the set delimited by braces. The term hˢⱼ is the student hidden vector at index j, and hᵗᵢ on the left denotes the combination associated with teacher position i in the paper’s expression. Operationally, the equality defines the student aggregate at that position. The teacher’s own hidden vector is computed by the teacher and supplies the target for comparison.

The same grouping can be applied to the scores before softmax, called logits. Softmax converts a collection of scores into a probability distribution. Summing the scores before that conversion produces one student score vector per teacher position. Each vector still has one entry per student vocabulary item. For a prediction loss, the authors therefore combine sequence reduction with matching along the vocabulary axis.

(|Xₛ|, dₛ) ↦ (|Xₜ|, dₛ)

Here |Xₛ| is the length of the student sequence entering reduction, which in this procedure is the auxiliary sequence. The symbol dₛ is the student hidden width. The arrow represents summing each group of student rows, resulting in |Xₜ| rows, one per teacher position. The operation leaves dₛ unchanged.

(|Xₛ|, |Vₛ|) ↦ (|Xₜ|, |Vₛ|)

Here |Xₛ| is again the auxiliary sequence length, and |Vₛ| is the size of the student vocabulary. The arrow represents the same grouping applied to the student score vectors. The result contains |Xₜ| rows and keeps the |Vₛ| columns for student prediction classes.

(|Xₜ|, |Vₛ|) ↦ (|Xₜ|, |Vₘₐₜ꜀ₕ|)

Here |Xₜ| stays fixed because the student score rows have already been grouped by teacher position. The arrow represents selection from the |Vₛ| student vocabulary columns down to the |Vₘₐₜ꜀ₕ| shared columns. Selecting corresponding columns on the teacher side makes a cross-entropy or KL comparison possible.

Reduce can bring a teacher position into the loss even when the student ordinarily has no single piece for it. This is sequence coverage. The output comparison still excludes labels outside the shared vocabulary, including teacher-only labels. A hidden-state comparison has no vocabulary columns to select, so it can draw on a teacher vector for a position even when the piece at that position is missing from the student inventory. That makes reduction useful for transferring representations independently of the prediction loss.

Keeping the student's own masked-prediction task

Reduction gives the student an input governed by teacher boundaries. The intended student still has its own tokenizer, so the authors pass a separate input segmented in the ordinary student way. On that input, the supervised MLM objective asks the student to recover its own masked pieces. In a reduce configuration, the auxiliary input supplies any teacher-based hidden-state or prediction losses, and the ordinary input supplies the MLM loss. Student positions from the ordinary input are left out of the reduction-based comparison. This division lets the teacher supervise the text at teacher positions while the student practices prediction over the full inventory it will use.

The reduced-vocabulary students differ from the teacher in layer count and hidden width as well. To obtain hidden targets for the distillation loss, the authors average the outputs of the Transformer layers at each token position, separately for teacher and student. They align the resulting student sequence with match or reduce, then use a fully connected projection to put the student vectors in the teacher’s coordinate dimension. The comparison is mean squared error, abbreviated MSE. It penalizes the squared coordinate differences between the projected student representation and the teacher representation. The projection starts with random weights. In some runs those weights stay fixed, and in others they can change during training.

The initial weights of the student itself come from the teacher. For embedding initialization, the authors split vocabulary entries from the teacher into student pieces. For each student piece, they gather the teacher entries whose splits contain it and average the embeddings of those entries. The resulting average supplies the starting embedding for that piece. This use of the split operates over vocabulary entries before the training examples are processed. Sequence reduction during training, by comparison, groups the context-dependent vectors that the student produces for a particular input.

For layer initialization, the authors group the teacher’s 12 layers by 4, average the parameters in the groups to initialize the 3 student layers, and cut the resulting parameters to the student width. This averaging acts on the weights that start training. The averaging for hidden-state distillation acts on the vectors produced during training. The same word describes two operations at different stages, and only the latter supplies targets for the MSE loss.

The student training code builds on the released DistilBERT implementation. The training setup uses 8 Tesla P100-SXM2-16Gb accelerators for 64 epochs, with a batch size of 4 and a gradient accumulation setting of 128 steps. Gradient accumulation combines contributions from successive batches before an optimizer update. The optimizer is AdamW. The learning rate warms up from 0, and after warmup the schedule halves it if validation loss has failed to improve for three validation epochs. For downstream fine-tuning the authors use DeepPavlov. The authors make the training code and pretrained students available under the rubert-tiny project and the DeepPavlov releases, respectively.

Experiments and results

The training corpus and the comparisons

The teacher and students use the same Russian pretraining corpus of roughly 27M sentences. The authors draw it from OpenSubtitles, the Dirty and Pikabu sites, and the social media portion of Taiga. Using the same corpus makes it possible to compare objectives on a shared source of text. The teacher, rubert-base-cased-conversational, is a Russian BERT system with 12 Transformer layers, hidden width 768, and a vocabulary of 120K entries. It is the largest system in the study and supplies the teacher predictions, hidden states, and initialization parameters.

The authors train two students that keep the teacher’s vocabulary and width. The distil-base student has 6 layers. The distil-small student has 2. Their pretraining extends the DistilBERT objective with MSE for averaged attention maps and cosine distance for averaged hidden representations. Teacher layers are grouped so that their averages can supply corresponding targets for the shallower stacks. These comparisons establish how far an approach centered on depth reduction can go while preserving the teacher tokenizer and prediction inventory.

The vocabulary-reduced distil-tiny students have 3 layers and hidden width 264. They use 30k, 20k, 10k, or 5k vocabulary entries. The 30k student is the main setting for comparing combinations of losses and alignments. Because the reduced students differ in width and depth from the full-vocabulary students, overall size comparisons describe complete configurations. The vocabulary sweep among the distil-tiny students is the comparison designed to vary the inventory within that smaller architecture.

The study also evaluates rubert-tiny and rubert-tiny2, two existing Russian students with 3 layers. The authors describe them as distilled from multiple teachers with masked prediction and an objective they call Translation Ranking Modeling. They provide external compact baselines whose overall scores and efficiency can be compared with the proposed students. The exact effect of a particular loss or alignment is assessed within the authors’ own configurations, where these choices can be varied directly.

What the downstream tasks measure

ParaPhraser consists of pairs of Russian news headlines. The original annotations distinguish precise paraphrases, near paraphrases, and pairs that are not paraphrases. The authors combine the precise and near categories, making the fine-tuning task a binary decision about whether the two sentences form a paraphrase pair. RuSentiment comes from public VKontakte posts and uses the labels Neutral, Negative, Positive, Speech Act, and Skip. The task assigns one of those categories to a post, a form of text classification.

SberQuAD supplies a paragraph, a question, and an answer marked as a span in the paragraph. A system must choose the span that answers the question. The paper discusses its results using exact match, or EM, and F1. Exact match checks whether the predicted answer coincides with the reference, while F1 gives credit for overlap between the prediction and reference. Keeping the two measures distinct matters for interpreting a change in scores, because a partially recovered span can contribute to overlap without qualifying as an exact answer in extractive question answering.

For Collection-3 the authors use the Persons-1000 collection. The annotations cover mentions of people and also identify organizations and locations. This tests whether useful information remains available at the level of spans within sentences. It differs from the headline and sentiment tasks, where the prediction is a category for an entire example. Collection-3 is the paper’s evaluation of named entity recognition.

The Russian SuperGLUE results are reported on the benchmark’s test sets. The benchmark has nine tasks spanning areas that include commonsense understanding, inference, reasoning, machine reading, and world knowledge. The paper also uses the average benchmark score in its analysis of efficiency. LiDiRus is measured with Matthews correlation, scaled by the paper to [−100, 100]. This detail matters when reading the benchmark results by task, because the values in different columns need not all have the interpretation of accuracy. For ParaPhraser, RuSentiment, and Collection-3, the authors’ prose reports comparative directions and points to the fine-tuning table for the scores. The numerical downstream comparisons given in the discussion center on the F1 analysis of SberQuAD and the scale used for LiDiRus.

Which students performed best

Across ParaPhraser, RuSentiment, SberQuAD, and Collection-3, the authors find that MLM pretraining leads to better fine-tuning results than starting without pretraining. Adding teacher supervision improves on the MLM-only student in their comparisons. Which teacher signal works best depends on the loss and the form of alignment. Matching is stronger for the prediction comparison, while reducing tends to be stronger for hidden-state transfer. The authors use both findings when interpreting the configurations that carry through to Russian SuperGLUE.

They name three 30k configurations for the Russian SuperGLUE test comparison. distil-tiny-1 uses MLM, KL, and hidden-state MSE, with reduction and a trainable hidden projection. For a KL calculation with sequence reduction, the vocabulary columns are still matched. distil-tiny-2 uses the same families of loss with matching and a trainable hidden projection. distil-tiny-3 uses MLM and hidden-state MSE, with reduction and a frozen projection. This last student leaves out KL. Giving the configurations separate names lets the authors relate their downstream test results to the changes made during pretraining.

The paper reports a clear overall lead for the teacher on Russian SuperGLUE. distil-small does better than the teacher on PARus and RWSD, two task-level exceptions to the overall ordering. The authors suggest that limited training data may play a role. The reduced-vocabulary variants have broadly comparable results to each other, with distil-tiny-3 slightly ahead in the authors’ account. Among the two external students, rubert-tiny2 outperforms rubert-tiny.

The headline quality comparison concerns compact students. The paper describes the vocabulary-reduced family, reported at 17× to 49× compression relative to the teacher, as competitive with the 1.7× compressed full-vocabulary student. The discussion further describes the 30k student with reduced hidden states and no KL as close in quality to distil-small and rubert-tiny2. The conclusion highlights a comparison with the 1.3× compressed full-vocabulary student as well. These statements summarize comparisons across tasks. The reported teacher lead on the broad benchmark and the differing directions of individual task scores are important parts of how that quality claim should be read.

Disk storage, GPU time, and GPU memory

The efficiency study measures inference on an NVIDIA GeForce GTX 1080 Ti and an Intel Core i7-7700K running at 4.20GHz. The benchmark generates random batches of 16 sequences of length 512 and runs each system 100 times to reduce the influence of external variation on the measurements. This setup fixes the sequence length already presented to the network. It gives comparable timings for a particular tensor workload, even though tokenizing the same raw sentence with different vocabularies can produce different sequence lengths.

The appendix distinguishes space on disk from memory needed during a forward pass. Disk storage is where the reduced-vocabulary family has its largest advantage over the teacher. The chart uses the teacher as the common point of reference and reports the storage reduction factors given in the paper.

On-disk storage reduction for Russian students relative to the teacher

The smallest vocabulary setting reaches the largest storage reduction in this comparison.

On-disk storage reduction for Russian students relative to the teacherdistil-base, full vocabulary: 1.3distil-base, full vocabulary1.3distil-small, full vocabulary: 1.7distil-small, full vocabulary1.7rubert-tiny2: 6rubert-tiny26rubert-tiny: 15rubert-tiny15distil-tiny, 30k vocabulary: 17distil-tiny, 30k vocabulary17distil-tiny, 5k vocabulary (this paper): 49distil-tiny, 5k vocabulary (this paper)49
The numbers
System or setting× smaller on disk
distil-base, full vocabulary1.3
distil-small, full vocabulary1.7
rubert-tiny26
rubert-tiny15
distil-tiny, 30k vocabulary17
distil-tiny, 5k vocabulary (this paper)49

GPU inference speed follows a different ordering. The depth-reduced distil-small is the fastest in the appendix benchmark in spite of keeping the large word-piece table. The distil-tiny family achieves up to 104× the teacher’s GPU speed. A system holds an embedding table in storage, but a forward pass only looks up the entries used by its input. The amount of processing through the stack still matters, and the authors attribute distil-small’s speed lead to its having the fewest layers.

GPU inference speedup relative to the teacher on random length-512 batches

The shallow full-vocabulary student leads the fixed-batch GPU speed comparison.

GPU inference speedup relative to the teacher on random length-512 batchesdistil-base: 3.5distil-base3.5rubert-tiny: 85rubert-tiny85rubert-tiny2: 85rubert-tiny285distil-tiny family, maximum reported speedup: 104distil-tiny family, maximum reportedspeedup104distil-small (this paper): 126distil-small (this paper)126
The numbers
System or setting× faster on GPU
distil-base3.5
rubert-tiny85
rubert-tiny285
distil-tiny family, maximum reported speedup104
distil-small (this paper)126

For GPU inference memory, the authors report consumption up to 1.7 times lower than the teacher’s within the vocabulary-reduced family. They also observe that some students need similar or even higher inference memory than the teacher despite having a smaller file. They point to implementation differences between the Transformer architectures as a reason. In their figures, Russian SuperGLUE average score tracks GPU time more closely than GPU memory. distil-base and rubert-tiny2 are examples in the discussion of systems whose lower quality scores coexist with higher memory requirements than the teacher. The distil-tiny students occupy the low-memory end of the plotted comparisons.

The CPU comparisons give a further view of the 30k student that uses hidden-state reduction with a frozen projection. The authors report that it runs 2× faster than distil-small and 5× faster than rubert-tiny2 on CPU, while describing their downstream quality as close. They also report that it requires 10× and 3× less memory, respectively. The direction of those results matters alongside the GPU findings. A configuration can be especially attractive in file size or CPU inference, while a shallower design leads on the tested GPU workload.

What the ablations show

Pretraining and teacher supervision

The authors train a 30k student using only the student’s MLM objective. This comparison asks what is gained by actively learning from the teacher’s predictions or hidden states after initialization. The study also includes a student without pretraining in its fine-tuning comparison. Those cases distinguish the benefit of exposure to the Russian corpus through masked prediction from the benefit of adding teacher-derived losses. The authors report gains from MLM pretraining and further gains from distillation.

The role of initialization is important in interpreting this ablation. The reduced students are described as inheriting initialization from the teacher, including the vocabulary-based procedure for embeddings. Omitting distillation losses isolates the contribution of the active teacher-based objectives within that setup. It leaves the role of inherited weights as a separate question. Likewise, the comparison with an unpretrained student indicates the practical value of pretraining before fine-tuning, without dividing that value into separate effects of the tokenizer, initialization, and subsequent training.

Matching versus reduction for prediction scores

When the authors add KL to MLM and compare the two ways of aligning prediction scores, both alignment methods improve on MLM alone in their reported results. Matching on both axes works better than reducing the sequence and then matching the vocabulary. The more inclusive sequence alignment therefore has a weaker outcome for this particular training signal. Retaining every teacher position supplies additional comparisons, but each comparison now uses an aggregate of student logits constructed over several positions.

The authors offer a reason for being cautious about that aggregate. A logit is a score used in forming a probability distribution at a position. Scores for the same candidate at successive student positions can be summed, but this calculation does not give a guaranteed probability for the whole teacher piece. The contexts at the student positions differ, and pretraining gives no guarantee that the probability assigned to a teacher piece equals a composition of the probabilities of the pieces that spell it. Vocabulary matching after the sum solves the question of which classes can be compared. It leaves open how faithfully the scores represent the larger span.

This result also places the match strategy’s loss of coverage in perspective. It would be tempting to judge an alignment by how much teacher material it retains. For prediction transfer, the authors’ comparison favors the alignment that keeps fewer positions but uses predictions at positions where the pieces coincide. The result concerns the tested sum of logits. It leaves room for another way of composing prediction signals to behave differently.

Hidden states and the choice of projection

Adding hidden-state MSE can improve the combination of matched KL and MLM. When the authors compare the position alignments for hidden states, reduction performs better on average, both in configurations that include KL and in those that omit it. The Russian SuperGLUE results broadly agree with the findings from the other fine-tuning tasks. In this part of the comparison, recovering a student representation for more teacher positions is associated with better transfer.

The interpretation differs from the one for logits. The sum of student hidden states is a vector built to describe a larger span. The training objective directly tests whether its projection resembles the teacher’s hidden vector. There is no need to interpret a hidden coordinate as the probability of an independently named class. The comparison suggests that the aggregation is effective enough to be useful for intermediate representations, even though the same positional operation gives a weaker prediction loss. It does not isolate the contribution of summation from every other difference between the matched and reduced inputs.

The authors also vary whether the randomly initialized projection is frozen or trainable. The frozen version outperforms the trainable version in some configurations. They report a particularly consistent pattern on SberQuAD, where frozen projections give higher F1 and EM in the comparisons they describe. The reported improvements over the trainable projections range from +1 to +26 F1 points on that dataset. This range refers to changes in SberQuAD answer-overlap scores between projection settings. It is neither a common gain over all tasks nor a measure of faster inference.

The result influences which configurations the authors carry forward. They retain the trainable match configuration among the entries evaluated on Russian SuperGLUE, even though a frozen reduction configuration with the same families of loss had a better average on the earlier fine-tuning comparison. They explain that the average advantage was due to SberQuAD. On the other datasets, the match configuration performed better or almost the same. A result that looks decisive after averaging can reflect a setting’s performance on a particular task, which is why the individual comparisons matter to this selection.

Removing the KL term

The strongest reported 30k configuration uses MLM and hidden-state MSE, with reduction and a frozen projection. There is still active teacher supervision. It comes from the vectors inside the teacher’s stack rather than its probabilities over vocabulary entries. Across the fine-tuning comparisons other than SberQuAD, runs without KL are generally close to runs that include it. The authors report a similar pattern on most Russian SuperGLUE tasks, where the no-KL variant is slightly ahead among the reduced-vocabulary students overall.

There are two related observations here. First, a teacher’s prediction targets can help an MLM-only student when the loss uses matched positions and labels. Second, once the student already learns from teacher hidden states, KL contributes less clearly to downstream performance. The first comparison tests whether the probabilities carry a usable signal. The second asks whether they supply useful information beyond a different teacher signal already present in training. The paper’s results support keeping these questions distinct.

The authors speculate that a piece shared by the vocabularies can acquire different meanings or uses when the systems segment its surroundings differently. If so, labels with the same written form could still be imperfect targets for direct imitation. They mark that explanation as unproven. The comparison establishes that the extra prediction objective has limited value in these configurations. It does not establish that a change in the meaning of shared pieces is the cause.

What happens as the vocabulary shrinks

In the vocabulary sweep, the authors compare students with 30k, 20k, 10k, and 5k entries using MLM and matched KL. They expected smaller vocabularies to lose more of the teacher signal and give progressively worse quality. The task results divide instead. ParaPhraser and SberQuAD scores rise as the vocabulary shrinks in this comparison. RuSentiment and Collection-3 scores fall. A drop in the fraction of positions available for match therefore does not predict a common direction of change in downstream quality.

The sweep answers a narrower question than a comparison of the best achievable systems at each vocabulary size. It follows one loss combination as the vocabulary changes, while the best reported 30k result comes from a different combination. The sweep still supplies a direct empirical reason to keep the task in view when interpreting a vocabulary cut. At a given smaller architecture and training objective, a change that helps the headline-pair or answer-span task can be accompanied by weaker sentiment or entity results. The paper does not trace these differences to particular Russian words, sub-word boundaries, or classes in the datasets.

Limitations

Limits identified by the authors

Matching sacrifices sequence coverage. Its low overhead comes from selecting positions already usable as pairs, and the large share of excluded teacher pieces rises further at the smallest tested vocabulary. The authors also point out that an identical piece can be represented in different contexts on the two sides. Matching certifies agreement about the text span and the written piece. The hidden vectors and probability scores remain sensitive to the rest of each segmented input. This gives a specific limit on what the matching rule establishes before any training takes place.

Reduction brings those positions into reach at the cost of extra work. The student must process auxiliary text constrained by the teacher’s boundaries as well as text for its own masked predictions. The greedy split is a convenient way to obtain groups, and the authors recognize that a different split might be better. Summation also treats the pieces within a group symmetrically at the aggregation step. Each vector can encode its own contextual information, but the addition itself does not give different explicit roles to earlier and later pieces.

Reducing the sequence solves only the positional part of prediction distillation. The method for comparing predictions still keeps shared vocabulary entries, and the paper explicitly assumes a nonempty intersection between the inventories. Even with that intersection, the authors caution against treating a sum of logits as a verified probability for a compound piece. They propose more accurate mappings between mismatched pieces and describe contrastive and metric learning as possible directions for intermediate representation transfer. Those directions are future work in the paper.

The authors raise the possibility that contextual changes in shared pieces account for the weak contribution of KL. The experiments do not independently measure such a shift. Likewise, they suggest that limited data could help explain the two Russian SuperGLUE tasks where distil-small exceeds the teacher. That explanation remains a suggestion alongside the observed task ordering. The study tests the training configurations directly and leaves these proposed mechanisms open.

Limits of the experimental design

The experiments use one teacher, one Russian pretraining mixture, and one reduced student architecture. The paper motivates changes of vocabulary for moving between domains or from multilingual to monolingual systems. Those are reasons to study the problem. The reported experiment uses Russian teacher and student training on the same corpus, so it does not establish how the alignments behave when the teacher and student training domains, languages, or vocabulary traditions differ substantially. The high overlap of the chosen vocabularies helps make this particular setting feasible.

The headline compression factors are for complete systems. Their differences reflect vocabulary, depth, and width together when a distil-tiny student is compared with the teacher. A compact student’s file can legitimately be much smaller than the teacher’s, but that ratio alone cannot identify the part of the saving due to the vocabulary. The comparison across the reduced inventories holds architecture fixed more closely. Its task results apply to MLM with matched KL, giving less information about how another alignment or hidden-state objective would change the vocabulary tradeoff.

The quality comparison also depends on which question a reader asks of the benchmarks. The paper shows that reduced students can work close to other compact systems while using much less storage. The teacher still leads the broad benchmark overall. Neither statement entails that a compact student matches every baseline on every task. The reported directions in the vocabulary sweep underscore this point, and the unusual size of some frozen-projection gains on SberQuAD makes it especially important to distinguish the reading-comprehension result from an average over dissimilar tasks.

Finally, the speed tests use random inputs at a fixed sequence length and batch size. They are suited to comparing forward passes for those conditions. A workload measured from raw Russian text would also reflect tokenization, padding, and the pattern of sequence lengths produced by each vocabulary. The student’s tendency to use more pieces means equal lengths in tokens need not represent equal amounts of text. The hardware and implementation differences also matter because the appendix attributes some memory ordering to implementation rather than to the architectural dimensions alone. The results give concrete storage and inference measurements for the tested systems, while the cost of training and the speed of processing an equal volume of raw text remain separate quantities.

What came after

Two later works cite the study, and their titles place it in different research contexts. The closer connection in subject is a later paper on a family of pretrained Russian Transformers. Kolesnikova and colleagues supply a concrete example of choices that can distinguish members of such a family. Their students differ in vocabulary size as well as architecture, and the evaluation shows why a family can contain different tradeoffs even when its members start from the same teacher. That connection is at the level of the research problem. The citation alone does not establish that the later family used match, reduce, or any of the earlier students as part of its method. A Family of Pretrained Transformer Language Models for Russian (2024)

The other citation comes from a later paper that reconsiders medical benchmarks. Its title indicates a focus on the relationship between benchmark results and what a leaderboard can establish. In the Russian distillation study, a related distinction appears in the difference between benchmark quality and practical efficiency. Quality itself also varies across task types. A vocabulary cut can improve the reported score on one task while hurting another, and an average can be driven by reading comprehension. That is a point of contact between the studies’ subjects. The citation does not show that the medical work tested vocabulary reduction or reproduced the Russian experiments. Beyond the Leaderboard: Rethinking Medical Benchmarks for Large Language Models (2026)

The documented link to the later Russian paper concerns pretrained systems for the same language. The medical benchmark paper puts the citation in a wider evaluation context. Neither citation, by itself, supplies a further test of the paper’s central experimental finding that reduced hidden states can provide effective teacher supervision even when the student predicts from a smaller inventory.

Cite

Cite as Alina Kolesnikova, Yuri Kuratov, Vasily Konovalov and Mikhail Mikhail. 2022. Knowledge Distillation of Russian Language Models with Reduction of Vocabulary. Computational Linguistics and Intellectual Technologies.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.28995/2075-7182-2022-21-295-310 · arXiv 2205.02340

@inproceedings{kolesnikova2022knowledge,
  title = {{Knowledge Distillation of Russian Language Models with Reduction of Vocabulary}},
  author = {Alina Kolesnikova, Yuri Kuratov, Vasily Konovalov and Mikhail Mikhail},
  booktitle = {Computational Linguistics and Intellectual Technologies},
  year = {2022},
  doi = {10.28995/2075-7182-2022-21-295-310},
  eprint = {2205.02340},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.28995/2075-7182-2022-21-295-310}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/kolesnikova-2022-knowledge-distillation-russian-language-models/

References

44 references, from the paper's own bibliography.

  1. Gustavo Aguilar, Yuan Ling, Yu Zhang, Benjamin Yao, Xing Fan, and Chenlei Guo. 2020. Knowledge distillation from internal representations. // Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, P 7350–7357. OpenAlex ↗ · Scholar ↗
  2. Jimmy Ba and Rich Caruana. 2014. Do deep nets really need to be deep? // Z. Ghahramani, M. Welling, C. Cortes, N. Lawrence, and K. Q. Weinberger, Advances in Neural Information Processing Systems, volume 27. Curran Associates, Inc. our card
  3. Jane Bromley, Isabelle Guyon, Yann LeCun, Eduard Säckinger, and Roopak Shah. 1993. Signature verification using a" siamese" time delay neural network. Advances in neural information processing systems, 6. OpenAlex ↗ · Scholar ↗
  4. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel Ziegler, Jeffrey Wu, Clemens Winter, Chris Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. // H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, Advances in Neural Information Processing Systems, volume 33, P 1877–1901. Curran Associates, Inc. our card
  5. Cristian Buciluǎ, Rich Caruana, and Alexandru Niculescu-Mizil. 2006. Model compression. // Proceedings of the 12th ACM SIGKDD international conference on Knowledge discovery and data mining, P 535–541. OpenAlex ↗ · Scholar ↗
  6. Mikhail Burtsev, Alexander Seliverstov, Rafael Airapetyan, Mikhail Arkhipov, Dilyara Baymurzina, Nickolay Bushkov, Olga Gureenkova, Taras Khakhulin, Yuri Kuratov, Denis Kuznetsov, Alexey Litinsky, Varvara Logacheva, Alexey Lymar, Valentin Malykh, Maxim Petrov, Vadim Polulyakh, Leonid Pugachev, Alexey Sorokin, Maria Vikhreva, and Marat Zaynutdinov. 2018. DeepPavlov: Open-source library for dialogue systems. // Proceedings of ACL 2018, System Demonstrations, P 122–127, Melbourne, Australia, July. Association for Computational Linguistics. our card
  7. Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. 2020. A simple framework for contrastive learning of visual representations. // Hal Daumé III and Aarti Singh, Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, P 1597–1607. PMLR, 13–18 Jul. our card
  8. Yew Ken Chia, Sam Witteveen, and Martin Andrews. 2018. Transformer to CNN: Label-scarce distillation for efficient text classification. // NIPS Workshop CDNNRIA 2018. OpenAlex ↗ · Scholar ↗
  9. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. // Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), P 4171–4186. our card
  10. Pavel Efimov, Andrey Chertok, Leonid Boytsov, and Pavel Braslavski. 2020. Sberquad–russian reading comprehension dataset: Description and analysis. // International Conference of the Cross-Language Evaluation Forum for European Languages, P 3–15. Springer. OpenAlex ↗ · Scholar ↗
  11. Fangxiaoyu Feng, Yinfei Yang, Daniel Cer, Naveen Arivazhagan, and Wei Wang. 2020. Language-agnostic bert sentence embedding. arXiv preprint arXiv:2007.01852. our card
  12. Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. 2014. Compressing deep convolutional networks using vector quantization. arXiv preprint arXiv:1412.6115. OpenAlex ↗ · Scholar ↗
  13. Mitchell Gordon, Kevin Duh, and Nicholas Andrews. 2020. Compressing BERT: Studying the effects of weight pruning on transfer learning. // Proceedings of the 5th Workshop on Representation Learning for NLP, P 143–155, Online, July. Association for Computational Linguistics. our card
  14. Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2015. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. // Proceedings of the IEEE international conference on computer vision, P 1026–1034. OpenAlex ↗ · Scholar ↗
  15. Geoffrey Hinton, Oriol Vinyals, and Jeffrey Dean. 2015. Distilling the knowledge in a neural network. // NIPS Deep Learning and Representation Learning Workshop. our card
  16. Oleksii Hrinchuk, Valentin Khrulkov, Leyla Mirvakhabova, Elena Orlova, and Ivan Oseledets. 2019. Tensorized embedding layers for efficient model compression. arXiv preprint arXiv:1901.10787. OpenAlex ↗ · Scholar ↗
  17. Xiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang, Xiao Chen, Linlin Li, Fang Wang, and Qun Liu. 2020. TinyBERT: Distilling BERT for natural language understanding. // Findings of the Association for Computational Linguistics: EMNLP 2020, P 4163–4174, Online, November. Association for Computational Linguistics. our card
  18. Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, and Radu Soricut. 2020. Albert: A lite bert for self-supervised learning of language representations. // International Conference on Learning Representations. our card
  19. Yann LeCun, John Denker, and Sara Solla. 1989. Optimal brain damage. Advances in neural information processing systems, 2. OpenAlex ↗ · Scholar ↗
  20. Junyang Lin, Rui Men, An Yang, Chang Zhou, Ming Ding, Yichang Zhang, Peng Wang, Ang Wang, Le Jiang, Xianyan Jia, et al. 2021. M6: A chinese multimodal pretrainer. arXiv preprint arXiv:2103.00823. OpenAlex ↗ · Scholar ↗
  21. Pierre Lison and Jörg Tiedemann. 2016. Opensubtitles2016: Extracting large parallel corpora from movie and tv subtitles. our card
  22. Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. RoBERTa: A robustly optimized BERT pretraining approach. arXiv preprint arXiv:1907.11692. our card
  23. Ilya Loshchilov and Frank Hutter. 2017. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101. our card
  24. Valerie Mozharova and Natalia Loukachevitch. 2016. Two-stage approach in russian named entity recognition. // 2016 International FRUCT Conference on Intelligence, Social Media and Web (ISMW FRUCT), P 1–6. IEEE. OpenAlex ↗ · Scholar ↗
  25. Lidia Pivovarova, Ekaterina Pronoza, Elena Yagunova, and Anton Pronoza. 2017. Paraphraser: Russian paraphrase corpus and shared task. // Conference on artificial intelligence and natural language, P 211–225. Springer. OpenAlex ↗ · Scholar ↗
  26. Alec Radford, Karthik Narasimhan, Tim Salimans, and Ilya Sutskever. 2018. Improving language understanding with unsupervised learning. Technical report. OpenAlex ↗ · Scholar ↗
  27. Jack W Rae, Sebastian Borgeaud, Trevor Cai, Katie Millican, Jordan Hoffmann, Francis Song, John Aslanides, Sarah Henderson, Roman Ring, Susannah Young, et al. 2021. Scaling language models: Methods, analysis & insights from training gopher. arXiv preprint arXiv:2112.11446. our card
  28. Anna Rogers, Alexey Romanov, Anna Rumshisky, Svitlana Volkova, Mikhail Gronas, and Alex Gribov. 2018. Rusentiment: An enriched sentiment analysis dataset for social media in russian. // Proceedings of the 27th international conference on computational linguistics, P 755–763. our card
  29. Victor Sanh, Lysandre Debut, Julien Chaumond, and Thomas Wolf. 2019. DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter. arXiv preprint arXiv:1910.01108. our card
  30. Tatiana Shavrina and Olga Shapovalova. 2017. To the methodology of corpus construction for machine learning:taiga syntax tree corpus and parser. Proceedings of the “Corpora, P 78–84. OpenAlex ↗ · Scholar ↗
  31. Tatiana Shavrina, Alena Fenogenova, Emelyanov Anton, Denis Shevelev, Ekaterina Artemova, Valentin Malykh, Vladislav Mikhailov, Maria Tikhonova, Andrey Chertok, and Andrey Evlampiev. 2020. RussianSuperGLUE: A Russian language understanding evaluation benchmark. // Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), P 4717–4726, Online, November. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  32. Shaden Smith, Mostofa Patwary, Brandon Norick, Patrick LeGresley, Samyam Rajbhandari, Jared Casper, Zhun Liu, Shrimai Prabhumoye, George Zerveas, Vijay Korthikanti, et al. 2022. Using deepspeed and megatron to train megatron-turing nlg 530b, a large-scale generative language model. arXiv preprint arXiv:2201.11990. our card
  33. Siqi Sun, Yu Cheng, Zhe Gan, and Jingjing Liu. 2019. Patient knowledge distillation for bert model compression. // EMNLP/IJCNLP (1), P 4322–4331. our card
  34. Siqi Sun, Zhe Gan, Yuwei Fang, Yu Cheng, Shuohang Wang, and Jingjing Liu. 2020a. Contrastive distillation on intermediate representations for language model compression. // Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), P 498–508, Online, November. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  35. Zhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu, Yiming Yang, and Denny Zhou. 2020b. MobileBERT: a compact task-agnostic BERT for resource-limited devices. // Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, P 2158–2170, Online, July. Association for Computational Linguistics. our card
  36. Raphael Tang, Yao Lu, Linqing Liu, Lili Mou, Olga Vechtomova, and Jimmy Lin. 2019. Distilling task-specific knowledge from bert into simple neural networks. arXiv preprint arXiv:1903.12136. OpenAlex ↗ · Scholar ↗
  37. Yonglong Tian, Dilip Krishnan, and Phillip Isola. 2020. Contrastive representation distillation. // International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
  38. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Ł ukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. // I. Guyon, U. V. Luxburg, S. Bengio, H. Wallach, R. Fergus, S. Vishwanathan, and R. Garnett, Advances in Neural Information Processing Systems, volume 30. Curran Associates, Inc. our card
  39. Elena Voita, David Talbot, Fedor Moiseev, Rico Sennrich, and Ivan Titov. 2019. Analyzing multi-head self-attention: Specialized heads do the heavy lifting, the rest can be pruned. // Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics, P 5797–5808, Florence, Italy, July. Association for Computational Linguistics. our card
  40. Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019. SuperGLUE: A stickier benchmark for general-purpose language understanding systems. arXiv preprint 1905.00537. our card
  41. Wenhui Wang, Furu Wei, Li Dong, Hangbo Bao, Nan Yang, and Ming Zhou. 2020. Minilm: Deep self-attention distillation for task-agnostic compression of pre-trained transformers. // H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, Advances in Neural Information Processing Systems, volume 33, P 5776–5788. Curran Associates, Inc. our card
  42. Wenhui Wang, Hangbo Bao, Shaohan Huang, Li Dong, and Furu Wei. 2021. MiniLMv2: Multi-head self-attention relation distillation for compressing pretrained transformers. // Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021, P 2140–2151, Online, August. Association for Computational Linguistics. our card
  43. John Wieting and Douwe Kiela. 2019. No training required: Exploring random encoders for sentence classification. // International Conference on Learning Representations. OpenAlex ↗ · Scholar ↗
  44. Sanqiang Zhao, Raghav Gupta, Yang Song, and Denny Zhou. 2021. Extremely small BERT models from mixed-vocabulary training. // Proceedings of the 16th Conference of the European Chapter of the Association for Computational Linguistics: Main Volume, P 2753–2759, Online, April. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗