Elamur Research

Dynamic Masking Rate Schedules for MLM Pretraining

Paper · 2024 · Zachary Ankner, Naomi Saphra, Davis Blalock et al.

Summary

Masked language modeling teaches a text encoder by giving it a partly corrupted passage and asking it to recover the original tokens. The masking rate determines how much of the passage becomes a prediction target. A higher rate gives the encoder more predictions to learn from but leaves fewer intact clues for making them. A lower rate changes that balance in the other direction. The authors ask whether the right balance changes during pretraining. Their proposal keeps the reconstruction task and changes the masking rate as training progresses, starting high and gradually lowering it. The question sits at the intersection of language models and pretraining.

The authors pretrain BERT on the Colossal Cleaned Common Crawl dataset and then adapt it to the tasks in GLUE. For BERT-base, lowering the masking rate from 30% to 15% produces a mean GLUE score of 84.29, compared with 84.12 at the strongest constant rate and 83.83 at the conventional 15% rate. For BERT-large, the main comparison reports 87.22 when the rate falls from 40% to 25%, against 86.97 with a constant 40% rate. A decreasing schedule also gets BERT-base to the best GLUE score of the conventional constant-rate run sooner. The estimated pretraining speedup to that target is 1.89x, with the same reported throughput per step.

The controlled comparisons help explain why the schedule works. BERT-base does worse when the same endpoints are traversed in reverse. It also does worse when the inputs follow the decreasing schedule but the loss is restricted to 15% of input tokens. That restriction preserves the scheduled corruption while removing the extra prediction targets available early in ordinary scheduled training. On BLiMP, a linguistic benchmark, the decreasing schedule performs comparably to the low constant rate. On held-out reconstruction as evaluated at a common 15% masking rate, its reported loss matches the high constant rate. Those comparisons show how the schedule can recover strengths associated with different fixed settings.

The paper also finds a benefit from decreasing the corruption rate under a different encoder objective. There, the encoder classifies tokens as original or substituted rather than recovering the original token at selected positions. The experiments establish the value of starting high and ending lower for the tested English BERT setups. They leave open how to choose endpoints for other languages, architectures and reconstruction tasks.

Deep dive: Dynamic Masking Rate Schedules for MLM Pretraining

Dynamic masking rate schedules change how much text BERT reconstructs during pretraining, improving downstream scores and reducing time to reach them. · about 34 minutes to read

The problem and its context

A training task with two demands on the same input

A masked reconstruction exercise uses ordinary text as its own source of supervision. The training system takes a sequence, selects some positions and retains the original tokens at those positions as answers. It then presents a changed version of the sequence to the encoder. The encoder uses what it can see to score possible answers, and the training procedure compares those scores with the originals. The procedure builds on the idea of a fill-in-the-blank exercise, which the authors trace to the Cloze procedure. A training corpus therefore supplies both the material for the exercise and the answers.

The encoder needs enough evidence to make these answers learnable. A nearby token might identify a grammatical dependency or narrow down which expression belongs in a selected position. Removing that clue changes the prediction problem for other positions as well. At the same time, the training procedure needs targets on which to assess the encoder. Selecting more positions gives it more opportunities to assess the predictions made from each sequence. The same choice controls the supply of clues and the supply of answers.

This dual role makes a masking rate different from a setting that only changes the difficulty of an example. If pretraining uses a higher rate, the learner generally sees more disrupted passages and makes more scored predictions per passage. If it uses a lower rate, it generally works from a more intact passage and receives fewer scored predictions. The authors frame the question around this joint change. A training procedure that holds the rate fixed chooses the same balance at the beginning, when the encoder is learning from its earliest batches, and at the end, when its predictions have already been shaped by the preceding updates.

The paper studies an encoder-only Transformer. An encoder builds representations of the supplied sequence, and masked positions can use evidence on either side. This is what makes the organization of the remaining text relevant. If the rate leaves a particular clue unavailable, giving the encoder access to both directions still cannot recover the original clue from the input alone. Its prediction must draw on whatever evidence remains and on regularities learned from other examples. The architecture underlying that setup is the Transformer.

How the fixed rate became the comparison

The paper places BERT in the development of self-supervised pretraining after ELMo. A system learns from a text corpus first, then transfers what it learned to tasks with their own training and evaluation data. For masked reconstruction, that separation gives the pretraining objective an indirect role. Recovering tokens is the exercise used to build the encoder. The downstream tasks assess how well the resulting encoder can be adapted for other purposes. The earlier work the authors identify at the start of this account is Deep Contextualized Word Representations.

The original BERT setup used a constant masking rate of 15%. The authors describe how that rate persisted in work that changed other parts of the architecture or pretraining setup. As a consequence, a conventional value became part of the recipe used to compare new encoders. Yet keeping a convention makes sense for comparability even when a different value could suit a particular configuration better. The papers cited as retaining the fixed-rate objective include RoBERTa, ALBERT, Big Bird and DeBERTa.

Wettig and colleagues examined that convention directly by comparing fixed rates. The authors describe their result as evidence that larger BERT configurations can benefit from higher masking rates. That earlier question was which rate to use through an entire run. Once the fixed-rate choice is open, a further question follows. A rate that works well on average across pretraining could owe its advantage chiefly to a particular part of the run. Comparing whole runs at constant rates cannot tell whether the preferred rate is the same throughout.

