Elamur Research

Multi-Task Cross-Lingual Sequence Tagging from Scratch

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

Summary

A sequence tagger assigns a label to each word in a sentence. The label might describe the word’s grammatical role, mark its place in a phrase, or indicate that it belongs to a person or place name. These assignments draw on overlapping evidence. The spelling of a word can suggest what kind of word it is, its neighbors can change that interpretation, and the labels around it can determine where a phrase or name ends. The authors ask whether a tagger can learn to use that evidence across several tasks and whether some of what it learns in one language can help it tag another. Their experiments cover part-of-speech tagging, phrase chunking, and named entity recognition.

The tagger reads each word’s characters in both directions, then joins the resulting spelling representation to a vector for the word itself. A separate recurrent network reads these combined representations in sentence order and in reverse, giving each word a representation informed by its surroundings. A conditional random field then scores complete label sequences using evidence about individual words and about which labels occur next to each other. When the authors train on several tasks in English, they share the parts that read characters and words and maintain a separate label scorer for each task. When they train on entity recognition in several languages, they share the character-level recurrent parameters. That gives a spelling pattern a route to influence more than one language without requiring translated sentences or paired words.

On the test benchmarks, the paper reports F1 of 95.41% for CoNLL 2000 English chunking, 91.20% for CoNLL 2003 English entity recognition, 85.19% for CoNLL 2002 Dutch entity recognition, and 85.77% for CoNLL 2002 Spanish entity recognition. The Penn Treebank part-of-speech result is 97.55% accuracy, the second-highest result in the paper’s comparison. The experiments initialize word embeddings with vectors learned from Wikipedia and update them during training. The English entity benchmark also uses a name list distributed with the shared task.

Joint training helps English chunking and Spanish and Dutch entity recognition in the full-data experiments. The authors report little improvement for English part-of-speech tagging or English entity recognition in those experiments. In separate trials where the target had fewer labeled sentences, the gains from joint training were larger on average at the lower labeling rate. Removing either word embeddings or the character encoder hurt performance, with the removal of word embeddings doing more damage. Together, these comparisons show why the two forms of sharing matter. A component can improve tagging inside a language, while another can provide a particularly convenient place for languages to exchange information.

Deep dive: Multi-Task Cross-Lingual Sequence Tagging from Scratch

How a sequence tagger learns from characters and words, and when training across tasks or languages improves its predictions. · about 36 minutes to read

The problem and its context

What a tagger has to decide

The input is an ordered sequence of words, and the output places a tag at each corresponding position. What counts as a correct tag depends on the corpus and the task. In part-of-speech tagging, the labels distinguish grammatical categories. A word’s spelling can be compatible with more than one category, so the sentence can supply evidence the word lacks in isolation. In chunking, adjacent labels identify the boundaries and types of phrases. In entity recognition, they indicate the spans that refer to named entities and distinguish the entity categories marked in the data. Tagging is a shared output format for these tasks, even though they ask different questions about the words.

The distinction matters most at a boundary. An entity recognizer must decide both whether a word is part of a name and how far the name extends. Evidence about a single position can support the first judgment while leaving the second unsettled. The tags at neighboring positions can make an interpretation more coherent. A part-of-speech tagger can also use neighboring labels, but its analysis stays at the level of grammatical categories. The value of predicting a sequence jointly therefore has a common explanation across the tasks, while the actual preferences between labels can differ.

The authors treat this common structure as a reason to reconsider where task-specific design belongs. If two tasks in English can benefit from similar representations of a word and its context, their training examples could contribute to the same sentence encoder. Their linguistic annotations still specify different outputs, so the last stage can remain separate. A corpus annotated for entity names can help shape the representation used for grammatical tags without supplying grammatical labels itself. Similarly, data in one language may inform how another language’s spellings are represented, even when the sentences have different words and come from separate corpora.

Why a common architecture was worth testing

The Introduction describes a field in which many of the strongest approaches had been designed around one task. The prior systems it cites for grammatical tagging, chunking, and entity recognition illustrate why. A developer can pick feature templates or other resources that are informative for a particular output and adapt them to the conventions of its benchmark. The resulting design can make it difficult to use examples from another task to learn the same internal representation. In Feature-Rich Part-of-Speech Tagging, for instance, the feature-rich approach belongs to the grammatical tagging tradition against which the authors position their reusable architecture.

There was already evidence that multiple tasks could inform a shared representation. The paper credits Ando and Zhang with improving tasks including entity recognition by learning structural parameters across tasks. It also describes an approach in which a task-independent convolutional network was trained on multiple problems and chunking benefited. The unresolved issue was whether the same idea could improve a tagger that was already competitive when trained on its own. This makes the standalone system part of the experimental argument. Gains over a weak standalone implementation would say less about the value of sharing for an already strong tagger. The earlier convolutional approach is discussed in Natural Language Processing (almost) from Scratch.

The paper places its architecture among several neural alternatives. Huang and colleagues applied a recurrent word encoder using handcrafted features and paired recurrent representations with structured decoding. Dos Santos and colleagues used convolution at the character and word levels. Chiu and Nichols combined convolution over characters with recurrence over words. Gillick and colleagues framed tagging as a sequence-to-sequence problem with a different tagging scheme. These alternatives make the design choices easier to separate. A tagger can learn a representation of spelling, use sentence context, or score neighboring labels together, and each of those choices leaves room for a different implementation. The paper discusses Bidirectional LSTM-CRF Models for Sequence Tagging, Boosting Named Entity Recognition with Neural Character Embeddings, Named Entity Recognition with Bidirectional LSTM-CNNs, and Multilingual Language Processing From Bytes.

The closest architecture in the paper’s account was developed independently by Lample and colleagues. It also used recurrent encoders at both levels, with long short-term memory units for characters and words. The authors distinguish their approach by its gated recurrent units, the way training emphasizes costly label errors, and the scope of the experiments on sharing. Lample and colleagues concentrated on identifying entities. This paper applies a related hierarchy to other tagging tasks and explicitly asks which learned components can help another task or language. Neural Architectures for Named Entity Recognition.

Where languages can share information

