---
title: "Training Neural Networks with Fixed Sparse Masks — Sung 2021"
description: "FISH masks use Fisher information to choose which neural network weights to train, reducing the data saved or sent during training."
canonical: "https://research.elamur.ai/free/en/papers/sung-2021-training-neural-networks-fixed-sparse/"
---
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/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/sung-2021-training-neural-networks-fixed-sparse/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Training Neural Networks with Fixed Sparse Masks

# Training Neural Networks with Fixed Sparse Masks

Paper · 2021 · Yi-Lin Sung, Varun Nair and Colin Raffel

**Authors:** Yi-Lin Sung, [Varun Nair](https://md.research.elamur.ai/free/en/authors/varun-nair/) and [Colin Raffel](https://md.research.elamur.ai/free/en/authors/colin-raffel/) · **Year:** 2021 · **Venue:** arXiv (Cornell University) · **Licence:** [CC BY 4.0 (arXiv)](https://creativecommons.org/licenses/by/4.0/)

[**4** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3212868355) · [Cited by **68** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/sung-2021-training-neural-networks-fixed-sparse/cited-by/) · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2111.09839)
- [arXiv 2111.09839](https://arxiv.org/abs/2111.09839)
- [OpenAlex](https://openalex.org/W3212868355)

Citations: OpenAlex, 2026-10-14.

## Summary

A neural network can use all of its weights to make a prediction even when training changes only a few of them. This distinction matters when a team wants to save many versions of the same pretrained network, or when several workers must send their changes to a central server. The cost of keeping or transmitting a full set of weights can be substantial. The paper asks whether a small set of weights can be chosen ahead of time and trained for many steps while preserving most of the performance of ordinary training. Adapting a pretrained network to a new task in this way is a form of [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/).

The authors call their method FISH Mask. Before a training interval begins, they take a sample of task examples and estimate how sensitive the network’s predictions are to each parameter. For each example, they calculate the gradient of the log probability assigned to its correct answer. They square the gradient entries and average them across examples, producing a Fisher-based score for each parameter. The mask marks the highest-scoring parameters as eligible for updates. Training then proceeds with that eligibility list held fixed for the interval. Parameters outside the mask retain their values and continue to contribute to predictions.

On the GLUE test set, FISH Mask fine-tuning of BERTLARGE reached an average score of 82.6% while updating 0.5% of the parameters. Updating all parameters yielded 82.5%, and Diff Pruning reached 81.5% with the same update percentage as FISH. A fixed random mask scored lower, indicating that the choice of coordinates mattered. On CIFAR-10, distributed training with a ResNet-34 benefited from sparse communication after an initial period of ordinary training. Using a FISH mask that updated 10% of the parameters gave a better accuracy–communication tradeoff than sending dense updates in the main comparison.

The checkpoint experiment exposed a limit of choosing once. Holding a mask fixed across CIFAR-10 training hurt accuracy, while selecting a fresh mask each epoch at a 10% update rate brought validation accuracy in line with the standard training result of 93.9%. Saving changed values and their positions gave a checkpoint storage reduction by a factor of 5 under the paper’s accounting. The experiments therefore give different meanings to a useful training interval. A mask chosen before fine-tuning can last through a whole task, while a mask chosen during learning from scratch can still save space when it lasts only until the next checkpoint.

## Deep dive: Training Neural Networks with Fixed Sparse Masks

FISH masks use Fisher information to choose which neural network weights to train, reducing the data saved or sent during training. · about 35 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

#### Why the set of weights that changes matters

Gradient-based training begins with a prediction and a loss, a quantity that measures how far the prediction falls short of the training objective. Back-propagation tells the optimizer how that loss changes as each parameter moves. Stochastic gradient descent uses a small sample of training data at each step so that it can make progress without processing the entire dataset before every update. In the standard procedure discussed by the paper, every parameter is eligible to move. Sampling the training examples makes each step more manageable, but the collection of parameter values that may change still spans the entire network.

That collection becomes costly whenever somebody needs more than the latest in-memory state of a single run. In transfer learning, a team starts with a pretrained checkpoint and adapts copies of it for separate tasks. If every parameter can change during adaptation, each resulting checkpoint is ordinarily saved as a complete copy. The authors point to the large number of fine-tuned BERT variants as an example. A shared starting point can be much more valuable for storage if every task changes a known, small portion of the original parameters. The corresponding starting checkpoint in the transfer experiments comes from [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/).

A similar issue arises within a run. A checkpoint records the state of the network at some point during training. Keeping checkpoints lets researchers examine how predictions evolved and return to an earlier set of parameter values if training is interrupted. Repeatedly saving a dense network can consume substantial disk space. For BERTLARGE, the paper gives around 1 GB as an example of the space occupied by a full set of parameters. If the training procedure limits changes between saves, a record of the affected positions and their new values can represent the later state relative to an earlier one.

Distributed training makes the same question a matter of communication. A worker keeps its own copy of the network, computes local updates, and sends the changes back to a central server. The server combines contributions and makes the resulting state available to the workers. Communicating after several local steps can reduce how frequently this exchange happens. During the interval, however, each worker makes decisions using a copy that omits changes being made elsewhere. The paper calls the resulting problem stale gradients. What a worker calculated at its local parameter values may be a less suitable update for the state the server eventually reaches.

Reducing message size gives a distinct way to address this overhead. A worker can update only selected coordinates and send those coordinates at the end of a local training interval. The set of positions that can differ from the shared state is then bounded in advance. If the worker selects a fresh set at every step, individual updates can still be small, while the accumulated changes can cover a wider set of coordinates. Choosing the positions for an entire interval gives a guarantee about what can change over that interval, which is the property needed for the paper’s communication and storage arguments.

#### How earlier work restricted adaptation

One way to reuse a pretrained network is to attach a task-specific output layer and train that layer alone. The attraction is straightforward. The output layer is small and can be stored apart from the shared feature extractor. Its limitation, as the paper describes earlier work, is that the features available to that layer stay fixed. Training just the output layer sometimes gives reasonable performance, while full fine-tuning typically does better in the comparisons the authors discuss. The paper cites a study of this decision in [To Tune or Not to Tune?](https://md.research.elamur.ai/free/en/papers/peters-2019-tune-tune-adapting-pretrained-representations/).

Adapters provide another place to put task-specific changes. They insert small trainable subnetworks between layers and keep the original weights fixed. The earlier BERT adapter result discussed in the paper adds an average of 3.6% more parameters for GLUE tasks. The authors also describe concurrent work that generates adapter weights with a shared hypernetwork and COMPACTER, which uses low-rank parameterization and matrix decomposition for its adapter weights. These examples show how an adaptation can be small relative to the pretrained network while still supplying trainable transformations inside it. [Parameter-Efficient Transfer Learning for NLP](https://md.research.elamur.ai/free/en/papers/houlsby-2019-parameter-efficient-transfer-learning-nlp/) and [COMPACTER](https://md.research.elamur.ai/free/en/papers/mahabadi-2021-compacter-efficient-low-rank-hypercomplex/).

The paper also discusses learned prompts, where the task-specific parameters are supplied to the network as part of its input or within its layers. It cites a prompt-tuning result with as little as 0.01% task-specific parameters and discusses this family in the setting of next-step prediction. A percentage of added prompt parameters measures a different quantity from a percentage of original weights that change. The authors want a method that can keep the existing architecture and constrain updates to it, including when the objective is to save a series of intermediate states during ordinary training. [The Power of Scale for Parameter-Efficient Prompt Tuning](https://md.research.elamur.ai/free/en/papers/lester-2021-power-scale-parameter-efficient-prompt/).

Among methods that train existing parameters, BitFit makes its choice by parameter type. It updates the biases in BERT and keeps other values fixed. A bias is an additive parameter, and selecting all eligible biases is a simple rule that can be specified before training. Its applicability depends on how the network is built. The paper points to T5 as an example without bias vectors. FISH instead aims to score scalar coordinates using training examples, so the recipe can be applied without first defining a category such as biases. [BitFit](https://md.research.elamur.ai/free/en/papers/ben-zaken-2021-bitfit-simple-parameter-efficient-fine/) and [Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer](https://md.research.elamur.ai/free/en/papers/raffel-2019-exploring-limits-transfer-learning-unified/).

Diff Pruning also seeks a small set of changes to existing pretrained weights, but it learns where those changes belong during adaptation. A smooth approximation to the count of active changes encourages sparsity, and the work discussed in the paper also considers grouping choices by weight matrix or bias vector. The flexibility comes with a training cost. The procedure has to represent and optimize the information that determines the mask. Choosing a subset in advance avoids that continuing job, while placing greater demands on the quality of the initial ranking. [Parameter-Efficient Transfer Learning with Diff Pruning](https://md.research.elamur.ai/free/en/papers/guo-2021-parameter-efficient-transfer-learning-diff/).

#### How earlier work restricted what workers send

The distributed methods reviewed by the authors provide a different precedent for selecting only a few coordinates. One cited method transmits the updates associated with the largest gradient magnitudes at each step. A gradient that stands out now can be sent now, even if the same position had little effect on the previous batch. The set of selected positions can therefore change as training proceeds. FISH gives the worker a stable set of eligible coordinates while it computes several updates locally. How useful that choice is depends on whether the same positions continue to give the optimizer enough scope to learn throughout the interval.

The authors also draw on federated learning, where clients can perform many local updates on private data before communicating with a server. In the work they describe, averaging client updates helped manage the consequences of workers training on states that had diverged. The FISH proposal addresses the amount of information exchanged about parameter changes and can be considered alongside ways of aggregating those changes. The paper’s own worker experiments simplify the data and timing assumptions compared with the federated setting. [Communication-Efficient Learning of Deep Networks from Decentralized Data](https://md.research.elamur.ai/free/en/papers/mcmahan-2016-communication-efficient-learning-deep-networks/).

Network pruning supplies a precedent for the Fisher score itself. Earlier pruning work cited by the authors used Fisher information to choose parameters, including groups of parameters, for removal. Pruning can make the weights sparse by zeroing them out. FISH makes the updates sparse. A frozen parameter can have a substantial effect on a prediction throughout training, and its value is still needed when that prediction is computed. This distinction determines what the method can save. A compact record of changes to a dense network can be useful even when evaluating the network still requires all the original weights.

### The method, step by step

#### From a training example to a mask

The procedure begins with a network at a particular set of parameter values and examples from the task it will learn. For an input and its recorded label, the network assigns some probability to that label. Back-propagation gives a derivative for each parameter of the log of this probability. A derivative with large magnitude means that a small move in that coordinate can produce a substantial local change in the log probability. A negative derivative is informative as well as a positive one. Squaring the entries turns both into evidence about sensitivity.

The authors accumulate these squared derivatives across examples. They square before averaging because they want to know whether a coordinate has an appreciable effect, even if the direction of that effect varies from example to example. Averaging the signed derivatives first would answer a different question. Opposite directions could cancel, making a coordinate appear unimportant despite substantial responses on individual examples. Once the averages are available, the method ranks the parameters and constructs a binary mask telling the optimizer which coordinates may move.

Choosing and applying a FISH mask The steps in order.

There are two distinct uses of gradients in this sequence. The first is to construct the mask. Its output is an ordering of positions, and those positions are chosen before the training interval. The second is to fit the network. Gradients calculated on later batches determine what changes to make in the selected positions. A high score says that a parameter is allowed to move. It supplies neither the direction nor the size of that move. The optimizer continues to use the task’s training objective for those decisions.

The mask applies to updates, so it still allows the full network to participate in every prediction. A downstream classifier can use features computed with frozen weights, and a trainable weight in an early layer can affect the inputs to a frozen layer later in the network. As a result, training a small collection of coordinates can alter the behavior of the whole network. In a task that starts from a pretrained checkpoint, this gives the optimizer a way to modify existing features while retaining most of the numerical values that produced them.

#### Why the score uses Fisher information

The authors motivate the ranking by asking how a small perturbation to the parameters affects the distribution of possible outputs. For a classification input, that distribution assigns probabilities to the labels the classifier can return. A change can be meaningful even when the most probable label is the same before and after the perturbation. The probabilities may have shifted in ways that a comparison of the top predictions would miss. The paper uses Kullback–Leibler divergence, or KL divergence, to measure the change between the original and perturbed distributions. It writes the local relation as follows.

```
𝔼ₓ D_KL(pθ(y ∣ x) ∥ pθ₊δ(y ∣ x)) = δᵀ Fθ δ + O(δ³)
```

Here θ is the vector of current parameters, and δ is a small perturbation of the same dimension. The conditional distribution pθ(y ∣ x) gives the probabilities of outputs y for input x at θ. The expression pθ₊δ(y ∣ x) refers to the distribution with the perturbation applied. D_KL denotes KL divergence, with the distributions separated by ∥ in the order used for that divergence. The symbol 𝔼ₓ averages over inputs. The transpose δᵀ turns the perturbation into a row for the quadratic expression with the Fisher information matrix Fθ. The remainder O(δ³) denotes terms of third order in the perturbation as it approaches zero.

The quadratic expression explains why the diagonal is useful for this procedure. Consider a move in one coordinate while all other coordinates are held fixed. Only the diagonal entry for that coordinate contributes to the quadratic term. Two moves of the same small size, made separately in different coordinates, can therefore have different effects on the output distribution. A ranking by diagonal entries treats the coordinate with the larger entry as the more sensitive of the two at the current parameter values.

The full matrix also includes off-diagonal entries. These describe interactions that enter the quadratic expression when several coordinates move together. The FISH ranking sets those interactions aside and scores each position independently. This makes it possible to keep a single score per parameter rather than a matrix with a row and a column for every parameter. When the parameter vector is large, that difference is a practical requirement for the calculation the authors want to perform.

The paper defines the full Fisher matrix through the gradient of the log probability of an output. For an input, the definition averages over possible outputs according to their probabilities under the current network. It also averages over inputs. These two averages answer separate questions. The first describes the kinds of outputs the network produces at a given input. The second determines how much each kind of input contributes to the overall measure.

```
Fθ = 𝔼ₓ∼ₚ₍ₓ₎ [𝔼ᵧ∼ₚθ₍ᵧ∣ₓ₎ [(∇θ log pθ(y ∣ x))(∇θ log pθ(y ∣ x))ᵀ]]
```

Fθ is the Fisher matrix at θ, and 𝔼 denotes an expectation. The symbol ∼ indicates that the variable is drawn from the distribution that follows it. The input x is drawn from p(x), and the output y is drawn from the conditional distribution pθ(y ∣ x). The symbol ∇θ means differentiation with respect to all coordinates of θ. The logarithm applies to the conditional probability of y. The first gradient is a column and the superscript ᵀ turns the second copy into a row. Their product is an outer product, whose entry for a pair of coordinates is the product of their respective derivatives.

For a diagonal entry, the two derivatives in that product refer to the same coordinate, giving its squared derivative. The authors replace the input expectation with an average over a finite set of training inputs. The two simplifications serve different purposes. Keeping only the diagonal controls the amount of information represented for each weight. Using a sample of inputs controls how many examples must be processed to estimate it.

```
F̂θ = (1/N) Σᵢ₌₁ᴺ 𝔼ᵧ∼ₚθ₍ᵧ∣ₓᵢ₎ [(∇θ log pθ(y ∣ xᵢ))²]
```

The symbol F̂θ denotes the vector of estimated diagonal entries at parameters θ. The number N is the count of inputs used in the estimate, i is the input index, and xᵢ is the input at that index. The summation Σ runs from 1 to N, and division by N gives the average. The expectation 𝔼 draws y from the distribution pθ(y ∣ xᵢ). The term ∇θ log pθ(y ∣ xᵢ) is the gradient of the log probability of y at that input. The square ² acts on each entry of the gradient separately, giving a vector for the average.

When the number of possible labels is small, the inner expectation can be evaluated by considering each output and weighting it by its probability. When there are many possible outputs, the authors discuss approximating that expectation with samples drawn from the network’s distribution. Both approaches use the probabilities produced at the current values of the parameters. They can give weight to an output whenever the network assigns it probability, regardless of the label recorded for the example.

The empirical Fisher takes a different route. It uses the recorded label for each input and computes the derivative for that label alone. This is the version the authors use for the main experiments. It works with labeled examples and avoids repeated gradient calculations for different candidate outputs at the same input. The resulting score is sensitive to how the current network responds to the task’s correct labels. That property makes it a plausible choice for selecting weights to adapt, though it changes what the estimate averages over.

```
F̂θ,emp = (1/N) Σᵢ₌₁ᴺ (∇θ log pθ(yᵢ ∣ xᵢ))²
```

F̂θ,emp denotes the empirical vector of scores at θ, with emp identifying the version that uses recorded labels. N is the number of examples, i indexes them, and the sum Σ covers examples 1 through N. The pair xᵢ and yᵢ consists of the input and its correct label. The probability pθ(yᵢ ∣ xᵢ) is the probability the network assigns to that label. The operator ∇θ gives the gradient of its logarithm with respect to θ, and ² squares each gradient entry. Dividing by N averages those squared entries across the selected examples.

#### Choosing which coordinates to train

The requested update percentage sets the size of the mask. Throughout the paper, *mask sparsity* denotes the percentage of parameters eligible for updates. A smaller reported percentage thus means a more restrictive mask. The total count of parameters and that percentage determine the budget for the top-ranked choices. The paper expresses the ranking rule as a threshold at the score of the last parameter to be admitted.

```
{θᵢ ∣ F̂θᵢ ≥ sort(F̂θ)ₖ}
```

The braces enclose the selected parameters, and ∣ means “such that.” The parameter θᵢ is the coordinate at position i, while F̂θᵢ is the estimated score for that coordinate from the vector F̂θ. The operation sort orders the scores from largest to smallest for the top-k selection, and the subscript k refers to the score at rank k. The symbol ≥ admits scores at least as large as that threshold. The intended budget is k coordinates. If multiple coordinates have the same score at the cutoff, the threshold expression can admit more than the budget, and an exact top-k selection needs a way to resolve the tie.

A task can require a new linear classifier even when the rest of the network is pretrained. The classifier then supplies the output probabilities needed to compute the Fisher scores, but at mask selection time its weights are still random. The authors calculate the scores through that randomly initialized classifier and include all of its parameters in the mask whenever they add such a layer. Thus the classifier can learn the new task’s outputs while adaptation of the pretrained part is restricted. A task-specific classifier is part of making the network serve its new objective. FISH itself requires no inserted adaptation modules.

#### Using the same decision over a training interval

For transfer, the interval can be the whole fine-tuning run. Every task starts with the common pretrained weights, chooses a mask for its own training examples, and fits only the selected coordinates and the task’s classifier. The paper describes reusing a chosen mask for over 100,000 iterations in some cases. The significance of a long interval is that the initial cost of estimating the scores and ranking the weights is incurred once, even as the optimizer evaluates many subsequent batches at changing parameter values.

For the main distributed procedure, the central server estimates the scores, selects a mask, and shares that mask among workers. Each worker computes several local updates using the selected coordinates. The server sums what the workers send at a communication step. A worker already has the effect of its own local updates, so the paper considers a return message that supplies the other workers’ contributions. The alternative is for the server to send a full copy of the resulting parameter vector to every worker.

```
C_dense = 2M|θ|
```

Here C_dense is the combined count of parameter values communicated in a dense exchange. M is the number of workers, and |θ| is the number of entries in the server’s parameter vector θ. The factor 2 accounts for both directions. Each worker sends a full set of updates and receives a full set of parameters. This count describes the payload in parameter entries.

```
C_return = M(M − 1)|δᵢ| ≈ M²|δᵢ|
```

C_return is the count of update entries sent from server to workers under the option of forwarding the other workers’ contributions. M is the worker count, i denotes a worker, and δᵢ is its update vector. The notation |δᵢ| counts entries and is assumed to have the same value for every worker. For a sparse update, its effective length is the mask budget k. The subtraction in M − 1 excludes the recipient’s own contribution. The approximation sign ≈ and the square in M² express the scaling discussed in the paper. For a specific small worker count, the exact expression gives the count for this forwarding scheme.

The appendix also considers complementary worker assignments during BERT fine-tuning. The server divides the Fisher-based selection across workers by interleaving entries. That gives each worker a disjoint set of parameters to update and is intended to distribute the Fisher scores roughly evenly. In the appendix’s notation, the interleaving is written as follows.

```
F̂θ⁽ⁱ⁾[n] = F̂θ[Mn + i]
```

Here F̂θ is the server’s Fisher score vector and F̂θ⁽ⁱ⁾ denotes the portion assigned to worker i. The notation [n] picks an entry at position n in that portion. M is the number of workers. The index Mn + i takes the position at stride M, offset by i, in the server’s ordering. Giving different workers different offsets is what makes their assigned entries disjoint. This partition is a separate experimental design from the shared mask used for the main distributed results.

Checkpointing gives the interval a different boundary. The network trains with one mask between checkpoints and can choose another mask after saving. The relevant record holds the positions that could have changed and the corresponding parameter values. Given the state from the start of the interval, those entries supply the changes needed to recover the state at its end. Later intervals can update a different set without increasing the number of positions that each sparse checkpoint has to record. The authors released an implementation of the method under the name FISH.

### Experiments and results

#### Fine-tuning BERTLARGE on GLUE

The transfer experiments ask whether sparse changes to a pretrained network can support several language-understanding tasks while leaving most values at their shared initialization. The authors’ model is BERTLARGE, which has 24 layers, 16 attention heads, and 330 million parameters. They fine-tune separately for each task. The paper reports averages across 5 seeds, so the comparisons reflect repeated runs with different random choices. The test and validation scores serve different purposes within the [GLUE benchmark](https://md.research.elamur.ai/free/en/papers/wang-2018-glue-multi-task-benchmark-analysis/).

The transfer runs last 7 epochs. For each task, the authors search learning rates of 1 × 10⁻⁴, 5 × 10⁻⁵ and 1 × 10⁻⁵, and batch sizes of 8 and 16. The learning rate controls the scale of optimizer steps, while the batch size specifies how many examples contribute to a training step. The paper identifies 5 × 10⁻⁵ and batch size 16 as effective for most tasks, and uses batch size 8 for RTE. Other settings, including the choice of optimizer and sequence length, follow the BERTLARGE configuration from [Hugging Face Transformers](https://md.research.elamur.ai/free/en/papers/wolf-2020-transformers-state-art-natural-language/).

The usual test procedure is to search hyper-parameters on validation results and submit the final checkpoint to the GLUE test server. Diff Pruning is a stated exception. The authors reproduce it from its own code and training settings at 0.5% mask sparsity and submit its best validation checkpoint. BitFit is also reproduced using its own search, over the learning-rate range the paper writes as 1 × 10⁻³ to 1 × 10⁻⁴. These comparisons use empirical reproductions of the methods, with the paper following different checkpoint conventions where specified.

Dense fine-tuning gives the main reference because it allows all the pretrained parameters to change. The fixed random mask gives the closest control for the choice of coordinates. It also restricts the optimizer to a predetermined set and can be assigned the same budget as FISH, while choosing positions at random. BitFit restricts changes by parameter type. Diff Pruning learns which positions to change during training. Taken together, the baselines distinguish a comparison to full training from comparisons among several ways of spending a small update budget.

GLUE combines tasks with different metrics. For MRPC and QQP the authors average F1 and accuracy. F1 combines precision and recall, while accuracy counts the share of correct predictions. For STS-B they average Pearson and Spearman correlation. Pearson correlation measures linear association between predictions and the reference scores, while Spearman correlation measures agreement in their ordering. The other tasks use accuracy. The chart reports the average GLUE test score across these task measures, so its values should be read as benchmark scores.

Average GLUE test score for BERTLARGE fine-tuning FISH achieves a score close to dense fine-tuning and higher than Diff Pruning.

**The numbers**

| System or setting | GLUE score % |
| --- | --- |
| Dense fine-tuning | 82.5 |
| Diff Pruning | 81.5 |
| FISH Mask (this paper) | 82.6 |

The FISH result of 82.6% at a 0.5% update rate is effectively level with the 82.5% for dense fine-tuning in the paper’s interpretation. At the same 0.5% rate, Diff Pruning scores 81.5%, which the authors report as the next-best result among the parameter-efficient baselines. The fixed random mask achieves a substantially lower average. This comparison gives the strongest direct evidence that it matters which existing coordinates are selected. The FISH and random conditions share the restriction that the eligible positions stay fixed.

GLUE test-server limits constrain the comparison to 0.5% for methods whose mask sizes can be set directly. The validation experiments extend the study to other update percentages. On that split the dense reference is 85%, FISH is competitive at 0.5%, and the authors still describe the FISH result at 0.1% as strong. The FISH mask outperforms the random mask across the percentages in the validation comparison. The evidence at 0.1% concerns validation performance, while the headline match to dense fine-tuning concerns the submitted test results at 0.5%.

For storing task adaptations, the practical consequence comes from knowing that the same positions remain eligible during the run. The complete pretrained checkpoint can serve as a common base. A task’s new values and their positions then describe the required modifications to that base, along with any classifier needed for the task. The experiment establishes that those changes can be small in parameter count and still achieve the reported score. The adapter percentage discussed in the related work describes additional parameters and comes from a separate comparison in earlier work.

#### Sending fewer updates during distributed training

The main distributed experiments train a ResNet-34 on CIFAR-10. The architecture is a residual network, from the line of work that learns changes relative to inputs passed along skip connections. The authors use an implementation with optimizations intended to speed convergence. This experiment changes both the task and the starting point compared with GLUE. Workers learn an image classifier from scratch, with an initial period of standard training before they begin exchanging sparse updates. [Deep Residual Learning for Image Recognition](https://md.research.elamur.ai/free/en/papers/he-2015-deep-residual-learning-image-recognition/).

The setup uses 2 workers. They draw independently from the same data distribution and take the same number of steps between communications. The reported schedule has 100 total epochs, with 50 epochs per worker. According to the paper, the researchers also warm up with five epochs of standard training before switching to distributed training. The authors found poor sparse-update performance without this preliminary training. The initial learning-rate search includes 0.4, 0.2, 0.08, 0.04 and 0.02. Learning here starts from scratch in the sense that the task uses no pretrained checkpoint. The mask is applied after the network has already begun learning.

The comparison keeps the overall set of training batches the same across methods. The single-machine reference sees those batches in ordinary training with every parameter eligible. The dense distributed baseline divides work across workers, which update every parameter locally before the server sums their changes. Random-mask distributed training restricts local updates to randomly selected coordinates. The FISH condition uses the centrally selected coordinates. A worker does half as many training iterations as the single-machine reference because it handles only its part of the comparison’s workload.

Communication frequency is varied by changing how many local steps workers take before they exchange updates. The paper reports CIFAR-10 accuracy against a communication budget expressed in equivalents of a full parameter update. Its example counts both values and positions. Under that accounting, updates to 10% of the parameters sent over 5 communication steps have the same cost as communicating a full set of parameters once. This budget makes it possible to compare a method that sends small messages often with a method that sends large messages less often.

Across the communication budgets studied on CIFAR-10, FISH outperforms the random mask. At a 10% update rate it generally provides a better tradeoff between accuracy and communication than dense distributed training. The authors describe an operating point with a budget equivalent to two full copies of the network. FISH gives accuracy comparable to ordinary single-machine training at that budget, while dense distributed training performs appreciably worse. Sparse transmission is especially helpful in this comparison because a given budget can accommodate more exchanges of selected updates than exchanges of complete parameter vectors.

Reducing the mask further changes the outcome. The authors report relatively poor CIFAR-10 performance when FISH makes only 2% of the parameters eligible. A smaller payload has value only if the corresponding optimization problem can still be solved well. In this setup, the stronger result belongs to the larger mask, even though the larger mask spends more communication per exchange. The comparison locates a useful setting for this network and schedule rather than a general minimum update percentage for distributed training.

#### The preliminary distributed GLUE experiment

The appendix reports distributed fine-tuning of BERTLARGE on GLUE for 7 epochs overall and 3.5 epochs per worker. It evaluates the complementary masks described earlier. Both sparse methods use a 0.5% mask setting. The single-machine dense reference reaches 85.0% on average on the GLUE validation set. Over a range of local update counts, FISH remains comparable to the standard and dense distributed baselines, and the random mask performs worse than FISH.

At long delays between exchanges, validation performance begins to fall for both sparse-mask methods. The authors suggest stale gradients as a possible explanation. Dense distributed fine-tuning shows no obvious decline as the number of steps per communication grows over the range they study. That observation motivated the choice to focus the main distributed investigation on training from scratch. It also shows why the fine-tuning experiment and the CIFAR-10 experiment need to be read separately. A communication delay that has little visible cost for dense transfer in the appendix can matter to the comparison under a different starting point and task.

#### Storing changes between checkpoints

The checkpoint experiments use CIFAR-10 and a ResNet-34, with the same general setup as the distributed study and a new search over the initial learning rates 0.4, 0.2, 0.08, 0.04 and 0.02. The baseline is ordinary training. Its reported validation accuracy is 93.9%, with the table caption reporting ±0.1 around that baseline. The sparse conditions compare Fisher-based selection with random selection, and vary the interval for which the positions remain fixed. The authors examine a fresh mask every epoch, every 2 epochs, every 4 epochs, and a mask held fixed through training.

The storage accounting charges for both the new values and the positions that identify them. The paper gives the example of a 32-bit float for each parameter value and a 32-bit integer for each index. If those representations cost the same amount, a sparse checkpoint saves space when the update percentage is below 50%. This comparison is between a dense parameter record and a record for an interval in which only the selected positions could change. Refreshing the mask after the checkpoint allows another interval to modify other coordinates at the same per-checkpoint budget.

With a new FISH mask each epoch and a 10% update rate, the paper reports performance comparable to standard training at 93.9% CIFAR-10 validation accuracy. The corresponding checkpoint storage reduction is a factor of 5. Smaller masks show degradation, and the authors find that validation accuracy tends to decrease as masks are refreshed less frequently. Fixing the mask for the full run degrades performance more clearly. Across the mask sizes reported for checkpointing, Fisher-based choices give higher accuracy than random choices.

This application depends on the number of weights that change *between saves*. In fine-tuning, an attractive property is being able to reconstruct a final task variant from a common pretrained state and a small set of changes. In checkpointing a single run, the relevant earlier state can be the preceding checkpoint. A later save can refer to a different set of updated coordinates without undermining the space savings for the earlier interval. The result demonstrates how a shorter period of fixed eligibility can remain valuable when a whole-run mask constrains learning too much.

### What the ablations show

#### Recorded labels and predicted label probabilities

The direct comparison of Fisher estimates uses BERTLARGE transfer on GLUE with a 0.5% mask. The authors compare masks constructed by averaging over the network’s output distribution with masks constructed from the recorded labels. Both have an average GLUE validation score of 82.5 in this comparison. That value is for the validation ablation. The dense result with the same digits in the main fine-tuning comparison refers to the GLUE test score.

The equality of the reported averages supports the cheaper empirical calculation for this use. Taking the gradient for the recorded label avoids marginalizing over outputs and avoids the need to sample several candidate labels from the network’s predictions. Earlier work discussed in the paper had shown difficulties with the empirical Fisher when used to precondition an optimizer, which means using it to rescale or redirect the optimizer’s steps. Here the calculation has the more limited role of choosing which parameter positions the optimizer may use.

Two masks can yield the same average validation score while choosing different coordinates. The ablation therefore establishes that both approximations supply an effective ranking in the tested setup. It leaves open how much the selected positions overlap, whether their rankings change with another initialization, and whether the two versions behave similarly at more restrictive update budgets. The choice of the empirical Fisher for the remaining experiments is a choice based on the similar reported performance and lower cost of obtaining the score.

#### How many examples the ranking needs

The sample-count ablation likewise uses GLUE transfer. With a sample count of 0, the experiment substitutes the fixed random mask. The zero point is thus a control condition in which no example contributes to the coordinate choice. For positive sample counts, the authors estimate Fisher scores from that many inputs. Training still uses the task data in the usual way. The count being varied is the amount of evidence the mask constructor sees before fitting begins.

GLUE validation performance stays fairly stable across many sample counts. The authors report that 32 samples suffice to reach the highest performance seen in the comparison. This suggests that a useful ordering can be estimated without processing the whole training set to create the mask. The paper uses 1024 examples for most experiments and 256 for distributed training, where it chooses the lower count for efficiency. The ablation demonstrates an economical choice in one transfer setting, and the larger counts are the choices used in the broader evaluation.

The measured outcome is downstream validation performance. A stable score can arise even when the exact order of intermediate-ranked parameters changes across samples. If different sampled estimates identify groups of coordinates that serve the task equally well, their final task scores may be similar. The ablation consequently gives evidence about the amount of data needed to select a useful mask. Detailed agreement among parameter rankings is a separate question.

#### Selection, duration and assignment

The random-mask comparisons test how much of the result comes from restricting updates alone. In GLUE transfer, the random and Fisher-based conditions can be given the same budget and the same fixed-mask rule. FISH performs better, so the advantage is tied to the selection procedure in that comparison. The same ordering appears in distributed and checkpoint training. These experiments show that a small trainable subset can be more effective when it is chosen using task gradients. They leave the ranking open to comparison with other ways of estimating importance.

Varying the refresh interval in checkpoint training tests a different decision. Each refresh allows another estimate to be computed at the current parameters and gives the optimizer access to new coordinates. A mask refreshed each epoch yields the strongest reported checkpoint result. Less frequent refreshes tend to lower accuracy, and retaining one mask throughout training gives a clearer drop. The comparison gives evidence about how long a selection remains useful during learning from scratch, though it does not isolate how much improvement comes from updated Fisher scores and how much comes from expanding the set of positions that can move over the run.

The preliminary distributed GLUE study examines the assignment of positions across workers. Complementary masks allow more distinct coordinates to be represented across workers at a given local assignment size. They also take away each worker’s opportunity to update coordinates assigned to another worker. The authors report that splitting the mask was detrimental compared with sharing it. The result establishes a preference in their experiments for letting workers apply their local examples to a common selection. It leaves the relative merits of these assignments open under other data partitions and communication schedules.

The warmup observation concerns the timing of selection in training from scratch. On CIFAR-10, the authors found poor sparse-update performance when distributed training began without 5 epochs of standard training. Beginning with dense updates lets every coordinate move while the initial representation is developing. The eventual sparse interval then starts from a state that already reflects training data. This observation helps explain the setup of the main distributed experiment. The formal Fisher-estimator and sample-count ablations take place during transfer learning and do not measure the sensitivity of the distributed result to different warmup lengths.

### Limitations

#### Limits stated by the authors

The authors acknowledge that accuracy suffers when the mask is made too small in some settings. Their CIFAR-10 distributed experiments report poor performance at a 2% update rate, and the checkpoint experiments also show degradation at lower update percentages. They propose studying other measures of parameter importance as a way to improve this regime. The small update share that works for GLUE transfer is evidence for that adaptation task. ResNet-34 training on CIFAR-10 calls for a larger set of trainable coordinates in the comparisons reported.

The authors also found it difficult to choose a mask that could remain fixed throughout training from scratch. They make the checkpoint experiment work by permitting refreshes and improve the distributed setup with a dense warmup. In discussing the fixed-mask results, they connect the question to earlier work on whether it is possible to identify sparse trainable subnetworks before training. Their own results concern sparse updates within a dense network, so they leave the question of identifying a trainable sparse subnetwork for future work.

Another stated limit is the test-server restriction in the GLUE experiment. Only the 0.5% mask setting could be reported on the test split for methods with controllable budget. The validation curves show what happens as the eligible share varies, but the scope of the submitted comparison is narrower. The authors also omit a direct adapter comparison because the adapters add trainable parameters. The result for Diff Pruning, the reproduced BitFit baseline and the comparison with dense fine-tuning address the alternatives that operate on existing parameters.

The main distributed experiments assume that all workers draw from the same data distribution and take the same number of steps between exchanges. The authors suggest that FISH might carry over to federated learning, where workers can have different datasets and training schedules, and explicitly leave tests in such settings for future work. They also raise the possibility of sharing masks across practitioners and tasks, drawing a parallel to the distribution of task-specific adapter modules. That proposal is separate from the demonstrated use of each task’s own examples to select its mask. [AdapterHub](https://md.research.elamur.ai/free/en/papers/pfeiffer-2020-adapterhub-framework-adapting-transformers/).

#### Limits that follow from the setup

The Fisher criterion is local to the network at the time of scoring. Both the parameters and the examples used for the estimate shape the ranking. When the optimizer moves, a coordinate that was sensitive earlier can become less useful, and another can become more useful. The success of reuse on GLUE shows that the original ranking remains adequate in those runs. The checkpoint refresh results show a setting where the freedom to reconsider the ranking is valuable. The diagonal approximation also leaves out interactions among weights, so the highest-scoring individual coordinates are a heuristic choice for a joint training problem.

A high Fisher score measures sensitivity in the chosen coordinate system. It gives no direct estimate of how much a coordinate will have to change to reach a good solution, or whether another selection could reach the same scores at a lower budget. The lower scores of random masks are evidence that the Fisher ranking captures useful information. Establishing that the resulting mask is optimal would require evidence beyond a comparison with random selection, architecture-defined biases and a mask learned by a different training procedure.

The study evaluates restrictions on parameter changes and the corresponding storage or transmission of those changes. The network still uses its dense set of weights in forward computation, and the Fisher score construction itself uses back-propagation. A small update percentage alone therefore gives no estimate of wall-clock speedup or inference memory. Compared with a procedure that continually learns a mask, choosing positions in advance removes the need to optimize the mask during the interval. The cost of scoring, computing the training steps and representing changes remains relevant to the total cost of a particular implementation.

The communication results use equivalent full updates as a budget and are obtained with 2 workers. The return-message accounting depends on the number of workers and how a server conveys the other contributions. A different server design could aggregate or encode those contributions differently. Larger deployments would also need to account for how often masks are distributed, and for the time spent waiting or sending messages. The experiments establish an accuracy–payload comparison under their protocol. They leave elapsed training time and scaling to other worker counts open.

The checkpoint reduction concerns a representation of parameter values. Reconstruction requires a known starting state for the interval. With a sequence of sparse records, the referenced states or their accumulated changes must be available. The experiments demonstrate how to reduce the weight payload and measure the resulting accuracy. A complete restart checkpoint in a training system may also need other state from the training procedure. The paper’s factor of 5 applies to the parameter storage comparison it describes.

### What came after

#### From individual coordinates to other forms of adaptation

The later citations place FISH within a broader effort to reduce the cost of adapting pretrained networks. FISH spends its update budget on selected scalar coordinates of existing weights. Other papers in that discussion focus on distinct units of adaptation. The titles identify several of those units, and the citation establishes a connection to the fixed-mask work. The details of whether a later method adopts the Fisher ranking require evidence about its procedure.

Quantization is the focus named by **QLoRA**, which studies efficient fine-tuning of quantized large language networks. Its connection is through the cost of adapting a pretrained network. Quantization concerns how numerical values are represented, while the FISH result concerns which coordinates change. A citation between these studies puts both forms of efficiency in view without establishing that the quantized method selects weights by Fisher information. [QLoRA](https://md.research.elamur.ai/free/en/papers/dettmers-2023-qlora-efficient-finetuning-quantized-llms/).

**PiSSA** names principal singular values and singular vectors as its basis for adaptation. These are components associated with a weight matrix, giving the study a different unit of description from FISH’s individual coordinate scores. **RoCoFT** similarly identifies row and column updates as its organizing choice. These citations show how papers about adaptation at the level of matrix components, rows and columns sit alongside the earlier work on a fixed set of scalar positions. [PiSSA](https://md.research.elamur.ai/free/en/papers/meng-2024-pissa-principal-singular-values-singular/) and [RoCoFT](https://md.research.elamur.ai/free/en/papers/kowsher-2025-rocoft-efficient-finetuning-large-language/).

**Let’s Focus on Neuron** studies supervised fine-tuning at the level of neurons. **Let the Expert Stick to His Last** studies expert-specialized fine-tuning for networks with sparse architectures. In FISH the sparsity is in the update mask applied to a dense network. In the latter title, sparsity describes the architecture in which the adaptation problem is posed. The two studies bring the question of where adaptation takes place to larger architectural units than the individual parameter scored by FISH. [Let’s Focus on Neuron](https://md.research.elamur.ai/free/en/papers/xu-2025-let-s-focus-neuron-neuron/) and [Let the Expert Stick to His Last](https://md.research.elamur.ai/free/en/papers/wang-2024-let-expert-stick-his/).

#### New settings for efficient fine-tuning

The paper on **few-shot parameter-efficient fine-tuning** frames its study around a comparison with in-context learning when only a few examples are available. This is a different use of a small sample from the FISH sample-count ablation. In that ablation, the small sample estimates which weights can be changed, while task training still uses its normal dataset. In the later title, the limited-example condition describes the overall adaptation setting. [Few-Shot Parameter-Efficient Fine-Tuning](https://md.research.elamur.ai/free/en/papers/liu-2022-few-shot-parameter-efficient-fine/).

**LongLoRA** brings efficient fine-tuning to networks that handle long contexts. **BLOOM+1** addresses the addition of language support for zero-shot prompting. Both cite FISH while posing adaptation problems with different objectives from BERTLARGE classification on GLUE. The first names context length as a central concern. The second names language coverage and subsequent prompting. Their citations establish that the sparse-update paper entered the discussion around these settings, while the titles establish each later paper’s stated application. [LongLoRA](https://md.research.elamur.ai/free/en/papers/chen-2023-longlora-efficient-fine-tuning-long/) and [BLOOM+1](https://md.research.elamur.ai/free/en/papers/yong-2023-bloom-1-adding-language-support/).

**Editing Models with Task Arithmetic** points to another question about task-specific changes. FISH asks which coordinates should be eligible while a task is being learned. The later title asks what can be done with task changes as objects of arithmetic in an editing procedure. The connection is the interest in parameter changes associated with a task. The citation alone leaves open whether the later experiments use FISH masks or compare against them. [Editing Models with Task Arithmetic](https://md.research.elamur.ai/free/en/papers/ilharco-2022-editing-models-task-arithmetic/).

#### Surveys and design studies

The later survey and guide titles place FISH in broader accounts of efficiency. **Efficient Methods for Natural Language Processing** surveys efficiency across the field, while **Scaling Down to Scale Up** and **Parameter-Efficient Fine-Tuning for Large Models** have a more specific focus on parameter-efficient adaptation. **Parameter-Efficient Fine-Tuning Design Spaces** frames the subject in terms of decisions available when designing an adaptation method. For FISH, those decisions include choosing existing parameters, ranking them with task data and fixing their eligibility for a defined interval. The citations document the paper’s presence in those later accounts. [Efficient Methods for Natural Language Processing](https://md.research.elamur.ai/free/en/papers/treviso-2023-efficient-methods-natural-language-processing/), [Scaling Down to Scale Up](https://md.research.elamur.ai/free/en/papers/lialin-2023-scaling-down-scale-up-guide/), [Parameter-Efficient Fine-Tuning for Large Models](https://md.research.elamur.ai/free/en/papers/han-2024-parameter-efficient-fine-tuning-large/) and [Parameter-Efficient Fine-Tuning Design Spaces](https://md.research.elamur.ai/free/en/papers/chen-2023-parameter-efficient-fine-tuning-design/).

## Cite

Cite as Yi-Lin Sung, Varun Nair and Colin Raffel. 2021. Training Neural Networks with Fixed Sparse Masks. arXiv (Cornell University).

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

```bibtex
@misc{sung2021training,
  title = {{Training Neural Networks with Fixed Sparse Masks}},
  author = {Yi-Lin Sung, Varun Nair and Colin Raffel},
  year = {2021},
  doi = {10.48550/arxiv.2111.09839},
  eprint = {2111.09839},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2111.09839}
}
```

> 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)