Another branch of earlier work changed the unit of corruption. Rather than selecting individual tokens, span-based methods select stretches of text. That changes which clues tend to disappear together. A rate schedule addresses a different design choice, namely how much corruption to apply as training advances. The authors regard the two choices as compatible. Their main experiments use token selection, so compatibility here is a statement about how the design choices fit together. The cited example is SpanBERT.

The authors also discuss ELECTRA, which uses a separate generator to propose replacements for some input tokens. As the generator changes, the replacement exercise presented to the encoder can change even without an explicit schedule for the replacement rate. The paper treats that as a possible parallel to scheduling. The proportion of positions chosen for corruption and the plausibility of the replacements are distinct properties of the resulting input. A generator trained with masked reconstruction also gives scheduling a possible point of application within that system.

Why make the rate depend on training progress?

Pretraining recipes already change some settings over time. The paper cites schedules for learning rates, dropout, input resolution, batch size and sequence length. A learning rate changes the size of the parameter updates. Settings such as dropout and input resolution change the information available to the learner. Batch size and sequence length change how much material can contribute to an update. Masking rate falls into both of the latter groups because it affects what the encoder sees and which positions supply supervision.

The authors motivate a high starting rate in part through an analogy with simulated annealing. Early corruption could make the optimization problem less sensitive to the exact features of a particular input, in a way the authors relate to smoothing the loss landscape. The loss landscape is the way training loss varies as the learned parameters change. On this account, beginning with stronger corruption may change the route the optimizer takes before it settles into a lower-noise regime. The paper presents this as a possible explanation and designs comparisons around predictions it suggests.

There is also a more direct account of the attraction of a high starting rate. Each selected position gives the learner another original token to predict from the corrupted passage. The resulting collection of targets changes the evidence available for updating the parameters, even when batch size and sequence length stay fixed. Whether the benefit comes from the corruption of the input, the added prediction targets, or their combination is a question for experiments. A schedule changes both unless the experiment explicitly holds one of them down.

The authors identify Yang and colleagues’ work as the closest comparison already in circulation. It also changes the masking rate during masked pretraining. The paper describes that work as using a final rate close to 0% and examining longer training and nonrandom token selection. Ankner and colleagues organize their analysis around another question. They compare the order of the rates and separate corruption from the number of positions contributing to the loss. That choice makes it possible to investigate what a schedule changes within the training procedure rather than evaluating downstream performance alone.

The method, step by step

From clean text to a reconstruction exercise

Start with a sequence of tokens from the pretraining corpus. A token is an input unit produced by tokenization. The rate applies to those positions. It is a probability of choosing a token position for the exercise, rather than a rule about selecting a whole sentence or a particular number of ordinary words. The training procedure keeps a copy of the original tokens so that the targets are available after the input is changed.

At the current training step, the scheduler supplies a masking rate. For each token position, the paper describes inclusion in the selected set as a Bernoulli draw. This is a random choice between inclusion and exclusion with a specified probability of inclusion. The schedule sets that probability at each step, while the selection procedure determines which positions actually enter the set for a particular sequence. Knowing the scheduled rate therefore tells a reader the expected extent of selection, without specifying the exact positions or guaranteeing the same realized share in every input.

One pretraining step with a scheduled masking rate

The steps in order.

One pretraining step with a scheduled masking rateStep 1: Draw a token sequence from the corpus1. Draw a token sequence from the corpusStep 2: Set the masking rate for this step2. Set the masking rate for this stepStep 3: Sample positions for the reconstruction targets3. Sample positions for the reconstruction targetsStep 4: Apply the BERT corruption rules4. Apply the BERT corruption rulesStep 5: Predict the original tokens at selected positions5. Predict the original tokens at selected positionsStep 6: Score predictions and update the encoder6. Score predictions and update the encoder

The selected set and the set of visible blanks are different. Following BERT’s corruption rule, the procedure puts the special [MASK] token at 80% of selected positions. At 10% of selected positions it substitutes a randomly chosen token. It leaves the original visible at the remaining 10% of selected positions. Each of these percentages describes how an already selected position is handled. The scheduled masking rate acts earlier, when positions are selected.

This distinction matters for understanding the amount and kind of information the encoder gets. A visible [MASK] announces that something is missing. A random substitution can present misleading content in a position that still looks like a normal token position. An unchanged selected position still supplies a prediction target, with its original token present in the input. The same original-token reconstruction rule applies across all three outcomes. The masking rate controls how many positions are eligible for these treatments, while their relative shares follow the same rule throughout the main experiments.

The encoder receives the resulting sequence and gives conditional probability scores to possible original tokens at the selected positions. The training criterion uses only scores for the originals. A visible position outside the selected set can still influence the exercise by providing context, even though the procedure does not directly score its reconstruction. Conversely, a selected position contributes to the criterion regardless of whether its input token was replaced with [MASK], randomly substituted or retained. This separation between context and scored positions is what makes the later subset experiment possible.

The reconstruction objective

The paper writes the reconstruction objective as an average log probability. The expression below uses the position itself as the summation index.

L(x) = (1 / |M|) Σⱼ∈M log p(xⱼ | x₋ₘ)

Here, x is the original input sequence, and L(x) is its reconstruction objective. M is the set of selected positions, |M| is the size of that set, and j is a position belonging to it. The symbol Σ adds the terms over those positions, and 1 / |M| converts that sum to an average. xⱼ is the original token at position j. The notation x₋ₘ denotes the input after applying the corruption rule at the positions in M. The conditional bar | introduces that input as the evidence available to the encoder. p assigns a conditional probability to the original token, and log is the logarithm of that probability.