In the earlier multilingual and cross-lingual NLP described by the authors, some ways of transferring information rely on parallel corpora or word alignments. A parallel corpus supplies corresponding texts in different languages. A word alignment provides links between words in such texts. These resources can support a representation that brings related words together across languages. The paper also describes cross-lingual feature extraction and work using transliteration, where a name’s written form is rendered in another language or writing system. Such approaches illustrate how an external resource or an explicit correspondence can give a tagging system access to knowledge from another language. Named Entity Recognition using Cross-lingual Resources and Transliteration of Proper Names in Cross-Lingual Information Retrieval.

A tagger that accepts more than one language can still train each language separately. In that setting, a common design helps reuse an implementation, but the examples in one corpus have no effect on the parameters learned from another. The authors want to test an additional possibility. If two languages exhibit related spelling or word-formation patterns, the same character encoder can learn from tagged examples in both. The hypothesis concerns morphology and related regularities of written form. The authors also use the recognizable similarity between some names across languages as a way to inspect what the encoder learns.

This reasoning leads to two distinct boundaries for sharing. Different tasks in English have the same language as a basis for sharing lexical and sentence representations. Different languages may share useful patterns within words even when their word vocabularies and sentence patterns justify separate encoders. The authors choose where to draw each boundary before the experiment. The resulting system lets either type of data affect a prediction through a specified set of parameters, making the two kinds of transfer possible with the same underlying architecture.

The method, step by step

How a sentence becomes a tag sequence

The tagger starts from a sentence that has already been divided into words. It keeps track of the identity of each word and examines the characters within it. For each word, a character network produces a fixed-size description of the spelling, regardless of how many characters the word contains after preprocessing. The word lookup supplies a second vector. The characters offer regularities that different words can have in common, while the lookup can retain information associated with a particular word.

The word-level network receives both vectors together. Its input is a sequence with the same positions as the original sentence. It reads that sequence in both directions to build a representation at each word position. A word’s representation can then reflect the words preceding and following it. The last component uses those representations to score tags, with a further score for adjacent tag pairs. Its prediction is a complete sequence, so a locally attractive label can lose to another label that gives the sentence a better overall analysis.

From words and characters to a tag sequence

The steps in order.

From words and characters to a tag sequenceStep 1: Look up character and word vectors1. Look up character and word vectorsStep 2: Read each spelling in both directions2. Read each spelling in both directionsStep 3: Join spelling summaries with word vectors3. Join spelling summaries with word vectorsStep 4: Read the sentence in both directions4. Read the sentence in both directionsStep 5: Score tags and neighboring tag pairs5. Score tags and neighboring tag pairsStep 6: Decode the highest-scoring tag sequence6. Decode the highest-scoring tag sequence

The paper’s architecture diagram illustrates how the levels connect by expanding the characters of “Mike” under its position in a sentence. The same operation takes place for the other words. Recurrence over characters starts afresh on each word, so it describes the word’s internal form. Recurrence over words is what carries information between sentence positions. A single word can therefore be considered as both a sequence in its own right and an element of a larger sequence.

The hierarchy gives the tagger a way to learn signals that earlier systems could specify by hand. For example, a character network has access to the start and end of a spelling, which gives it material from which to learn prefix and suffix patterns. A word network has access to successive words, which gives it material from which to learn useful neighboring-word patterns. What a representation keeps depends on its usefulness to the training objective. The paper describes the kinds of evidence the hierarchy can encode and later examines the consequences of removing some of its inputs.

The recurrent unit

A gated recurrent unit, or GRU, reads a sequence by reusing a set of learned weights as it moves between positions. At each position it receives the current input and a vector called the hidden state from the previous position in its direction of travel. A hidden state is the information the unit carries forward. The GRU calculates a candidate state and uses learned gates to control the role of the old state in that calculation and in the final update. The paper traces its use to an encoder-decoder study in machine translation. On the Properties of Neural Machine Translation.

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

Here t is the current position in the sequence, xₜ is its input vector, and hₜ₋₁ is the state from the preceding position in the current reading direction. The learned matrices Wᵣₓ and Wᵣₕ act on the input and the previous state respectively. Matrix-vector products are written by placing the matrix next to the vector. The plus sign adds the two vectors, and σ applies a logistic sigmoid to each component. The output rₜ is the reset gate, whose components control how much of the previous state enters the candidate calculation.

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

The output zₜ is the update gate at position t. The weights W𝓏ₓ and W𝓏ₕ are learned matrices for this gate, with xₜ denoting the input and hₜ₋₁ the previous state. Addition combines the transformed vectors before σ applies the sigmoid component by component. Though the two gates see the same input and previous state, each has its own matrices, so the components of one gate can respond differently from the corresponding components of the other.

σ(x) = 1 / (1 + exp(−x))

Here σ is the sigmoid and x is a scalar input, or one component when the function is applied to a vector. The exponential function exp is evaluated on the negative of that input. The denominator adds 1 to the exponential, and the division takes its reciprocal. Applied to the gates, the sigmoid gives a separate weight for each component of the state. These are learned responses to the input and the preceding state, recalculated at each position.

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

The vector h̃ₜ is the candidate hidden state at position t. The learned matrix Wₕₓ transforms the current input xₜ. The operator ⊙ multiplies matching components of the reset gate rₜ and the preceding state hₜ₋₁. The matrix Wₕₕ transforms that gated state, which is added to the transformed input. The hyperbolic tangent, tanh, acts on each component of the sum. A small component of the reset gate suppresses the corresponding component of the previous state before the candidate is calculated.

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

The output hₜ is the new hidden state. The update gate zₜ weights the previous state hₜ₋₁ through componentwise multiplication, again denoted by ⊙. Subtracting each gate component from 1 gives the complementary weight on the candidate h̃ₜ, and the plus sign adds the weighted vectors. A larger update-gate component in this equation gives more weight to the previous state. The reset gate has already affected the candidate. That separation lets a unit retain part of its state while using a selectively filtered version of the old state to calculate possible changes.

Reading in both directions and stacking layers

