---
title: "Transfer Learning for Sequence Tagging with Hierarchical"
description: "This paper tests how sharing character, word, and tagging layers helps neural sequence taggers learn from related annotated datasets."
canonical: "https://research.elamur.ai/free/en/papers/yang-2017-transfer-learning-sequence-tagging-hierarchical/"
---
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/yang-2017-transfer-learning-sequence-tagging-hierarchical/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2017](https://md.research.elamur.ai/free/en/papers/2017/) / Transfer Learning for Sequence Tagging with Hierarchical Recurrent Networks

# Transfer Learning for Sequence Tagging with Hierarchical Recurrent Networks

Paper · 2017 · Zhilin Yang, Ruslan Salakhutdinov and William W. Cohen

**Authors:** [Zhilin Yang](https://md.research.elamur.ai/free/en/authors/zhilin-yang/), [Ruslan Salakhutdinov](https://md.research.elamur.ai/free/en/authors/ruslan-salakhutdinov/) and [William W. Cohen](https://md.research.elamur.ai/free/en/authors/william-w-cohen/) · **Year:** 2017 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**194** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2604986524) · [Cited by **94** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/yang-2017-transfer-learning-sequence-tagging-hierarchical/cited-by/) · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

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

Citations: OpenAlex, 2026-10-14.

## Summary

A sequence tagger assigns a label to each word in a sentence. In [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), those labels describe grammatical roles such as noun or verb. In [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/), the labels together mark spans that name people, places, or other entities. A tagger can learn to perform either job from annotated sentences, but a new kind of text may have very few of them. This paper asks how much a tagger can learn about a sparsely annotated target from a related, better annotated source. Its experiments change the domain, the tagging task, the language, or several of these at once.

The authors build a tagger in stages. A character network reads the spelling of each word. A word network combines the resulting vector with a word embedding and examines the sentence around it. A conditional random field then scores possible tag sequences. Transfer takes place during joint training, when batches from the source and target both update whichever parameters they share. The authors share the entire tagger when label inventories can be mapped, give each task a separate tagging layer when the labels differ, and share only the character components when training across languages with similar alphabets.

The benefits were generally larger when the target had less annotation and when the source was closely related. A tagger trained on Penn Treebank part-of-speech data reached 83%+ accuracy on biomedical Genia text with zero target training labels. With a Genia labeling rate of 0.001, it reached 92% test accuracy. Training with a source also improved Twitter part-of-speech tagging and entity recognition at every tested labeling rate, with gains of more than 8% on each task at a rate of 0.1. In a separate comparison using standard benchmarks, the jointly trained systems surpassed the reported prior best results on the benchmarks considered except Penn Treebank part-of-speech tagging.

A comparison that keeps the Penn Treebank source and Genia target fixed gives the clearest evidence about how much to share. The improvement decreased as the authors made more of the architecture task-specific. The broader experiments show why this finding matters for design. Closely matched tasks can update the same contextual and tagging layers, while a change in language or in the meaning of the labels can leave far less of the tagger suitable for sharing.

## Deep dive: Transfer Learning for Sequence Tagging with Hierarchical Recurrent Networks

This paper tests how sharing character, word, and tagging layers helps neural sequence taggers learn from related annotated datasets. · about 34 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

#### A common prediction format across different tasks

A sentence arrives as a sequence of words, and the tagger returns a sequence of labels in corresponding positions. What those labels mean depends on the annotation task. A part-of-speech tag describes the grammatical category assigned to a word in its sentence. A chunking tag helps identify the bounds of a phrase. An entity tag helps indicate which words belong to a name. Phrase and entity tagging both illustrate why it matters to predict a sequence. A span may consist of several words, and the labels across that stretch of text jointly determine what the tagger has found.

These applications share a prediction format even when their annotations answer different questions. A word that contributes to a name also has a grammatical role. The order of nearby words can be evidence for phrase boundaries as well as for grammatical categories. A tagging system that turns words and their context into numerical representations therefore has somewhere to encode information of value to multiple applications. Whether training on one application will actually produce useful representations for another is an empirical question. That is the opening for the paper's experiments.

The authors frame the practical problem around [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/). They call the task a researcher wants to improve the *target*, and the related task that supplies additional labeled examples the *source*. Scarcity is relative to the target task as defined by its text and its labeling conventions. The existence of a substantial corpus annotated for part of speech says little about how many tweets are annotated for the same purpose, let alone how many tweets have entity labels. The source examples count as extra supervision only through whatever the training arrangement lets the two tasks share.

A change of domain can affect the words and constructions a tagger sees. The paper treats biomedical text and Twitter text as examples of domains with their own regularities. The difference can reach into the annotations themselves. A tag for a URL in a Twitter dataset has no corresponding tag in the Penn Treebank inventory. In another pair, the authors can map Genia's biomedical part-of-speech annotations to Penn Treebank categories. The decision about how to handle labels therefore depends on the actual corpora, even when both sides of the transfer are called part-of-speech tagging.

A change of application raises a different issue. A corpus labeled for parts of speech generally supplies a different answer at each position from a corpus labeled for chunking. The two tasks can still learn from shared spelling and context. A change of language raises a further question about the units on which sharing can operate. Word identities and their contexts belong to a particular language, but words in languages with closely related alphabets can have recognizable parts in common. The paper treats such overlap as a basis for sharing at the character level in [multilingual and cross-lingual NLP](https://md.research.elamur.ai/free/en/topics/multilingual-nlp/).

#### Earlier routes for transferring supervision

In the paper's account, one family of approaches uses additional linguistic resources to create weak supervision. A bilingual dictionary can establish correspondences between words, and an aligned corpus can connect pieces of text across languages. Such correspondences can help carry annotation from a source into a target language. The paper describes considerable success for resource-based transfer and emphasizes that its effectiveness depends on the amount and quality of the resources it uses. Projection through aligned corpora is one of the earlier routes it cites. [Inducing Multilingual Text Analysis Tools via Robust Projection across Aligned Corpora](https://md.research.elamur.ai/free/en/papers/yarowsky-2001-inducing-multilingual-text-analysis-tools/)

Another family changes how the source and target systems learn. The connection can come from a common representation, from parameters optimized on both tasks, or from assumptions built into the training procedure. The paper cites earlier work on learning shared predictive structure, as well as joint training that used part-of-speech and entity annotations to help chunking. It also describes concurrent use of word segmentation and entity recognition for Chinese social media as an example of transfer between recurrent tagging tasks. Joint training and parameter sharing were therefore established options when the authors asked how far they could extend those options through a hierarchy.

The related work on domain adaptation likewise approached the problem through several mechanisms. The paper names robust features, co-training, hierarchical Bayesian priors, and canonical component analysis. Their inclusion matters because the problem of learning across domains predates the neural architecture studied here. The authors' decision is to place adaptation inside the tagger itself. They determine which parts of it are common to the source and target, and use labeled training batches to adjust those parts. One earlier example of a different treatment of the relationship between domains is [Hierarchical Bayesian Domain Adaptation](https://md.research.elamur.ai/free/en/papers/finkel-2009-hierarchical-bayesian-domain-adaptation/).

#### Why the architecture matters

The paper places its tagger in a line of systems that learned their own intermediate features. Earlier end-to-end work used a task-independent convolutional architecture and jointly trained different tagging applications. Later work used several combinations of recurrent and convolutional components. Across that literature, the authors see a recurring arrangement in which a system first represents the word, then represents the word in context, and finally turns those contextual features into labels. The same broad design had already been used across several tasks. [Natural Language Processing (almost) from Scratch](https://md.research.elamur.ai/free/en/papers/collobert-2011-natural-language-processing-almost-scratch/)

A recurrent component maintains a state from one input position to the next. That makes it suitable both for reading letters in a word and for reading words in a sentence. A convolutional component offers another way to derive local features, and the paper's general account of neural taggers allows either kind of component at the character and word levels. Earlier architectures combined these elements in different ways. Some of the work the authors cite also uses structured prediction at the output, so that decisions about neighboring tags can enter the same score. [Named Entity Recognition with Bidirectional LSTM-CNNs](https://md.research.elamur.ai/free/en/papers/chiu-2015-named-entity-recognition-bidirectional-lstm/) and [End-to-end Sequence Labeling via Bi-directional LSTM-CNNs-CRF](https://md.research.elamur.ai/free/en/papers/ma-2016-end-end-sequence-labeling-bi/)

Using the same design for different tasks is distinct from letting those tasks update the same parameters. A researcher could build a separate copy of a general-purpose tagger for every dataset. Each copy would then learn only from its own examples. The authors ask what happens when some of those copies occupy the same place in the training computation. Their hierarchy supplies several boundaries at which to make that decision. Sharing at the bottom can convey evidence about spelling, sharing further up can convey evidence about sentence context, and sharing the output layer also requires agreement about the labels.

### The method, step by step

#### From letters to a sequence of tags

Start with one word in a sentence. The first stage represents each character by an embedding, a vector of learned numerical values. The character network reads the resulting sequence of vectors and produces a representation for the word's form. Its input changes with the spelling, so this part of the tagger can take account of regularities within words. The authors associate this stage with [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/), the structure of word forms. The vector is learned from the tagging losses. It need not contain a set of explicitly named morphological categories.

The system then joins the character representation to a word embedding. A [word embedding](https://md.research.elamur.ai/free/en/concepts/word-embeddings/) represents a word as a vector in its own right. The character computation gives the system an additional way to represent it from its spelling. Joining the vectors preserves both sources of information for the next stage. A word's own vector can carry what the system learns about its identity, while the character vector can reflect aspects of its form that recur across word types.

The word network now reads the sequence of these combined representations. This stage accounts for the words around a position. The character network has already run within the word, and the word network can put the resulting form information in the context of the sentence. Both networks read in both directions. At word level, this lets the representation draw on material before and after the position to be tagged. At character level, it lets the representation draw on the order of letters from both directions within the word.

The output is a sequence of contextual vectors, one for each word. A conditional random field, abbreviated CRF, uses those vectors to score label sequences. The CRF makes it possible to evaluate a proposed tag in relation to the surrounding tagging decisions. This is relevant to the span-based tasks, where the sequence of tags determines the proposed span. The paper's hierarchy thus goes from letters within a word to words within a sentence and then to labels for that sentence.

From characters and words to a tag sequence The steps in order.

#### Choosing which components to share

The authors call the fully shared arrangement T-A. It is designed for transfer between domains when the tag sets can be mapped to a common inventory. The character and word embedding parameters, both recurrent components, and the CRF are shared. The authors put the label mapping above the CRF. In the experiment with Penn Treebank and Genia, this uses an existing mapping from Genia part-of-speech tags to Penn Treebank tags. A source sentence can then update the same sentence encoder and the same tagger that will be applied to a sentence from the target domain.

The mapping is a substantive requirement for this arrangement. A common output layer uses common label meanings when it scores competing sequences. Aligning those meanings gives the annotations from both domains a way to affect the same output parameters. This is a stronger connection than simply exposing the character network to more spellings. It also lets source annotations influence how the common tagger uses contextual evidence to distinguish grammatical categories.

The arrangement called T-B keeps the input and encoding components shared and gives each side a separate CRF. The character embeddings, character network, word embeddings, and word network still receive supervision from both tasks. The decision layers, however, associate the learned representations with each corpus's own labels. A target label such as the Twitter URL tag has a place in its own CRF, and the Penn Treebank CRF can operate with the Penn Treebank inventory.

T-B also serves for transfer across applications in the same language. A part-of-speech task and a chunking task can both update an encoding of a sentence, and each CRF can use that encoding to answer its own tagging question. The transfer does not require a correspondence between a grammatical category and a phrase boundary. What the tasks have in common is the text to be encoded and the possibility that a feature learned from one kind of annotation will help the other. The label inventories retain their separate meanings throughout.

For cross-language transfer the authors use T-C. The languages share the character embeddings and the character-level network. Each has its own word embeddings, word-level network, and CRF. Source-language supervision can shape the way the system represents a spelling. The target still learns how to combine spelling with target word identity, how to use target sentence context, and how to score its labels. T-C thus permits transfer at a point where the languages can share inputs even when the higher parts of the tagger are kept language-specific.

The authors illustrate the premise with *Canada* in [English](https://md.research.elamur.ai/free/en/topics/english/) and *Canadá* in Spanish. The words have related forms and refer to the same entity. A shared character encoder can respond to their common letters and letter order. The example explains the opportunity for transfer, without requiring the system to be told that the words are translations. Nothing in the sharing scheme pairs these words as training examples. It is the common character computation, adjusted by the tagging objectives on each side, that can convey useful form information.

#### The recurrence inside the encoders

The implementation uses gated recurrent units, or GRUs, for both levels of encoding. A GRU takes the vector at the current position and a state from the preceding position in the current reading direction. It calculates an updated state, which becomes available at the next position. The gates are themselves vectors. They allow the unit to preserve some components of the preceding state and to update others as it reads new input. The paper traces this unit to earlier encoder–decoder work. [On the Properties of Neural Machine Translation: Encoder-Decoder Approaches](https://md.research.elamur.ai/free/en/papers/cho-2014-properties-neural-machine-translation-encoder/)

```
(x₁, x₂, …, xₜ, …, xₜₒₜₐₗ)
```

Here `x₁` and `x₂` are the input vectors at the first and second positions. The ellipses stand for the intervening vectors, `xₜ` is the vector at a generic position indexed by `t`, and `xₜₒₜₐₗ` is the final vector, indexed by the total length. The paper writes the final index as upper-case `T`. At the character level a vector in this sequence comes from the character embedding. At the word level it comes from joining a character representation and a word embedding. Within each directional recurrence, the input at a given position is used with the state from the preceding position in that direction.

```
rₜ = σ(Wᵣₓ xₜ + Wᵣₕ hₜ₋₁)
```

The vector `rₜ` is the reset gate at position `t`. The vector `xₜ` is the input there, and `hₜ₋₁` is the hidden state from the preceding step. The matrices `Wᵣₓ` and `Wᵣₕ` are learned parameters that transform the input and preceding state for the reset gate. A matrix written beside a vector denotes matrix–vector multiplication. The plus sign adds the transformed vectors. The function `σ` applies the logistic sigmoid to each component of the sum. The reset vector will control how much of the old state enters the computation of the candidate state.

```
zₜ = σ(W𝓏ₓ xₜ + W𝓏ₕ hₜ₋₁)
```

The vector `zₜ` is the update gate at the same position `t`. The matrices `W𝓏ₓ` and `W𝓏ₕ` are learned parameters for this gate, applied respectively to the current input `xₜ` and to the preceding state `hₜ₋₁`. The sum again passes through `σ`, the componentwise logistic sigmoid. In the convention used here, a larger update-gate component gives more weight to the previous state in the final interpolation. The update gate and the reset gate therefore affect different places in the recurrence.

```
σ(x) = 1 / (1 + e⁻ˣ)
```

Here `σ` is the logistic sigmoid and `x` is the value to which it is applied. For a vector argument the expression applies separately to each component. The symbol `e` is the base of the natural exponential, and `−x` is its exponent. The slash denotes division by the entire parenthesized sum. The constants `1` in the numerator and denominator give the transformation that puts each gate component between zero and one. That range lets it act as a weight in the subsequent calculations.

```
h̃ₜ = tanh(Wₕₓ xₜ + Wₕₕ (rₜ ⊙ hₜ₋₁))
```

The vector `h̃ₜ` is the candidate hidden state at position `t`. Its inputs are the current vector `xₜ` and a gated version of the preceding state `hₜ₋₁`. The symbol `⊙` means multiplication between corresponding components of vectors, so `rₜ ⊙ hₜ₋₁` is the preceding state after scaling by the reset gate. The learned matrix `Wₕₓ` transforms the current input and `Wₕₕ` transforms the gated state. The function `tanh` is the hyperbolic tangent, applied component by component to the added results. Small reset-gate values reduce the influence of the corresponding components of the old state on the candidate.

```
hₜ = zₜ ⊙ hₜ₋₁ + (1 − zₜ) ⊙ h̃ₜ
```

The vector `hₜ` is the hidden state passed forward from step `t` in the current direction. The terms being blended are the previous state `hₜ₋₁` and the candidate `h̃ₜ`. The update gate `zₜ` weights the preceding state, and `1 − zₜ` subtracts each gate component from one to obtain the corresponding weight for the candidate. The symbol `⊙` again indicates componentwise multiplication. The sum adds the two weighted vectors. A component can retain more of the old state even when the candidate has changed substantially.

The recurrence gives the local calculation for one direction of reading. The paper uses bidirectional GRUs in both encoders, and each encoder has two layers. A character-level hidden representation becomes part of the word-level input. At the word level the resulting contextual states supply the sequence of features used by the CRF. Reading the equations as a description of a single recurrent step helps distinguish two structures that coexist in the tagger. A state moves along positions within an encoder, and a representation moves upward from the character encoder to the word encoder.

This implementation resembles earlier neural entity taggers that also derive information from characters before reading the sentence. The authors identify the use of GRUs at both levels and the use of a cost-sensitive training objective as differences from a closely related architecture. Their sharing arrangements are specified in terms of the layers and what those layers represent. The particular gated unit is the implementation used for the experiments. [Neural Architectures for Named Entity Recognition](https://md.research.elamur.ai/free/en/papers/lample-2016-neural-architectures-named-entity-recognition/)

#### Scoring the annotation and its alternatives

The word encoder produces a sequence of contextual vectors, which the paper denotes by `h`. The observed annotation produces a corresponding sequence of tags, denoted by `y`. Each tag belongs to the relevant inventory. The score for a proposed sequence can use the contextual word features and information about labels in the sequence. This lets the tagging layer assess the compatibility of a complete prediction with the input.

```
f(h, y) − log ∑[y′ ∈ 𝒴(h)] exp(f(h, y′) + cost(y, y′))
```

Here `h` is the ordered sequence of word-level feature vectors, and `y` is the annotated tag sequence for those words. The function `f` gives a score to a feature sequence paired with a tag sequence. The symbol `y′` is a candidate tag sequence, and `𝒴(h)` is the collection of candidates for the input represented by `h`. The membership symbol `∈` specifies which candidates the sum `∑` runs over. The function `cost(y, y′)` gives the cost of the candidate relative to the annotation. The function `exp` exponentiates each cost-adjusted candidate score, and `log` takes the natural logarithm of their sum. The objective subtracts that quantity from the annotated sequence's score `f(h, y)`.

Training seeks to maximize this expression. Raising the score of the annotated sequence helps it compete with the other sequences in the logarithmic term. A candidate with a larger cost contributes more to that term at the same unadjusted score, so the objective puts greater pressure on the tagger to lower its score. This is the paper's max-margin rationale for adding cost. The cost enters the comparison among tag sequences during training. It does not provide annotations for an additional sentence.

The sharing schemes govern whose annotations can change the scoring function. In T-A, the output parameters receive updates associated with both corpora under the mapped label inventory. In T-B, the sequence scorer for the source and the one for the target are distinct, even though they draw on the same contextual encoder. In T-C, supervision from both sides reaches the common character component through different word encoders and scorers. The objective can be used within each task in all these cases. What changes is which parameters are common across the objectives.

#### How batches from the source and target are combined

The source and target come with separate training instances. The authors denote the source task by `s` and the target task by `t`, with collections `Xₛ` and `Xₜ` respectively. In this part of the paper `t` denotes the target, instead of the position in the GRU equations. Each task uses the shared parameters together with any parameters reserved for that task.

```
Wₛ = Wₛ,ₛₚₑ꜀ ∪ Wₛₕₐᵣₑ𝒹
```

The set `Wₛ` contains the parameters used on the source task `s`. The set `Wₛ,ₛₚₑ꜀` contains the parameters specific to that task, where `spec` means task-specific. The set `Wₛₕₐᵣₑ𝒹` contains the parameters common to both tasks. The union sign `∪` combines the two sets. A source update can affect each part of this union.

```
Wₜ = Wₜ,ₛₚₑ꜀ ∪ Wₛₕₐᵣₑ𝒹
```

The set `Wₜ` contains the parameters used on the target task `t`, and `Wₜ,ₛₚₑ꜀` contains the target-specific parameters. The set `Wₛₕₐᵣₑ𝒹` is the same shared set that appears in the source expression, and `∪` again denotes set union. The repeated shared set represents a single set of trainable parameters. A target update changes the shared part subsequently used by the source, as well as the parameters reserved for the target.

At each iteration the training procedure first chooses a task, using a binary random draw with a probability set as a hyper-parameter. This choice controls how often source and target batches enter training. The procedure then samples a batch from the selected task and computes its gradient. It updates the shared parameters and the selected task's private parameters. For instance, with T-B a source batch changes the common encoders and the source CRF. A subsequent target batch can change those same encoders through the target CRF.

The updates use AdaGrad, which adjusts learning rates as training proceeds. The authors use early stopping, choosing when to stop by monitoring target performance. They motivate this choice by the possibility that the source and target converge at different rates. The source is included to support the target, so the stopping criterion follows the task whose performance the experiment is intended to improve. The authors identify their implementation as `kimiyoung/transfer` and make its code available.

### Experiments and results

#### Which datasets represent the transfer problems

The experiments use Penn Treebank part-of-speech tagging, CoNLL 2000 chunking, and the CoNLL 2003 English entity-recognition benchmark. For the Penn Treebank experiment, the grammatical tags are taken from parsed trees using the preparation instructions the authors cite. They also use CoNLL 2002 entity-recognition datasets for Spanish and Dutch. Together these benchmarks make it possible to compare different applications in the same language and the same application across languages. [Feature-Rich Part-of-Speech Tagging with a Cyclic Dependency Network](https://md.research.elamur.ai/free/en/papers/toutanova-2003-feature-rich-part-speech-tagging/)

The authors use the Genia biomedical corpus and a Twitter corpus to study changes of domain. For each corpus they randomly allocate 80% to training, 10% to development, and 10% to testing because the corpora have no standard split for this study. Development data serve decisions about fitting and configuration. Test data supply the final performance measurement. The Genia experiment maps the biomedical grammatical tags into the Penn Treebank inventory. Twitter makes it possible to study domain transfer where the task-specific output can matter as well. [Named Entity Recognition in Tweets: An Experimental Study](https://md.research.elamur.ai/free/en/papers/ritter-2011-named-entity-recognition-tweets-experimental/)

The experiments also include a feature added for comparability in CoNLL 2003 English entity recognition. The authors append one-hot gazetteer features at the input to the CRF. A gazetteer provides lists that can furnish evidence about names, and a one-hot feature represents a category by activating its corresponding coordinate. This information joins the neural representation at the output stage. Its presence matters when interpreting the English benchmark as evidence about what a tagger can learn from character and word inputs alone.

#### How the scarce-label comparisons are set up

To study learning with little target annotation, the authors retain a random fraction of the target training sentences. They use labeling rates of 0.001, 0.01, 0.1 and 1.0. The rate is a fraction of sentences drawn from the training set, while the actual number of words depends on the corpus and on the sentences selected. For Penn Treebank part-of-speech tagging, the authors give around 900 training tokens as the scale of the sample at a labeling rate of 0.001. The remainder of the target training set is discarded for that setting. The procedure simulates annotation scarcity within an existing benchmark.

The rate has to be read in relation to the dataset. Applying the same fraction to two training corpora need not produce comparable token counts or comparable coverage of tag types. This is also why the paper uses labeling rates chosen to keep the amount of labeled material on a similar scale in its tabulated comparisons. A reader should distinguish a comparison across rates on a single target from a comparison of similarly sized training samples on different targets. They answer different questions about where source supervision helps.

The comparisons across labeling rates use a fixed set of hyper-parameters. Character embeddings have dimension 25. Word embeddings have dimension 50 for English and 64 for Spanish. Character-level GRU hidden states have dimension 80, and word-level GRU hidden states have dimension 300. AdaGrad starts with a learning rate of 0.01. Keeping these settings fixed gives the with-transfer and target-only runs a common experimental frame as the amount of target annotation changes.

The immediate baseline is the same base tagger trained on the target task without transfer. In the experiments with a related source, a performance gain is measured against that target-only run at the corresponding labeling rate. This comparison asks how much additional supervision the shared system extracts from the source, given a particular amount of annotated target training data. The paper also compares with previously published systems in a separate benchmark comparison. That second comparison asks how the resulting taggers perform in the context of earlier results.

Accuracy measures part-of-speech tagging at the word level. Each predicted tag can be compared with the annotation at its word position. For chunking and entity recognition the paper uses chunk-level F1. Here the comparison is between spans recovered by the tagger and spans in the annotation. F1 combines precision, the proportion of predicted spans that are correct, with recall, the proportion of annotated spans recovered. The paper therefore uses different measures for grammatical tags and for the applications in which a predicted span is the object being evaluated.

#### Domain transfer with scarce target annotations

The Penn Treebank to Genia experiment is the strongest illustration in the paper of how far a matched output vocabulary can carry a tagger. With zero labeled Genia training examples, the tagger reaches 83%+ tagging accuracy on the biomedical target. At a Genia labeling rate of 0.001, test accuracy reaches 92%. These are target accuracies under different label conditions, with Penn Treebank providing the source supervision. The zero-label result is possible within T-A because the mapped label inventory and the shared CRF give the source-trained system an output vocabulary usable on the target.

The two Twitter tasks show that domain transfer can also help when the target needs its own decision layer. Penn Treebank part-of-speech tagging provides a source for Twitter part-of-speech tagging, and CoNLL 2003 English entity recognition provides a source for Twitter entity recognition. The authors report better Twitter performance with transfer at all tested labeling rates. At 0.1, each task has a reported improvement of more than 8% over its own target-only run. The measure is tagging accuracy for Twitter part of speech and chunk-level F1 for Twitter entities.

The Genia and Twitter comparisons give different views of the same practical problem. The Genia figure reports the level of accuracy a transferred tagger reaches, including the setting with no labeled target training examples. The Twitter figures establish gains over target-only training when some labeled target material is available. In Twitter, the evaluation rewards a system that uses the shared evidence while learning how to express decisions in the target's label inventory. The Genia accuracy and the Twitter gains are therefore distinct quantities.

#### Transfer between applications and languages

When using Penn Treebank part-of-speech tagging as the source, the authors see gains in both chunking and entity recognition. At a target labeling rate of 0.1, the reported gain is 6% on CoNLL 2000 chunking and 3% on CoNLL 2003 English entity recognition. Both numbers are improvements over the target-only run in chunk-level F1 on the respective dataset. Both target taggers retain their own CRF. The extra grammatical supervision reaches them through the shared character and word components.

Chunk-level F1 gains on CoNLL 2000 chunking and CoNLL 2003 English NER at labeling rate 0.1 With Penn Treebank part-of-speech tagging as the source, the reported gain is larger for chunking.

**The numbers**

| System or setting | Reported F1 improvement (%) |
| --- | --- |
| CoNLL 2003 English NER with transfer | 3 |
| CoNLL 2000 chunking with transfer (this paper) | 6 |

The size of the gain describes the effect of adding that source to the corresponding target run. The chunking and entity datasets have different labels and evaluation instances, so their gains do not amount to a ranking of their final F1 scores. The comparison instead shows how much the two target evaluations changed under the same kind of sharing, with the same source application. It is compatible with the authors' broader observation that the value of the source depends on its relation to the target.

The cross-language experiments examine English and Spanish entity recognition, using each as a source for the other. The authors report that sharing the character components helps when labeled target material is scarce. The two language directions matter because the training and evaluation roles are reversed. In either direction, the target has to learn its own word-level and output components. The report describes the cross-language gains as less substantial overall than the gains in the settings that allow sharing further up the architecture.

The authors also study transfers that change more than one aspect of the task. Genia part-of-speech tagging is the target in comparisons that move from a domain change to a change of both domain and application, and then also change the language. One of the sources is Spanish entity recognition in the general domain. It supplies a signal from a different language and application for a biomedical grammatical-tagging task. The gains diminish as the source and target become more loosely connected in this series of comparisons.

#### Performance against earlier benchmark results

The benchmark comparison uses publicly available pretrained word embeddings to initialize the taggers. For English, the authors consider 50-dimensional SENNA embeddings and 100-dimensional [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/) embeddings, choosing between them on development data for the task and setting. For Spanish and Dutch they use 64-dimensional Polyglot embeddings. The word-level GRU has hidden state dimension 300, and the initial AdaGrad learning rate is 0.01. Development data guide the remaining hyper-parameter choices. This comparison therefore uses a different selection procedure from the fixed-hyperparameter experiments across labeling rates. [Polyglot](https://md.research.elamur.ai/free/en/papers/rfou-2013-polyglot-distributed-word-representations-multilingual/)

The jointly trained English taggers in this comparison use both of the other English tasks when one of the three is designated the target. The tasks are Penn Treebank part of speech, CoNLL 2000 chunking, and CoNLL 2003 entity recognition. The reported Spanish and Dutch entity results come from training with entity annotations in English, Spanish, and Dutch. The benchmark outcome is thus evidence about using multiple sources within the tested families of tasks, alongside the earlier experiments on individual source–target pairs.

The authors compare those taggers with earlier published results only where they have standard benchmark data splits. They exclude Genia and Twitter from that comparison. They report a new best result on the considered benchmarks for chunking and for English, Spanish, and Dutch entity recognition. Penn Treebank part-of-speech tagging is the exception to that benchmark claim. The target-only tagger is also reported to be competitive with earlier systems. That comparison gives context to the scarce-label experiments, whose gains come from extending a base tagger designed to be strong on its own training data.

### What the ablations show

#### Sharing less with the same source and target

The most direct comparison of architectures holds the task pair fixed. The authors use Penn Treebank as the source and Genia as the target and try each of the sharing arrangements on that pair. Since the grammatical label sets can be mapped, fully sharing the CRF as well as the encoders is an available option. The other arrangements deliberately give up some of that sharing. T-B gives up the common CRF. T-C also gives up sharing the word embeddings and word-level recurrent network.

The gains rank from T-A to T-B to T-C in descending order. On this pair, sharing the character components alone makes less of the source signal available to the target than sharing the sentence encoder as well. Sharing the output layer is associated with a further gain when the label mapping permits it. Holding the source and target fixed makes the result more informative than an ordering assembled only from different pairs. It is evidence that the choice of sharing boundary matters even when the domains, the tagging application, and the transfer direction are unchanged.

The steps in this comparison change bundles of parameters. Moving from T-C to T-B adds the word embeddings and the sentence-level recurrent layer together. The resulting change in gain cannot be apportioned between those components from this design. Moving from T-B to T-A connects the output parameters across the two corpora under the mapping. The experiment measures the performance effect of making that connection as part of the system, instead of identifying which individual tag decisions improve because of it.

The comparison also changes where the target has to learn its own parameters from limited data. In T-C it has to learn a separate word encoder and tag scorer. In T-A it can use those components as optimized by both sources of supervision. Giving a component more training examples and giving the source and target a common representation are closely connected in this design. The experiment establishes the value of sharing the bundle for Genia. It provides less leverage for identifying a single mechanism behind that value.

#### Varying the amount of target supervision

Another controlled comparison changes the target labeling rate. At each rate, the paper compares transfer against target-only training. The improvement is generally larger at lower rates. A target-only run in those conditions must derive its tagging behavior from a small set of annotated sentences. A shared layer can also receive updates when the source task is sampled, which gives it another route to learn features that will be used on the target.

A comparison of gains across rates is distinct from a comparison of raw transferred scores across rates. More target annotation can help the target-only run as well as the jointly trained run. The quantity under discussion here is how far the latter moves ahead of its baseline under the same target labeling condition. The pattern therefore tells a reader where the source makes the greatest difference to the experimental comparison. The benchmark results show separately that the possibility of a gain persists on well-annotated datasets.

The Genia result with zero labeled target training examples clarifies the role of output sharing. The mapped inventory allows the fully shared tagger to be applied to the domain using the learned source-side decision layer. In the experiments using private target components, the scarce-label analysis instead asks how those components use a small amount of target supervision together with features shaped by the source. The results belong to different training conditions, even when they are discussed together as examples of scarcity.

#### Comparing sources at different distances from Genia

The Genia experiments offer a second way to look at the relationship among tasks. They keep the target in view while changing the source. The closest source in the comparison is Penn Treebank grammatical tagging, which differs from Genia in domain. An English entity source differs in both domain and application. A Spanish entity source adds a language change. As these differences accumulate, the reported gains diminish.

The authors interpret this pattern in terms of the regularities source and target have in common, and the number of layers that can exploit them. The Penn Treebank pair permits the output layer to use a common label inventory. An entity source supplies labels with a different purpose. The Spanish entity source also uses a different word system, so under the paper's architecture its influence is concentrated in character representations. The direction of the resulting performance changes fits the proposed rationale for choosing different sharing boundaries.

Changing the source also changes its corpus and annotations. The series is therefore evidence about these concrete transfer relationships. It does not isolate the effect of language, domain, or application as independent quantities. The across-experiment ordering, with T-A ahead of T-B and T-B ahead of T-C in observed gains, has the same interpretive issue. The authors reserve the fullest sharing for pairs that already have greater compatibility. The separate comparison of all the arrangements on Penn Treebank and Genia is what lets a reader see an effect of the sharing choice without also changing the task pair.

### Limitations

#### Scope the authors identify

The cross-language method focuses on languages with similar alphabets. Its transfer mechanism uses common character embeddings and a common network over characters, which gives it a route to exploit resemblances like *Canada* and *Canadá*. The paper identifies languages with disparate alphabets, such as English and Chinese, as a much harder case without additional resources. The cross-language results should be read in relation to the inputs the architecture can share. They give evidence for transfer through overlapping forms in the languages studied.

The authors describe their approach as complementary to using resources such as dictionaries, multilingual corpora, and alignments. They point to combining the two routes as future work. Their results establish what the shared layers can do in the tested arrangements. A comparison against a combination of character sharing and resource-based supervision would be a separate experiment. The descriptions of earlier methods motivate the possibility of combining them, while the reported performance belongs to the architecture trained here.

Full sharing in domain transfer depends on the availability of a label mapping. The authors explicitly distinguish domains with mappable inventories from those introducing distinct labels. A target with private labels needs a way to learn its private output parameters. The result with zero Genia training labels relies on a shared output and takes place within an evaluation that has labeled Genia examples to score the predictions. It offers evidence for a mapped grammatical-tagging problem under zero target training supervision.

The benchmark comparison also has a scope the authors set explicitly. Genia and Twitter lack standard splits in this study and are omitted from comparisons with the reported prior best systems. They are evaluated with the paper's own train, development, and test partitions. Gains over the local target-only baseline are meaningful within those partitions. They do not carry the separate benchmark claim made for the standard comparisons.

#### What the experimental design leaves open

The scarcity procedure samples sentences from an available target training set. It answers what happens when a tagger can use only a small fraction of those annotations. A real annotation shortage can also determine *which* sentences are labeled. If the labeled material comes largely from a particular kind of document, or misses certain categories, its coverage can differ from that of randomly selected sentences. The design gives a controlled test of training quantity without determining how sensitive the gains would be to other ways of selecting the scarce labels.

The layer comparisons give limited evidence about individual components. On the matched Genia pair the sharing schemes are nested, so a broad claim about sharing more of this tagger is supported there. The comparison does not assign a separate effect to each embedding table, each recurrence, or each part of the CRF. Nor does it test whether some intermediate arrangement would be especially useful for a pair with partial label overlap. The authors offer a small set of architectures selected around readily understandable task differences.

The comparisons across less closely related sources also leave a source selection problem open. The reader can see that the closest of the studied sources is the most beneficial for Genia and that the available sharing arrangements become narrower for some more distant sources. These observations do not provide a score for predicting the usefulness of an arbitrary source before training. A change in source affects the annotations, the input distribution, and potentially the shared parts at once. The paper's interpretation fits the observed cases, while the design supports those cases more directly than a general rule for selecting sources.

The comparison to prior benchmarks reflects a complete training recipe. Some settings use different pretrained word embeddings selected on development data. English entity recognition includes gazetteer features at the CRF. The benchmark systems take supervision from multiple related datasets. Their reported ranking concerns that combination of choices. The target-only comparisons and the fixed-pair sharing experiment offer more direct evidence about the contribution of joint training, because they pose narrower questions against the base tagger or against a different sharing arrangement.

Finally, accuracy and chunk-level F1 summarize distinct aspects of tagging performance. An aggregate gain can establish that the tagger gets more grammatical decisions or spans right under the relevant metric. It does not say which biomedical categories profit from the mapped output or which forms account for the benefit of shared characters. The English and Spanish spelling example motivates the character-level connection. The performance experiments evaluate the resulting taggers as a whole. Connecting the improvement to particular word forms or annotations would require a more detailed error analysis.

### What came after

#### Representation and supervision for sequence labeling

Several citing works pursue the relationship between word form, context, and tagging supervision from different directions. A line on Chinese entity recognition uses a lattice LSTM, bringing a different architecture into the problem of representing the input for entity tagging. Its point of contact is the distinction between how the text is represented and how entity labels are predicted. The hierarchy studied here offers one arrangement of character and word information, while the lattice work makes the input structure itself part of the architecture under study. [Chinese NER Using Lattice LSTM](https://md.research.elamur.ai/free/en/papers/zhang-2018-chinese-ner-lattice-lstm/)

Work on semisupervised sequence tagging with bidirectional language modeling addresses the same broad pressure to learn a tagger with limited direct supervision. Its stated approach makes bidirectional language modeling the means of supplying an additional learning signal. That connects to the question of how a representation acquired through one objective can help a tagging objective. In the hierarchical recurrent study, the additional objective comes from annotations for a source tagging task. [Semi-supervised sequence tagging](https://md.research.elamur.ai/free/en/papers/peters-2017-semi-supervised-sequence-tagging-bidirectional/)

A related paper makes the language-modeling signal task-aware in a system for sequence labeling. That framing takes up how an auxiliary objective can be adapted to the needs of the task it supports. The hierarchical transfer paper specifies the relationship by choosing which representations and parameters to share. The task-aware work puts the relationship to the labeling task into the description of the auxiliary language objective itself. [Empower Sequence Labeling with Task-Aware Neural Language Model](https://md.research.elamur.ai/free/en/papers/liu-2017-empower-sequence-labeling-task-aware/)

Contextualized embeddings also became the object of a study on unsupervised domain adaptation for sequence labeling. That work addresses how sentence-dependent representations can be adapted across domains under an unsupervised setup. It meets the earlier paper at the word-level representation, where features incorporate the context in which a word occurs. The earlier Genia and Twitter experiments ask when two tasks can share that representation while learning from source annotations. The citing work places contextualized embeddings at the center of the adaptation question. [Unsupervised Domain Adaptation of Contextualized Embeddings for Sequence Labeling](https://md.research.elamur.ai/free/en/papers/han-2019-unsupervised-domain-adaptation-contextualized-embeddings/)

Two other citations place neural tagging architectures in a broader frame. An open-source toolkit provides a software setting for neural sequence labeling, while a study of design challenges and misconceptions takes the design choices themselves as its subject. They relate to the separation between input representation, contextual encoding, and output scoring that makes the earlier paper's comparisons possible. A survey of neural entity recognition places work on these taggers in the wider entity-recognition literature. [NCRF++](https://md.research.elamur.ai/free/en/papers/yang-2018-ncrf-open-source-neural-sequence/), [Design Challenges and Misconceptions in Neural Sequence Labeling](https://md.research.elamur.ai/free/en/papers/yang-2018-design-challenges-misconceptions-neural-sequence/), and [A Survey on Recent Advances in Named Entity Recognition](https://md.research.elamur.ai/free/en/papers/yadav-2018-survey-recent-advances-named-entity/)

#### Transfer across languages and into dialogue

In multilingual grammatical tagging, a citing study uses adversarial training to address robustness. It shares the earlier paper's interest in training taggers across languages and identifies a different training mechanism as the focus of the work. Another study centers on Japanese entity recognition as a cross-language transfer problem. It puts a new language and application pairing into the scope of the discussion. The earlier character-sharing experiment is grounded in languages with similar alphabets, which makes the choice of language and of transfer mechanism especially relevant when relating these studies. [Robust Multilingual Part-of-Speech Tagging via Adversarial Training](https://md.research.elamur.ai/free/en/papers/yasunaga-2018-robust-multilingual-part-speech-tagging/) and [Cross-lingual Transfer Learning for Japanese Named Entity Recognition](https://md.research.elamur.ai/free/en/papers/johnson-2019-cross-lingual-transfer-learning-japanese/)

In [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/), one citing work studies cross-language transfer for multilingual task-oriented dialogue. Another focuses specifically on aligning and recognizing slots across languages. A slot is a field in a dialogue task, and recognition concerns the language that fills it. This gives the latter work a point of contact with span tagging, while alignment makes the correspondence across languages an explicit part of the problem. The schema-guided dialogue work contributes a dataset for multi-domain conversational agents. Its connection runs through the need to define and support prediction tasks across domains, a problem that the earlier paper studies with grammatical and entity annotations. [Cross-lingual Transfer Learning for Multilingual Task Oriented Dialog](https://md.research.elamur.ai/free/en/papers/schuster-2019-cross-lingual-transfer-learning-multilingual/), [End-to-End Slot Alignment and Recognition for Cross-Lingual NLU](https://md.research.elamur.ai/free/en/papers/xu-2020-end-end-slot-alignment-recognition/), and [The Schema-Guided Dialogue Dataset](https://md.research.elamur.ai/free/en/papers/rastogi-2019-towards-scalable-multi-domain-conversational/)

#### Related tasks beyond word tagging

The citing work also reaches tasks with different prediction outputs. In [sentiment analysis](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/), SKEP puts sentiment knowledge into pretraining for sentiment tasks. The shared question is how information learned through an additional training signal can benefit the eventual target. The pretraining setting addresses that question at a different point in training from the paper's alternating batches of annotated sentences. Work on sarcasm detection studies adversarial neural transfer with latent optimization, bringing the problem of transferring learned information into a different application and a different training design. [SKEP](https://md.research.elamur.ai/free/en/papers/tian-2020-skep-sentiment-knowledge-enhanced-pre/) and [Latent-Optimized Adversarial Neural Transfer for Sarcasm Detection](https://md.research.elamur.ai/free/en/papers/guo-2021-latent-optimized-adversarial-neural-transfer/)

In [coreference resolution](https://md.research.elamur.ai/free/en/concepts/coreference-resolution/) and related reference problems, one citing work uses multitask learning for bridging reference resolution, which concerns connections between a mention and a related referent. Another studies unrestricted split-antecedent anaphora, where a plural reference can depend on antecedents that appear separately. These bring the question of how related supervision can help into work on relations involving mentions and their antecedents. The multitask bridging study makes shared learning part of its stated approach. The split-antecedent study cites the tagging paper from the setting of a different prediction problem. [Multitask Learning-Based Neural Bridging Reference Resolution](https://md.research.elamur.ai/free/en/papers/yu-2020-multitask-learning-based-neural-bridging/) and [Free the Plural](https://md.research.elamur.ai/free/en/papers/yu-2020-free-plural-unrestricted-split-antecedent/)

## Cite

Cite as Zhilin Yang, Ruslan Salakhutdinov and William W. Cohen. 2017. Transfer Learning for Sequence Tagging with Hierarchical Recurrent Networks. arXiv (Cornell University).

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

```bibtex
@misc{yang2017transfer,
  title = {{Transfer Learning for Sequence Tagging with Hierarchical Recurrent Networks}},
  author = {Zhilin Yang, Ruslan Salakhutdinov and William W. Cohen},
  year = {2017},
  doi = {10.48550/arxiv.1703.06345},
  eprint = {1703.06345},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1703.06345}
}
```

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