As written, the expression rewards higher log probability for the original tokens. The loss reported in the experiments uses the direction in which smaller values are better. The normalization by the number of selected positions also helps explain what the authors mean by additional training signal. A higher rate supplies more positions to the average. It does not follow that the value of the objective grows just because the sum contains more terms. The inputs to that average, including the contexts from which those terms are predicted, change with the rate.

All predictions in this objective refer to the same corrupted input sequence. Consider a selected position whose original token would have helped resolve a second selected position. If both originals are replaced in the input, the prediction at the second position cannot use the first original as a visible clue. The training system nonetheless has both originals available for scoring. A high rate therefore changes the conditional prediction problems as well as the number of terms in the criterion. This is the property that makes changing the rate a substantive change to training even when the algebra of the objective stays fixed.

Specifying the schedule

The authors express a schedule in terms of the current step and the planned number of training steps. A constant schedule has the same rate at the beginning and end.

pₘₐₛₖ,ₜ = pᵢ = p𝒻

pₘₐₛₖ,ₜ is the probability of selecting a token position at training step t, indicated by the subscript ₜ. pᵢ is the initial probability and p𝒻 is the final probability. The equality means every step uses that shared value. Labels such as constant-0.15 name the fixed selection probability used for the run.

The main dynamic schedule interpolates between the initial and final values in proportion to training progress.

pₘₐₛₖ,ₜ = pᵢ + (t / Tₜₒₜₐₗ) × (p𝒻 − pᵢ)

pₘₐₛₖ,ₜ is the selection probability at the current step, t is that step, and Tₜₒₜₐₗ is the planned total number of steps. pᵢ and p𝒻 are the initial and final probabilities. The division gives the share of the training horizon elapsed, and × scales the difference between the endpoint rates by that share. The subtraction determines the size and direction of the change. Adding the scaled change to the initial value gives the rate for the current step.

The label linear-0.3-0.15 gives the start and end in that order. The exercise begins with a selection probability of 30% and approaches 15% as the run progresses. Swapping the endpoints preserves the interval of possible rates and reverses which rates the encoder encounters early. Holding both endpoints equal reproduces the constant case. That shared notation lets the comparisons vary direction, range or schedule shape while keeping the object being scheduled the same.

The training horizon is part of this definition. At a given step, the rate depends on how far that step falls into the planned run. As a consequence, a checkpoint from a scheduled run records the history of rates for that run’s original horizon. A separate run planned to end at the checkpoint would move through the range on a different timetable. This distinction matters when reading curves of downstream performance over pretraining. Those curves evaluate the encoders produced along the planned trajectory.

Alternatives to a steady decrease

The authors compare the linear schedule with a cosine schedule that traverses the same endpoints with a different timing. Instead of changing the rate by the same amount per step, it follows half a cosine cycle. The schedule changes slowly near the ends and more quickly in the middle.

pₘₐₛₖ,ₜ = pᵢ + ((p𝒻 − pᵢ) / 2) × (1 + cos((1 − t / Tₜₒₜₐₗ) × π))

pₘₐₛₖ,ₜ is the current selection probability, pᵢ and p𝒻 are the endpoints, t is the current training step, and Tₜₒₜₐₗ is the total number of steps. cos is the cosine function, and π is the circle constant used here to specify half a cycle. The expression 1 − t / Tₜₒₜₐₗ measures the fraction of training remaining. Inside the outer product, adding 1 to the cosine shifts its range. Division by 2 scales the endpoint difference so that the whole expression moves from the initial rate to the final one.

The paper also defines a step schedule. It holds the previous rate between designated change points and multiplies it by a decay factor when one of those points is reached.

          ⎧ γ × pₘₐₛₖ,ₜ₋₁    if t ∈ Γ
pₘₐₛₖ,ₜ = ⎨
          ⎩ pₘₐₛₖ,ₜ₋₁        otherwise

pₘₐₛₖ,ₜ is the current probability, and pₘₐₛₖ,ₜ₋₁ is the probability at the immediately preceding step. The symbol γ is the decay factor, × multiplies the preceding rate by it, and Γ is the set of steps at which the change should occur. The symbol ∈ tests whether t belongs to that set. The initial masking rate supplies the starting value for this recurrence. In the paper’s experiment there is a single change, halfway through training, so the schedule can be described by its initial and final rates.

These alternatives change how long the encoder spends in different parts of the interval. A step schedule with the same endpoints as the decreasing linear schedule spends the first half at the high rate and the second half at the low rate. A linear or cosine schedule generates intermediate rates. In each case the scheduler passes a probability to the same token selection procedure. The comparison can therefore test whether a successful run requires a smooth passage through intermediate rates or whether spending time in the high and low regimes in that order is enough to support a gain in this setup.

The pretraining and adaptation procedure

The authors use the Hugging Face implementations of BERT-base and BERT-large, with 110 million and 345 million parameters, respectively. Composer manages the training runs. The names identify the implementations and training infrastructure used for the experiments, while the corruption rule specifies what differs between the schedule conditions. The paper cites the Hugging Face software as Transformers.

Both sizes use the Colossal Cleaned Common Crawl corpus, abbreviated C4. The BERT-base experiments use a 275 million document subset and repeat pretraining for 3 trials. The BERT-large experiments report 2 pretraining trials, with training over 2 epochs of C4. An epoch describes a pass through the training data. The pretraining corpus supplies the sentences and reconstruction targets, while the downstream benchmark supplies separate task-specific supervision. The authors attribute C4 to the work introducing T5.