A recurrent pass reads positions in a particular order. When a forward pass reaches a word, it has received information from earlier words through its state. A reverse pass reaches the same word after processing the words that follow it in the sentence. The bidirectional encoder retains both states. The two passes also apply to spelling, where starting from opposite ends allows each pass to encounter a different edge of the word most recently. The recurrent equations implement the same kind of operation in each direction, with previous position understood relative to the order of the pass.

hₜ = [h⃗ₜ, h⃖ₜ]

In this bidirectional expression, h⃗ₜ is the forward state for position t, and h⃖ₜ is the backward state aligned to the same position. The brackets and comma denote concatenation, which puts the entries of the vectors next to each other. The combined vector is hₜ. Here the symbol stands for the output of the pair of passes, while in the unit update it stood for an individual recurrent state.

The authors stack recurrent layers. The bottom layer reads the input vectors for the spelling or sentence. A higher layer receives the combined directional state from the layer below at the same position. Within the higher layer, the forward recurrence brings in its own state from the preceding position, and the backward recurrence brings in its own state from the next position in sentence or spelling order. In this way, the higher layer can work with an input that already reflects surrounding positions, while still conducting its own pass over the sequence. The paper connects the use of stacked recurrence to Sequence to Sequence Learning with Neural Networks.

The paper distinguishes depth within a level from the hierarchy between levels. Stacking at the character level still operates on the spelling of one word. Passing up from characters to words changes the unit of the sequence, because the whole spelling is summarized before being put into the sentence encoder. The configuration named in the experiments sets both recurrent depths to 2. The authors also specify a hidden-state dimension of 300 for the word-level GRU. The schematic with a single layer at each level is there to show the connections.

Representing a word through its spelling and identity

The input notation indexes words and characters separately. The paper uses one-of-K to describe an identity representation. K is the size of the relevant inventory, and an item is identified by the entry corresponding to that word or character. The experiments also describe the vectors used for the actual word lookup and their initialization. That distinction is useful when reading the equations. A word identity selects a lexical representation, while the character network composes a representation by reading an ordered list of character inputs.

For a word at sentence position t, Sₜ is the length of its character sequence. The character positions run from the start of the spelling to its end. After both passes through the character encoder, the authors retain the final state in each reading direction from the top layer. The forward pass’s final state is at the end of the spelling. The backward pass’s final state is at the start, since the reverse pass visits that position last. Both states have processed the word, and each arrives at a different edge. The paper motivates this choice by the tendency of recurrent states to retain recent patterns particularly well.

hʷₜ = [h⃗(Lᶜ, Sₜ), h⃖(Lᶜ, 1), xₜ]

The vector hʷₜ is the representation of the word at sentence position t before the word-level recurrence. The superscript w marks it as the word representation. The function-like subscripts written in parentheses identify a layer and a character position. Lᶜ is the number of character layers, Sₜ is the last character position of this word, and 1 denotes its first character position. The right arrow selects the forward state and the left arrow the backward state. The vector xₜ is the word lookup input. The brackets concatenate the three vectors into a single representation.

This gives the word-level encoder lexical and spelling information as distinct parts of its input. A lexical vector can express what has been learned about that word from earlier text and from the tagging corpus. The spelling component is recomputed by applying parameters that many words use. A feature learned from a recurring sequence of characters can thus affect several spellings. The top layer of the word encoder processes these representations and returns a sequence of contextual states, one per input word. The paper describes the word stack as a way to extract patterns that depend on nearby words and on word order.

Scoring the whole output

The last stage is a conditional random field, or CRF. Given the hidden representations of the input, it scores possible tag sequences. Each score adds position-level evidence to evidence from neighboring tags. This distinction lets the system learn that a tag fits a particular contextual representation and also learn how well that tag follows a preceding tag. The dependence is first order, so a transition score looks at the current label and its immediate predecessor. The recurrent input to the CRF can carry information from a wider part of the sentence.

log p(y ∣ h) = f(h, y) − log ∑[y′ ∈ 𝒴(h)] exp(f(h, y′))

Here y is a candidate sequence of tags, and h is the sequence of hidden states supplied to the CRF. The vertical bar means that the probability p of y is conditional on h. The function f assigns a score to a pair of a hidden sequence and a tag sequence. The set 𝒴(h) contains the possible tag sequences for this input. The summation ∑ runs over those sequences, with y′ as its running candidate and ∈ denoting membership. The function exp exponentiates each candidate’s score, and log takes the natural logarithm. Subtracting the log of the sum gives a normalized log probability for y. The normalizer depends on the sentence and is shared by the candidate sequences for that sentence.

f(h, y) = ∑[t = 1 … T] w(yₜ)ᵀ hʷₜ + ∑[t = 1 … T] A(yₜ₋₁, yₜ)

The index t runs from the first word position, 1, to T, the number of words. The tag yₜ is the member of sequence y at position t, and yₜ₋₁ is the preceding tag. The first sum uses the learned weight vector w(yₜ) for the proposed tag. The superscript ᵀ transposes that vector to form a dot product with the hidden representation written hʷₜ in the paper’s score equation. In this expression the superscript ᵀ denotes transposition, while T as the summation bound denotes sequence length. The second sum selects entries of A, a learned matrix indexed by the ordered pair of successive tags. The paper sets y₀ to a special Start tag so the transition into the first position can also be scored.

The paper uses hʷₜ earlier for the spelling-and-word vector going into the word encoder. In its description of the architecture and its definition of the CRF, the CRF receives the contextual states coming out of that encoder. The displayed scoring equation reuses hʷₜ at the point where the prose places the latter states. Reading the stages in order resolves the intended role of the dot product. It is the score obtained by applying a tag-specific vector to the representation supplied at that position. The transition contribution depends separately on the proposed label pair.

For inference the dynamic program can extend the best partial sequence ending in a given tag by considering which next tag follows it. A partial sequence’s contribution to future transitions is captured by its last tag. The program can therefore retain the information needed to recover the best complete path while avoiding a separate enumeration of all full tag sequences. At prediction time the normalizer of the CRF is constant across candidates for the same input, so maximizing the score yields the most probable sequence under the CRF.

Training with a cost for tag mistakes

