---
title: "Measuring the Instability of Fine-Tuning — Du 2023"
description: "Du and Nguyen compare ways to measure fine-tuning instability, from variation in test scores to changes in predictions and hidden representations."
canonical: "https://research.elamur.ai/free/en/papers/du-2023-measuring-instability-fine-tuning/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · **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/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/du-2023-measuring-instability-fine-tuning/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / Measuring the Instability of Fine-Tuning

# Measuring the Instability of Fine-Tuning

Paper · 2023 · Yupei Du and Dong Nguyen

**Authors:** [Yupei Du](https://md.research.elamur.ai/free/en/authors/yupei-du/) and [Dong Nguyen](https://md.research.elamur.ai/free/en/authors/dong-nguyen/) · **Year:** 2023 · **Venue:** Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **5** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/du-2023-measuring-instability-fine-tuning/cited-by/) · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2023.acl-long.342/)
- [PDF](https://aclanthology.org/2023.acl-long.342.pdf)
- [DOI 10.18653/v1/2023.acl-long.342](https://doi.org/10.18653/v1/2023.acl-long.342)

## Summary

Repeat the same fine-tuning recipe with a different random seed and the resulting classifiers can behave differently. A common way to measure this variation is to compare their overall test scores. That approach can tell us whether accuracy or F1 is reproducible, but it can miss changes that matter for individual examples. Classifiers can get the same number of answers right while getting different examples right. Even when they assign the same labels, they can express different degrees of confidence or develop different internal representations. Du and Nguyen ask how to measure these forms of instability and how to tell whether a measure is doing its job. Their experiments study [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/).

The paper compares standard deviation of performance with six other measures. Some compare the labels that different runs assign to the same inputs. Another compares their full class-probability distributions. The remaining measures compare hidden representations, the numerical descriptions that successive layers produce for each input. The authors fine-tune BERT and RoBERTa on RTE, MRPC, and CoLA, then check whether measures that examine similar things agree, whether representation measures can distinguish failed from successful training runs, and whether the results hold up when the test examples change. Linear centered kernel alignment and orthogonal Procrustes distance distinguish failed from successful runs as expected. Singular vector canonical correlation analysis misses the distinction in lower layers, despite agreeing with the other representation measures in a separate test.

The choice of measure changes the verdict on some attempts to stabilize training. On the study’s MRPC test split, the standard deviation of BERT’s F1 is 0.7 with Mixout and 0.8 with Re-init, on the paper’s reporting scale. That comparison favors Mixout. The corresponding class-probability instability scores are 4.8 and 3.9, which favor Re-init. Label agreement and the comparison of final-layer representations also favor Re-init in this case. Across the experiments, measures that examine similar information tend to agree, while agreement across levels tends to fall when runs are already relatively stable. The authors therefore recommend measuring instability at several levels. When computation is limited, they suggest using a prediction measure and a representation measure to cover different kinds of variation.

## Deep dive: Measuring the Instability of Fine-Tuning

Du and Nguyen compare ways to measure fine-tuning instability, from variation in test scores to changes in predictions and hidden representations. · about 37 minutes to read

**In this deep dive**

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

### The problem and its context

#### What changes when a run is repeated

Fine-tuning starts from weights learned during pretraining and adapts them to a task with its own examples and labels. Researchers can keep the starting checkpoint, task, data, and training settings fixed while changing the random seed. The seed governs random choices made during the run, so a change can lead training along a different path even when the recipe stays the same. In the setting Du and Nguyen study, the question is what varies across the resulting classifiers. A report that characterizes this variation helps readers judge how well a result would hold up if the experiment were repeated. The paper places this question within research on [language models and pretraining](https://md.research.elamur.ai/free/en/topics/language-models/).

The authors trace the observation back to BERT. Its original study reported sensitivity to seed choice during fine-tuning, and subsequent studies found instability with other pretrained encoders, including RoBERTa. The issue received particular attention on small downstream datasets, where earlier work had found larger differences between runs. This matters when comparing training recipes. If two recipes are each sensitive to the seed, the result of a comparison can depend on which runs were carried out. A proposed stabilization method is also hard to assess if its advantage depends on which feature of the trained classifiers the researcher compares. The paper’s starting point is the line of work that followed [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) and [RoBERTa](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/).

Earlier studies generally summarized instability through the standard deviation of a task score. To calculate it, the researcher first obtains a score for each run, then looks at how much those scores are spread out. The result is well matched to a question such as how much accuracy varies across seeds. The difficulty begins when the same figure is used to make a broader claim about reproducibility. Accuracy counts correct decisions across the dataset. Once that count has been made, the score has discarded the identities of the examples each run classified correctly. F1 likewise condenses predictions into an aggregate value, leaving many different sets of decisions compatible with the same score.

The paper illustrates the distinction with two classifiers that each reach 0.5 accuracy. Each is correct on the portion of the test set where the other is wrong. The task scores have no spread, even though the predicted labels differ on every example. The example explains why identical performance scores can coexist with complete disagreement about the inputs being evaluated. The converse distinction matters too. If the classifiers assign the same labels, a label-comparison measure will record agreement even if their probability distributions differ substantially. Moving from one level to another changes what counts as an observable difference.

Hidden representations introduce another level. As an input passes through a classifier, each layer produces numerical activations. These activations are part of the computation that leads to the final prediction. Different runs can produce different activations while arriving at the same answer. The authors connect that possibility to overparameterization, which leaves room for different internal representations to support the same observed behavior. Comparing representations asks whether repeated training organizes a common set of inputs similarly inside the classifier. Comparing predictions asks what happens at the output. Both questions arise in [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/).

#### Why earlier explanations matter to the choice of measure

The paper describes several accounts of why fine-tuning can become unstable. One concerns catastrophic forgetting, the loss of information acquired before the current training task. Preserving pretrained weights or behavior could help if such loss contributes to instability. The authors also note that this explanation was disputed. Other accounts focused on whether Adam’s updates include bias correction, whether training runs are long enough, and whether upper layers carry information too specialized to the pretraining task. These accounts put the emphasis on different parts of the process, from the optimization schedule to the suitability of the starting weights. The broader problem of retaining earlier learning is described in the work on [catastrophic forgetting](https://md.research.elamur.ai/free/en/papers/kirkpatrick-2016-overcoming-catastrophic-forgetting-neural-networks/).

The stabilization methods the authors revisit reflect those explanations. Mixout and weight decay toward pretrained weights try to preserve aspects of the starting point. Layer-wise learning rate decay changes how readily different parts of the network move during training. Re-initialization deliberately replaces the starting weights in upper layers. The paper also mentions methods based on entropy regularization, co-distillation, and clipping gradient norms by component. Those examples show that previous work had considered interventions at several points in training. Du and Nguyen select established methods for comparison so the study can ask whether a claim of improved stability survives a change in measurement.

That question requires a meaning for validity. In measurement theory, validity concerns how well a measure captures the property it is intended to capture. An average accuracy and a measure of instability can use exactly the same runs, yet the average answers how well those runs perform overall. To study variation, one needs information about how the runs differ. There is also no authoritative instability score against which the authors can check the alternatives. Their response is to specify observable patterns that a plausible measure should pick up, and then to examine how the different measures behave.

There was already related work on comparing predictions across runs and on comparing neural representations. The paper connects disagreement between classifiers to studies of prediction churn and jitter. It draws on prior work using Fleiss’ kappa to examine the agreement of classifiers and on research that compared representations with correlation, alignment, and distance measures. An earlier evaluation of representation distances asked whether they react to important changes and ignore changes judged irrelevant. Du and Nguyen extend the assessment to prediction as well as representation measures and frame their comparisons around validity. Their framework brings the comparison of internal behavior into a study of [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) and experimental reproducibility.

### The method, step by step

#### What stays fixed and what gets compared

The basic unit of the study is a group of runs. Each run starts from the same pretrained checkpoint under the same fine-tuning settings, apart from the seed. Different training methods form separate groups. Once the runs are ready, the authors present the same evaluation inputs to each classifier in a group. This shared set matters because an example’s predicted label, class probabilities, and hidden activations can then be compared directly across runs. For task performance, the classifier’s answers are compared with reference labels. For agreement, the classifiers’ answers are compared with one another.

The authors organize the measurements by the kind of information they retain. Standard deviation uses a single performance score per run. Pairwise disagreement and the instability version of Fleiss’ kappa use one predicted label per input per run. Pairwise Jensen–Shannon divergence uses the probability distribution over all possible labels for each input. The representation measures use activations taken at corresponding layers. The same collection of runs can therefore be examined at several levels, from the most compressed account of its behavior to comparisons that retain the structure of the layer activations.

Measuring instability across repeated fine-tuning runs The steps in order.

The flow describes the main training and evaluation procedure. A separate experiment on failed runs uses the final checkpoint because the outcome of interest is how training ends. The later resampling analyses also change what enters the measurement without requiring new training each time. In one analysis the authors keep the classifiers fixed and vary the examples used to measure them. In another they keep the evaluation setting fixed and resample the classifiers. These procedures answer different questions about the results. The authors release the implementation in a repository named `instability_measurement`.

#### Preparing the runs and choosing checkpoints

The main experiments use the large variants of BERT and RoBERTa available through Hugging Face Transformers. The authors use a batch size of 16, so updates are based on batches of that size. They set the dropout rate to 0.1 and the learning rate to 2 × 10−5. Dropout introduces random omissions during training. Adam with bias correction supplies the updates. The learning rate rises linearly over the first 10% of training steps and then decreases linearly. This schedule and the use of bias correction are part of the reference recipe against which the changes are evaluated. The software and regularization method come from [Transformers](https://md.research.elamur.ai/free/en/papers/wolf-2020-transformers-state-art-natural-language/) and [Dropout](https://md.research.elamur.ai/free/en/papers/srivastava-2014-dropout-simple-way-prevent/).

The authors train for five epochs, with 20 seeds in the main setup unless an experiment specifies a different protocol. An epoch is a pass through the training data. The seed provides one way to repeat the procedure under a new set of random choices while leaving the experiment comparable. Runs are kept separate through training. Averaging the weights or merging the predictions ahead of evaluation would remove distinctions that the instability measures are meant to observe. For each run, the authors retain the checkpoint that gives the best performance on the validation split.

Because the authors lack access to the GLUE test data, they divide each task’s original validation data into two nearly equal parts. One becomes the new validation split used to choose checkpoints. The other becomes the study’s test split and is used to evaluate the selected checkpoints. “Test” in the results thus refers to the authors’ held-out portion of the original validation data. The data are downloaded and processed with Hugging Face Datasets. The separation preserves the distinction between choosing a trained checkpoint and evaluating it on examples held aside for that purpose. The datasets come from [GLUE](https://md.research.elamur.ai/free/en/papers/wang-2018-glue-multi-task-benchmark-analysis/) and are processed using [Datasets](https://md.research.elamur.ai/free/en/papers/lhoest-2021-datasets-community-library-natural-language/).

#### From test scores to individual predictions

Standard deviation, abbreviated SD, asks how far the per-run task scores usually spread around their mean. The task determines what goes into the calculation. The authors use accuracy on RTE, F1 on MRPC, and the Matthews correlation coefficient on CoLA. A performance table can therefore put a mean and a standard deviation side by side. The mean estimates the level of task performance in the group. The standard deviation describes the spread of that performance across runs. Both concern the same task score, and the spread can be low for a group with either high or low mean performance.

Pairwise disagreement begins with the identity of each test example. For a given pair of runs, the authors count whether the two labels differ on each input. They repeat this across all pairs and average the results. Because the comparison uses predicted labels as they stand, disagreement can register a difference even when the two classifiers have the same performance score. Agreement can also register on an example that both classifiers get wrong. What the measure tracks is whether the label would change if one run were used in place of another.

```
I_pwd = [2 / (n m (m − 1))] ∑ᵢ₌₁ᵐ ∑ⱼ₌ᵢ₊₁ᵐ ∑ₖ₌₁ⁿ 𝟙[ŷᵢₖ ≠ ŷⱼₖ]
```

Here `I_pwd` is pairwise disagreement, `m` is the number of runs, and `n` is the number of test examples. The indices `i` and `j` identify runs, and `k` identifies a test input. The symbol `ŷᵢₖ` is the label predicted by run `i` on input `k`, with `ŷⱼₖ` defined in the same way for run `j`. The symbol `≠` asks whether the labels differ. The indicator `𝟙` contributes one for a difference and zero otherwise. The sums visit each test input for each unordered pair of runs. The factor involving `2` and `m − 1` averages over those pairs, and the factor involving `n` averages over inputs.

Fleiss’ kappa treats the classifiers as raters who each give a categorical judgment about a common input. It measures agreement after accounting for the agreement expected from the frequencies with which the labels are used. This matters because a group that uses one label very frequently can agree often even when the classifiers’ assignments to individual examples have little in common. Raw disagreement describes how frequently labels change. The correction in kappa asks how much agreement there is beyond what the overall use of labels would predict.

The appendix uses a separate notation for the kappa calculation. It begins by grouping, within each example, the predictions that assign the same class. The observed agreement on that example is the share of pairs belonging to the same group.

```
pᵢ = [∑ⱼ₌₁ᵏ C(xᵢⱼ, 2)] / C(m, 2)
```

Here `pᵢ` is the agreement proportion for instance `i`, `k` is the number of classes, and `j` indexes those classes. The count `xᵢⱼ` is the number of runs that assign class `j` to example `i`. The expression `C(xᵢⱼ, 2)` counts unordered pairs among that many runs. The sum adds the pairs from each class, and the denominator `C(m, 2)` counts all unordered pairs among the `m` runs. Every run assigns a class, so the counts across classes exhaust the group for each example.

The next step averages this agreement across the test set. In terms of the counts, the paper writes the average as follows.

```
pₐ = [∑ᵢ₌₁ⁿ ∑ⱼ₌₁ᵏ xᵢⱼ² − mn] / [mn(m − 1)]
```

The symbol `pₐ` is the average observed agreement. The indices `i` and `j` again refer to examples and classes. The values `n`, `k`, and `m` give the numbers of examples, classes, and runs. Squaring `xᵢⱼ` counts ordered selections within a class, including a run paired with itself. Subtracting `mn` removes those self-pairings across all examples. The denominator counts the possible ordered pairings of distinct runs across the same test set.

The expected agreement term uses global class frequencies. For each class, the authors pool how frequently it was predicted across all examples and runs. The square of that share gives the class’s contribution to expected agreement.

```
pₑ = ∑ⱼ₌₁ᵏ [(1 / (nm)) ∑ᵢ₌₁ⁿ xᵢⱼ]²
```

Here `pₑ` denotes expected agreement under the correction. The inner sum goes over the `n` inputs indexed by `i`. Dividing by `nm`, the total number of predictions from `m` runs on `n` inputs, gives the share of predictions assigned to class `j`. The outer sum combines the squared shares across all `k` classes. The resulting term reflects the pooled preference for each label and uses no reference labels.

```
I_κ = 1 − (pₐ − pₑ) / (1 − pₑ)
```

The symbol `I_κ` is the instability score based on Fleiss’ kappa, `pₐ` is observed agreement, and `pₑ` is expected agreement. The fraction is Fleiss’ kappa itself. Its numerator gives the observed agreement beyond the expected agreement, and its denominator scales that value by the possible improvement up to perfect agreement. The leading `1 −` reverses the direction so that higher values correspond to greater instability, as with pairwise disagreement. The correction gives the two label-based measures different interpretations even when they turn out to rank the runs similarly.

Pairwise Jensen–Shannon divergence, abbreviated pairwise JSD, keeps the full distribution of probabilities over classes. Two runs may select the same class but give it different probabilities, or they may put different amounts of probability on the alternatives. They agree under a label test and can still be separated by JSD. The authors compute this divergence on a common input for each pair of runs, then average the comparisons in much the same way as they average label disagreements.

```
I_JSD = [2 / (n m (m − 1))] ∑ᵢ₌₁ᵐ ∑ⱼ₌ᵢ₊₁ᵐ ∑ₖ₌₁ⁿ JSD(pᵢₖ ∥ pⱼₖ)
```

Here `I_JSD` is the prediction instability score, `m` counts runs, and `n` counts test inputs. The indices `i` and `j` specify the two runs, while `k` specifies a shared input. The vectors `pᵢₖ` and `pⱼₖ` contain the class probabilities for that input from those runs. `JSD` is Jensen–Shannon divergence, and `∥` separates the two distributions being compared. The sums and prefactor give equal weight to the inputs and unordered pairs. The calculation measures how much the distributions differ, so a score can reflect changed confidence even where the same label wins.

#### Comparing the representations inside a layer

The representation measures start with a matrix for each run and layer. A row is the layer’s representation of a test example, with the rows in the same order across runs. The columns give the activations of the layer’s units. Before comparing runs, the authors center the matrices across examples. Centering subtracts each column’s mean from its values, so the matrix records how activations vary about their average across the evaluation inputs. Each measure then assigns a distance to the two centered matrices from a pair of runs.

```
Iˡ = [2 / (m(m − 1))] ∑ᵢ₌₁ᵐ ∑ⱼ₌ᵢ₊₁ᵐ dˡᵢⱼ
```

Here `Iˡ` denotes instability at layer `l`, `m` is the number of runs, and `i` and `j` index runs trained with different seeds. The distance `dˡᵢⱼ` comes from applying one of the representation measures to that pair at layer `l`. The restricted inner sum includes each unordered pair once, and the prefactor gives their average. The result is a separate instability value at each layer for each measure. This preserves depth information, allowing a comparison of lower and upper layers within the same group of runs.

Singular vector canonical correlation analysis, or SVCCA, begins by finding the main directions of variation in each matrix through singular-value decomposition. The authors retain directions that explain 99% of the representation and project the data onto those directions. Canonical correlation analysis then finds combinations of the retained directions that make the projected activations agree across the shared examples. The initial reduction is intended to keep noise from dominating the comparison. It also makes the meaning of the resulting distance depend on which directions survive that reduction. The method comes from [SVCCA](https://md.research.elamur.ai/free/en/papers/raghu-2017-svcca-singular-vector-canonical-correlation/).

The canonical correlation calculation can first be understood for the centered matrices before the preliminary reduction. It searches for a direction in each representation, projects onto those directions, and correlates the resulting values across examples. Successive projections within a representation are constrained to be orthogonal, so the calculation can find distinct pairs of shared directions.

```
ρₖ = max over wᵢₖ, wⱼₖ of corr(Mᵢˡwᵢₖ, Mⱼˡwⱼₖ)
     subject to Mᵢˡwᵢₖ₁ ⟂ Mᵢˡwᵢₖ₂ and Mⱼˡwⱼₖ₁ ⟂ Mⱼˡwⱼₖ₂ for k₁ < k₂
```

Here `ρₖ` is the canonical correlation for direction index `k`. The matrices `Mᵢˡ` and `Mⱼˡ` are the centered representations at layer `l` of runs `i` and `j`. Each has `n` rows for the examples and `e` columns for the units before dimensionality reduction. The vectors `wᵢₖ` and `wⱼₖ` are the projection directions in their respective representations. Adjacency of a matrix and vector means matrix–vector multiplication. The operation `corr` correlates the projected values, and `max` selects the strongest correlation under the constraints. The indices `k₁` and `k₂` refer to distinct directions, with `<` putting them in order and `⟂` requiring their projected values to be orthogonal within each representation.

```
d_CCA = 1 − (1 / e) ∑ₖ₌₁ᵉ ρₖ
```

Here `d_CCA` denotes dissimilarity from canonical correlation analysis. The index `k` runs through the `e` canonical correlations, and `ρₖ` is the correlation for the corresponding pair of directions. Their mean summarizes how well the representations agree after the projections. Subtracting that mean from one puts the result in the distance direction. For SVCCA, the same comparison is carried out in the subspaces retained by singular-value decomposition, using the canonical correlations from those subspaces. The pairwise distances then contribute to the layer average.

Orthogonal Procrustes distance, abbreviated OP, asks how close the representations can be brought by an orthogonal transformation of one set of coordinates. Two runs can organize the examples similarly while using different coordinate directions in their activations. Allowing an orthogonal transformation makes the comparison insensitive to a change of coordinates of that kind. The optimization aligns one representation to the other, then measures the remaining difference. The transformation preserves lengths and angles in the space it acts on.

```
min over R of ‖Mⱼˡ − MᵢˡR‖²_F, subject to RᵀR = I
```

Here `Mᵢˡ` and `Mⱼˡ` are the centered matrices for runs `i` and `j` at layer `l`. The matrix `R` transforms the columns of `Mᵢˡ`, and `ᵀ` denotes transposition. The requirement `RᵀR = I`, with `I` the identity matrix, defines the orthogonality constraint. The squared Frobenius norm `‖·‖²_F` adds the squares of all entries of the difference matrix. The minimization chooses the transformation that makes that difference as small as possible.

The authors use the closed-form Procrustes comparison with normalization by the Frobenius norms of the representations. Written with the normalization absorbed into the matrices, the score is as follows.

```
d_OP = 1 − ‖AᵀB‖_*
```

Here `d_OP` is the distance, and `A` and `B` are the centered representations `Mᵢˡ` and `Mⱼˡ`, each divided by its own Frobenius norm. The Frobenius norm is the square root of the sum of squared entries. The operation `AᵀB` forms the cross-product of the normalized matrices. The nuclear norm `‖·‖_*` sums the singular values of that product. This term expresses the similarity available after alignment with the normalized representations. Taking its difference from one orients the measure so that a greater residual difference corresponds to greater instability.

Linear centered kernel alignment, or Linear-CKA, compares how a layer relates examples to one another. Each centered representation gives a pattern of inner products between pairs of inputs. If the two runs produce similar patterns, the alignment is high. This view makes the relationship between examples central. The calculation can be expressed using products of the feature matrices and normalized by how strongly each representation aligns with itself. The authors use one minus the resulting similarity as their distance. The measure is described in [Similarity of Neural Network Representations Revisited](https://md.research.elamur.ai/free/en/papers/kornblith-2019-similarity-neural-network-representations-revisited/).

```
d_CKA(Mᵢˡ, Mⱼˡ) = 1 − ‖(Mᵢˡ)ᵀMⱼˡ‖²_F /
                         (‖(Mᵢˡ)ᵀMᵢˡ‖_F ‖(Mⱼˡ)ᵀMⱼˡ‖_F)
```

Here `d_CKA` is the distance between the centered matrices for runs `i` and `j` at layer `l`. The superscript `ᵀ` transposes a matrix. The numerator is the squared Frobenius norm of the cross-product of the two matrices. Each denominator factor is the Frobenius norm of a matrix multiplied by its own transpose in the order shown, with the transpose on the left. The two factors normalize the cross-product using the scale of the within-representation products. The `1 −` converts agreement to distance. As with OP and SVCCA, averaging across pairs gives the instability of that layer for the group.

#### Checking what a measure responds to

The validity framework uses two kinds of evidence. Convergent validity concerns agreement between measures that should be related. The authors calculate Pearson’s correlation between layerwise profiles produced by different representation measures for the same group of runs. A high correlation means layers that score high under one measure also tend to score high under the other. The comparison uses the profile over depth as its set of observations. Each prediction measure gives only one scalar per task and encoder combination, leaving too few separate observations for the same direct exercise. Prediction measures are compared later through rankings and resampling.

The authors also devise two tests inspired by concurrent validity. The first uses runs that differ in whether training succeeds. Earlier work found vanishing gradients in failed runs, meaning the signal that would update weights had become very small. With all runs starting from the same pretrained weights, relatively little updating gives a reason to expect the failed runs’ representations to remain closer to one another. A measure that separates the two groups in that direction accords with the expectation. The test focuses on representations because that expectation arises from how much the network changes internally.

To obtain enough failed runs, the authors use learning rates of 5 × 10−5 for BERT and 3 × 10−5 for RoBERTa, higher than in the main protocol. They keep the last checkpoint for each of the 20 seeds. A run counts as failed when its final accuracy is at or below that of a classifier that always predicts the majority label. For each group, the authors obtain 9–13 failures out of 20 runs. They compute representation instability separately within the failed and successful groups. The comparison is therefore between the spread of failed runs and the spread of successful runs, layer by layer.

The second concurrent-validity test asks whether instability scores depend heavily on which examples are used. For each task, the authors generate four subsamples, each containing half of its test examples, by uniform sampling without replacement within a subsample. The trained classifiers stay fixed. The authors recalculate prediction and representation instability on each subset. Similar outcomes support the idea that the measures describe properties of the trained group under the same evaluation distribution. The test leaves room for real changes in instability when the input distribution changes, a different question from sensitivity to resampling the same pool.

#### Changing the training recipe and resampling runs

The reassessment compares four mitigation methods with Standard, a baseline that uses the shared training recipe without a named mitigation method. Standard includes ordinary weight decay and the longer training duration chosen by the authors. Each setting has 10 runs from different seeds. The comparison uses standard deviation, all three prediction measures, Linear-CKA, and OP. SVCCA is set aside after its performance on the validity checks. Using the same measures for every recipe makes it possible to see when a mitigation method’s position changes as the measurement moves from performance to predictions or representations.

Mixout randomly substitutes neuron outputs from the pretrained weights for outputs from the current weights, with probability `p`. The authors use `p = 0.1`. Weight decay towards the pretrained weights, denoted WD pre, pulls weights back towards their pretrained values during optimization. The paper describes an update with step size `λw`, where `w` is a weight and `λ` controls the strength of the pull. The authors set `λ = 0.01`. Both interventions are motivated by preserving aspects of what was learned before fine-tuning.

Layer-wise learning rate decay, abbreviated LLRD, uses progressively smaller learning rates from the top of the network toward the bottom. The factor `η` determines the discount between layers, and the experiments use `η = 0.95`. The rationale is that lower layers may hold knowledge that transfers more broadly, and can be adapted more conservatively. Re-init takes a more direct approach with the upper layers. It re-initializes the top `k` layers before fine-tuning, using `k = 5`. Its motivation is that layers near the top can carry features specialized to pretraining that interfere with adaptation. The mitigation settings follow those used in [Revisiting Few-sample BERT Fine-tuning](https://md.research.elamur.ai/free/en/papers/zhang-2020-revisiting-few-sample-bert-fine/).

The authors compare mitigation rankings using Kendall’s tau. This statistic tracks whether two rankings order the settings similarly. For the representation measures, the ranking uses the topmost layer. Since there are only five settings to rank, the authors also use bootstrapping to study the relationships between scores within a fixed setting. They draw 10 classifiers with replacement from the 10 original runs and repeat the draw 1,000 times. A run can appear more than once in a draw. They compute the measures for each drawn group and calculate Pearson’s correlations between the resulting series of scores. This procedure reveals how scores move together as the composition of a group changes, while keeping the task and training recipe fixed.

### Experiments and results

#### The tasks and what their scores mean

The main study uses three small GLUE datasets. RTE asks whether one text entails another. MRPC asks whether two sentences are paraphrases, so the predictions concern whether the sentences convey the same meaning. CoLA asks for a judgment of linguistic acceptability. Each uses a label decision, which makes the experiments comparable at the level of probability distributions and categorical agreement even though the task score varies from dataset to dataset. The tasks also let the authors check whether relationships among measures recur across different classification problems. MRPC originates in the work on [sentential paraphrases](https://md.research.elamur.ai/free/en/papers/dolan-2005-automatically-constructing-corpus-sentential-paraphrases/), a task closely related to [semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/).

For RTE, accuracy is the share of labels predicted correctly. For MRPC, F1 combines precision and recall for the paraphrase decision. Precision concerns how often predicted paraphrases are correct, and recall concerns how many of the labeled paraphrases the classifier finds. CoLA uses the Matthews correlation coefficient, abbreviated MCC, which summarizes the relationship between predicted and reference labels using the outcomes for both classes. The mitigation tables report each task score as a mean across the seed runs together with its standard deviation. The paper multiplies the entries in those tables by 100. The following comparisons use that scale and refer to the study’s held-out test splits.

The prediction stability measures operate on common inputs and are reported separately from task performance. Lower SD means less spread in the task scores. Lower disagreement, kappa-based instability, or JSD means that the runs’ outputs agree more closely according to that measure. The layerwise curves describe internal variation. A point on such a curve is a comparison among the representations at a particular depth, while a task score describes the output of the entire classifier. These differences in the objects being measured are essential to reading the results.

#### The same runs can give different rankings on MRPC

BERT on MRPC gives the clearest example of a changed verdict. With Mixout, mean test F1 and its standard deviation are 89.6 ± 0.7. With Re-init, they are 89.9 ± 0.8. The Standard baseline has 89.3 ± 1.2. Mixout has the lowest F1 spread among the settings in the comparison. The gap between its spread and that of Re-init is small on the reporting scale, yet the order of the two settings reverses when the comparison uses the probability distributions. The charts show how the position of Mixout changes relative to the other recipes.

Standard deviation of test F1 across BERT runs on MRPC Mixout gives the lowest spread in F1 across runs.

**The numbers**

| System or setting | F1 SD × 100 |
| --- | --- |
| Standard | 1.2 |
| Mixout (this paper) | 0.7 |
| LLRD | 1.3 |
| Re-init | 0.8 |
| WD pre | 1.2 |

Pairwise class-probability divergence across BERT runs on MRPC Re-init gives the closest probability distributions, while Mixout is near the high end of instability.

**The numbers**

| System or setting | Pairwise JSD × 100 |
| --- | --- |
| Standard | 5.1 |
| Mixout | 4.8 |
| LLRD | 4.0 |
| Re-init (this paper) | 3.9 |
| WD pre | 4.7 |

The label-based measures and the top-layer Linear-CKA comparison likewise put Mixout near the less stable end of the rankings. Its apparently strong result under SD describes repeatability of F1 for this group of runs. In an application sensitive to which example receives which label, the label results address a separate concern. In a system that consumes probabilities downstream, the divergence gives information that neither the task score nor the label reports. The experiment demonstrates these differences using the same task and training groups, so the change in ranking can be tied to the measurement being used.

WD pre illustrates another distinction in the same test. It has mean F1 of 90.2, the highest BERT mean in the MRPC comparison, alongside an F1 standard deviation of 1.2. Re-init has mean F1 of 89.9 and gives the lowest probability instability. A choice based on the average task score can therefore favor a different recipe from a choice based on repeatability of probabilities or individual decisions. The paper reports mean performance alongside instability so a reader can see these properties independently.

#### Entailment and acceptability give different comparisons

On RTE, BERT’s Standard baseline has mean test accuracy and standard deviation of 71.3 ± 1.8. Re-init gives 70.4 ± 1.4 and also lowers all three prediction instability scores. Its pairwise JSD is 4.7, compared with 6.8 under Standard. The baseline sits in the middle of the comparison under the prediction and representation measures discussed for this setting. WD pre has a mean test accuracy and standard deviation of 70.5 ± 5.6, and its pairwise disagreement is 17.9, compared with 13.8 for Standard. The deterioration for WD pre is visible at both the performance and the label levels.

The corresponding RoBERTa comparison on RTE has a much wider accuracy spread under Standard. Its test accuracy is 74.4 ± 12.2, compared with 81.3 ± 1.8 under LLRD and 79.6 ± 2.0 under Re-init. LLRD also gives the lowest pairwise JSD in this comparison, at 5.7, compared with 9.8 under Standard. On this dataset and encoder combination, a mitigation method can simultaneously raise mean performance, reduce its spread, and make the predictions agree more closely. The BERT results show why such agreement across criteria needs to be established for the particular group being compared.

For BERT on CoLA, Standard produces test MCC of 64.5 ± 5.5. Mixout yields 67.1 ± 1.9, and WD pre yields 65.6 ± 1.8. WD pre gives the lowest standard deviation among the listed BERT settings on this task, while LLRD gives the smallest instability under the measures that compare the outputs input by input. A reader concerned with reproducing MCC would give more weight to the spread of the coefficient. A reader concerned with changes to acceptability decisions can examine disagreement or the probability divergence. The comparison again demonstrates how each conclusion depends on the basis for the comparison.

Pairwise class-probability divergence across BERT runs on CoLA LLRD has the lowest probability instability among the training settings.

**The numbers**

| System or setting | Pairwise JSD × 100 |
| --- | --- |
| Standard | 4.0 |
| Mixout | 3.6 |
| LLRD (this paper) | 2.8 |
| Re-init | 3.7 |
| WD pre | 3.6 |

For RoBERTa on CoLA, Standard gives MCC of 65.6 ± 7.8. LLRD gives 69.7 ± 4.1 and the lowest pairwise JSD, at 3.0 compared with 4.9 for Standard. Mixout gives MCC of 68.1 ± 2.2, a lower spread than LLRD, alongside pairwise JSD of 4.6. The same broad discrepancy appears here as in the BERT comparisons. A recipe’s advantage according to the spread of the task score can differ from its advantage according to agreement across the predicted distributions. The authors report similar overall patterns for the comparisons of hidden representations using Linear-CKA and OP.

Across the tested combinations, the authors identify Re-init as the only mitigation method that consistently improves on Standard under all the measures in their reassessment. That statement concerns the comparison with the baseline. LLRD, for example, gives the strongest JSD result in the CoLA comparisons and for RoBERTa on RTE. Mixout gives the most tightly clustered BERT F1 scores on MRPC. The results distinguish a recipe that improves reliably on a baseline in these experiments from the recipe a particular metric ranks first on a given task.

#### A larger-data pilot

The paper also studies SST-2, a sentiment classification dataset with 67,000 training samples, beside CoLA’s 8,000. The pilot uses 20 seeds, the main training hyper-parameters, and no mitigation method. The authors report lower instability than in the experiments on the small datasets. They also find that measures close in granularity tend to agree more strongly than measures separated by several levels. The pilot extends the comparison to a setting with more training examples, with the change in dataset bringing a different task as well. SST-2 comes from the work on the [Sentiment Treebank](https://md.research.elamur.ai/free/en/papers/socher-2013-recursive-deep-models-semantic-compositionality/).

The appendix reports SST-2 accuracy and standard deviation of 92.6 ± 0.8 for BERT and 94.4 ± 0.9 for RoBERTa. It gives pairwise JSD scores of 2.3 and 2.5, respectively. The label-based measures each give BERT a score of 4.5 and RoBERTa a score of 4.3. Those results show that the classifier with the higher mean accuracy has slightly lower label instability in this pilot, while the probability divergence and the spread of accuracy favor BERT. For correlations among the SST-2 representation measures, Linear-CKA and OP reach 0.78 with BERT and 0.94 with RoBERTa. The correlations involving SVCCA are weaker, including −0.24 between SVCCA and Linear-CKA with BERT.

### What the ablations show

#### Validity depends on which difference a test exposes

The paper’s controlled comparisons target the measurements and training conditions. One comparison asks whether several representation measures trace a similar profile across the layers of the same trained group. On the small-task BERT comparisons shown for convergent validity, the authors report correlations above 0.77 among the three representation measures. Layerwise association gives evidence that the measures capture a common aspect of how representations differ between runs. In particular, it can indicate that they tend to identify similar parts of the network as more variable, even when they assign different values to those layers.

The successful-versus-failed comparison asks a sharper question. The authors expect failed runs to stay closer together internally because earlier research found vanishing gradients in such runs. On RTE with BERT, Linear-CKA and OP show the expected lower instability within the failed group. SVCCA fails to separate the groups in the bottom layers. The authors describe similar patterns elsewhere in their experiments. This comparison illustrates how a strong correlation over depth can coexist with weak sensitivity in part of the network. A measure can follow the broad shape of a layer profile while missing a separation the researchers expect to see at specific layers.

The authors offer a possible explanation based on how much the lower layers move during training. If those layers change less than the upper layers, the successful and failed groups may be more subtly separated there. SVCCA’s preliminary reduction is designed to keep dominant directions, so a small difference may contribute little to the final comparison. This interpretation is consistent with the pattern the authors observe. The experiment leaves open whether the reduction step, the canonical correlation step, or some feature of the selected runs accounts for the missed separation. It establishes how the complete measure behaves in this test.

The test also helps separate the quality of training from the repeatability of what training produces. A failed group can give very similar representations across seeds when the runs make little progress from a common starting point. That kind of stability provides little reason to favor the training procedure. In the ordinary mitigation experiments, the performance score remains useful alongside measures of variation. In the validity experiment, controlled failure is useful precisely because it supplies a case where low instability has a plausible explanation even though task performance is poor.

#### Resampling inputs probes another source of uncertainty

With half-size test subsamples, instability profiles are generally similar when the authors use the same trained classifiers. In the BERT MRPC example, curves from the separate draws track each other closely across layers. The prediction measures show little variation from one subsample to another as well. The reference group is held fixed, which ties differences in the resulting scores to the inputs used for measurement. This provides a check on whether a score is mainly a feature of that particular selection of examples.

The appendix repeats the exercise with 10% of the test inputs and compares it with the 50% condition. The smaller subsamples produce more variation. The scores remain mostly consistent, especially in the lower layers. This comparison establishes a practical dependency between the amount of evaluation data and the repeatability of the measured instability on the studied tasks. It also explains why a measure can pass the sub-sampling check and still differ from another measure on the same runs. Sub-sampling checks how consistently a measure responds to new input selections. Agreement between measures checks whether their answers track one another.

Sampling within the held-out data also keeps the population under study relatively constant. The tasks, labels, and evaluation pool remain the same, and uniform draws alter the mix of examples. A conclusion about score consistency here is evidence about sampling from that pool. The comparison would ask a different question if the new inputs came from a different domain or required a different labeling convention. The authors’ analysis isolates sensitivity to the selection of examples under the conditions they actually evaluate.

#### Close measures tend to move together

The mitigation rankings provide a second way to see which measures are related. Linear-CKA and OP have Kendall’s τ of at least 0.8 on each task and encoder combination in this comparison. Pairwise disagreement and the kappa-based score also reach at least 0.8 across the combinations. These pairs share the information they inspect. The representation pair compares corresponding hidden activations, and the label pair compares categorical predictions. The high agreement is useful when interpreting a ranking, since another measure at the same level often yields a similar ordering in the paper’s experiments.

The probability-based measure occupies an intermediate position. Its rankings have Kendall’s τ of at least 0.6 with the label-based measures. Standard deviation can be much further from them, with a value of −0.2 for the reported comparison on BERT MRPC. On BERT RTE, even the lowest reported agreement among measures is roughly 0.6. Thus how well the measures agree depends both on what they measure and on which set of classifiers they are evaluating. The BERT MRPC case is especially revealing because a tightly clustered performance score leaves room for changes in which examples are classified a particular way.

The bootstrap analysis checks whether this pattern also appears when the training recipe is fixed. For Standard BERT on MRPC, the paper describes SD’s strongest associations among the other measures as being with the label comparisons. The association is weaker with pairwise JSD and weaker again with the two representation distances. Linear-CKA and OP correlate more strongly with one another than either does with output-based measures. This ordering links the rank comparison across training recipes to variation within one recipe. The pattern therefore appears even when the bootstrap changes the selection of runs without changing the method used to train them.

For the comparison across recipes and datasets, the authors standardize the correlations associated with each measure. Some measures tend to have higher correlations with the others across settings. Standardizing keeps those differences in typical correlation from dominating the summary. They then compare the average standardized agreement with the SD in the same experimental conditions. The reported Pearson correlations are 0.734 for BERT and 0.653 for RoBERTa. These values describe a positive association between the spread of task performance and how similarly the measures respond to variation across the resampled groups.

The authors’ explanation is that large differences between runs have more opportunities to appear at several levels. If runs differ widely in what they learn, the variation can affect layer representations, class probabilities, assigned labels, and the resulting task scores. When variation is smaller, some of those quantities may change while others stay nearly constant. A shift in probability can leave the chosen label unchanged, and shifts in the labels can cancel in a task score. The bootstrap associations fit this explanation. They describe the conditions under which the measurements agree and leave the precise cause of any particular mismatch open.

#### The training interventions offer evidence about possible causes

Mixout and WD pre are motivated by retaining pretrained information, while LLRD and Re-init alter how adaptation proceeds through the layers. The first pair generally gives weaker stability results than the second pair in the authors’ comparison. This pattern bears on the earlier explanation based on catastrophic forgetting. If preserving pretrained information reliably stabilized the runs in these settings, the two preservation-oriented methods would be expected to compare favorably with Standard. Their uneven results weaken that simple account. Re-init’s more consistent improvement is compatible with the possibility that some starting features in upper layers interfere with adaptation.

These are comparisons of complete training recipes. Each intervention changes the optimization process in its own way, and the study measures the resulting variability. It does not measure exactly what pretrained information has been lost, or isolate how much each layer contributes to stabilization. The evidence supports a narrower reading. Preserving the pretrained state through these particular interventions is insufficient to explain the observed order of the recipes. The paper’s findings about measurement remain informative even if the causes of the stability differences vary across tasks or architectures.

In settings where the paper finds strong agreement between measures at the same level, their shared information provides a reason to economize. The authors suggest starting with the spread of task performance and using finer measurements to investigate what the aggregate may miss. When runs look stable under a coarse measurement, a probability or representation comparison can reveal variation that has little effect on the task score. If computation is limited, the authors suggest a prediction measure and a representation measure. That pairing covers what the classifiers output and how they organize the inputs internally.

### Limitations

#### Limits identified by the authors

The authors emphasize that the validity assessment lacks an established measure of fine-tuning instability as a reference. A mismatch can arise because one measure is poorly suited to the comparison. It can also arise because valid measures detect different properties. Even close agreement does not tell which interpretation to use in every setting. This is especially important when comparing a quantity based on a task score with one based on activations. The authors accordingly interpret their validity checks as evidence about how measures behave on defined inputs and comparisons.

The concurrent-validity tests also rely on assumptions with limited theoretical backing. In the first, the expected lower representation instability of failed runs comes from earlier observations about gradients and from the shared starting weights. The explanation is plausible under the experiment’s design, but the definition of a failed run is based on accuracy. Failure therefore does not directly certify how far the internal representations have moved. In the second test, the authors check for agreement among scores from input samples that should be broadly equivalent. This adapts concurrent validity to examine stability under a change in sample, whereas the usual formulation focuses on whether a measure can distinguish groups expected to differ.

The authors tested a limited range of tasks, architectures, measures, and types of validity. Their framework examines convergence and the two comparisons inspired by concurrent validity. Other forms of validity, including discriminative and predictive validity, are left open. The SST-2 pilot adds a larger training set, but the authors call it preliminary. They also identify other possible quantities, such as jitter and functional similarity. The work gives a basis for asking whether those measures respond to differences that a particular study cares about, but it supplies results for the selected measures and tasks.

The classification setup places a further limit on transfer. The labels and class probabilities of a classifier give a straightforward way to compare repeated runs on the same input. A system that generates text produces a different kind of output, so the authors say its prediction measures and validity tests would need adjustment. They mention generative pretrained systems as promising settings for extension. The classification results do not establish which aspects of generated output could be compared reliably or what counts as a meaningful difference between repeated training runs in those settings. Examples of the architectures discussed are [BART](https://md.research.elamur.ai/free/en/papers/lewis-2020-bart-denoising-sequence-sequence-pre/) and [OPT](https://md.research.elamur.ai/free/en/papers/zhang-2022-opt-open-pre-trained-transformer/).

#### Limits that follow from the experimental design

The estimates describe variation under changes in the fine-tuning seed with the data, initial checkpoint, and shared training recipe held fixed within each group. They directly support claims about repeatability under those changes. They leave variation across pretrained checkpoints, different training datasets, or other optimization recipes unmeasured. The importance of holding those things fixed is that each group has a clear source of controlled variation. The cost of that control is that the resulting instability scores apply to the definition of a repeated run used in this experiment.

The validation and test procedure likewise defines the scope of the numbers. The main measurements concern checkpoints selected on one part of the original GLUE validation data and evaluated on the other. Small changes in a task score or in a ranking need to be read with that split and the seed sample in mind. The paper’s resampling of test inputs addresses some dependence on the specific examples available to the authors. It gives no evidence about performance on other evaluation distributions. The larger differences seen with smaller subsamples show one reason to be cautious about interpreting small gaps between settings.

The mitigation comparisons use particular hyper-parameters for each intervention and a Standard baseline that includes the authors’ training duration and ordinary weight decay. Re-init’s consistency is evidence relative to that baseline and those mitigation settings. Altering the learning rate, the degree of regularization, or the number of re-initialized layers could change the ordering. The comparison also changes a training recipe as a whole. It supports conclusions about how those recipes performed in the study, while leaving individual causal mechanisms and the consequences of retuning unresolved.

The bootstrap analysis generates many groups from a small set of trained runs. The resamples can show whether several measures tend to assign high or low scores to the same mixtures of the observed classifiers. They cannot bring in a seed outcome absent from the original group. In particular, if a rare form of failure is missing from those runs, no resample can reveal how that failure would affect agreement among the measures. The large number of bootstrap groups gives many views of variation within the observed runs, with the original seed sample still setting the bounds of what can be studied.

Comparisons that use the topmost layer for a single representation score have a further scope condition. That choice provides a common point of comparison with prediction measures. The authors’ layerwise profiles also show that sensitivity differs by depth. A correlation between scores at the top layer and task scores can therefore coexist with different relationships lower in the network. Likewise, the preliminary comparison on SST-2 changes dataset size and task together. Its results support the possibility that the observed patterns extend to larger datasets, while leaving the independent effect of dataset size open.

Finally, repeated agreement and task usefulness are separate properties. The failed-run analysis makes the distinction concrete within the paper itself. If training produces similar internal representations across seeds because the runs make little progress, all that agreement can coexist with poor task performance. Conversely, an intervention can increase mean performance while leaving some kinds of instability little improved. The paper’s measurements are best understood as descriptions of how the trained group varies, alongside task metrics that describe what it achieves.

### What came after

The later citing work documented here is [Variation Is the Norm: Embracing Sociolinguistics in NLP](https://md.research.elamur.ai/free/en/papers/lutgen-2026-variation-is-norm-embracing-sociolinguistics/) (2026). Its title frames variation through sociolinguistics, while Du and Nguyen examine the variation that arises when a fine-tuning procedure is repeated with different seeds. Their contribution to that broader discussion is a precise example of how the unit of comparison determines what variation an experiment can see. An aggregate score can look reproducible even when the decisions for particular inputs change.

The citation establishes a connection between the papers. How the later work uses Du and Nguyen’s findings in its argument or methods is unspecified. The warranted connection is therefore between a study of how to observe variation across trained classifiers and a later work that places variation at the center of its stated subject.

## Cite

Cite as Yupei Du and Dong Nguyen. 2023. Measuring the Instability of Fine-Tuning. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2023.acl-long.342](https://doi.org/10.18653/v1/2023.acl-long.342)

```bibtex
@inproceedings{du2023measuring,
  title = {{Measuring the Instability of Fine-Tuning}},
  author = {Yupei Du and Dong Nguyen},
  booktitle = {Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.342},
  url = {https://doi.org/10.18653/v1/2023.acl-long.342}
}
```

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