Every run uses batches of size 4096 and sequences of length 128. The learning rate has its own schedule, shared across the masking conditions. It warms up over 6% of the training duration, then declines linearly from 5e-4 to 1e-5. The optimizer is AdamW, with β₁ set to 0.9, β₂ set to 0.98, and its numerical stability term set to 1e-6. The β parameters control the optimizer’s running estimates, and the reported decoupled weight decay is 1e-5. The corresponding optimizer work is Decoupled Weight Decay Regularization.

The authors report using 8 NVIDIA A100 GPUs. Approximate pretraining times are 10 hours for BERT-base and 24 hours for BERT-large. These figures describe their hardware and full training setups. The efficiency comparison asks a narrower question about the pretraining steps needed by different schedules to reach a downstream score on the same setup.

After pretraining, the authors perform fine-tuning on GLUE. This step adapts the encoder to each downstream task with that task’s data. Fine-tuning is repeated for 5 trials per pretraining trial. Repetition at both stages matters because different pretraining runs can produce different starting points, and downstream adaptation from a given starting point can also vary. A score for a masking schedule is consequently an estimate based on repeated training and adaptation, instead of the outcome of a single reconstruction run.

Experiments and results

What the comparisons measure

GLUE is the main downstream evaluation. It groups tasks that require different kinds of language understanding. The authors report the task scores and an average across the benchmark tasks. They refer to the aggregate as average GLUE accuracy. The individual entries use the scales reported for the benchmark, so a score for one task should be read under that task’s label. The aggregate helps compare overall transfer, and the task columns show where the averages conceal differences in behavior.

The primary BERT-base comparison includes the conventional constant 15% rate and the strongest constant rate from the authors’ sweep, 30%. Including the stronger fixed baseline addresses whether changing the rate pays off after retuning the fixed-rate recipe. The primary BERT-large comparison instead uses a constant 40% rate, chosen in light of the earlier fixed-rate work. The two sizes are compared within their own training setups. Their different raw scores do not isolate the effect of increasing the number of parameters.

There are two additional ways to assess the representations and predictions learned during pretraining. BLiMP tests whether the encoder can give a higher sentence score to an acceptable member of a linguistic minimal pair. Held-out masked reconstruction instead examines the loss on the pretraining task at a common evaluation corruption level. These evaluations answer different questions from downstream fine-tuning. A gain on the GLUE average does not specify what happened to sentence preferences or to the probabilities assigned to original tokens, so the paper measures those directly.

The paper’s GLUE significance procedure compares each schedule with the one that has the highest observed mean for the task of interest. It uses a one-sided t-test and corrects the pairwise tests using the Hochberg step-up procedure. When the corrected P-value is below 0.05, the authors report that the lower-scoring schedule is significantly worse. The distinction between raw scores and this test matters throughout the results. Two means can be numerically ordered without the experiment identifying the schedules as statistically distinguishable.

Downstream scores at the end of pretraining

BERT-base masking schedules and final mean GLUE score

The decreasing schedule has the highest mean against both the conventional and tuned fixed rates.

BERT-base masking schedules and final mean GLUE scoreConstant 15%: 83.83Constant 15%83.83Constant 30%: 84.12Constant 30%84.12Decrease from 30% to 15% (this paper): 84.29Decrease from 30% to 15% (this paper)84.29
The numbers
System or settingaverage GLUE accuracy
Constant 15%83.83
Constant 30%84.12
Decrease from 30% to 15% (this paper)84.29

For BERT-base, the decreasing schedule gives a mean GLUE score of 84.29. The conventional 15% baseline gives 83.83, and the tuned 30% baseline gives 84.12. The abstract reports a gain of up to 0.46% in average GLUE accuracy for BERT-base. The comparison with the stronger fixed rate is particularly informative because constant 30% already benefits from reconsidering BERT’s conventional setting. The authors describe the improvement over that baseline as statistically significant and report gains on 3 of the 8 tasks, with parity on the others.

The task scores give this result more shape. CoLA is 58.96 for the decreasing schedule and 57.24 for constant 30%. The two MNLI entries are 84.61/85.13 for the schedule and 84.5/84.83 for the fixed rate. Other individual means favor the constant setting. RTE is 76.25 for the decreasing schedule and 76.56 for constant 30%, and MRPC is 91.87 and 92.18, respectively. These are raw averages under the task labels in the paper. The authors’ parity wording reflects their significance procedure and allows for some lower observed means under the scheduled condition.

Comparing the two constants also shows how a better fixed rate depends on which score matters. The 30% baseline has a higher mean GLUE score than the 15% baseline. In the same table, the 15% run scores 76.65 on RTE and 92.91 on SST-2, against 76.56 and 92.79 for the 30% run. An endpoint chosen by the average is therefore a starting point for the scheduling experiment, not a claim that each downstream result improves when a fixed rate is raised.

BERT-large masking schedules and final mean GLUE score

The decreasing schedule improves the mean over the high fixed rate.

BERT-large masking schedules and final mean GLUE scoreConstant 40%: 86.97Constant 40%86.97Decrease from 40% to 25% (this paper): 87.22Decrease from 40% to 25% (this paper)87.22
The numbers
System or settingaverage GLUE accuracy
Constant 40%86.97
Decrease from 40% to 25% (this paper)87.22