The authors modify the usual conditional likelihood to make costly alternatives count more during training. They use Hamming loss between sequences, which counts positions where the proposed tag differs from the annotated tag, and multiply it by a constant. A candidate that disagrees at more positions receives a larger cost inside the training normalizer. That increases the amount by which such a candidate can lower the objective if its raw score remains high.

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

This is the objective for a single labeled example. The symbols h and y refer to the hidden-state sequence and the reference tag sequence. The scoring function f appears on both sides of the subtraction. The sum ranges over candidate sequences y′ in 𝒴(h), as indicated by ∑ and ∈. The function cost compares the reference and the candidate, and its value is added to the candidate’s score before applying exp. The log of the sum is subtracted from the reference’s score. The authors maximize the sum of these instance objectives over training examples.

The ordinary likelihood already gives higher-scoring candidates greater influence through the exponential. The change here is that it gives a candidate extra influence according to how far its tags are from the reference. Hamming loss makes that extra cost additive over the positions, so it can be incorporated into a dynamic program for the training normalizer. The loss concerns tag disagreements even when the benchmark scores whole spans with F1. During prediction the correct tags are unavailable, so decoding uses the sequence score without the training cost.

The paper uses mini-batches and AdaGrad to train the architecture through back-propagation. A mini-batch groups labeled examples for an update. AdaGrad adjusts parameter updates using past gradient information, while back-propagation passes the objective’s effects from the label scorer through the word encoder into the character encoder and the embeddings. The authors report a learning rate of 0.01. Character and word vectors are both updated during training. The paper’s use of pretraining is an instance of fine-tuning because the initial lexical vectors can change in response to the tagging objective.

How supervision crosses a task or language boundary

For joint training, the authors divide the parameters used by a task into a shared set and a private set. Each batch updates the parameters used to process it. The next task can then learn from an encoder whose shared parameters have already changed in response to another task’s examples. Its own label scorer still learns from its own annotations. This setup supports corpora collected separately, since an example can contribute to the relevant objective even if its sentence has been annotated for just that task.

W_d = W_d,spec ∪ W_shared

The index d identifies a task. W_d is the set of parameters used by that task, W_d,spec contains the parameters learned specifically for it, and W_shared contains parameters common to all participating tasks. The symbol ∪ denotes the union of the two sets. The paper calls the number of tasks D and denotes the training set for task d by X_d. It describes optimizing the average of the task objectives by iterating over tasks, sampling a batch from the current X_d, and updating W_d. In the cross-lingual version, the same notation can index languages and their training sets.

When the authors jointly train English part-of-speech tagging, chunking, and entity recognition, everything below the CRF is shared, including the word embeddings. The same spelling can affect how the common character encoder develops, and the same word can receive updates to its lexical vector under different task objectives. The sentence encoder is also shared. Each task has a private CRF, so the information learned about label transitions in one task stays with that task’s output inventory. A chunk boundary and an entity boundary can depend on some of the same context while bearing different labels and following different transition preferences.

For cross-lingual training the paper identifies the character-level GRU as the shared component. Each language keeps its word-level treatment and output scoring separate. The architecture can thus receive evidence from related spellings without looking up both languages in a common table of word meanings or aligning their sentences. This is a narrower form of sharing. If the shared character parameters change in response to a Dutch example, the same parameters can change the spelling representation seen by the Spanish or English encoder. Each language then has its own context in which to decide whether the representation helps identify an entity.

Preparing the inputs and labels

Before encoding spellings, the authors truncate character sequences longer than the threshold for the language. English has a 17-character limit, Dutch a 35-character limit, and Spanish a 20-character limit. They replace numeric characters with “0,” giving strings with different digits a common character at those positions. For span tagging, the paper uses BIOES labels. These distinguish the beginning, interior, and end of a span, a span that consists of a single word, and positions outside spans. The distinction between a span ending and a span continuing is therefore explicit in the tag vocabulary. The scheme is discussed in Design Challenges and Misconceptions in Named Entity Recognition.

The English word lookup is initialized with 50-dimensional SENNA vectors trained on Wikipedia. The Spanish and Dutch lookups use 64-dimensional Polyglot vectors trained on Wikipedia articles in their respective languages. The authors use these available vectors because the labeled corpora are relatively small for learning representations of word meaning from their task examples alone. Each lookup can then adapt to the tagging data. The Italian or French lexicon, for example, plays no role in these reported inputs. The lexical resource for Spanish and Dutch is described in Polyglot.

The English entity benchmark additionally supplies a gazetteer, a list used to mark lexical evidence about names. The authors append indicators from the CoNLL 2003 shared-task gazetteer to the CRF input in the usual English comparison. These indicators take a direct route to the tag scorer alongside the learned representation. The paper uses the shared-task list for comparability with earlier English entity systems and specifies that its other tasks and languages do not use gazetteers. This is the benchmark-specific addition to keep in view when comparing the English entity results with those from the rest of the suite.

Experiments and results

What the benchmarks measure

The experiments combine grammatical tagging, phrase boundaries, and entity spans. The Penn Treebank supplies the English part-of-speech task. Following the dataset construction used by Toutanova and colleagues, the authors take grammatical labels from parsed trees. Accuracy measures how often the predicted grammatical tag matches the annotation at a word position. English chunking uses CoNLL 2000. The entity experiments use CoNLL 2003 for English and CoNLL 2002 for Dutch and Spanish. The dataset section and Spanish results caption both identify the Spanish benchmark as CoNLL 2002.

For chunking and entity recognition, the paper reports F1. In these span tasks precision asks how many predicted spans are correct, and recall asks how many annotated spans the system recovers. F1 combines the two. A wrong span boundary can affect both the predicted and reference counts even if much of the sequence is tagged correctly. This is why an accuracy score in the grammatical tagging experiment and an F1 score in the entity experiment give different views of performance. The comparison that matters is between systems evaluated on the same benchmark, with the same metric and compatible training data.

