---
title: "Transfer Fine-Tuning: A BERT Case Study (2019)"
description: "Transfer fine-tuning teaches BERT to compare phrases and sentences, improving paraphrase and similarity judgments when labeled data is scarce."
canonical: "https://research.elamur.ai/free/en/papers/arase-2019-transfer-fine-tuning-bert-case/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/arase-2019-transfer-fine-tuning-bert-case/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Transfer Fine-Tuning: A BERT Case Study

# Transfer Fine-Tuning: A BERT Case Study

Paper · 2019 · Yuki Arase and Jun'ichi Tsujii

**Authors:** [Yuki Arase](https://md.research.elamur.ai/free/en/authors/yuki-arase/) and [Jun'ichi Tsujii](https://md.research.elamur.ai/free/en/authors/jun-ichi-tsujii/) · **Year:** 2019 · **Venue:** Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **19** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/arase-2019-transfer-fine-tuning-bert-case/cited-by/) · Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/D19-1542/)
- [PDF](https://aclanthology.org/D19-1542.pdf)
- [DOI 10.18653/v1/d19-1542](https://doi.org/10.18653/v1/d19-1542)

## Summary

Two sentences can express much the same idea while using different words or putting the same information in a different order. Judging when they do is the problem Arase and Tsujii study. Some tasks ask for a yes-or-no paraphrase decision. Others ask how close the meanings are on a graded scale. Both rely on what a system can learn from the way words, phrases, and sentences fit together. The paper asks whether [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/) can improve at these judgments without growing in size, and whether the improvement carries over when a task has few labeled examples of its own.

The authors add a stage between general pretraining and task-specific [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/). They collect sentence pairs that are likely to be paraphrases and use an automatic aligner to find spans that express corresponding meanings within them. During the extra training stage, BERT learns to recognize paraphrases at both levels. The sentence exercise asks whether the texts as a whole are paraphrases. The phrase exercise also asks BERT to distinguish aligned phrases from other phrases inside an otherwise valid paraphrase pair. This gives it practice with a case where shared wording and subject matter can make an incorrect match look plausible.

On the [GLUE](https://md.research.elamur.ai/free/en/papers/wang-2018-glue-multi-task-benchmark-analysis/) test sets, the adapted BERT-base reached 89.2 F1 on the Microsoft Research Paraphrase Corpus and 87.4 Pearson correlation on the Semantic Textual Similarity Benchmark, using the paper’s reporting scale. Both scores exceeded the corresponding BERT-large scores while retaining the BERT-base encoder size. Quora Question Pairs was an exception. The adapted system and BERT-base both scored 71.2 F1 on the full-data test evaluation. When the authors limited the amount of downstream training data, the gains were generally more apparent. With 1k training pairs from the Microsoft corpus, development F1 was 88.1 after transfer fine-tuning and 81.6 with ordinary BERT-base fine-tuning.

The benefits varied with the target task and the way the phrase exercise was built. The main method improved textual entailment on the small RTE dataset, while its scores on sentiment and grammatical acceptability fell below those of BERT-base. Removing either training exercise changed the results, and the joint version was strongest on several comparisons among the adapted systems. An appendix replaced the original phrase features with simpler ones and found broader gains across the sentence-pair benchmarks it tested. The experiments collectively show that, for certain tasks, intermediate supervision can be just as important as choosing the encoder size. They also show that the structure of that supervision affects where the gains appear.

## Deep dive: Transfer Fine-Tuning: A BERT Case Study

Transfer fine-tuning teaches BERT to compare phrases and sentences, improving paraphrase and similarity judgments when labeled data is scarce. · about 33 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

#### Equivalence is a relationship between texts

The paper groups paraphrase identification and semantic textual similarity under the name *semantic equivalence assessment*. The grouping describes what the reader is being asked to judge. In paraphrase identification, the output is a class label for the pair. In textual similarity, the output is a score that reflects degree. The second task has room for cases that share important information but differ in part of what they say. The authors evaluate both because they use related evidence about meaning while requiring different final predictions. [Semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/)

A sentence representation is the numerical information that the encoder makes available for such a prediction. A useful representation has to preserve enough about each text and its relationship to the other text for the final predictor to make the required judgment. The particular strength the authors seek is sensitivity to equivalence across changes in wording. A pair may share the same topic and still fail as a paraphrase. Conversely, a pair may express corresponding ideas in spans that differ in wording or occur in different positions. A training signal that names the relevant spans can tell the encoder more about this relationship than a label attached to the pair as a whole.

The attraction of pretraining is that a system can acquire general language representations from plain text before learning a particular prediction task. The target task then supplies annotations that say which distinctions matter for its own decisions. The authors describe the cost of making those annotations as a practical constraint. A useful pretrained encoder should be able to adapt when there are relatively few examples carrying a target label. This is a central part of the paper’s question. The authors want any gain from paraphrase training to carry over to small downstream datasets, where the final stage has relatively little evidence of its own.

#### What pretraining already gives BERT

The authors place BERT in a line of work that uses the surroundings of text as supervision. Skip-Thought learns from the sentences around a given sentence by trying to generate them. Quick-Thoughts turns the surrounding-sentence problem into classification. GenSen combines related training tasks under the idea that jointly learning them can enrich the resulting representations. These approaches make use of information already present in documents, which helps explain the appeal of sentence representation learning from large, unannotated collections. [Quick-Thoughts](https://md.research.elamur.ai/free/en/papers/logeswaran-2018-efficient-framework-learning-sentence-representations/)

The paper traces a related development through contextual word representations. ELMo uses a bidirectional recurrent network and a language prediction objective to produce representations that depend on the surrounding words. OpenAI GPT uses a Transformer decoder for language prediction. BERT brings masked-word prediction and a sentence relationship exercise together in a deep bidirectional Transformer. Masking allows the encoder to draw on words to the left and right of the missing material. The sentence exercise asks it to recognize whether the supplied sentences were consecutive in a document. [ELMo](https://md.research.elamur.ai/free/en/papers/peters-2018-deep-contextualized-word-representations/) · [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/)

For Arase and Tsujii, the distinction between adjacency and equivalence matters. Neighbors in a document can be related because they are part of the same discussion. The fact that they occur together gives a general kind of training signal about sentences. A paraphrase label addresses a more specific question about their contents, and a phrase alignment narrows that question to the material inside particular spans. The paper’s proposal begins with BERT’s general training and adds these more specific decisions before any of the benchmark labels enter the process.

Capacity is the other part of the context. The paper gives BERT-large a parameter count of 340M and describes it as 3.1 times the size of BERT-base. It cites computational demand as a reason to look for improvements that keep the smaller encoder viable for applications. That motivation gives the study two comparisons with different purposes. BERT-base can show what changes when the intermediate training is added to the same starting architecture. BERT-large can show how the resulting smaller system fares against a larger reference on the target tasks.

#### Where the extra supervision comes from

Prior supervised work had already treated phrase structure as relevant to sentence representation. The paper situates its own contribution within that line of research, while focusing on structure *between* sentences. A phrase in one sentence can correspond to a phrase in the other. The correspondence supplies both a boundary, which identifies the tokens to consider, and a relation, which identifies another span as expressing corresponding content. In the authors’ setup, both pieces of information feed a training objective. [Tree-Structured Long Short-Term Memory Networks](https://md.research.elamur.ai/free/en/papers/tai-2015-improved-semantic-representations-tree-structured/)

An earlier study by Phang and colleagues had also examined additional training between general pretraining and the downstream task. In the account Arase and Tsujii give, that study uses supervised tasks with abundant examples as an intermediate stage. Transfer fine-tuning here follows the same broad order of stages and picks a different source of supervision. Large paraphrase collections supply sentence-level examples, and an automatic aligner supplies labels at finer granularity. The new question is how much it helps to tell the encoder *which parts* of those sentences have equivalent meanings as well as whether the whole pair does. [Sentence Encoders on STILTs](https://md.research.elamur.ai/free/en/papers/phang-2018-sentence-encoders-stilts-supplementary-training/)

The paper also points to work by Liu and colleagues on fine-tuning across multiple downstream tasks. It presents that line of work as compatible with its approach. Here the joint training happens during the intermediate stage, where the two objectives are drawn from the same paraphrase collections. The benchmark tasks then supply separate objectives. The distinction is important for reading the experiments. A gain on a benchmark is evidence that something learned during paraphrase training carried into later fitting for that particular task. [Multi-Task Deep Neural Networks for Natural Language Understanding](https://md.research.elamur.ai/free/en/papers/liu-2019-multi-task-deep-neural-networks/)

### The method, step by step

#### From sentence pairs to aligned spans

Begin with two sentences collected as a paraphrase pair. The paper calls them the source and target to keep track of their positions in the input. The terms apply even when both texts were originally produced in the same language. An aligner identifies phrases inside each sentence and marks the pairs it judges to correspond. Its input is a parse forest, which represents alternative syntactic analyses of a sentence. The resulting training record keeps the spans of the phrases and the links selected between them. Some phrases remain unaligned, so the record can include individual spans without an equivalent on the other side. [Parsing](https://md.research.elamur.ai/free/en/concepts/parsing/) · [Monolingual Phrase Alignment on Parse Forests](https://md.research.elamur.ai/free/en/papers/arase-2017-monolingual-phrase-alignment-parse-forests/)

The alignment step gives each positive phrase example boundaries determined outside BERT. The aligner’s earlier evaluation reported 83.6% precision and 78.9% recall for its alignments. These were 89% and 92% of the corresponding human figures in that evaluation. Precision concerns how often proposed links were correct, while recall concerns how much of the expected alignment was recovered. The authors draw on those figures to acknowledge that their labels can contain alignment errors. The intermediate task nevertheless treats the resulting links as supervision, on the premise that large collections can be useful even when their automatic labels are imperfect.

The authors next convert the sentences to WordPiece units. WordPiece is a form of [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/) in which a word can occupy more than one token position. BERT also receives the two sentences in a joined sequence with special tokens. The initial `[CLS]` token provides the position whose final representation is used for the sentence-pair decision. `[SEP]` marks the boundary between the texts, and the input ends with a special token. A phrase boundary recorded before these operations must be translated into the positions used by BERT. This remapping keeps a phrase label attached to the correct hidden states even when a word expands into several pieces or the target phrase moves later in the joint sequence.

From paraphrase pairs to downstream fine-tuning The steps in order.

#### How the two classifiers use BERT’s output

The joined sequence goes through the same bidirectional encoder used in ordinary BERT. Every input position yields a final vector, also called a hidden state. The paper writes the sequence-to-state relation as follows.

```
hᵢ = Transformer(w₁, …, w_N)
```

Here `w₁` through `w_N` are the tokens in the joined input, `N` is the sequence length, and `i` is a position in that sequence. `Transformer` denotes the BERT encoder, and `hᵢ` is its output vector for position `i`. The ellipsis stands for the intervening token positions. The vectors have `λ` coordinates, where `λ` is the encoder’s hidden size. Since BERT encodes the pair jointly, a vector for a position in a phrase can reflect context beyond that phrase’s own boundaries.

The sentence exercise takes `h₁`, the final vector at `[CLS]`, as its input. BERT already uses this position to aggregate information about a pair for a pretraining decision. The authors give it a new decision during the intermediate stage. A positive example is a pair from the paraphrase collection. A negative example pairs the source sentence with a randomly selected sentence from the training corpus. The classifier has to decide which kind of pair produced the aggregate representation.

The phrase exercise starts from the vectors inside the labeled spans. The authors’ notation assumes that the two spans occur in source-then-target order within the combined input.

```
2 ≤ j < k < m < n ≤ N − 1
```

The symbols `j` and `k` are the beginning and end positions of the source phrase. The symbols `m` and `n` mark the beginning and end of the target phrase. The inequalities put the source phrase before the target phrase and keep the endpoints within the positions bounded by the initial and final special tokens. `N` again denotes the full input length, and `N − 1` denotes the position before its last token. In the paper’s notation, the span endpoints are included when the corresponding hidden states are combined.

The main version uses max pooling to turn all the hidden states of a source phrase into a single vector.

```
hₛ = max-pooling(hⱼ, …, hₖ)
```

`hₛ` represents the source phrase. `hⱼ` through `hₖ` are the hidden states from its first through its last position, with the ellipsis covering the intervening states. `max-pooling` selects the largest value for each coordinate across those states. The resulting vector has the same hidden size as an individual state. Different coordinates can take their largest values from different token positions.

The paper applies the same operation to the target phrase.

```
hₜ = max-pooling(hₘ, …, hₙ)
```

`hₜ` is the target phrase representation. `hₘ` through `hₙ` are the states inside its span, including the beginning and end positions. `max-pooling` again takes a maximum separately for each coordinate. With one vector per phrase, the matching classifier receives inputs of a fixed shape even when the spans cover different numbers of tokens. The authors credit prior work on sentence representations for this pooling choice. [Universal Sentence Representations from Natural Language Inference Data](https://md.research.elamur.ai/free/en/papers/conneau-2017-supervised-learning-universal-sentence-representations/)

The original matching features give the classifier access to the phrase vectors and to comparisons between their coordinates.

```
concat(hₛ, hₜ, hₛ ∗ hₜ, |hₛ − hₜ|) ∈ ℝ⁴λ
```

Here `concat` means placing the vectors end to end. `hₛ` and `hₜ` are the pooled phrase vectors. The symbol `∗` denotes coordinate-by-coordinate multiplication, and the vertical bars take the absolute value of each coordinate of the difference `hₛ − hₜ`. `∈` indicates membership in the real vector space `ℝ⁴λ`, with `4λ` coordinates for the concatenated feature vector. The first parts retain the individual phrase representations. The product and the absolute difference put aspects of their relationship directly into the input to the classifier.

The phrase classifier is a single fully connected layer followed by a softmax, which gives a distribution over the phrase labels. The authors choose a simple classification layer so that solving the intermediate task puts pressure on the encoder to produce useful representations. The phrase features still shape what is easy for that layer to read. This becomes relevant in the appendix, which asks whether a different way of summarizing and presenting the spans gives the encoder representations that transfer more broadly.

#### Why the phrase exercise uses different negatives

A random phrase can be easy to reject when the surrounding sentences have little in common. The authors want the training exercise to include cases where much of the context already agrees. They therefore teach the classifier to distinguish an aligned paraphrase from both a random example and what they call an *in-paraphrase* example. The labels describe how the pair was obtained as well as the relation it is intended to illustrate.

For the random class, the authors select a training-corpus sentence to pair with the source. They then match each source phrase with a randomly chosen phrase from that other sentence. The random combination is useful at both levels of training. It supplies an example for the sentence classifier’s random class and yields phrase pairs for the phrase classifier’s random class.

For the in-paraphrase class, the authors start from a positive phrase alignment. They retain the source span and replace the aligned target span with a randomly chosen phrase from the same target sentence. The surrounding sentences can therefore remain paraphrases while the proposed link between spans changes. A replacement can cover a subphrase of the intended equivalent, or a larger phrase that contains it. That kind of overlap explains why the exercise is more demanding than discarding phrases from sentences on unrelated topics. The phrase classifier has to give different labels to candidate alignments within a context that the sentence classifier can still recognize as a positive pair.

This construction explains the division of labor in the intermediate training. The sentence label says whether the texts belong together as paraphrases. The phrase label says which relationship holds for particular spans, as defined by the aligner and sampling process. The same sentence label can accompany different phrase labels. Accordingly, recognizing the sentence pair’s overall relation solves only part of the intermediate task.

#### Bringing both objectives into one training stage

The paper writes the input collection as `P`, with members denoted by `⟨s, t⟩`. `s` is the source sentence and `t` is its target paraphrase. For a pair, `A` stores the alignments as pairs of remapped spans. The training algorithm takes mini-batches containing the examples and their alignment data, encodes the sentence pairs, and evaluates the phrase and sentence predictions. Each classifier uses cross-entropy, a loss that penalizes assigning low probability to the example’s assigned label. The objectives are added directly.

```
L(Θ) = Lₚ(Θ) + Lₛ(Θ)
```

`Θ` denotes the parameters being optimized. `Lₚ` is the phrase-classification loss and `Lₛ` is the sentence-classification loss, with the subscripts `p` and `s` identifying the two tasks. `L` is the total loss used for the joint update. The addition sign expresses the paper’s unweighted sum of the two losses. The training algorithm computes a gradient of the total loss and uses it to update the parameters, allowing both tasks to shape the shared encoder.

The appendix retains this overall procedure and changes the way it constructs phrase features. Its Simple Transfer Fine-Tuning variant uses mean pooling, which averages the values of each coordinate across the states in the span. It feeds the concatenated source and target means to the phrase classifier. The main version’s coordinate-wise product and difference features are absent from this representation. Averaging changes how tokens contribute to the phrase vector, while concatenation changes which matching features the classifier receives explicitly. The appendix tests the package of changes together.

#### How the training material was built and used

The authors assembled the paraphrase collection from corpora that obtain comparable texts in different ways. From NIST OpenMT, they randomly paired reference translations written for the same source sentence. From Simple Wikipedia, they used the sentence-aligned version 2.0 of the corpus that links ordinary and simplified English Wikipedia. The Twitter URL corpus furnished tweets grouped through shared URLs, using a three-month collection. The Para-NMT material came from pairing Czech-to-English translations with the original English side of a parallel corpus. The named release in the paper is Para-nmt-5m-processed. [Simple Wikipedia alignment corpus](https://md.research.elamur.ai/free/en/papers/kauchak-2013-improving-text-simplification-language-modeling/) · [Twitter URL corpus](https://md.research.elamur.ai/free/en/papers/lan-2017-continuously-growing-dataset-sentential-paraphrases/) · [ParaNMT-50M](https://md.research.elamur.ai/free/en/papers/wieting-2018-paranmt-50m-pushing-limits-paraphrastic/)

The counts are for the material that remained after phrase alignment, which reduced the sentence collections when parsing or alignment failed. NIST OpenMT contributed 47k sentence pairs and 711k phrase pairs. The corresponding counts for Simple Wikipedia were 97k and 1.4M. The Twitter corpus had 50k sentence pairs and 396k phrase pairs. Para-NMT was the largest source, with 3.9M sentence pairs and 26.7M phrase pairs. Across the sources the paper records 4.1M sentence pairs and 29.2M phrase pairs before setting aside its intermediate development and test sets. These collections make it possible to supply substantial supervision without requiring the same kind of human annotation used to create the downstream benchmarks.

The main training run starts from pretrained BERT-base. Its architecture uses 12 layers and 12 self-attention heads, with a hidden dimension of 768. The BERT-large reference has 24 layers, a hidden size of 1024, and 16 heads. Both start from BERT pretraining on BookCorpus and English Wikipedia, which the paper gives a combined size of 3.3B words. Thus the main comparison begins with a common general pretraining recipe, and the intermediate training adds a new kind of supervision to the smaller encoder.

For the paraphrase stage, the authors used Adam with a learning rate of 5e − 5 and dropout of 0.2 in the fully connected classifier layers. A development set and a test set each took 50k sentence pairs from the paraphrase collection, and the remaining pairs supplied training examples. The intermediate training used four NVIDIA Tesla V100 GPUs and a batch size of 100. Early stopping tracked phrase-classification accuracy on the development set and stopped training when that accuracy decreased for the second time. [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/)

The resulting encoder is subsequently fine-tuned for each benchmark task using the normal BERT setup. The intermediate phrase alignment process provides training signals for the encoder. Downstream examples are handled by the BERT fine-tuning procedure, with a prediction layer suited to the outputs of the particular task. The paper names the classification script from the PyTorch implementation of BERT and describes adapting it for regression on graded textual similarity. It also announces plans to make the transfer fine-tuning code, datasets, and trained systems publicly available.

### Experiments and results

#### What the evaluation compares

The principal comparison holds downstream fine-tuning settings constant for BERT-base, BERT-large, and the transfer-fine-tuned BERT-base. The authors use a batch size of 32, learning rate of 3e − 5, training duration of 4 epochs, and dropout probability of 0.1. The other settings follow the defaults of the BERT script. This design asks how the starting representations affect the final task scores under a shared procedure. It gives the reader a comparison at fixed settings across the systems and leaves open how their relative scores might change under independent tuning.

The paper reports 98.1% phrase-classification accuracy and 99.9% sentence-classification accuracy on the intermediate paraphrase test set. These scores concern the exercises used to prepare the encoder. The downstream experiments pose a separate question. The adapted encoder has to use information acquired from those exercises to learn decisions in datasets with their own sources, labels, and criteria. The paper reports the main downstream comparisons on the GLUE evaluation server. The experiments that vary the amount of task-specific data use the GLUE development splits.

The tasks are ordered by the kind of connection they have to paraphrase training. At the center are the paraphrase and graded similarity benchmarks. Natural language inference is related because it also concerns a relationship between texts. The paper points out that such tasks can call for commonsense knowledge or directional inference. Sentiment and acceptability use one sentence at a time, which gives the authors a way to examine transfer farther from the intermediate objectives. They exclude WNLI because of issues reported for it by GLUE.

#### Paraphrase identification and graded similarity

The Microsoft Research Paraphrase Corpus, abbreviated MRPC, uses sentence pairs drawn from news articles. Quora Question Pairs, or QQP, poses the paraphrase decision over questions from a community question-answering site. Both use F1 in the main results. F1 reflects both the precision of positive paraphrase predictions and the fraction of labeled paraphrases they recover. The Semantic Textual Similarity Benchmark, or STS-B, draws pairs from a mixture of sources and uses human grades ranging from 1 to 5. Its main reported metric is Pearson correlation, which measures how the predicted scores vary with the human grades. The paper says that the omitted accuracy results for the paraphrase datasets and the omitted Spearman results for STS-B followed the same trends as the reported metrics. [Microsoft Research Paraphrase Corpus](https://md.research.elamur.ai/free/en/papers/dolan-2004-unsupervised-construction-large-paraphrase-corpora/) · [Semantic Textual Similarity](https://md.research.elamur.ai/free/en/papers/cer-2017-semeval-2017-task-1-semantic/)

MRPC GLUE test F1 by training setup Transfer fine-tuning gives the smaller encoder the highest score in the main comparison.

**The numbers**

| System or setting | F1 |
| --- | --- |
| BERT-base | 88.3 |
| BERT-large | 88.6 |
| Transfer Fine-Tuning on BERT-base (this paper) | 89.2 |

On MRPC, the principal transfer system reaches 89.2 F1 on the GLUE test set, against 88.3 for BERT-base and 88.6 for BERT-large. The paper reports the improvement over BERT-base as +0.9 points. MRPC is the cleanest match to the intermediate sentence exercise among the tasks where the main method improves over both references. It requires a binary decision about equivalence, and the intermediate supervision already gives the encoder practice with such decisions and with correspondences inside the texts.

STS-B GLUE test Pearson correlation by training setup The adapted encoder leads the main comparison when judging similarity on a graded scale.

**The numbers**

| System or setting | Pearson correlation, reported scale |
| --- | --- |
| BERT-base | 84.7 |
| BERT-large | 86.0 |
| Transfer Fine-Tuning on BERT-base (this paper) | 87.4 |

The STS-B test results show that the intermediate training can also benefit a task formulated as regression. Transfer Fine-Tuning scores 87.4 Pearson correlation on the paper’s scale, with BERT-base at 84.7 and BERT-large at 86.0. The paper gives the gain over BERT-base as +2.7 points. The change in output format matters to the interpretation. The intermediate stage learns categorical decisions about phrases and sentences. The downstream task learns to assign degrees of similarity using representations shaped by those decisions.

On the QQP test set, Transfer Fine-Tuning and BERT-base each score 71.2 F1, and BERT-large scores 72.1. QQP therefore marks an important boundary inside the very class of tasks the authors set out to improve. Its questions come from a different setting from much of the intermediate material, and its downstream training set is large. The paper explores the amount of downstream data directly and leaves the domain explanation for future work. Viewed together, the target-task results establish gains on MRPC and STS-B and an unchanged main result against BERT-base on QQP.

#### What happens when labeled examples are scarce

The authors randomly subsample the downstream training sets for the equivalence benchmarks and fine-tune both BERT-base starting points on the resulting sets. They report these runs on the development splits because of the submission limits on the GLUE server. The number of downstream training epochs stays fixed, and the paper says these development splits were used for the comparison. The full-training-set results in this experiment are also development scores. They can be compared with the sub-sampled rows on the same split.

For MRPC, training on 1k pairs gives the adapted encoder 88.1 development F1, compared with 81.6 for BERT-base. The paper records an advantage of +6.5. Using all 3.7k training pairs gives the adapted encoder 90.2 and BERT-base 89.4, with a reported advantage of +0.8. The smaller-data comparison shows the largest benefit in the paper’s sub-sampling results. It is an example of an intermediate stage making a larger contribution when the downstream examples offer comparatively little direct training for the final decision.

For STS-B, the 1k setting gives the adapted system 86.2 development Pearson correlation on the reported scale and BERT-base 83.4. With all 5.7k training pairs, the results are 90.1 and 88.1, respectively. The reported gains are +2.8 with the smaller set and +2.0 with the full set. In this task the adapted encoder has an advantage in both settings. The smaller set increases the observed advantage, while the full set continues to reward the intermediate training.

QQP gives a wider view of how the benefit changes across training sizes. At 1k training pairs, development F1 is 71.4 with the extra training and 69.9 with BERT-base. The corresponding scores are 76.3 and 75.5 at 5k, and 77.6 and 77.0 at 10k. At 20k, the ordering changes slightly, with Transfer Fine-Tuning at 79.5 and BERT-base at 79.6. With the full 364k training pairs, both reach 87.7 development F1. This is a case where the usefulness of intermediate training depends on which portion of the training set is available for the downstream task, even though the evaluation examples come from the same development split.

The training-size results make the paper’s data-efficiency claim more specific. The gains concern a system that has already had access to a large collection of automatically obtained paraphrases. The scarce resource is task-specific labeled data. In MRPC and STS-B, the sub-sampling comparison shows an advantage at both the small and full budgets tested. In QQP, the advantage is concentrated at the smallest budgets. The authors suggest that the large QQP training set itself gives ordinary BERT-base enough opportunity to learn the required discrimination.

#### How far the main method transfers

The inference group includes matched and mismatched splits of the Multi-Genre Natural Language Inference Corpus, abbreviated MNLI-m and MNLI-mm. The matched split evaluates within the domains represented for training, and the mismatched split is cross-domain. Recognizing Textual Entailment, or RTE, uses material from news and Wikipedia. Question-answering NLI, or QNLI, is derived from a reading-comprehension dataset whose sentences come from Wikipedia. The metric in this group is accuracy. The category gives the authors cases that involve a sentence-pair relationship but can demand a kind of reasoning different from equivalence. [SQuAD](https://md.research.elamur.ai/free/en/papers/rajpurkar-2016-squad-100-000-questions-machine/)

RTE shows the most pronounced gain in the group for the main transfer system. It reaches 64.8 test accuracy compared with 59.8 for BERT-base, a gain the authors report as 5.0 points. BERT-large scores 65.5. The authors observe that RTE has only 2.5k training sentence pairs, which gives them a reason to consider the result alongside the data-size effects on the equivalence benchmarks. The experiments separately establish the RTE result and the sub-sampling results. The suggested connection concerns what could explain the gain on RTE.

The other inference comparisons are closer to BERT-base. On QNLI the test accuracy is 89.3 after transfer fine-tuning and 89.1 for BERT-base, with BERT-large at 92.7. On MNLI-m and MNLI-mm the main method scores 83.9/83.1, compared with 84.3/83.0 for BERT-base. BERT-large reaches 86.2/85.5. The mixed results matter because they show the different responses even within a group of related sentence-pair tasks. The in-domain and cross-domain MNLI splits each have their own comparison, and neither provides evidence of a gain on the scale seen in RTE.

The single-sentence tests are the Stanford Sentiment Treebank, abbreviated SST, and the Corpus of Linguistic Acceptability, or CoLA. The former asks for a binary sentiment judgment. The latter asks for a binary judgment of grammatical acceptability. On the SST test set, Transfer Fine-Tuning scores 93.1 accuracy. The corresponding values are 93.3 for BERT-base and 94.1 for BERT-large. On the CoLA test set, scored by Matthews correlation, the results are 47.2 for Transfer Fine-Tuning, 52.7 for BERT-base, and 55.7 for BERT-large. The CoLA result is the clearest decline in the main comparison. [Stanford Sentiment Treebank](https://md.research.elamur.ai/free/en/papers/socher-2013-recursive-deep-models-semantic-compositionality/)

#### What the simpler variant changes on the test sets

The appendix compares the original adaptation with the version that averages phrase states and passes both phrase vectors directly to the classifier. On BERT-base, Simple Transfer Fine-Tuning gives 88.6 MRPC test F1, 87.7 STS-B test Pearson correlation, and 71.5 QQP test F1. MRPC favors the main method’s 89.2 in this comparison. The other targets favor the simpler settings, whose scores all exceed those of ordinary BERT-base. The MRPC result matches BERT-large, while STS-B exceeds the larger ordinary reference at 86.0. The larger reference leads on QQP with 72.1.

The simple version on BERT-base also improves the inference scores reported for the original adaptation. MNLI-m and MNLI-mm reach 84.7/83.6 test accuracy. RTE reaches 67.0, which exceeds the ordinary BERT-large result of 65.5. QNLI reaches 91.1, which falls between the two ordinary BERT references. This pattern expands the range of tasks that show a gain over the starting BERT-base encoder. The appendix reports it for the sentence-pair tasks, so the consequences of simple features for the single-sentence tasks remain open.

The appendix also applies the simpler procedure to BERT-large. On the equivalence test sets it reaches 89.9 MRPC F1, 87.1 STS-B Pearson correlation, and 72.5 QQP F1. All of these exceed the corresponding ordinary BERT-large scores. The best STS-B result in the appendix comparison still comes from the simpler BERT-base adaptation. On inference, the adapted BERT-large reaches 86.5/85.6 MNLI-m/mm test accuracy and 68.2 RTE test accuracy, both above their ordinary BERT-large counterparts. Its QNLI test accuracy is 92.2, below the ordinary BERT-large score of 92.7. The size comparison therefore depends on both the dataset and the phrase training design.

### What the ablations show

#### Training on sentences and phrases together

The ablations ask which parts of the intermediate stage make a difference. For the main feature design, the authors compare ordinary BERT-base, the joint procedure, and adaptations that use only one of the intermediate objectives. One uses the sentence distinction between paraphrases and random pairs. Another uses the phrase classifier with all three classes. A further phrase-only run keeps the binary distinction between aligned and in-paraphrase pairs. The downstream fine-tuning settings stay the same.

MRPC GLUE test F1 by intermediate training objective The joint sentence and phrase setup leads this ablation for paraphrase identification.

**The numbers**

| System or setting | F1 |
| --- | --- |
| BERT-base | 88.3 |
| Sentence objective only | 88.2 |
| Three-way phrase objective only | 88.2 |
| Binary phrase objective only | 87.7 |
| Joint sentence and three-way phrase objectives (this paper) | 89.2 |

MRPC supplies direct evidence for complementarity under the original feature design. The two individual objectives yield 88.2 test F1 apiece when the phrase objective uses three classes. The unadapted baseline is 88.3. The joint procedure reaches 89.2. Here a reader examining only the sentence-only or phrase-only score would miss the improvement found when the two objectives share the encoder.

The authors explain the difference through the representations the objectives supervise. The sentence decision acts directly on `[CLS]`, the same position used as the aggregate input for downstream judgments. The phrase decision acts on vectors pooled from spans inside the sentence pair. In a shared encoder, learning to represent which phrases correspond can change the information available when the pair is summarized. A simultaneous sentence objective also gives that aggregate representation its own task to solve. This is the authors’ account of why the objectives may complement each other. The ablation measures downstream scores after changing the objectives. It leaves the proposed internal mechanism open to more direct tests.

The advantage of joint training is conditional on the task. On STS-B, the sentence-only adaptation reaches 87.6 test Pearson correlation. The original joint adaptation reaches 87.4, and three-way phrase training alone reaches 85.8. All of those are above BERT-base at 84.7. The sentence-only result shows that an improvement on graded similarity can come from the whole-sentence exercise by itself. It also distinguishes the stronger MRPC evidence for joint training from a broader claim that the two objectives will always give their best result in combination.

A similar qualification comes from the inference tasks. On RTE, the sentence-only and three-way phrase-only versions achieve 66.2 and 65.8 test accuracy, respectively. Both exceed the joint main version’s 64.8. On QNLI, the sentence-only version reaches 90.2, ahead of the joint adaptation at 89.3 and the three-way phrase-only version at 88.0. For MNLI, the joint version is strongest among the adapted variants on both splits. BERT-base still leads the joint version on MNLI-m in this comparison. The usefulness of a particular intermediate objective depends on the target decision.

The two objectives together also yield the strongest SST and CoLA results *among the adapted versions* in the original ablation. On SST, the joint version reaches 93.1 test accuracy and the sentence-only version reaches 92.4. On CoLA, the joint version reaches 47.2 test Matthews correlation and the sentence-only version reaches 39.8. Both joint scores remain below their ordinary BERT-base references. The comparisons show that combining the objectives can reduce the losses seen with individual objectives even in tasks where the best adaptation still falls short of the original starting point.

#### What the random phrase class contributes

The comparison of the phrase-only classifiers focuses on the additional random class. The binary version is still trained to reject sampled target spans from within a paraphrase. The three-way version has to make that distinction and identify phrase combinations from randomly paired sentences. This comparison asks whether adding the easier negative construction helps the encoder when the sentence objective is absent.

For the main feature design, the three-way version gives 88.2 MRPC test F1 and 85.8 STS-B test Pearson correlation. The binary version gives 87.7 and 82.8, respectively. On QQP, the three-way version reaches 70.9 test F1 and the binary version reaches 70.7, with ordinary BERT-base still higher at 71.2. The equivalence results support the authors’ interpretation that the random class can contribute alongside the difficult within-paraphrase cases. It introduces a distinction that might seem obvious at the level of training examples and still proves useful in these downstream comparisons.

The same comparison is mixed elsewhere. On RTE, three-way phrase training reaches 65.8 test accuracy and binary phrase training reaches 61.2. On QNLI the respective values are 88.0 and 87.6. On both MNLI splits the binary version scores higher, at 83.7/82.2 against 82.9/81.9. It also scores higher on the single-sentence tasks, with 92.5 SST accuracy and 42.1 CoLA Matthews correlation against 91.3 and 32.6 for the three-way version. The evidence for adding random phrase combinations is strongest on the equivalence assessments that motivate the experiment and selected inference tasks.

Changing the number of classes also changes which examples enter the training exercise. The comparison is therefore evidence about the training setup as a whole. It does not identify how much of the benefit belongs to separating random examples into their own class, or how much comes from the presence of those examples. Its direct result is that the tested setup with both kinds of negatives is more effective on the main equivalence benchmarks than the setup trained only on aligned and within-paraphrase pairs.

#### Simpler features change the balance

The appendix’s phrase-only runs provide the clearest comparison of the two phrase feature designs. The objective remains three-way classification, while the phrase summarization switches from maximum to mean and the matching vector switches to plain concatenation. With simple features, MRPC test F1 rises to 89.0 from 88.2 for elaborate features. STS-B test Pearson correlation reaches 86.6 versus 85.8, and QQP test F1 reaches 71.5 versus 70.9. Inference gains occur on MNLI, at 84.7/83.6 versus 82.9/81.9, and QNLI, at 90.6 versus 88.0 test accuracy. RTE is the exception in this phrase-only comparison, with 65.6 test accuracy for simple features and 65.8 for elaborate ones.

This result gives a more precise view of what the features change. In the joint original setup, MRPC achieves the highest BERT-base transfer score among the main and simple joint variants. In phrase-only training, the simpler features give the stronger MRPC score. The best feature design for a phrase exercise in isolation can therefore differ from the feature design that helps when sentence supervision is also present. A plausible reading of the authors’ interpretation is that the original feature construction makes some useful paraphrase distinctions readily available to the intermediate classifier, while the simpler version encourages representations that can serve a wider set of downstream decisions. The comparisons measure transfer outcomes and provide indirect evidence for this account.

The appendix also examines whether the sentence and phrase objectives still help together when the phrase classifier uses the simpler input. On STS-B test Pearson correlation, the joint simple version reaches 87.7, compared with 87.6 for sentence training alone and 86.6 for three-way phrase training with simple features. On RTE test accuracy it reaches 67.0, compared with 66.2 and 65.6 for the separate objectives. On QNLI the corresponding test accuracies are 91.1, 90.2, and 90.6. These comparisons establish cases where the gain from combining the objectives survives the change in phrase features.

The simple joint version also has limits as an explanation for which objective matters. On MRPC, its 88.6 test F1 trails the simple phrase-only result of 89.0. On QQP, both simple settings score 71.5 test F1, and on MNLI, both score 84.7/83.6 test accuracy. Those ties and reversals matter because they show that complementarity is an empirical pattern on particular tasks. The ablations help locate the effect more precisely. Whether joint supervision is beneficial depends on the benchmark and on the way the phrase objective presents span information to its classifier.

### Limitations

#### Limits the authors identify

The authors point to domain mismatch as one possible reason that the original procedure leaves full-data QQP unchanged relative to BERT-base. They describe much of their paraphrase material as coming from news, whereas QQP contains questions from a social question-answering forum. The collection does include a Twitter component, and Para-NMT supplies most of the aligned pairs. The experiment trains on the mixture. The authors propose studying the domain effect with paraphrase data generated across domains, which would make it possible to examine the explanation more directly.

They also identify a question about encoder size. In the main discussion they report trying the original method on BERT-large and finding that the improvement was too limited to justify the larger size for their purpose. The appendix provides encouraging results for the simple feature version on BERT-large. Together, these observations suggest that feature choice can matter at the larger size too. The paper leaves a broader investigation of how the procedure responds to different pretrained sizes for future work.

The paper discusses the possibility that some fine-tuning results are sensitive to small training sets. The authors report stable performance under the shared hyper-parameters in their evaluation and leave a more extensive stability study open. The same settings across tasks and systems make the comparisons interpretable on common terms. Especially in the sub-sampling experiment, the reported scores describe the outcomes at the sampled training sizes under that recipe. Detailed variation across repeated samples and choices of settings would give a clearer view of how consistently the smaller gains can be recovered.

The authors give several explanations for why transfer might weaken as the target moves away from equivalence. Natural language inference can require a conclusion to follow in a particular direction, whereas the equivalence they aim to teach is mutual. The detailed phrase features may specialize the original adaptation closely to paraphrases. For single-sentence tasks, the authors suggest that training on pairs could weaken the representations needed when only one sentence is given. They also consider the demands of the labels themselves. Matching sentiment can occur without a paraphrase relationship, and grammatical acceptability asks for information outside the semantic relation used as intermediate supervision. These possibilities fit the observed scores and remain explanations to be tested individually.

Finally, the phrase aligner supplies imperfect labels. The authors rely on an earlier evaluation of alignment quality and on prior evidence that neural training can benefit from noisy additional supervision. They propose investigating whether the adapted encoder could, in turn, improve phrase alignment. The current paper studies transfer from the existing alignment process. Any improvement from feeding the adapted representations back into that process remains future work.

#### Limits visible in the experimental design

The upstream phrase and sentence accuracies need to be read in light of their labels. Random examples are sampled by a known procedure, and the within-paraphrase examples are generated by span replacement. A high score on the intermediate test set shows that an encoder trained on those distinctions can apply them to held-out examples constructed for the same exercises. A separate assessment with independently judged phrase relations would be needed to establish how well it recognizes semantic equivalence at phrase level in other settings. The main evidence for transfer is the eventual benchmark performance.

Automatic alignment and sampling can introduce uncertainty in either direction. An aligner can pair spans whose relation is approximate, or leave a valid correspondence unaligned. Within a paraphrase, a randomly selected replacement might express much of the meaning of the intended equivalent. Randomly selected sentences can also happen to be related. The paper’s construction makes practical use of the labels at scale. Its results describe the value of that construction taken together, with no estimate of how much more transfer would follow from independently verified phrase labels.

The intermediate examples also combine different corpus origins. Parallel translations, simplification pairs, shared-URL tweets, and machine-translated material supply different cues to sentence relatedness. The counts show that the sources contribute very unevenly. The paper evaluates the pooled corpus and does not report training one version per source. Accordingly, the strongest evidence concerns the resulting mixture, while questions about which sources are necessary, which drive gains in a particular domain, or how source choice interacts with sample size remain open.

The feature comparison changes pooling and the classifier input jointly. A mean pooled vector contains information from all positions through averaging. Max pooling carries the largest activation per coordinate. The difference and product features further change what the classifier can read directly. Because the appendix changes those decisions in the same experiment, its results support the simpler package. They leave open whether mean pooling, plain concatenation, or their combination is responsible for a particular improvement.

There is a corresponding limit to what the parameter comparison establishes. The paper demonstrates that a BERT-base encoder can beat the ordinary BERT-large reference on selected tasks after an additional training stage. That intervention uses a large paraphrase corpus, phrase alignment, and accelerator time. A retained encoder size and the total cost of producing that encoder answer different practical questions. The reported experiments establish the former and give settings for the extra training. They supply no end-to-end resource comparison for obtaining or using the resulting systems.

The data-efficiency experiments are strongest as controlled comparisons within the three equivalence datasets. Each uses reductions of the target training split and evaluates on the same corresponding development split. That gives evidence about the amount of task-specific supervision needed under the common fine-tuning recipe. It leaves open the size of the effect on independent collections, and it gives limited grounds for extending the finding to other task families. RTE is a suggestive case because it is small and shows a gain, but it has no corresponding training-size series in this evaluation.

Finally, the main evaluation provides a limited sample of what can follow paraphrase training. SST and CoLA show that the original adaptation can lose ground on single-sentence tasks. The simple feature appendix focuses on equivalence and inference and leaves those two single-sentence comparisons unanswered. The reported gains therefore apply to specific sentence-pair tasks and versions of the intermediate training. The mixed outcomes give a concrete reason to treat the downstream task’s relationship to the intermediate objective as part of the experimental question.

### What came after

Intent detection is a neighboring task for sentence representations. An intent detector has to associate an utterance with the category of request or purpose it expresses. Arase and Tsujii’s experiments ask a related question about meaning across different wording, through paraphrase decisions and graded similarity. The target label changes when the setting shifts to intent. Sentences can belong to the same intent category while expressing different details, and a task organized around intent categories may use a different criterion for deciding what information a useful representation should preserve.

The later work listed for this connection is [Efficient Intent Detection with Dual Sentence Encoders](https://md.research.elamur.ai/free/en/papers/casanueva-2020-efficient-intent-detection-dual-sentence/), from 2020. It studies efficient intent detection using dual sentence encoders and cites the transfer fine-tuning paper. The citation establishes a connection between research on representations for semantic equivalence and research on representations for recognizing intent. The documented link is at the level of sentence encoding and related decisions about meaning. It leaves open whether the later work used the intermediate paraphrase stage, the aligner, or either of the phrase classification designs.

The distinction matters in tracing what was carried forward. The BERT case study gives evidence about adding supervision before downstream fine-tuning. It asks whether training on whole paraphrases and their constituent spans helps later comparisons between texts. The citing work frames its own problem around efficient intent detection with a dual-encoder design. A claim that the earlier paper’s gains transfer to intent detection would require a result on intent labels under the relevant training conditions. The citation identifies where the research questions meet, while the experimental evidence discussed here remains that of the paraphrase, similarity, and inference benchmarks.

## Cite

Cite as Yuki Arase and Jun'ichi Tsujii. 2019. Transfer Fine-Tuning: A BERT Case Study. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).

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

```bibtex
@inproceedings{arase2019transfer,
  title = {{Transfer Fine-Tuning: A BERT Case Study}},
  author = {Yuki Arase and Jun'ichi Tsujii},
  booktitle = {Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)},
  year = {2019},
  doi = {10.18653/v1/d19-1542},
  url = {https://doi.org/10.18653/v1/d19-1542}
}
```

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