For BERT-large, the main results compare linear-0.4-0.25 with constant-0.4. The mean scores are 87.22 and 86.97, respectively. The abstract reports a gain of 0.25% in average GLUE accuracy for this size. The authors describe the comparison as statistically significant, with improvement on 4 of the 8 tasks and parity on the others. CoLA is 64.07 under the decreasing schedule and 63.53 under the fixed rate. QQP is 89.23 and 88.84, respectively. RTE illustrates the difference between the aggregate result and every raw task mean, with 83.14 under the schedule and 83.25 under the constant rate.

The BERT-large setup establishes a gain from a decreasing schedule against the selected constant comparison. The result complements the BERT-base experiment in two ways. It uses a larger encoder, and it keeps the rate above the conventional 15% even at the end of the main scheduled run. Thus the result is consistent with the more general idea of a comparatively high rate followed by a comparatively low rate. The two experiments leave the choice of an absolute endpoint dependent on the setup.

Progress toward a downstream target

Final scores answer how well full runs finish. The speed analysis asks when a run first becomes competitive with the best score from a constant schedule. The authors evaluate GLUE at checkpoints taken every 10K pretraining steps, with fine-tuned performance as the outcome of interest. For BERT-base, the targets are the best mean GLUE scores observed for constant 15% and constant 30%. Each target is matched to a point on the decreasing schedule’s fitted performance curve.

The paper fits a curve to the relationship between pretraining steps and the corresponding GLUE scores. In compact notation, the fitted function has this form.

g(t) = c₁ − c₂ × exp(−(c₃ × t)^c₄)

g(t) denotes the fitted mean GLUE score at pretraining step t. c₁, c₂, c₃ and c₄ are regression parameters estimated separately for the schedules being compared. exp denotes the exponential function. The multiplication sign × combines the scale factors with their arguments, ^ raises the scaled step to the fitted power c₄, and the minus sign inside exp makes that powered expression negative. The outer subtraction places the scaled exponential term below the fitted level c₁ when the exponential term and its scale are positive.

After fitting, the authors solve for the step at which the decreasing schedule reaches the desired baseline score. For BERT-base, the estimate is 37K steps to match the best constant 15% checkpoint, corresponding to a 1.89x speedup. It is 42K steps to match the best constant 30% checkpoint, corresponding to a 1.65x speedup. The stronger fixed run supplies a different target, so it has its own crossing point and speedup. The step estimates come from the fitted curves rather than direct evaluations at those exact steps.

The authors use step counts for the computation because they report identical throughput for constant and dynamic schedules. The resulting efficiency claim is about reaching a given downstream result with fewer pretraining steps under that throughput. It does not follow from evaluating reconstruction loss sooner, and the target is not the scheduled run’s own final score. A reader comparing training budgets should keep the target, the constant-rate comparator and the hardware setup attached to each speedup.

The checkpoint analysis also yields what the paper calls a Pareto improvement. In this comparison, one outcome is elapsed pretraining and the other is mean GLUE score. On the evaluated BERT-base checkpoints, the decreasing schedule matches or exceeds the fixed-rate comparisons without an increase in reported training time. BERT-large shows the same relation against constant 40% at the checkpoints the authors evaluate. The BERT-large result is expressed as a comparison across those checkpoints, without a corresponding numerical crossing speedup.

Linguistic judgments and reconstruction loss

BLiMP presents pairs of sentences that differ in a way intended to test a linguistic phenomenon. One member is acceptable under the test and the other is unacceptable. The encoder gets credit when its scoring procedure prefers the acceptable sentence. The tests group related phenomena, including syntax, morphology and semantics. Here the measurement concerns a preference between two inputs, with both inputs scored by the same procedure.

A masked encoder gives conditional token probabilities and does not directly supply a probability for an entire sequence. The authors accordingly score each member of a BLiMP pair by pseudo-log-likelihood. They mask each position in turn, obtain the log probability assigned to that position’s original token conditional on the remaining sentence, and sum those log probabilities over the sentence. The two resulting sums determine the prediction for the pair. This is the scoring procedure the authors take from Masked Language Model Scoring.

On BERT-base, the paper reports mean BLiMP accuracy of 82.70 for the decreasing schedule, 82.44 for constant 15%, and 82.13 for constant 30%. The authors report an improvement for the scheduled run over constant 30% and comparable performance with constant 15%. The lower fixed rate is consequently the more relevant comparator for the linguistic result, even though the higher fixed rate is the stronger constant comparator for mean GLUE score.

For reconstruction, all the BERT-base conditions are evaluated with a 15% masking rate. The scheduled condition and constant 30% each have a reported average MLM loss of 1.56. Constant 15% has a best reported MLM loss of 1.59, which the authors describe as significantly worse. A shared evaluation rate keeps the comparison tied to the same corruption setting, regardless of how the pretraining rate changed. In particular, the higher constant rate’s result persists when reconstruction is assessed at the lower rate.

These two measurements supply the basis for the paper’s account of what a decreasing schedule preserves. The scheduled run is near the low fixed baseline where the low rate is stronger, on BLiMP. It also matches the high fixed baseline on the reported reconstruction loss, where the high rate is stronger. The measurements concern different behaviors and use different scoring procedures. Looking at them alongside GLUE gives a fuller account than the claim that the final average improved.

What the ablations show

The order of the rates matters

The direction comparison reverses the endpoints of the strongest BERT-base schedule. Both schedules are linear and traverse the interval between 15% and 30%. In one case the higher rates come early. In the other they come late. This design holds the interval fixed so that its mere inclusion cannot account for a performance gap between the two runs.

BERT-base schedule direction and mean GLUE score

The same range gives a better downstream result when the higher masking rates come first.