The authors tune hyper-parameters on the development data. Since the CoNLL 2000 chunking benchmark lacks a development set, they reserve 20% of the training data to tune parameters. For English entity recognition they report both conventions encountered in earlier work. Under one convention the tagger is fitted on the training split, with development data used for tuning. Under the other, the final fit uses both the training and development splits. The two settings give systems different amounts of annotated data. The paper also distinguishes a gazetteer-free condition in the comparison using both splits. The headline English result is presented across the paper’s benchmark findings, while the prose does not explicitly assign that headline to one of the two training conventions.

The benchmark comparisons

The paper reports 95.41% F1 on the CoNLL 2000 English chunking test benchmark. Its comparison with previously published results puts the best result from its architecture ahead of the best previous figure by 0.95 points. When English chunking is trained jointly with the other English tasks, the paper reports a gain of 0.75 points over separate training. Those two comparisons answer separate questions. The published benchmark comparison places the result among earlier systems. The joint-training comparison uses the tagger’s own separate training as the reference and tests the effect of using the other task data.

On CoNLL 2002 Dutch entity recognition, the headline test result is 85.19% F1. The authors report an advantage of 2.35 points over the best previously published Dutch result in their comparison. Joint training across languages improves the Dutch score by 0.19 points over its separate-training counterpart. The small size of the joint-training gain relative to the published comparison matters for interpretation. The authors’ result on the Dutch benchmark reflects the whole tagging system, with sharing evaluated as one part of it.

For CoNLL 2002 Spanish entity recognition, the headline test result is 85.77% F1. The authors report a joint-training gain of 1.08 points relative to separate training under the full-data setting. Spanish gives the largest reported full-data benefit from sharing among the target tasks for which the paper specifies a gain. English entity recognition also participates in the multilingual setup, but the paper describes its improvement as negligible. A shared character encoder can change the representations learned for all participating languages, and the measurements show that the usefulness of those changes varies by target.

For CoNLL 2003 English entity recognition, the paper reports a headline score of 91.20% F1 on the test benchmark and treats the result as a new best in its comparison. The English task appears in two joint-training settings. In one it shares lower layers with English grammatical tagging and chunking. In the other it shares character-level recurrence with Dutch and Spanish entity recognition. The performance discussion reports no significant improvement for this English task. This leaves the strong benchmark result and the limited additional gain from joint supervision as distinct findings. The gazetteer and the amount of supervised data used for a run remain relevant when comparing it with earlier English entity results.

The published comparisons include architectures that differ in how they represent spelling and context, as well as approaches that employ handcrafted or task-specific features. The paper marks the use of handcrafted features and task specificity in its benchmark comparisons. This shows which systems rely on more specialized inputs or designs. Relative performance there is a comparison of complete systems. Switching from one published system to another can change the architecture, the initialization, and the features together. The paper’s comparisons within its own architecture help narrow the interpretation.

A more closely matched part-of-speech comparison

On the Penn Treebank part-of-speech test, the paper reports 97.55% accuracy. The published result it identifies as best is 97.78%, attributed to Ling and colleagues. The paper reports a gap of 0.23 points between its result and that published figure. Ling and colleagues used embeddings that the authors could not obtain publicly, making it difficult to tell from the published results how much of the gap comes from the recurrent architecture and how much comes from the input vectors. Finding Function in Form.

The authors adapt their implementation to reproduce the earlier architecture using the settings described in that work and the same SENNA initialization they use for their own English tagger. This reproduction reaches 97.41% accuracy on the Penn Treebank part-of-speech test. The authors report that it trails their architecture by 0.14 points with this initialization. The chart preserves the distinction between the earlier published result and the reproduction. Only the reproduction and the authors’ tagger use the matched embeddings in this comparison.

Penn Treebank part-of-speech test accuracy for the published and reproduced systems

The authors’ tagger leads the reproduction with matched embeddings, while Ling and colleagues’ published result is higher.

Penn Treebank part-of-speech test accuracy for the published and reproduced systemsLing and colleagues, published result: 97.78Ling and colleagues, published result97.78Ling and colleagues, reproduction with SENNA: 97.41Ling and colleagues, reproduction withSENNA97.41Authors’ tagger with SENNA (this paper): 97.55Authors’ tagger with SENNA (this paper)97.55
The numbers
System or settingaccuracy %
Ling and colleagues, published result97.78
Ling and colleagues, reproduction with SENNA97.41
Authors’ tagger with SENNA (this paper)97.55

The experiment supports the authors’ interpretation that the embedding choice helps explain the ordering of the published results. It also gives direct evidence for the better performance of their architecture within the common SENNA setup. The reproduction changes the conditions of the earlier published result, so the matched comparison has a narrower scope than a claim about which architecture would win under every lexical initialization. As with English entity recognition, the full-data part-of-speech result shows little additional improvement from joint training.

Testing a shortage of target labels

The authors run a separate set of experiments in which the target task has only a fraction of its training sentences. They call that fraction the labeling rate, r, and use rates of 0.1 and 0.3. They sample sentences from the target training set and discard the rest for that experiment. The other task or language in the pair uses all of its labels. Evaluation is on the target task, comparing F1 or accuracy after separate training with the same target metric after joint training. The comparison therefore gives the joint system another source of supervision while holding the amount of target supervision at the chosen fraction.

At labeling rate 0.1 the paper reports a gain of up to 1.99 points on the target’s test metric. It also reports that the improvement at labeling rate 0.1 is on average 0.37 points greater than the improvement at 0.3. The first figure describes the largest gain observed under the lower rate, and the second describes an average difference in gains across rates. The experiment tests how much help a labeled partner can supply under deliberately restricted target supervision. It gives the strongest evidence in the paper for distinguishing what happens when a benchmark target already has its full set of labels from what happens when much of that supervision is unavailable.

What the ablations show

Word identity and spelling make different contributions

The authors remove the word embeddings in one comparison and remove the character-level GRU in another. Removing the word embeddings takes away the direct lexical representation supplied to the sentence encoder. The remaining character path can still distinguish spellings and compose features from them, and the word-level recurrence can still use representations of surrounding words. This condition asks how well those sources support the task when the direct route from word identity to a pretrained, trainable vector is gone.

