---
title: "Reduce, Reuse, Recycle — paper by Blakeney et al. (2022)"
description: "Blakeney and colleagues test whether knowledge distillation can reuse earlier training runs to reach the same accuracy in less time."
canonical: "https://research.elamur.ai/free/en/papers/blakeney-2022-reduce-reuse-recycle-improving-training/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/blakeney-2022-reduce-reuse-recycle-improving-training/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Reduce, Reuse, Recycle: Improving Training Efficiency with Distillation

# Reduce, Reuse, Recycle: Improving Training Efficiency with Distillation

Paper · 2022 · Cody Blakeney, Jessica Zosa Forde, Jonathan Frankle et al.

**Authors:** Cody Blakeney, [Jessica Zosa Forde](https://md.research.elamur.ai/free/en/authors/jessica-zosa-forde/), [Jonathan Frankle](https://md.research.elamur.ai/free/en/authors/jonathan-frankle/), Ziliang Zong and [Matthew L. Leavitt](https://md.research.elamur.ai/free/en/authors/matthew-l-leavitt/) · **Year:** 2022 · **Venue:** arXiv:2211.00683 · **Licence:** [CC BY 4.0 (arXiv)](http://creativecommons.org/licenses/by/4.0/)

Cited by **3** papers in our library of more than 163,000 papers whose bibliographies we read · [licence](http://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2211.00683)
- [arXiv 2211.00683](https://arxiv.org/abs/2211.00683)

## Summary

A search for good training settings can leave behind several usable neural networks. Usually, one run supplies the settings for the next experiment and the others have served their purpose. Blakeney and colleagues ask whether those earlier networks can contribute something more direct. They test knowledge distillation, in which an already trained network, the teacher, provides predictions that guide a new network, the student. Teacher and student have the same architecture in each experiment. The goal is to find out whether the new network can reach a useful level of accuracy sooner, after counting the time it takes to run the teacher.

The experiments cover image classification with ResNet-50 on ImageNet and [language model pretraining](https://md.research.elamur.ai/free/en/topics/language-models/) with BERT on C4. In the ImageNet comparison, a student trained on a shortened schedule matched the baseline’s final validation accuracy in 91.6 minutes, a 1.96x speedup. A student trained with distillation on the original schedule took longer than the baseline to reach that same accuracy, although it finished at a higher score. For BERT, guidance throughout pretraining was too costly to yield a speedup in the tested configurations. Turning off the teacher early changed the result. The paper reports a 1.20x speedup to the baseline’s masked language modeling validation accuracy and a 1.42x speedup to its aggregate GLUE score, measured against the time spent pretraining before downstream adaptation.

The useful period for teacher guidance differed between the experiments. The authors’ overall recommendation for BERT was to distill during the first 20-50% of pretraining, and they used 30% in the main speed comparison. Keeping the teacher active throughout the shortened run worked better for ResNet-50 than removing it partway through. The teaching signal also depended on more than the teacher’s own score. A network that ranked below another as a standalone predictor could produce a stronger student, and even a weak predictor could help a student reach a useful accuracy sooner.

The ImageNet experiments also tested whether several older networks could be reused without running all of them on every batch. Sampling one teacher per step retained much of the benefit of drawing on a group while keeping the number of teacher evaluations per step fixed. The choice of distillation loss mattered as well. Mean squared error was more robust across the tested settings, especially when weaker teachers joined a group, while Kullback–Leibler divergence produced some of the strongest students. Together, the experiments show how the length of a run, the period of teacher guidance, and the cost of obtaining predictions determine whether an accuracy gain can be exchanged for a shorter training run.

## Deep dive: Reduce, Reuse, Recycle: Improving Training Efficiency with Distillation

Blakeney and colleagues test whether knowledge distillation can reuse earlier training runs to reach the same accuracy in less time. · about 31 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a search run leaves behind

Training begins before the run whose score gets reported. A practitioner often has to choose settings such as the learning rate, which controls how large an update the optimizer makes. It takes training to find out whether a setting works. Some runs finish well, some improve too slowly, and some give a poor result despite consuming substantial time. The usual benefit of those experiments is information about which settings to try next. The authors point out that each finished run can also leave a network with learned predictions, even when the setting that produced it falls out of consideration.

The paper calls this the Iterated Runs Problem. It asks how the output of earlier training can make a subsequent run more efficient. The word *subsequent* matters. The teacher has already been trained in the scenario under study, so its predictions are an asset available when the next run begins. Producing those predictions still costs time. The experiment is about whether that extra work pays for itself during the new run. A workflow that needs to create a teacher expressly for one student would have a different cost to account for.

Learning rate search provides a concrete example. Each trial tries to solve the same prediction problem, but its path through training can produce a different predictor. The trial with the strongest validation result is one candidate for reuse. A weaker trial may still distinguish among plausible answers in ways that help a student. Several trials may also provide different guidance. The information left by a search therefore includes the behavior of the predictors it produced as well as the ranking of the settings that produced them.

The authors place distillation among several ways to use work from previous runs. Sample pruning and core-set selection use signals about training examples to decide which examples deserve further computation. Active learning similarly addresses which examples to acquire or use. Weight averaging draws directly on trained parameters. The distillation experiments use earlier runs at a different point in the process. They bring predictions from those runs into the objective for a new student, while the student continues to train on the original task. The paper cites [data pruning](https://md.research.elamur.ai/free/en/papers/sorscher-2022-neural-scaling-laws-beating-power/) and [model soups](https://md.research.elamur.ai/free/en/papers/wortsman-2022-model-soups-averaging-weights-multiple/) as examples of nearby research.

Those approaches can have very different costs even when they have a similar aim. The authors cite memorization and influence scores as one example. The scores can suggest which training examples matter, but the procedure discussed in the paper would require as many trained predictors as there are examples if applied in the way the authors describe for pruning. For the Iterated Runs Problem, the cost of obtaining a signal matters alongside its usefulness. A signal that requires a large new set of runs fits a different budget from predictions that can be obtained from the runs already on hand. The example comes from [What Neural Networks Memorize and Why](https://md.research.elamur.ai/free/en/papers/feldman-2020-neural-networks-memorize-why-discovering/).

#### What distillation had been used to achieve

Knowledge distillation transfers information through a teacher’s responses. Consider an image with a known class. The training label identifies the correct class. A teacher’s response can also assign different scores to the alternatives, giving the student another signal about that image. The student can use both the label and the teacher response in its training objective. The paper traces this approach to [Distilling the Knowledge in a Neural Network](https://md.research.elamur.ai/free/en/papers/hinton-2015-distilling-knowledge-neural-network/).

The authors describe compression and prediction quality as the established reasons for distilling. In compression, the usual arrangement is a larger teacher and a smaller student. The student’s size is itself part of the desired outcome. Earlier work also raised the possibility that a sufficiently large gap between teacher and student could make transfer harder, and other studies explored teachers with similar or identical architectures. Those studies leave room for the question this paper asks. A teacher of the same size may be useful because it is already trained, while the student is still learning. The paper discusses the size gap in connection with [Improved Knowledge Distillation via Teacher Assistant](https://md.research.elamur.ai/free/en/papers/mirzadeh-2019-improved-knowledge-distillation-teacher-assistant/).

The related work also distinguishes reuse of a single predictor from reuse of a group. Some self-distillation approaches draw on earlier checkpoints, which are saved states from a training run. Ensemble distillation uses responses from several teachers. The paper describes prior studies in which ensembles improved quality and notes separate work suggesting that diversity among ensemble members’ responses may matter. For an efficiency study, diversity and cost have to be considered together. A group that makes better predictions can still be expensive to use repeatedly if every member must process every batch.

The authors describe language distillation research as being weighted towards compression. Work on BERT had explored distilling to smaller or otherwise cheaper systems, and the cited image literature more frequently used distillation as an ingredient in recipes intended to achieve high accuracy. Those goals are valuable by themselves. They supply different evidence from a timed comparison between a distilled student and a baseline of equal size. Among the language studies the paper discusses are [DistilBERT](https://md.research.elamur.ai/free/en/papers/sanh-2019-distilbert-distilled-version-bert-smaller/) and [TinyBERT](https://md.research.elamur.ai/free/en/papers/jiao-2020-tinybert-distilling-bert-natural-language/).

#### Why counting updates leaves the question open

An optimizer step is an update to the student’s parameters. Distillation can make that update more informative because the student has an extra target, but it also adds work before the update. The teacher has to read the input and produce its response. An ensemble may require several such evaluations. As a result, a student can reach an accuracy target after fewer updates while taking more elapsed time. The number of updates and the cost of each update answer different parts of the efficiency question.

The authors identify earlier papers that evaluated acceleration in optimization steps. They pay particular attention to work by Liu and colleagues that reduced the frequency of distillation or sampled a teacher from a pool. The earlier schedule applied teacher guidance intermittently, spacing it through training. The alternative tested in this paper applies guidance at the start and then turns it off for the remaining run. The sampling idea also has a precedent in that earlier work. The contribution here is to test these kinds of choices in terms of measured training time, on the hardware used for the experiments.

The paper treats efficiency as a relationship between resources and quality. One way to measure it is to choose a quality target and ask which run reaches it first. Another is to hold resources fixed and compare the quality obtained. Final accuracy alone answers a third question, about the endpoint of a particular recipe. A recipe can have a better endpoint and still take longer to cross the baseline’s target. The distinction makes it possible to ask whether old training runs help save time, buy higher quality for a given time, or do either under different schedules.

### The method, step by step

#### From a sweep to a student run

The procedure starts with ordinary training runs. The authors vary training settings, keep the resulting networks, and evaluate them on the relevant prediction task. They identify a strong undistilled run to use as the reference. At the standard durations, the selected ResNet-50 run is B1 and the selected BERT run is A1. These names identify particular training configurations. The reference run supplies a performance target, and its trained network can also act as the teacher. Later comparisons keep those roles separate by letting other networks teach while retaining a strong undistilled reference.

Next, the authors train a student of the same architecture. The teacher processes examples the student is learning from. For images, the normal task is to predict the labeled class. For masked language modeling, the normal task is to predict the identities of tokens hidden from BERT’s input. Both settings already have a task-specific target. Distillation adds a second source of guidance by asking the student to produce responses that resemble the teacher’s.

The study uses response-based distillation. The responses come from the prediction end of the network. Logits are the raw scores that can be turned into probabilities over the possible answers. For an image they give scores over classes, and for a masked position in text they give scores over possible tokens. The method uses information at this level, so it needs no rule for matching the teacher’s intermediate representations to the student’s. The student is the network whose parameters are updated. The teacher supplies targets using what it learned in a previous run.

The authors vary how long that arrangement lasts. Full-duration distillation uses the teacher at every stage of the student run. Early-only distillation starts the run with teacher guidance and later continues with the ordinary task objective. A distinct change is to shorten the overall run and set the learning rate schedule for that shorter duration. A shorter run may still use distillation throughout. Changing the overall budget and changing when the teacher is active are separate choices.

Reusing prior training runs through distillation The steps in order.

#### The student’s training objective

A loss gives the optimizer a numerical measure of prediction error. The basic task loss in these experiments is cross-entropy. It penalizes the student when it gives too little probability to the known target. The added distillation loss measures disagreement with teacher responses. The paper combines the two terms as follows.

```
L = λ Lₖ𝒹 + L𝒸ₑ
```

Here `L` is the total loss used to train the student. `Lₖ𝒹` is the knowledge distillation loss, and `L𝒸ₑ` is the cross-entropy loss for the original prediction task. The scalar `λ` controls how strongly teacher disagreement contributes to the total. The equals sign defines the objective, the juxtaposition of `λ` and `Lₖ𝒹` denotes multiplication, and the plus sign adds the supervised task term. When the teacher is turned off, the updates continue using the task loss.

The authors compare two choices for `Lₖ𝒹`. Kullback–Leibler divergence, abbreviated KL, measures a difference between predictive probability distributions. In distillation, it gives the student a reason to follow the pattern of probabilities from the teacher as well as to fit the target given by the data. Mean squared error, abbreviated MSE, measures disagreement in the raw score vectors by squaring their componentwise differences and averaging them. The two losses compare different forms of the response. For instance, averaging raw scores from teachers and asking the student to match those scores is a different operation from combining teacher probability distributions.

In the image ensemble experiments that use MSE, the paper writes the objective with the two score vectors shown explicitly.

```
L = λ Lₘₛₑ(zₜ, zₛ) + L𝒸ₑ
```

`L` is the total student loss and `λ` weights the contribution from the teacher side. `Lₘₛₑ` denotes mean squared error. Its two arguments, separated by the comma inside parentheses, are `zₜ`, the teacher score vector for the input, and `zₛ`, the student score vector for that same input. The subscripts `t` and `s` identify teacher and student. `L𝒸ₑ` is the ordinary cross-entropy term. As before, the weighted distillation term and the task term are added to form the training objective. When several teachers contribute on the same step, `zₜ` is defined by their mean.

```
zₜ = (1/n) ∑ᵢ₌₁ⁿ zᵢ
```

`zₜ` is the combined teacher score vector. `n` is the number of teachers contributing to the current step, and `zᵢ` is the vector produced for the same input by teacher `i`. The summation sign `∑` adds the vectors component by component, with `i` starting at `1` and ending at `n`. The factor `(1/n)` divides the sum by the number of contributors. Thus every teacher used on that step has the same weight in the ensemble response. When the step uses a single sampled teacher, its output serves directly as the target vector.

The equal-weight average applies to the teachers actually evaluated on a step. The whole pool may be larger. The authors compare a fixed group assembled in order of standalone accuracy, a group resampled without replacement on each step, and a procedure that draws just one teacher per step. In the fixed group, membership is constant even though the response changes with the input. In the sampled group, both input and membership can change from batch to batch. With a single draw, the student sees variation across steps and the per-step target comes from one network.

The teacher pool for this experiment extends the original ImageNet sweep with a teacher trained using mix-up, an augmentation that blends examples and their targets during training. Its purpose in the experiment is to add diversity to the pool. Once trained, it takes the same role as the other teachers when selected. The study does not require the student to adopt the augmentation recipe of whichever teacher supplies its current target. What the student receives from that teacher is the response to the current input.

#### How the image runs are configured

For image classification, the authors train ResNet-50 on ImageNet, following the basic training procedure associated with the architecture. The paper uses a standard test resolution of 224 x 224. For comparing the runs it reports top-one validation accuracy, the proportion of validation images for which the highest-scoring class is the correct one. This makes the target for a timed run a particular validation accuracy rather than a specified number of training passes. The setup draws on [Deep Residual Learning for Image Recognition](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/) and the [ImageNet Large Scale Visual Recognition Challenge](https://md.research.elamur.ai/free/en/papers/russakovsky-2014-imagenet-large-scale-visual-recognition/).

The standard ResNet-50 baseline runs for 90 epochs, where an epoch is a pass through the training data. The batch size is 2048. An epoch budget determines how many passes are planned, while the batch size determines how examples are grouped for updates. The optimizer is SGDW, with weight decay `5.00E-04` and momentum `0.875`. Weight decay acts on the parameters during optimization, and momentum carries information from earlier updates into later ones. The recipe uses 8 epochs of learning rate warmup and cosine annealing, which governs the shape of the subsequent learning rate decrease. The optimizer and schedule follow the approaches cited in [Decoupled Weight Decay Regularization](https://md.research.elamur.ai/free/en/papers/loshchilov-2017-decoupled-weight-decay-regularization/) and [SGDR](https://md.research.elamur.ai/free/en/papers/loshchilov-2016-sgdr-stochastic-gradient-descent-warm/).

The teacher settings identify B1 with learning rate `1`, B2 with `2.045`, B3 with `0.01`, and B4 with `0.1`. The labels stay attached to the same settings when the authors compare validation scores across durations. That matters when they ask whether a teacher’s ranking is stable. A learning rate that performs strongly near the standard endpoint can produce a different relative result when given a shorter or longer budget. The student experiments therefore compare several durations and carry forward teachers whose standalone results differ substantially.

A short run is configured as a short run from the beginning. The paper scales the learning rate decay when training the distilled student for 45 epochs. A checkpoint taken at 45 epochs from a recipe designed to last 90 epochs would have had a different learning rate history. This design choice is central to the time comparison because the short student’s score reflects both the guidance it received and the way its optimization was scheduled for the available time.

#### How the language runs are configured

The language experiment pretrains BERT on C4 using masked language modeling. BERT receives text with some tokens hidden and must recover the hidden token identities. A token is a unit of text supplied to the network. The hidden tokens give the ordinary learning targets, and the pretrained teacher supplies an additional prediction for distillation. The authors evaluate how frequently the student recovers the correct masked token on validation data. They also test whether the representations learned in pretraining transfer to language understanding tasks. The architecture and data are drawn from the papers on [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) and the [text-to-text transfer learning framework that introduced C4](https://md.research.elamur.ai/free/en/papers/raffel-2019-exploring-limits-transfer-learning-unified/).

The standard BERT baseline uses `286.72M` sequences, a batch size of `4096`, and a maximum sequence length of `128`. Its optimizer is AdamW, and the shared settings list weight decay `1.00E-05`. The learning rate follows a linear decay schedule after warmup. Warmup is given as `6%` of the run instead of a fixed number of updates, so its duration scales when the training budget changes. A shorter run consequently differs from a longer one in its learning rate history as well as in how much data it processes.

The teacher settings show two values for learning rate and two for weight decay. A1 uses learning rate `5.00E-04` and weight decay `1.00E-05`. A2 keeps that learning rate and uses weight decay `1.00E-04`. A3 combines learning rate `1.00E-04` with weight decay `1.00E-05`, and A4 combines learning rate `1.00E-04` with weight decay `1.00E-04`. This makes the language comparison a study of specific pairs of settings. Describing every A-series difference as a difference in learning rate would miss the contrast between A1 and A2.

For the downstream evaluation, the authors adapt the pretrained network separately to tasks in GLUE. This adaptation, called [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/), trains the network on examples from the downstream task so that it can produce the task’s required output. Teacher guidance is used during C4 pretraining in the distilled condition. GLUE fine-tuning proceeds with the ordinary downstream training procedure. The experiment therefore tests how valuable the resulting pretrained state is for later tasks at each pretraining budget. The task suite is the [GLUE benchmark](https://md.research.elamur.ai/free/en/papers/wang-2018-glue-multi-task-benchmark-analysis/).

#### How a run is timed and compared

The authors conduct the experiments using Composer, which they describe as a training library built on PyTorch. The reported hardware is `8x NVIDIA A100 80gb`. The hardware is held common across the timed comparisons. This matters because loading teachers, evaluating their predictions, and training the student all compete for accelerator resources, and the cost of each operation can vary with the available hardware.

The baseline supplies a score at its chosen reference duration. For the image runs, the authors ask how long the student takes to reach the baseline’s final top-one validation accuracy. A comparison can use the time at which a training trajectory first meets the target, or a separately configured budget that finishes at comparable quality. For BERT, the authors have two score targets. One is accuracy on masked tokens in C4 validation data. The other is downstream GLUE quality after fine-tuning. The time axis for the latter comparison represents pretraining duration. A student that reaches the GLUE target after shorter pretraining has produced a useful pretrained state sooner.

The authors also compare configurations at shared budgets and inspect curves of elapsed time against score. A shorter run can cost less and end at lower accuracy, which may or may not be a useful trade for a particular target. A configuration can improve the available tradeoff if it delivers better quality for the same elapsed time or comparable quality sooner. This is the sense in which the paper uses a Pareto comparison. It distinguishes a configuration that adds a useful time–quality option from one that costs more for a result already available.

### Experiments and results

#### ImageNet accuracy under a shorter schedule

The main ImageNet comparison uses B1 as both the source of teacher predictions and the undistilled reference. In the narrative for the timing experiment, B1 reaches `76.6%` evaluation accuracy in `179.8` minutes after `90` epochs. The paper’s sweep table gives `76.62%` as its top-one validation accuracy at `90` epochs. The timing narrative and the table report the score at different precision, so the time comparison uses the accuracy as stated in that narrative.

With distillation across the standard schedule, the student reaches the baseline target at epoch `80`, but those epochs take `200` minutes. The authors report a slowdown of around `11%` for reaching the target. The student eventually finishes with `77.2%` evaluation accuracy in this experiment. The teacher has helped it produce a better endpoint and reach the baseline score in fewer epochs, while elapsed time to the baseline score has increased. This example gives a direct illustration of why the step count alone would have led to a different judgment.

The authors next configure the distilled run for `45` epochs and scale the learning rate decay for that budget. The student reaches the standard baseline’s final accuracy in `91.6` minutes, giving the reported `1.96x` speedup. The shorter schedule makes the distinction between time spent and training progress concrete. The cost of using the teacher remains part of the run. With a schedule suited to the shorter budget, the student can reach the target before the added work uses up the advantage.

ResNet-50 time to the baseline’s ImageNet validation accuracy The shortened distilled run reaches the target sooner, while the standard-length distilled run takes longer to reach it.

**The numbers**

| System or setting | minutes |
| --- | --- |
| Undistilled B1 reference | 179.8 |
| Distillation with the standard schedule | 200 |
| Distillation with the shortened schedule (this paper) | 91.6 |

The duration sweep gives additional context for the timed result. At `22` epochs, the undistilled B1 scores `72.31%` on ImageNet top-one validation accuracy and B2 scores `72.96%`. The KL student scores `74.82%`, while the MSE student scores `75.64%`. At `45` epochs, the shorter-budget MSE result is ahead of the KL result again. These are comparisons within a common epoch budget. They show what students obtain from the same amount of progress through the data, alongside the separate timing experiment that measures what it costs to reach a given score.

ResNet-50 ImageNet top-one validation accuracy at 45 epochs The MSE student has the highest accuracy at this duration.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Undistilled B1 | 75.43 |
| Undistilled B2 | 75.64 |
| Undistilled B3 | 60.85 |
| Undistilled B4 | 73.46 |
| KL distillation | 76.51 |
| MSE distillation (this paper) | 76.73 |

The relative position of the losses changes as the budget grows. At `90` epochs, the sweep table gives the KL student `77.333%` ImageNet top-one validation accuracy and the MSE student `77.21%`. At `180` epochs, the same table reports `77.53%` for KL and `77.37%` for MSE. Both are above the B1 score of `76.87%` at that duration. B4, however, reaches `77.17%` as an undistilled predictor at `180` epochs, ahead of B1 at the same duration. Calling B1 the best baseline describes its selection at the standard training length. The longer-budget results show why the authors also compare reference runs at their own tested durations.

The sweep scores and the timing example answer complementary questions. The scores show that a student can benefit from guidance at several planned budgets. The timing example fixes the target at the standard baseline’s final accuracy. A fixed-budget score can be useful for choosing candidates for the time comparison, since it shows how much progress they make within the allotted epochs. Determining whether that progress is fast enough still requires the elapsed time. This is especially relevant when comparing the short student with the standard student, because the optimization schedules differ.

#### BERT pretraining with and without an early cutoff

The undistilled BERT reference A1 is trained on `286,720,000` sequences of `128` tokens in the main timing comparison. The paper reports `11.3` hours of pretraining, `67.31%` masked language modeling validation accuracy, and a GLUE result stated as `83.37%`. The C4 accuracy measures recovery of hidden tokens during pretraining. The GLUE result is an aggregate downstream score obtained after task adaptation. These endpoints test different capabilities and therefore provide separate criteria for a successful shorter run.

With full-duration distillation, the student takes `18` hours to reach the undistilled reference’s masked language modeling validation accuracy. The authors report per-step distillation overhead of `60%` for BERT and `30%` for the image experiment. The duration sweep shows why step-based reasoning could make the BERT student look promising. At `35000` training steps, A1 has `65.49%` masked language modeling validation accuracy, while the KL-distilled configuration in the sweep table has `66.71%`. At `52500` steps, the KL student records `67.43%` on that metric, above A1’s `67.31%` at `70000` steps. The added cost of each step is large enough that these gains do not yield a wall-clock improvement under the full-duration recipes the authors tested.

To reduce the cost, the authors train students with distillation confined to an initial portion of the run. The detailed scheduling results say the best fraction tended to fall within `15-40%`, with the preferred point changing across teachers and training budgets. The paper’s broader account describes useful early guidance in the first `20-50%`. The main comparison uses `30%`, after which the student keeps training without querying the teacher. The detailed range, the broader range, and the setting chosen for the timing experiment describe different aspects of the scheduling study.

With this early cutoff, the student reaches the baseline’s masked language modeling validation accuracy at a reported `1.20x` speedup. On downstream GLUE, the paper reports a `1.42x` speedup to the baseline’s aggregate score. The GLUE comparison uses checkpoints at different pretraining budgets and then fine-tunes them. Thus the speedup describes when the useful pretrained checkpoint is available. The two speedups can differ because the checkpoint needed to match baseline transfer performance need not be the one needed to match baseline masked-token accuracy.

The appendix gives an aggregate comparison on the score scale used for the GLUE curve. At `52500.0` pretraining steps, A1 scores `0.828202` and early-distilled BERT scores `0.838772`. The A1 reference at `70000.0` steps scores `0.833666`. The shorter pretrained student has already reached a downstream score above that reference. At `70000.0` steps, the distilled result is `0.837115`, illustrating the slight dip the authors note at the reference duration relative to the student’s score at the preceding tested duration. The aggregate result can vary across budgets even while the student stays ahead of the matched-budget baseline.

GLUE aggregate score after BERT pretraining at two budgets Early distillation gives a higher downstream score at both displayed budgets, and the shorter distilled run exceeds the longer undistilled run.

**The numbers**

| System or setting | GLUE score |
| --- | --- |
| A1 at 52500.0 pretraining steps | 0.828202 |
| Early distillation at 52500.0 pretraining steps (this paper) | 0.838772 |
| A1 at 70000.0 pretraining steps | 0.833666 |
| Early distillation at 70000.0 pretraining steps | 0.837115 |

A comparison with a longer baseline sets a different target. At `87500.0` pretraining steps the appendix reports a GLUE score of `0.837898` for A1 and `0.841064` for the distilled student. The shorter student checkpoint in the chart is also above the longer undistilled aggregate score. These are discrete tested budgets. They show where the score was observed and make it possible to compare available checkpoints, while leaving open the earliest point between checkpoints at which a particular target could have been crossed.

#### What the aggregate GLUE score contains

Fine-tuning results vary across the GLUE tasks. The paper highlights QNLI and STSB as tasks that match or exceed the reference with `25%` of its pretraining steps. In the appendix, the distilled student at `17500` steps scores `0.903716` on QNLI, compared with A1’s `0.901458` at the `70000`-step reference duration. On STSB the corresponding scores are `0.894724` and `0.893724`. These numbers are downstream task scores. The step counts describe the preceding C4 training budget.

For MNLI, QQP, and SST-2, the body of the paper identifies `50%` of the reference steps as sufficient to match or exceed baseline performance. The task scores at `35000` steps show what matching means in each case. The MNLI score is `0.847676` for the distilled student, compared with `0.844962` for A1 at `70000` steps. On QQP, the student scores `0.897594` against the reference’s `0.896321`. On SST-2, the student’s `0.922146` equals the A1 score at the reference duration. The same headline fraction therefore includes both matches and improvements.

The choice of baseline duration also affects these task-level statements. At `87500` steps, A1 reaches `0.904357` on QNLI. The student at `17500` steps is above the standard-duration QNLI score but below this longer-run result. For SST-2, A1 reaches `0.925076` at `87500` steps, above the student’s `35000`-step score. The paper’s percentages describe a comparison with the standard reference budget. Referring to the precise budget helps distinguish an early match to that reference from an early match to every undistilled result in the sweep.

Other tasks show less uniform gains. On CoLA, the distilled student at `52500` steps records `0.547583`, below A1’s standard-duration score of `0.556154`. At `70000` steps, the student’s CoLA score is `0.545607`. On RTE, by comparison, the student at `52500` steps scores `0.785560`, above the A1 reference score of `0.763658`. These differences explain why the aggregate is helpful for summarizing the suite, while task-level comparisons are needed when the purpose of pretraining is to support a particular downstream task. The authors observe that larger fine-tuning datasets generally show more benefit and describe the smaller datasets as giving less stable results.

### What the ablations show

#### Separating the length of training from the length of guidance

The first useful control is the comparison between two interventions that can look similar in a headline. One reduces the overall amount of training. The other keeps the planned run but removes teacher guidance after its opening phase. The ImageNet speedup comes from the first intervention. When the authors tried the second on ImageNet, their tested early cutoffs did not improve efficiency over keeping distillation active throughout. A shorter ImageNet run can therefore use the teacher for its whole duration, as the successful shortened comparison does.

BERT shows the reverse preference about continuity of guidance. In the early-cutoff comparisons, stopping teacher guidance gives masked language modeling validation accuracy at least as good as leaving distillation active for the entire run in the cases the authors describe. That change also saves repeated teacher evaluations during the later part of pretraining. The `30%` recipe becomes a wall-clock improvement because it combines those two properties. Lower per-step overhead after the cutoff would be of limited use if it left the student too far behind on accuracy. The measured trajectories show enough quality at the chosen budget for the saving to matter.

Together, these comparisons support a claim about the value of guidance at different stages under the tested recipes. For BERT, paying for the teacher later in training contributes little to the quality needed for the reported targets. For ResNet-50, the tested cutoffs fail to improve the time–quality tradeoff, even though shortening the entire schedule succeeds. The paper motivates the BERT experiment with earlier research on the importance of early training interventions. Its own evidence is the observed response to moving the cutoff, with the baseline, architecture, and task held within the same experimental setting.

#### Ranking predictors and ranking teachers

The teacher-quality comparison repeats student training over the same set of durations while changing which sweep result provides the predictions. This reveals two meanings of teacher success. One is whether a student reaches the teacher’s own standalone score faster than the teacher did. The other is whether that student can reach the best undistilled baseline’s score sooner. A weak teacher may provide a meaningful acceleration for the first comparison even when its student falls short of the stronger target. Keeping both yardsticks visible makes the results easier to interpret.

On ImageNet, three of the four candidates produce students that reach the corresponding teacher’s accuracy sooner. The rankings by standalone accuracy and usefulness as a teacher also change across budgets. B1 is the strongest standalone candidate at the standard duration, yet is the lowest-performing teacher at `135` and `180` epochs in the reported teacher comparison. B4, described as third in the original sweep ranking, becomes the best teacher at `180` epochs. This is a direct reason to qualify a rule such as picking the teacher with the highest standalone accuracy. The same pool gives a different teacher ranking when what matters is the student trained under a particular budget.

For BERT, two of the distilled students reach A1’s masked language modeling validation accuracy sooner than A1. All the distilled students reach the validation accuracies of the remaining undistilled candidates sooner than those candidates did. A2 gives the strongest teaching result in this comparison, while A1 is the strongest standalone baseline. At equal elapsed time, the student taught by A4 ends up nearly `10` percentage points above its teacher in masked language modeling accuracy. The result is about the value that can survive reuse of a weak training run. It also puts the A4 comparison in context, since outperforming A4 and outperforming A1 are different targets.

The two domains agree that a predictor’s validation score is an incomplete guide to its usefulness as a teacher. The experiments establish this by changing the source of predictions and observing the resulting students, rather than by identifying which properties of the response cause the difference. The student still has the original cross-entropy term, so the teacher’s mistakes are only one influence on its updates. The setup allows a weak predictor to contribute a useful signal without setting the upper bound on what the student can learn. The paper’s practical evidence for that possibility is the teacher-to-student comparison at equal elapsed time.

#### Comparing losses within the same training family

The loss experiments ask which aspects of a teacher’s response make a reliable target in practice. The shorter ImageNet runs favor matching raw scores with MSE. At `22` epochs, its ImageNet top-one validation result is `75.64%`, compared with `74.82%` for KL, and the `45`-epoch comparison has the same ordering. At longer budgets, KL passes MSE. The paper characterizes MSE as the more robust option across settings and attributes some of the strongest individual students to KL. Both observations fit the change in ordering with training duration.

The contrast becomes more pronounced when weak teachers are added to a group. With KL, the authors observe combinations in which adding certain teachers reduces student accuracy to around the result of the weakest single-teacher configuration. MSE gives more reliable results under additions of weak teachers. That makes the loss choice especially relevant when the pool is assembled from whatever a search produced. A loss that gives the highest score with a favorable single teacher can respond differently when lower-quality predictions are mixed into its target.

The corresponding BERT loss check yields little observable change from substituting MSE for KL in pretraining. In that setting, adjusting when the teacher is active produces the clear efficiency change described in the paper. The image results establish a duration-sensitive and pool-sensitive loss comparison under the ImageNet recipe. The BERT check shows why that distinction should remain tied to the setting where the authors measured it, instead of being treated as a general ranking between the losses.

#### Paying for diversity on each step or across steps

The ensemble study looks at how the student encounters the teacher pool. The fixed ensemble starts with the teachers most highly ranked by accuracy and adds more according to that ranking. Every member of the selected group contributes on each step. In the randomly formed ensemble, a subset is drawn from the pool on every step and its outputs are averaged. In the single-draw version, successive steps can receive guidance from different teachers, while each individual step requires a single response. These comparisons test how much of the benefit of a diverse pool depends on combining several predictions for each batch.

The baselines differ in how much selection they assume. A straightforward single-teacher baseline uses the strongest undistilled predictor at the standard ImageNet duration. A stronger comparison selects the best observed single teacher separately for each student duration. The paper also compares against the strongest undistilled runs at the tested durations. The duration-specific single-teacher result is a demanding reference because finding it requires running student experiments with several potential teachers. It indicates what is achievable with favorable selection, alongside configurations that require less prior knowledge of which teacher will work best.

At the short ImageNet budgets of `22` and `45` epochs, the best selected single teacher gives the strongest result in the ensemble comparison. Adding teachers by standalone accuracy to a fixed group does not improve the time–quality frontier over that selected reference. Drawing changing subsets does offer a better tradeoff in the comparisons the authors summarize. This distinction matters because both ensemble procedures have access to multiple teachers. The fixed procedure spends computation on repeated agreement from the same group. The sampled procedure exposes the student to different groups over training, and the experiments compare the resulting quality against their respective time costs.

Sampling a single teacher at each step reaches the ImageNet top-one validation accuracy of the best undistilled `90`-epoch reference at a reported `1.85x` speedup. The ensemble analysis also reports a speedup range of `1.32-3.16x` across training durations for the single-draw approach. Those figures belong to the sampling comparison. The `1.96x` ImageNet headline comes from the shortened single-teacher recipe and its specified reference target. Different targets and baseline choices in the time–quality curves can yield different ratios, so the largest number in a range should be read with its own comparison.

The authors describe the change in teacher evaluation cost as going from `O(N)` for a full ensemble to `O(1)` for single-teacher sampling. Here `N` is the size of the teacher pool, and the notation describes how per-step teacher work grows with that size. To average all responses, the training process has to evaluate the full group. For a single draw, the number of teacher evaluations per step stays fixed as the pool grows. The student still receives responses from different teachers over the course of training. The ImageNet results show that this kind of exposure can retain substantial benefit while avoiding a teacher pass for every member on every step.

### Limitations

#### Limits stated by the authors

The authors identify accelerator memory as a condition on the timing results. Distillation requires room for the student and a teacher during the same training process. The subset-sampling implementation also keeps potential teachers in accelerator memory, including those unused on the current step. Reducing the count of teacher evaluations can therefore save computation while leaving substantial memory requirements. The cost of holding the teacher pool depends on the sizes of its members and on the hardware.

Where memory is tight, the authors explain that a technique such as gradient accumulation may become necessary. Gradient accumulation uses gradients from smaller batches to form an update and may add overhead compared with the original training setup. That overhead can consume the measured savings. The discussion identifies caching teacher predictions and using smaller teachers as possible directions for reducing memory pressure. The reported time comparisons concern the recipes actually run, with their teachers evaluated as part of training.

Memory also bounds the domain coverage of the ensemble finding. The authors say that direct extensions of the ImageNet ensemble experiments to BERT were difficult under their accelerator memory constraints. The BERT experiments demonstrate the value of early guidance from an available teacher and compare possible single teachers. The evidence for switching among teachers to approximate a full ensemble comes from ResNet-50 on ImageNet. The language experiments leave the corresponding ensemble comparison open.

The authors also state that the BERT cutoff recommendation is empirical. They find useful settings within an early portion of training, choose `30%` for the main comparison, and report a broader recommendation of `20-50%`. The preferred cutoff varies with the teacher and the total budget. The study supplies no analytical rule for predicting that point from the student’s training dynamics. Its account of why early guidance helps is therefore limited to the measured effects of changing the schedule and the fact that ending guidance saves subsequent teacher evaluations.

#### Limits visible in the comparisons

The scope of the timing claim follows the scope of the workflow. The teacher already exists because another run produced it. The reported speedups count the time needed for the student to reach a given target, including teacher use during distillation. An accounting of the entire search would also include the trials that produced the teachers and any extra searches for a good student schedule or a good teacher. That wider accounting is particularly relevant for the reference selected as the best single teacher at each duration. Its observed performance is available after testing the candidates, while selecting it for a new run is itself an optimization problem.

The study uses a common hardware platform, making the observed timings comparable within that setup. Other accelerator capacities and training configurations may give different teacher overheads. The `60%` and `30%` overheads describe BERT and the image setup in the paper. They help explain the different timing results there. A cost estimate for another deployment would also depend on factors such as the batch arrangement and whether the teacher fits in memory alongside the student. The experiments do not provide direct measurements of energy use or the cost of the full search in money.

The setup constrains how broadly the teacher-quality results can be read. Teachers come from small pools trained for the same task and with the same architecture as their students. Poor standalone accuracy within such a pool can coexist with useful guidance, as the A4 experiment demonstrates. The comparisons do not identify a score below which teaching becomes harmful or establish what happens with teachers trained on unrelated tasks. They also do not show which response properties account for the change in ranking between a good standalone predictor and a good teacher. The source of the supervision changes in the ablation, but standalone accuracy is only one characteristic that changes with it.

The account of the initial sweep has an internal inconsistency. The introduction describes four learning rate values, while the first results subsection describes five. The teacher settings and the reported sweep results give the concrete B-series and A-series configurations used in the comparisons, and the BERT configurations vary weight decay as well as learning rate. Those named configurations support the results reported for the individual teachers. The conflicting descriptions leave the exact scope of the initial search less clear.

The downstream result has its own boundary. The paper measures pretraining time needed to produce a checkpoint that attains a given GLUE score after fine-tuning. An end-to-end timing claim for a particular application would also need to measure the fine-tuning stage and the performance target for that application. The task results show that the checkpoint sufficient for one task can be insufficient for another. They support the authors’ observation that some tasks benefit more than others, while leaving the proposed relationship with dataset size observational. The paper compares tasks that already differ in several ways rather than varying the fine-tuning dataset size within a controlled task.

Finally, the reported targets depend on the evaluation metric and reference duration. A student can exceed a teacher’s own masked language modeling accuracy and still fall below the strongest undistilled result. A run can also finish with higher ImageNet accuracy and take longer to reach the standard baseline’s score. Those are observed outcomes rather than inconsistencies in the idea of efficiency. They delimit what the experiment establishes. The speedups hold for the stated score targets, budgets, architectures, and hardware, and the ablations show which changes improved those comparisons.

### What came after

No later work is documented here.

## Cite

Cite as Cody Blakeney, Jessica Zosa Forde, Jonathan Frankle, Ziliang Zong and Matthew L. Leavitt. 2022. Reduce, Reuse, Recycle: Improving Training Efficiency with Distillation. arXiv:2211.00683.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2211.00683](https://doi.org/10.48550/arxiv.2211.00683) · [arXiv 2211.00683](https://arxiv.org/abs/2211.00683)

```bibtex
@misc{blakeney2022reduce,
  title = {{Reduce, Reuse, Recycle: Improving Training Efficiency with Distillation}},
  author = {Cody Blakeney, Jessica Zosa Forde, Jonathan Frankle, Ziliang Zong and Matthew L. Leavitt},
  year = {2022},
  doi = {10.48550/arxiv.2211.00683},
  eprint = {2211.00683},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2211.00683}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