BERT-base schedule direction and mean GLUE scoreConstant 15%: 83.83Constant 15%83.83Increase from 15% to 30%: 83.71Increase from 15% to 30%83.71Decrease from 30% to 15% (this paper): 84.29Decrease from 30% to 15% (this paper)84.29
The numbers
System or settingaverage GLUE accuracy
Constant 15%83.83
Increase from 15% to 30%83.71
Decrease from 30% to 15% (this paper)84.29

The increasing schedule gives a mean GLUE score of 83.71, compared with 84.29 for the decreasing schedule and 83.83 for the constant 15% control. The authors report a significant disadvantage for the increasing schedule compared with the decreasing one and describe its outcome as comparable to constant 15%. Exposure to the same high and low values is therefore insufficient to explain the improvement. The trajectory by which the training run reaches those values matters in this comparison.

Reversing the schedule changes both the order of corruption and the order of target density. When high rates come late, the latter part of training includes more scored positions drawn from more disrupted inputs. When they come early, the latter part includes fewer scored positions with more visible context. The experiment identifies the importance of the joint ordering. It cannot tell from direction alone whether the most influential change occurs at the start, at the end, or through the interaction between the two parts of the run.

The result fits the authors’ simulated-annealing motivation because the better direction applies stronger corruption first. That observation also fits a training-signal explanation in which early steps benefit from having more predictions per sequence. Either account predicts that reversing the schedule could matter. The direction experiment is most informative when read together with the comparison that deliberately removes the additional early prediction targets.

Corruption with a fixed share of scored tokens

In the subset experiment, the BERT-base input still follows the schedule from 30% to 15%. To define the loss over 15% of the input tokens, the authors score only a subset of the selected positions. This preserves the scheduled selection rate for constructing the corrupted input while keeping the scored share at the level used by the conventional constant condition. The distinction between selecting positions for input corruption and scoring their reconstruction is the intervention.

The mean GLUE score is 83.71 for the subset schedule, 83.83 for constant 15%, and 84.29 for the ordinary decreasing schedule. Comparing the subset schedule with the ordinary one shows what happens when extra corruption is retained and the additional scored positions are withheld. Comparing it with constant 15% shows what happens when the scored share is held at the conventional level but the corruption of the input follows a different trajectory. The subset condition has the lower reported mean in both comparisons.

This gives the paper grounds to attribute part of the gain to the additional scored predictions. Corrupting more positions early did not reproduce the full schedule’s gain when the loss continued to use the conventional share. At the same time, the subset changes the proportion of disrupted positions that contribute direct supervision. Its outcome characterizes that joint training condition. It does not quantify a separate gain from each additional target or measure how the gradients change when those terms are included.

The design is also asymmetric. It asks whether the schedule succeeds when extra targets are removed from the loss while scheduled corruption remains. It does not test a matching condition that provides the ordinary schedule’s extra targets while leaving the input corruption fixed at 15%. Those conditions would differ in which original tokens remain visible among the scored positions. The tested comparison supports the importance of target density under scheduled corruption and leaves the independent effect of a target-density schedule unresolved.

Which fixed rate and which endpoints?

The BERT-base hyper-parameter search starts with a set of constant rates. At 15%, 20%, 25%, 30% and 35%, the reported mean GLUE scores are 83.83, 83.92, 83.94, 84.12 and 84.04, respectively. The 30% result leads this search. The score drops at the next tested rate, so the experiment gives a reason to use 30% as the strong constant comparator and the starting point for the next sweep. It establishes a preference within the tested grid and training recipe.

With the starting point fixed at 30%, the authors test lower endpoints of 15%, 20% and 25%. The mean GLUE scores for those decreasing schedules are 84.29, 84.11 and 84.02. Higher endpoints of 35%, 40% and 45% give 83.91, 83.62 and 83.9. The strongest scheduled setting in that search ends at the lowest tested endpoint. The comparison among alternatives also gives a more specific result than a general preference for decay. The decreasing results are stronger than the increasing ones in this sweep, while the mean for constant 30% is above some of the decreasing settings.

The task columns show why the selected endpoint depends on the search criterion. For example, RTE is 77.04 for linear-0.3-0.2 and 76.25 for the aggregate winner linear-0.3-0.15. CoLA is 57.29 and 58.96, respectively. The averages favor ending at 15%, with different tasks favoring different schedules in their raw results. The paper chooses the endpoint for aggregate GLUE performance, so these variations are part of the way that decision should be read.

The search fixes the starting rate for practical reasons after finding a strong constant setting. That procedure narrows the question to how a run should depart from a selected starting point. A different initial rate paired with the same final rate would also change the ordering and duration of the intermediate regimes. Because the BERT-base search does not vary both endpoints in a full grid, the observed best setting should be understood in terms of the combinations the authors actually evaluate.

How smoothly does the rate need to change?

The shape comparison keeps the BERT-base endpoints at 30% and 15% and varies the route between them. The mean GLUE scores are 84.29 for linear scheduling, 84.27 for cosine scheduling and 84.23 for the halfway step change. The authors find no statistically significant difference between the average scores of these three schedule shapes. A successful run in this comparison can therefore follow a steady decline, change more sharply in the middle, or move directly from the initial rate to the final rate.

At the task level, the linear schedule outperforms cosine on 3 tasks and underperforms on 1, with the remaining tasks judged comparable. It outperforms the step schedule on 2 tasks and underperforms on 1, again with comparable results on the remainder. The task-level shifts show that schedule shape can change how the gain is distributed, even when the aggregate does not clearly separate the schedules. The authors use the linear shape for the main analysis because the nonlinear options show no consistent advantage on the aggregate.