Removing the character GRU leaves the word lookup and the word-level recurrence. The tagger still has information about the identity and context of words, while losing the representation composed from sequences of characters. This condition asks how much the spelling path adds when lexical and sentence information are already available. The experiment changes access to a kind of evidence and the component that computes it. It measures the contribution of the full character pathway under the paper’s training setup.

Performance drops under both removals, and the authors describe the drop from removing word embeddings as larger. They interpret this as evidence that the tagger relies heavily on what it knows about particular words. Since the word vectors are initialized on Wikipedia and updated during tagging training, the ablation removes both the initial lexical information and the ability to learn a revised vector through that input path. The result establishes the value of the word-embedding component as used here. The matched Penn Treebank comparison adds a separate piece of evidence that the choice of initialization can affect a competitive benchmark result.

The smaller contribution of the character component to the full tagger still matters for the cross-lingual design. An ablation in a full system asks about the extra evidence from a component when the other input paths are available. A sharing experiment asks whether some of that component’s parameters can benefit from another corpus. A representation can therefore make a smaller contribution to a fully supervised task and still be the natural point at which to transfer information. The observed gains in Spanish and Dutch are consistent with that role for the character encoder.

Full-data training and restricted-data training ask different questions

The full-data joint comparisons change both the source of training signals and the opportunity for different tasks to influence shared weights. The English tasks share sentence representations and embeddings, and the cross-lingual runs share the character recurrence. The experiments show that extra supervision can improve an already strong chunker and can help some target languages in entity recognition. They also show that the training recipe has uneven effects. The authors report no significant improvement for the English part-of-speech and entity tasks in the full-data comparison, even though those tasks can affect parameters used by a task that does improve.

The restricted-label experiments look more directly at the availability of target supervision. With fewer target sentences, the partner’s full training set supplies more opportunities to adjust shared parameters based on labeled examples. If the partner and target need some of the same features, those adjustments can improve the representation that the target receives. Each target still has examples with which to learn its own output decisions. The larger average gain at the lower labeling rate is consistent with this explanation, although the rate comparison measures the outcome of transfer and does not identify the contribution from each training signal.

The English task comparison also leaves several ways for a gain to arise. Sharing the word embeddings can improve lexical vectors, sharing the character recurrence can change which spelling patterns are useful, and sharing the sentence recurrence can improve contextual representations. All of these change together in that version of training. The ablations show that lexical and character representations both matter to the tagger, but they leave open which of the shared English layers is chiefly responsible for the chunking improvement. The narrower cross-lingual design makes the route for transfer more specific because it identifies the character recurrence as the shared component.

Inspecting the character space

The authors examine character-level output vectors for country names in English and Spanish. They use t-SNE to project those vectors into a 2-dimensional view. A projection lets the reader inspect where corresponding names fall in a space that can be drawn, while a separate check concerns the vectors before projection. For the corresponding pairs of country names included in the analysis, the authors report nearest-neighbor relationships in the original embedding space. That statement is stronger than an inference from distances on the plot, since the plot itself rearranges a higher-dimensional representation into a plane.

The comparison concerns vectors produced from spelling by the shared character-level encoder. The corresponding names are useful for inspection because the reader can understand what it means for a representation in one language to be near the representation of the corresponding name in the other. Similarity here is a property of the learned output vectors. Those vectors are distinct from the pretrained word lookup and from sentence-level states, which can vary with surrounding words.

The figure gives a concrete example of a relationship encoded in the shared representation. It covers a selected set of names, so it cannot say how frequently comparable relationships hold for other word categories. The paper also does not report a matching nearest-neighbor analysis for encoders trained separately. The figure can show that the jointly trained character space exhibits the relationship, while the controlled score comparisons show where joint training improved the tagging outcome. The two analyses support different parts of the account.

Limitations

Limits the authors identify

The authors restrict their multilingual experiment to transfer through related word forms. They keep word-level training separate across languages and leave joint training based on word meaning and parallel data for future work. Accordingly, their cross-lingual result concerns a setting where useful character patterns can recur across the selected languages. It does not test what a shared lexical space would add, or whether an aligned corpus would give a stronger signal for words whose meanings correspond but whose spellings differ substantially.

The paper also distinguishes the general architecture from the input choices used to obtain its results. The authors acknowledge that the gazetteer in the English entity benchmark can be regarded as a handcrafted feature. Their decision is tied to the benchmark comparison, and they use the gazetteer distributed with that shared task. Additionally, all the experiments benefit from pretrained word vectors, and the ablations suggest that this matters. Learning from scratch in the paper’s sense refers to replacing task- or language-specific feature pipelines with learned encoders. The reported system still uses supervised data, pretrained lexical vectors, and, in the stated English setting, gazetteer indicators.

The authors propose extending the approach to low-resource tasks and languages. Their experiments with fewer labels support the motivation for that extension within the benchmarks they study. Those experiments start from available labeled corpora and withhold some of the target sentences. A target in these experiments retains part of its annotations, has the embedding resources selected for its language, and is evaluated under the benchmark’s established annotation scheme. These conditions explain what kind of scarcity their results directly address.

Limits visible in the experimental design

The experiments cover English grammatical tagging, English chunking, and named entity recognition in English, Dutch, and Spanish. They support the reuse of one architecture across that range. Applying the same architecture to new languages would still require decisions about character inventories, input normalization, labeled examples, and which components to share. The evaluated cross-lingual pairs provide no direct test of performance across very different writing systems. The method supplies a shared encoder for written forms, and the experiments do not map out how much similarity between languages that encoder needs before transfer helps.

The label-subsampling trials isolate a reduction in target sentences within an existing corpus. Genuine limits on collection can change more than the number of sentences. The sampled task still has the benchmark’s original test set and its established meaning for each tag. The trials also give the partner full supervision. Their results therefore concern partially supervised transfer with a well-labeled partner. They leave open how useful the same approach would be with very little partner supervision, or with no target labels from which to fit the private output parameters.

The benchmark comparisons and the ablations have different controls. Previously reported results can differ in pretrained resources, features, and use of the development set. The Penn Treebank reproduction brings the word embeddings into alignment for a particular comparison. It still compares a reproduction under SENNA with the authors’ own system under SENNA. The earlier system’s published result with its original vectors remains a separate observation. The evidence favors the authors’ architecture under their matched conditions, while the effect of exchanging the original embeddings between the systems remains unmeasured.

The paper’s description of the full-data English results uses significance language, but it does not describe a statistical test or a range across repeated runs in that discussion. A reader can take from it that the authors observed little practical improvement in those settings. The small reported Dutch gain likewise describes the comparison they ran. The prose supplies no measure of how stable that improvement would be over different training samples or run initializations. In the restricted-label analysis, the maximum gain and the average difference across labeling rates also have different scopes. Neither statistic specifies the outcome for every task and partner combination.

Finally, the experiments support the combined tagger and test two input components explicitly. They leave the effects of several other choices together. The evidence does not separate the contribution of GRUs from stacking extra layers, the cost-sensitive objective from ordinary likelihood, or transition-aware decoding from independently chosen tags under the same encoders. The lowest-level representation analysis covers country names and nearest neighbors. It shows an interpretable property of those vectors, while claims about how often that property explains correct entity predictions would require a separate connection between the representation and the tagger’s decisions.

What came after

The later citations connect the paper to work on tagger architecture, transfer between languages, and sharing supervision across different outputs. A citation establishes that the later study engaged with the earlier paper. The topics identified by the titles show which questions those studies pursued, while the exact use of this paper’s architecture, training procedure, or findings varies in ways the titles do not establish.

Alternative designs for tagging

End-to-end Sequence Labeling via Bidirectional LSTM, CNNs and CRF brings a different combination of components to sequence labeling. Its title identifies bidirectional long short-term memory, convolution, and a CRF in an end-to-end design. The connection to this paper is the separation between learned representations and structured labeling. Here the authors use GRUs for reading words and characters. The later citation places that choice alongside a design combining recurrent and convolutional components while retaining a CRF.

Fast and Accurate Entity Recognition with Iterated Dilated Convolutions locates another architectural question in entity recognition. The title makes convolution and speed explicit concerns. In the earlier article, recurrent passes provide contextual representations before structured decoding. The later study addresses entity recognition through iterated dilated convolutions, placing the question of how to gather context alongside the question of how accurately entities can be marked. Its citation gives a link between two approaches to the same tagging task.

Design Challenges and Misconceptions in Neural Sequence Labeling takes sequence-labeling design itself as the subject. The earlier paper had to choose what to learn from spellings, what to learn from neighboring words, and what to share across datasets. A study framed around design challenges treats such choices as questions about sequence labeling in their own right. A Survey on Recent Advances in Named Entity Recognition records the entity-recognition work at the level of a survey. These citations put the paper in both the narrower history of learned entity taggers and the broader discussion of design choices for sequence labeling.

Joint learning beyond the original tasks

Modeling Noisiness to Recognize Named Entities revisits entity recognition with multitask training in social media. Its stated focus on noisiness puts the accompanying learning problem in the context of the input text. The earlier paper pairs English entity recognition with grammatical and phrase annotations, asking whether those tasks provide reusable representations. The later work links multitask entity recognition to a different motivation for sharing supervision. The relationship is clearest at the level of the learning arrangement, since the citation and title alone do not specify whether the same parameters are shared.

Joint Learning of Dialog Act Segmentation and Recognition takes joint learning into spoken dialogue. The two outputs named in the title are the boundaries of dialogue acts and the recognition of the acts themselves. This is another setting in which related outputs can draw on evidence from a common input sequence. The earlier paper asks whether one language encoder can support more than one set of word-level tags. The dialogue work poses the joint question for boundaries and acts in spoken exchanges.

Transfer beyond shared spellings

On Difficulties of Cross-Lingual Transfer with Order Differences shifts attention to word order in dependency parsing. The earlier paper limits cross-lingual sharing to character recurrence, leaving sentence-level representations private to each language. The later study’s framing points to a challenge that becomes prominent when transfer involves sentence structure itself. Related spellings can supply evidence for entity tagging, while differences in word order raise a separate question for a task that recovers grammatical relations between words.

Language Independent Named Entity Recognition via Orthogonal Transformation of Word Vectors returns to multilingual entity recognition through a different kind of representation. Its title places the cross-language method at the level of transformed word vectors. That connects directly to an opening in the earlier study, whose authors kept lexical representations separate and identified cross-lingual word semantics as future work. The named transformation takes a lexical route to the transfer problem. The earlier experiments establish what can be gained through shared character recurrence, leaving the gains available from a word-level route as a separate empirical question.

Cite

Cite as Zhilin Yang, Ruslan Salakhutdinov and William W. Cohen. 2016. Multi-Task Cross-Lingual Sequence Tagging from Scratch. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1603.06270 · arXiv 1603.06270

@misc{yang2016multi,
  title = {{Multi-Task Cross-Lingual Sequence Tagging from Scratch}},
  author = {Zhilin Yang, Ruslan Salakhutdinov and William W. Cohen},
  year = {2016},
  doi = {10.48550/arxiv.1603.06270},
  eprint = {1603.06270},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1603.06270}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/yang-2016-multi-task-cross-lingual-sequence/

References