The halfway step comparison gives a concrete bound on what the results require. That condition does not visit every intermediate rate, yet it gives a mean close to the linear condition. The benefit in this experiment thus does not depend on making every intervening masking probability part of the training experience. The result still involves a particular transition point. It neither locates the best transition nor determines whether an earlier or later switch would preserve the outcome.

Where the linguistic result comes from

The BLiMP breakdown tests whether the average reflects a broad similarity to constant 15% or a few compensating changes. Across all the reported groups of linguistic tests, the authors find the scheduled BERT-base encoder and constant 15% within one standard error of each other. Against constant 30%, the decreasing schedule improves on 5 of the 12 groups and is comparable on the rest by the authors’ criterion. This grouping gives a more detailed basis for their claim that the scheduled run attains the linguistic performance associated with lower masking.

The raw scores also show that the comparisons have different shapes across phenomena. In filler-gap tests, the decreasing schedule scores 79.71, constant 15% scores 78.37, and constant 30% scores 77.38. For determiner ellipsis, those respective scores are 85.38, 84.63 and 85.88. The higher constant rate can have a favorable mean in an individual group even though it trails in overall BLiMP accuracy. The authors use the overall comparison and the uncertainty across groups to make their claim.

The paper contrasts the aggregate BLiMP pattern with a synthetic study by Lasri and colleagues. The authors describe that earlier work as finding greater reliance on positional information at high masking rates and improved syntactic behavior in its setting. Here the low fixed rate performs better overall on BLiMP than the high fixed rate. The different setups matter. A synthetic experiment about positional information and a collection of sentence preferences under pseudo-log-likelihood do not measure the same behavior. The paper uses the contrast to question whether exposure to a high rate alone accounts for the scheduled run’s linguistic performance.

The reconstruction comparison points in the complementary direction. At the common evaluation rate, the schedule matches constant 30% in reported loss despite moving away from 30% during pretraining. This is an outcome of the complete training histories. The test does not date when the scheduled encoder acquired particular capabilities. It does show that, by the evaluation, the benefits associated with a high fixed rate on this metric can coexist with the sentence-pair performance associated with the low fixed rate.

Transfer to a token-substitution objective

The appendix tests a different pretraining objective, Random Token Substitution, which the authors abbreviate RTS. The procedure replaces selected input tokens with random tokens from the vocabulary. The prediction task is to classify whether a token has been substituted or is original. This changes what the encoder is asked to predict. The scheduled quantity is the random substitution rate, and the target is a substitution label instead of an original token identity.

The authors keep the data and other hyper-parameters from the BERT-base MLM setup. They compare the earlier constant RTS rate of 15%, a constant rate of 30%, and a linear decrease from 30% to 15%. The respective final mean GLUE scores are 83.42, 83.33 and 83.60. Constant 15% is the stronger fixed comparator here. The paper reports that the schedule improves on that comparator on 6 of the 8 tasks and performs worse on 1, with an average GLUE improvement of 0.18%.

The appendix also compares intermediate RTS checkpoints at 50K, 60K and 70K pretraining steps. The authors report that the decreasing schedule gives better downstream performance at each of those checkpoints than either constant rate. These comparisons extend the schedule result to an encoder exercise with different supervision. They also show that the relative ranking of the fixed rates depends on the objective. Constant 30% is the stronger fixed BERT-base comparison for MLM on the GLUE mean, while constant 15% is stronger for RTS.

The extension matters for interpreting the main ablations. The MLM subset experiment shows the importance of keeping the additional scored reconstruction positions in that specific procedure. RTS establishes a gain from scheduling under a different task, where the encoder is learning to discriminate between kinds of input tokens. In RTS, changing the substitution rate changes the examples and the balance of the classifications. The paper establishes that both objectives benefit from a decreasing corruption schedule under the tested conditions. It leaves the mechanism in RTS open because the main disentangling experiments are conducted for MLM.

Limitations

Limits identified by the authors

The authors restrict the pretraining and fine-tuning experiments to English. They identify word order as one reason another language might respond differently. If token position gives a weaker clue to sentence structure, removing a larger share of the lexical material may leave a different quality of evidence for reconstruction. The paper raises this as a hypothesis about generalization. It provides no multilingual experiment that can determine when the same rates would help or which languages would need a different schedule.

The architecture is also restricted to encoders. The substitution experiment broadens the pretraining objectives, while keeping the architecture in that family. The authors identify encoder–decoder settings, such as the reconstruction setup in T5, as a possible extension. In those settings, reconstruction involves a different relationship between the input and the decoder’s outputs. The encoder results do not establish how high the initial rate can be there or what kind of schedule would work.

The authors call for broader downstream evaluation beyond GLUE. Their limitations discussion singles out this benchmark, while the paper separately reports BLiMP and masked reconstruction as diagnostic evaluations. Those diagnostics broaden the aspects of performance the authors examine. They leave the main task-transfer evidence concentrated in GLUE, and the reported pretraining speedups also use GLUE scores as their targets. A different benchmark could favor a different point in the masking schedule or yield a different time to a useful result.

The paper also acknowledges a smaller search for BERT-large because of computational cost. The larger encoder uses a 40% fixed comparison based on the prior work’s recommendation. That choice makes the experiment feasible and gives the scheduled run a meaningful high-rate comparator. It leaves a broader set of fixed and dynamic rates for the larger encoder unevaluated, so the tested schedule cannot be treated as the outcome of the same search performed for BERT-base.