35 references, from the paper's own bibliography.

  1. Rami Al-Rfou, Bryan Perozzi, and Steven Skiena. 2013. Polyglot: Distributed word representations for multilingual nlp. In ACL. our card
  2. Rie Kubota Ando and Tong Zhang. 2005. A framework for learning predictive structures from multiple tasks and unlabeled data. JMLR, 6:1817–1853. OpenAlex ↗ · Scholar ↗
  3. Xavier Carreras, Lluis Marquez, and Lluís Padró. 2002. Named entity extraction using adaboost. In CoNLL, pages 1–4. OpenAlex ↗ · Scholar ↗
  4. Hai Leong Chieu and Hwee Tou Ng. 2002. Named entity recognition: a maximum entropy approach using global information. In COLING, pages 1–7. OpenAlex ↗ · Scholar ↗
  5. Jason PC Chiu and Eric Nichols. 2015. Named entity recognition with bidirectional lstm-cnns. arXiv preprint arXiv:1511.08308. our card
  6. Kyunghyun Cho, Bart van Merriënboer, Dzmitry Bahdanau, and Yoshua Bengio. 2014. On the properties of neural machine translation: Encoder-decoder approaches. In ACL. our card
  7. Ronan Collobert, Jason Weston, Léon Bottou, Michael Karlen, Koray Kavukcuoglu, and Pavel Kuksa. 2011. Natural language processing (almost) from scratch. JMLR, 12:2493–2537. our card
  8. Kareem Darwish. 2013. Named entity recognition using cross-lingual resources: Arabic as an example. In ACL, pages 1558–1567. our card
  9. Cıcero dos Santos, Victor Guimaraes, RJ Niterói, and Rio de Janeiro. 2015. Boosting named entity recognition with neural character embeddings. In Proceedings of NEWS 2015 The Fifth Named Entities Workshop, page 25. our card
  10. John Duchi, Elad Hazan, and Yoram Singer. 2011. Adaptive subgradient methods for online learning and stochastic optimization. JMLR, 12:2121–2159. OpenAlex ↗ · Scholar ↗
  11. Radu Florian, Abe Ittycheriah, Hongyan Jing, and Tong Zhang. 2003. Named entity recognition through classifier combination. In HLT-NAACL, pages 168–171. our card
  12. Dan Gillick, Cliff Brunk, Oriol Vinyals, and Amarnag Subramanya. 2015. Multilingual language processing from bytes. arXiv preprint arXiv:1512.00103. our card
  13. Kevin Gimpel and Noah A Smith. 2010. Softmax-margin crfs: Training log-linear models with cost functions. In NAACL, pages 733–736. OpenAlex ↗ · Scholar ↗
  14. Stephan Gouws, Yoshua Bengio, and Greg Corrado. 2014. Bilbowa: Fast bilingual distributed representations without word alignments. In ICML. OpenAlex ↗ · Scholar ↗
  15. Zhiheng Huang, Wei Xu, and Kai Yu. 2015. Bidirectional lstm-crf models for sequence tagging. arXiv preprint arXiv:1508.01991. our card
  16. Ryan Kiros, Richard Zemel, and Ruslan R Salakhutdinov. 2014. A multiplicative model for learning distributed text-based attribute representations. In NIPS, pages 2348–2356. OpenAlex ↗ · Scholar ↗
  17. Taku Kudo and Yuji Matsumoto. 2001. Chunking with support vector machines. In NAACL, pages 1–8. our card
  18. John Lafferty, Andrew McCallum, and Fernando CN Pereira. 2001. Conditional random fields: Probabilistic models for segmenting and labeling sequence data. In ICML. OpenAlex ↗ · Scholar ↗
  19. Guillaume Lample, Miguel Ballesteros, Sandeep Subramanian, Kazuya Kawakami, and Chris Dyer. 2016. Neural architectures for named entity recognition. arXiv preprint arXiv:1603.01360. our card
  20. Dekang Lin and Xiaoyun Wu. 2009. Phrase clustering for discriminative learning. In ACL, pages 1030–1038. our card
  21. Wang Ling, Tiago Luís, Luís Marujo, Ramón Fernandez Astudillo, Silvio Amir, Chris Dyer, Alan W Black, and Isabel Trancoso. 2015. Finding function in form: Compositional character models for open vocabulary word representation. In EMNLP. our card
  22. Gang Luo, Xiaojiang Huang, Chin-Yew Lin, and Zaiqing Nie. 2015. Joint named entity recognition and disambiguation. In ACL. OpenAlex ↗ · Scholar ↗
  23. Joel Nothman, Nicky Ringland, Will Radford, Tara Murphy, and James R Curran. 2013. Learning multilingual named entity recognition from wikipedia. Artificial Intelligence, 194:151–175. OpenAlex ↗ · Scholar ↗
  24. Alexandre Passos, Vineet Kumar, and Andrew McCallum. 2014. Lexicon infused phrase embeddings for named entity resolution. In ACL. our card
  25. Lev Ratinov and Dan Roth. 2009. Design challenges and misconceptions in named entity recognition. In CoNLL, pages 147–155. our card
  26. Hong Shen and Anoop Sarkar. 2005. Voting between multiple data representations for text chunking. Springer. OpenAlex ↗ · Scholar ↗
  27. Libin Shen, Giorgio Satta, and Aravind Joshi. 2007. Guided learning for bidirectional sequence classification. In ACL, pages 760–767. OpenAlex ↗ · Scholar ↗
  28. Benjamin Snyder, Tahira Naseem, Jacob Eisenstein, and Regina Barzilay. 2008. Unsupervised multilingual learning for pos tagging. In EMNLP, pages 1041–1050. our card
  29. Anders Søgaard. 2011. Semisupervised condensed nearest neighbor for part-of-speech tagging. In ACL, pages 48–52. OpenAlex ↗ · Scholar ↗
  30. Xu Sun, Louis-Philippe Morency, Daisuke Okanohara, and Jun'ichi Tsujii. 2008. Modeling latent-dynamic in shallow parsing: a latent conditional model with improved inference. In COLING, pages 841–848. OpenAlex ↗ · Scholar ↗
  31. Ilya Sutskever, Oriol Vinyals, and Quoc V Le. 2014. Sequence to sequence learning with neural networks. In NIPS, pages 3104–3112. our card
  32. Kristina Toutanova, Dan Klein, Christopher D Manning, and Yoram Singer. 2003. Feature-rich part-of-speech tagging with a cyclic dependency network. In NAACL, pages 173–180. our card
  33. Laurens Van der Maaten and Geoffrey Hinton. 2008. Visualizing data using t-sne. JMLR, 9(2579-2605):85. OpenAlex ↗ · Scholar ↗
  34. Paola Virga and Sanjeev Khudanpur. 2003. Transliteration of proper names in cross-lingual information retrieval. In Proceedings of the ACL 2003 workshop on Multilingual and mixed-language named entity recognition-Volume 15, pages 57–64. our card
  35. Huiwei Zhou, Long Chen, Fulin Shi, and Degen Huang. 2015. Learning bilingual sentiment word embeddings for cross-language sentiment classification. In ACL. OpenAlex ↗ · Scholar ↗