Limits visible in the reported experiments

There is an inconsistency in the description of the BERT-large endpoint. The main comparison and the checkpoint analysis identify the dynamic condition as linear-0.4-0.25. The hyper-parameter appendix names linear-0.4-0.15 in its account of how the dynamic condition was chosen. The scores of 87.22 and 86.97 belong to the comparison as labeled in the main results, and the checkpoint claim is likewise reported for linear-0.4-0.25 against constant 40%. The paper does not give a corresponding separate result in that comparison for the alternative appendix label. The endpoint discrepancy limits what can be inferred about long-run performance ending at 15% for BERT-large.

The test of the annealing explanation is indirect. The direction comparison is compatible with the view that more noise is helpful early, and the subset comparison shows that keeping the extra corruption while withholding extra scored targets is insufficient. The paper does not measure the shape of the loss landscape or track which minima the optimizer enters. It also does not hold all aspects of example difficulty and supervision fixed while changing only early noise. The empirical claim is strongest at the level of the training conditions being compared.

Likewise, the endpoint comparisons identify a promising ordering and a best tested setting, without deriving the best rate at every stage. The position of the halfway switch is fixed in the step experiment. The nonlinear comparisons use the selected BERT-base endpoints. The endpoint sweep itself starts from the strong constant setting and uses the same benchmark family to choose configurations and report the downstream gain. There is no independent downstream benchmark in the paper that repeats this complete selection and final comparison. That matters when treating the selected endpoints as broadly applicable.

The statistical comparisons establish differences relative to the authors’ testing procedure. A parity claim from a nonsignificant test is evidence that the study did not separate the two outcomes at its threshold. It is distinct from having demonstrated equality or having ruled out a practically meaningful difference. This applies in particular to individual GLUE tasks because raw task means move in both directions. The BLiMP comparison based on standard error also describes the observed uncertainty under that analysis, instead of covering every kind of grammatical judgment an encoder might be asked to make.

The efficiency estimates are conditional on the fitted step-to-score curves and the reported equal throughput. Evaluation occurs at intervals, so the crossing estimates depend on interpolation between observed checkpoints. The Pareto claim concerns the checkpoint comparisons the authors actually report, and it need not imply dominance at every possible step, including points between observations. Nor does a checkpoint on the original schedule validate a schedule intentionally compressed to end at that step. Compression would change the rate presented at earlier steps, which is part of the intervention.

The MLM loss comparison uses one common evaluation masking rate, 15%. A shared rate is valuable because it controls an important source of variation between the conditions, but the reported match between the decreasing schedule and constant 30% applies to that evaluation setting. It cannot establish that their conditional predictions are interchangeable across other corruption levels. Likewise, pseudo-log-likelihood on BLiMP measures relative sentence preferences under its scoring procedure. It leaves open how the encoders would behave on other tasks that draw on grammatical knowledge in different ways.

Finally, the paper reports scale within a pair of BERT configurations and objectives within a particular encoder setup. Architecture, data exposure, sequence length and the optimization recipe all help determine which context clues survive a given degree of corruption and how much supervision each update receives. A schedule expressed as a percentage does not make those properties universal across settings. The evidence supports changing the rate during pretraining in the tested runs and gives reasons to investigate the same choice elsewhere. It does not supply a general rule for choosing the rate independently of the rest of the training procedure.

What came after

A later citing paper concerns the scaling of multilingual encoders for European languages. That subject bears directly on a limit raised by Ankner and colleagues, whose pretraining and fine-tuning experiments were confined to English. The citation establishes a connection between the papers. It does not establish whether the multilingual work used a decreasing masking rate, compared alternative endpoints, or found that the English results transferred. The paper is EuroBERT: Scaling Multilingual Encoders for European Languages.

Another later citation concerns dual masking in adversarial defense. It connects the pretraining study to work that discusses masking in a different problem setting. In Ankner and colleagues’ experiments, masking changes the evidence and supervision available during ordinary encoder pretraining. The later title identifies an adversarial-defense objective, while the citation alone leaves open whether the authors borrowed a time-varying schedule, used the earlier findings to motivate a comparison, or cited the paper as background on masking. The work is Defensive Dual Masking for Robust Adversarial Defense.

These citations place the study in later discussions of multilingual encoders and adversarial defense. Neither citation by itself supplies a follow-up experiment on the paper’s main causal comparisons. Confirming broader transfer would require evidence about the masking procedure, the baseline and the task on which the resulting system was evaluated. In the original experiments, those details are what distinguish the effect of decreasing the rate from the effects of choosing a stronger fixed rate, visiting the same rates in reverse, or applying corruption without the accompanying reconstruction targets.

Cite

Cite as Zachary Ankner, Naomi Saphra, Davis Blalock, Jonathan Frankle and Matthew Leavitt. 2024. Dynamic Masking Rate Schedules for MLM Pretraining. Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 2: Short Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.eacl-short.42

@inproceedings{ankner2024dynamic,
  title = {{Dynamic Masking Rate Schedules for MLM Pretraining}},
  author = {Zachary Ankner, Naomi Saphra, Davis Blalock, Jonathan Frankle and Matthew Leavitt},
  booktitle = {Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 2: Short Papers)},
  year = {2024},
  doi = {10.18653/v1/2024.eacl-short.42},
  url = {https://doi.org/10.18653/v1/2024.eacl-short.42}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/ankner-2024-dynamic-masking-rate-schedules-mlm/