Elamur Research

End-to-End Recurrent Neural Network Models for Vietnamese Named Entity Recognition: Word-Level Vs. Character-Level

Paper · 2018 · Thai-Hoang Pham and Phuong Le-Hong

Summary

A Vietnamese news article can name a person, a place or an organization using several written pieces separated by spaces. A reader has to work out which pieces belong together and what they name. Named entity recognition asks a system to make those decisions explicitly by finding the boundaries of each mention and assigning it a category. Pham and colleagues test how much of that work a recurrent neural architecture can learn from text and entity annotations, without relying on manually designed indicators or the grammatical tags distributed with the benchmark.

The authors compare two ways of reading a sentence. One starts with words that have already been segmented. The other reads the sentence as a stream of characters and converts its predictions back into word labels for evaluation. In both, a bidirectional long short-term memory network uses context on either side of each position, while a conditional random field selects the labels jointly for the whole sentence. The word-based system has another option. It can combine a word’s vector, learned from a large collection of Vietnamese news articles, with a vector derived from the spelling of that particular word.

The character stream beats the word system when both learn their input representations from the annotated task data alone. Giving the word system pretrained word embeddings brings it to 80.85% entity F₁ on the VLSP test set. Adding spelling information works best when a convolutional network extracts it. With that addition, the word system reaches 88.38% overall F₁ under the broader label inventory, compared with 82.98% when a recurrent network constructs the spelling vector. These comparisons distinguish using characters to represent a word from using characters as the units the sentence encoder reads.

On the shared-task comparison restricted to person, organization and location names, the convolutional word system scores 88.59% F₁ on the standard test set. The leading VLSP 2016 entry scored 88.78% F₁ and used manually selected features. The paper shows that learned word and spelling representations can support a competitive Vietnamese recognizer on this benchmark, even with the syntactic annotation columns left unused. The authors also make their system available as open source for research.

Deep dive: End-to-End Recurrent Neural Network Models for Vietnamese Named Entity Recognition: Word-Level Vs. Character-Level

How a recurrent Vietnamese named entity recognizer compares word and character inputs and approaches the best shared-task score without hand-built features. · about 34 minutes to read

The problem and its context

Finding a name means finding its boundaries

The paper treats entity recognition as a problem in information extraction. Given a sentence, the system must locate the text occupied by a mention and identify its type. A document-level decision such as “this article mentions an organization” would leave the central work undone. The output must identify which part of the sentence names the organization and where that mention ends. When there are several names in a sentence, each is a separate decision that has to fit the same sequence of words.

The authors’ example about the UK leaving the EU shows how this works. The Vietnamese sentence contains Anh and EU, with the verb rời between them. The recognizer must account for both names and keep the intervening verb outside their spans. The words for “yesterday” also belong to the sentence without belonging to either name in the example. The labels therefore describe selected pieces of text, while the evidence for those labels can come from anywhere the sentence encoder reads.

The Vietnamese input adds a distinction between visible spaces and the units used for word labeling. The authors point out that a word can contain several syllables written with spaces between them. Treating every space as a word boundary changes the sequence the system receives. In their example, hôm qua can appear as the segmented word hôm_qua. The underscore preserves the grouping for a processor that reads space-separated items. A word-based experiment thus depends on what tokenization has already decided about the input. A character-based experiment can give the recurrent network a different sequence while still being trained and assessed using annotations that originated at word level.

The task’s label inventory comes from a shared evaluation. In the history the paper sketches, the Message Understanding Conference began evaluating English entity recognizers in 1995. Subsequent CoNLL shared tasks in 2002 and 2003 evaluated systems framed as language independent. The authors describe a familiar division into people, organizations, locations and a miscellaneous category. The Vietnamese Language and Speech Processing community adopted compatible categories for its newspaper corpus. This gives the authors an established way to define correct predictions and compare approaches on a common test.

A miscellaneous category still has a boundary and a type, just as a person name does. A token outside a mention has a different role. It may provide context, but it occupies no part of the entity that will be scored. The difference matters when the task is implemented as sequence labeling. Every position gets an output label, including positions that make no contribution to a predicted mention. Those outside labels help establish where a name stops and where ordinary surrounding text begins.

From selected features to learned representations

The paper describes an established approach in which sequence labelers use features chosen by their designers. It discusses conditional random fields, hidden Markov methods and classifiers such as maximum entropy systems in this part of the literature. A feature can encode a clue about a word or its surroundings, and the labeler can learn to weigh that clue. The effort for the designer lies in deciding which clues to surface and how to express them so that the learning procedure can use them.

External sources already played a role in that tradition. The authors say that many CoNLL-2003 participants drew on resources beyond the annotated training set, including gazetteers and unannotated text. A gazetteer offers evidence in the form of a name list. Unannotated text can help in other ways. The paper describes later work that used phrase features from an external database, as well as work that trained entity recognition together with other entity-related tasks. The latter used information from tasks such as coreference resolution and entity linking. The former asks which mentions refer to the same entity, while the latter associates a mention with an entity beyond the passage itself. The paper presents these as ways of improving the recognition task with additional information.

The neural work that the authors review shifts some of the burden of choosing features into the training procedure. They describe an early feed-forward approach, later use of recurrent networks with memory, and a system that applies convolution over word embeddings before decoding with a conditional random field. The discussion also connects these choices to part-of-speech tagging and chunking. All of these tasks attach labels to positions in an ordered input. A useful representation of a position can depend on surrounding words, while the eventual labels can have patterns of their own.

By the time of the Vietnamese study, the paper’s account identifies several distinct ways of using that general architecture. Huang and colleagues use recurrent context in both directions and decode labels jointly, with handcrafted features in the setup described. Chiu and Nichols combine recurrent sentence processing with a convolutional component that learns from characters. Lample and colleagues use recurrent processing for both character and word information. Ma and Hovy combine convolution, bidirectional recurrence and conditional random field decoding in an end-to-end design. These examples establish that the Vietnamese study is choosing among existing ways of arranging familiar components. The immediate question is how those choices behave on its Vietnamese benchmark.

The authors also cite Kuru and colleagues for the alternative of labeling actual character sequences. Here the distinction is architectural. A network can read the letters of a word to make a better word vector while keeping the rest of the recognizer word-based. In a character-stream recognizer, the sentence representation and the sequence of predictions are themselves organized around characters. Those choices answer different questions about where word boundaries should enter the process. The paper tests both so that a successful use of characters inside a word system can be interpreted separately from the performance of a sentence read character by character.

What an end-to-end comparison tests

The VLSP corpus contains more information than the authors’ main word system uses. Alongside segmented words and named entity labels, it supplies automatically generated grammatical annotations. Those columns could give a recognizer ready-made hints about sentence structure. The authors instead investigate how well the system can learn useful cues from the input words, their spellings and their context. They reserve the annotated labels for supervision and use unannotated news to learn some versions of the input representation.

In this setup, end-to-end describes the route from the selected textual units to the entity labels. It leaves room for a separate procedure that segments words and another that pretrains vectors from unannotated data. The word sequence is already available when the recognizer starts, and the trained recognizer supplies its own scores and chooses its own tag sequence. The character system changes the units passed to that pipeline, while its task labels still come from the word annotation. These boundaries around the task make the study’s comparisons intelligible. The authors are testing changes to the entity recognizer on an established benchmark, including what it can learn from a spelling and what it can acquire from a much larger supply of news text.

The method, step by step

Decide what one step through the sentence represents

The easiest way to follow the architecture is to ask what counts as a position. In a word system, a segmented token such as hôm_qua occupies a single position. That position has an input vector and gets a tag score at the output. Some versions build its vector using the characters inside the token. Once they have assembled that vector, the sentence network still advances by words. In the character system, each character is an input position, and the network also handles spaces in the stream used for character labeling.

The authors hold the main processing order in common. First, each position gets a vector, a list of numerical values the network can work with. A bidirectional recurrent encoder then gives the position a context-sensitive representation. The outputs supply evidence for possible labels there. Finally, a conditional random field evaluates complete assignments by combining that evidence with learned scores for moving from one label to the next. For the character system, a final conversion restores the word-level format required by the evaluator.

From Vietnamese sentences to entity predictions

The steps in order.

From Vietnamese sentences to entity predictionsStep 1: Read segmented words or sentence characters1. Read segmented words or sentence charactersStep 2: Look up embeddings for the input units2. Look up embeddings for the input unitsStep 3: Optionally add spelling features to word vectors3. Optionally add spelling features to word vectorsStep 4: Encode context in both directions4. Encode context in both directionsStep 5: Score the labels at each position5. Score the labels at each positionStep 6: Decode the best tag sequence jointly6. Decode the best tag sequence jointlyStep 7: Convert character predictions back to word labels7. Convert character predictions back to word labels

This order gives the spelling component, the sentence encoder and the decoder different scopes. The spelling component in a word system examines a token internally. The sentence encoder looks across input positions for context. The decoder looks across possible outputs to decide which labels fit together. On a name containing several words, the spelling component can help describe each word, the sentence encoder can bring clues from neighboring words into each decision, and the decoder can favor a coherent beginning and continuation for the mention.

Prepare the supervised sequences

The authors use the words and the flat entity labels from the VLSP annotation. They set aside the columns for grammatical tags, phrase chunks and nested entity labels. The training examples retain the order of the words. Their labels follow IOB notation, which marks beginnings, interiors and outside positions. The first word in a person mention takes B-PER, and a following word inside that mention takes I-PER. The same distinction applies to B-ORG and I-ORG for organizations, B-LOC and I-LOC for locations, and B-MISC and I-MISC for miscellaneous names. The label O covers positions outside mentions.

Beginning labels help the evaluator identify separate spans even when nearby words share the same entity type. A run of words associated with people could describe a single multiword name or adjacent person mentions. The beginning labels supply the information needed to tell those outcomes apart. Likewise, a predicted continuation that extends a mention into an extra word changes the span the evaluator receives. Word-level annotation therefore provides more than a sequence of coarse category names.

Before supervised learning, the authors map tokens containing digits to number and punctuation to punct. This reduces the number of distinct forms the systems need to represent. Many different written numbers can then present the same input cue. The resulting recognizer still has the surrounding text and the sequence of labels to work with. The authors also set aside a portion of the training data for validation. The separate shared-task test set serves as the common endpoint for the reported comparisons.

The character-stream configuration, Char-0, needs a conversion before it can use these examples. The authors assign a coarse label to each character from the category of the word it belongs to. A character in a person mention receives P, while characters in places, organizations and miscellaneous mentions receive L, G and M, respectively. Other word characters and spaces receive O. In the conversion described, B-PER and I-PER both yield character labels from the person category. The same collapse applies to the other entity types. The sequence is longer because the network visits individual characters, while the label attached at each visit carries less boundary information than a word-level IOB tag.

That conversion changes what supervision looks like to the network. A labeled word may correspond to a succession of positions with the same coarse character tag. A space between words has an outside label under the authors’ convention, even though a multiword mention can contain more than one labeled word. The output still has to be reconstructed as word-level predictions for scoring. The paper states that this conversion back is done. Its description leaves the details of handling mixed character predictions within a word open.

Choose how to represent words

The four named word configurations differ in the vector passed into the sentence encoder. Word-0 starts from random word vectors. Its supervised training must learn how to represent the word types using the annotated task data. Word-1 instead starts with vectors trained on a larger, unannotated news collection. Both pass a single word embedding for each position to the bidirectional encoder. The later variants retain the pretrained vector and append a spelling vector to it. Word-2 creates the spelling vector with a convolutional network, and Word-3 uses a bidirectional recurrent network for that job.

For Word-1 and the augmented variants, the authors use the skip-gram procedure in word2vec. Skip-gram learns a word representation by using a word to predict items around it in text. Repeated exposures to a word and its surroundings provide a learning signal even though the articles carry no entity tags for this purpose. This is a way to learn representations before the supervised recognizer has had to decide whether any particular occurrence names a person, an organization or a location.

The pretraining collection contains 7.3GB of text from 2 million articles gathered through a Vietnamese news portal. The authors lower-case the text and remove special characters, with common punctuation mapped to punct and numeral sequences mapped to number. They segment words following the method they cite from Le-Hong and colleagues. Where spaces separate syllables of a single word, underscores make the grouped word available to word2vec as a token. This last step aligns the unit receiving a pretrained vector with the sort of word that enters the recognizer.

A VLSP word can be missing from the resulting embedding vocabulary. For such a word, the authors draw random values uniformly within a range set by the embedding dimension. They specify the same range for the initial character embeddings in Char-0. The range is written here with both endpoints explicit.

[−√(3 ÷ dim), +√(3 ÷ dim)]

Here dim is the number of components in the embedding vector, 3 is the constant in the authors’ initialization rule, and ÷ denotes division. The square root √ gives the positive magnitude of either endpoint. The signs − and + place the bounds on opposite sides of zero, and the brackets delimit the interval from which the uniform draws are taken. A randomly initialized vector provides an input for a word that has no pretrained match. In Char-0, random initialization provides starting character vectors that the supervised recognizer learns along with its other parameters.

The authors distinguish these sources of evidence by comparing systems that share the main decoder. A pretrained vector can carry information about a word’s distribution across the news collection. A spelling vector can convey information from its written form on the current input. A contextual sentence representation can in turn differ between occurrences of the same token because each occurrence has different surroundings. The three pieces arise at different stages. A pretrained lookup by itself assigns the word a starting vector, while the bidirectional encoder uses the particular sentence to help decide what the token is doing there.

Build a word vector from its characters

In Word-2, a convolutional neural network reads the sequence of characters inside a word. Convolution reuses the same learned operation across positions in that sequence. A useful local pattern can therefore contribute wherever it occurs in the input to that operation. The authors connect this idea to prior work on learning clues from the form of a word, including prefixes and suffixes. The system learns those clues through training, so the designers have no need to supply a list of relevant affixes or prescribe which pattern signals which entity type.

The paper illustrates the spelling input with Học_sinh, meaning “student.” This example shows what is meant by a sequence inside a word. The text carries an underscore marking the grouped form, and the word-level architecture treats the whole form as one unit at sentence level. The convolutional component supplies features for that unit. Those features are concatenated with the skip-gram embedding, meaning that the two lists of values are joined into a longer list. The word keeps its representation from outside news data and acquires additional values that the entity task can shape.

In Word-3, a bidirectional long short-term memory network reads the word’s characters. One direction progresses through the spelling in written order, and the other processes it in reverse. The authors take the final hidden state from each direction and concatenate them. Those states summarize what the two passes retained of the character sequence. Their joined values are then appended to the pretrained word vector in the same way as the convolutional features.

Both spelling encoders learn as part of supervised entity training. The entity labels provide the signal that makes some distinctions in spelling worth preserving. There is no separate target telling either encoder to identify a particular prefix or assign a grammatical category to the word. This is also why the recurrent spelling encoder in Word-3 should be distinguished from the recurrent sentence encoder. The former finishes its work within a token and contributes one vector. The latter processes the resulting sequence of word vectors and builds context for each token. In Char-0, by comparison, the sentence encoder itself runs over characters and produces scores at that level.

Use recurrence to make a position sensitive to its context

The paper introduces ordinary recurrence before describing its memory mechanism. At each step, a recurrent network combines the vector at the current position with a hidden state retained from the previous step. The hidden state is a vector that can carry selected information forward. In the authors’ introductory recurrent network, its update is as follows.

hₜ = f(U xₜ + W hₜ₋₁)

Here t is the current step and t−1 is the preceding step in the direction being read. xₜ is the input vector, hₜ₋₁ is the previous hidden state, and hₜ is the updated hidden state. The weight matrix U acts on the input vector and W acts on the previous hidden state. Juxtaposition denotes matrix multiplication in this equation, and + adds the resulting vectors. The function f is the sigmoid activation in the authors’ simple example, applied to the components of that sum.

A separate operation converts the state into the output of the introductory network.

yₜ = g(V hₜ)

In this equation, yₜ is the output vector at step t, V is the weight matrix mapping the current hidden state hₜ into output scores, and g is softmax. Softmax turns a set of scores into positive weights that sum to a whole. This operation describes the basic recurrent example in the paper. The entity recognizer instead supplies its label scores to a conditional random field, which makes a decision over the sequence.

A simple recurrence passes contextual information forward through repeated applications of the same kind of update. The authors motivate long short-term memory, or LSTM, by the difficulty of learning relationships across long sequences. During training, the gradients that communicate how earlier computations affected the eventual error can shrink or grow through repeated steps. LSTM introduces a cell state with gates that regulate what is retained, what is added and what is exposed to the next computation. These are learned, continuous controls that can act differently on different components of a state.

The input gate controls the contribution of proposed new memory. The paper computes it from the previous hidden state and the current input.

iₜ = σ(Wᵢ hₜ₋₁ + Uᵢ xₜ + bᵢ)

Here iₜ is the input-gate vector at step t. The subscript i on the parameters identifies the input gate. Wᵢ multiplies the previous hidden vector hₜ₋₁, Uᵢ multiplies the current input vector xₜ, and bᵢ is the bias vector for this operation. Addition combines the vectors before σ, the elementwise sigmoid, converts each component into a gating value.

The forget gate has a similar form. It determines how much of the previous cell state carries forward in each component.

fₜ = σ(W_f hₜ₋₁ + U_f xₜ + b_f)

In this equation, fₜ is the forget-gate vector at step t. It has a different role from the standalone activation f used in the introductory recurrence. The suffix _f identifies the forget-gate parameters. W_f and U_f multiply the previous hidden vector hₜ₋₁ and current input vector xₜ, respectively. b_f is the forget-gate bias, and σ is again the elementwise sigmoid.

The cell state then combines the retained part of the old memory with the gated part of a proposed update.

cₜ = fₜ ⊙ cₜ₋₁ + iₜ ⊙ tanh(W_c hₜ₋₁ + U_c xₜ + b_c)

Here cₜ is the new cell vector and cₜ₋₁ is the preceding cell vector. fₜ and iₜ are the current forget and input gates. The symbol ⊙ means multiplication between corresponding vector components. The suffix _c identifies the parameters for the proposed cell update. W_c acts on hₜ₋₁, the previous hidden vector, and U_c acts on xₜ, the current input vector. b_c is the corresponding bias. The hyperbolic tangent tanh acts component by component to form the candidate update, and the final addition combines the two contributions to the new cell state.

The output gate selects how much of the transformed cell state is exposed in the new hidden state.

oₜ = σ(Wₒ hₜ₋₁ + Uₒ xₜ + bₒ)

Here oₜ is the output-gate vector at step t, and the subscript o identifies its parameters. Wₒ acts on the previous hidden vector hₜ₋₁, Uₒ acts on the current input vector xₜ, and bₒ is the output-gate bias. The componentwise sigmoid σ produces the gate values. In these gate equations the W matrices connect the previous hidden state to the update, while the U matrices connect the current input, as indicated by the quantities each multiplies.

The hidden-state update uses that gate to expose part of the current memory.

hₜ = oₜ ⊙ tanh(cₜ)

Here hₜ is the hidden state at step t, oₜ is its output gate, and cₜ is the updated cell state. The function tanh is the elementwise hyperbolic tangent. The operator ⊙ multiplies each transformed cell component by its matching gate value. Conceptually, the cell keeps the running memory and the hidden state is the view of that memory made available by the output gate.

In a single directional pass, the hidden state has access to the positions already visited. The authors use a bidirectional LSTM, or Bi-LSTM, so that each sentence position can draw on text before and after it. A forward pass can use earlier context to interpret a word, while a backward pass can bring in a clue that appears later. Both work on the same input sequence in their respective directions. With a word input, the steps are segmented words. With character input, they are characters. In each case the decoder receives a score for each possible label at a position, informed by the bidirectional sentence context.

Choose labels as a sequence

A context-sensitive encoder and a sequence decoder solve different dependencies. The encoder can use a later word to influence its score for the current word. That still leaves the question of how the current tag fits a tag the system assigns next. The conditional random field, or CRF, gives adjoining output tags a learned transition score. This lets stronger evidence for a span at one position influence which sequence the system selects overall. In IOB labeling, for instance, the status of an interior tag depends in part on the type of mention suggested by the preceding tag.

The CRF adds transition scores to the scores from the encoder. The notation below writes the recurrent and transition parameters separately and makes the position and label indices explicit.

S(x, y; θ, A) = Σ[t=1…T] (A[yₜ₋₁, yₜ] + fθ[yₜ, t])

Here S is the total score for assigning the tag sequence y to the input sequence x. The encoder parameters are θ, and A is the transition matrix. T is the number of positions, and Σ[t=1…T] adds the contributions over the whole input, from its first step through its last. yₜ and yₜ₋₁ are the current and preceding tags, including the predecessor used at the start of the sum. A[yₜ₋₁, yₜ] is the score assigned to that ordered pair of tags. fθ[yₜ, t] is the score supplied by the encoder for tag yₜ at position t on input x. The + joins the transition and position scores. The transition entries are trainable scores, and their interpretation comes from their contribution to the whole sequence.

To turn those scores into conditional probabilities, the authors normalize across possible output sequences for the same sentence.

p(y | x, A) = exp(S(x, y; θ, A)) ÷ Σ[y′ ∈ Y] exp(S(x, y′; θ, A))

Here p(y | x, A) is the conditional probability of the proposed tag sequence y for input x with transition matrix A. The vertical bar indicates conditioning. The encoder parameters θ enter through the score S even though the probability notation leaves them implicit. The function exp exponentiates a score. The sequence y′ is a candidate member of Y, the set of possible output sequences for x, and ∈ marks that membership. The denominator adds the exponentiated score for every such candidate. Division by this sum makes the probability of the proposed assignment depend on how it fares against the others.

The training objective rewards probability assigned to the annotations across the training examples.

L = Σ[i=1…N] log p(yⁱ | xⁱ; A)

Here L is the log-likelihood the authors maximize. N counts training examples, i indexes them, and Σ[i=1…N] adds their contributions. The superscript ⁱ identifies example i, so xⁱ is its input and yⁱ is its annotated tag sequence. p is the conditional probability calculated using A and the encoder scores, and log takes its logarithm. The probability of the correct sequence can grow when its encoder or transition scores improve relative to competing sequences. For Word-2 and Word-3, the spelling encoders also learn during this supervised training.

At prediction time the system needs the best complete assignment. It uses the Viterbi algorithm, which accumulates the best partial sequences as it advances and recovers the best sequence at the end.

y* = argmax[y ∈ Y] p(y | x, A)

Here y* is the chosen tag sequence, with * marking a maximizer. The expression argmax[y ∈ Y] returns an assignment y in the set Y that has the highest value of the objective to its right. That objective is the conditional probability p for input x with transition scores A and the encoder scores implicit. The shared normalization for a fixed sentence means the sequence with the largest total score also has the largest conditional probability. The sum of position and adjacent-transition scores allows Viterbi to compare continuations through partial paths. The resulting word labels can go directly to the evaluator. Character labels go through the conversion back to word sequences first.

Experiments and results

The benchmark and what it counts

The test data come from the VLSP 2016 named entity recognition shared task. The corpus consists of Vietnamese electronic newspaper material and comes with segmented words. Its entity label scheme is compatible with the categories used in CoNLL 2003. The authors evaluate flat spans using the standard test split and reserve some of the task’s training material for validation. For pretrained word vectors, the larger news collection supplies unannotated text separately from the entity supervision. The experiments without pretrained vectors establish how the architectures behave when the task data have to supply the evidence for learning the input representations.

The authors measure performance at the level of complete entity mentions with the CoNLL 2003 evaluation script. A correct prediction has to match the annotated entity exactly. A prediction with the right type and a boundary displaced by a word fails the exact-match check. So does a span with the correct boundaries but the wrong type. For instance, including the verb between Anh and EU in a predicted name would change the span even if all its name-bearing words were present. The score gives credit for the extracted mention as a whole.

Precision is the percentage of produced mentions that match an annotation. Recall is the percentage of annotated mentions the recognizer finds correctly. Their combination is the paper’s main metric.

F₁ = (2 × P × R) ÷ (P + R)

Here F₁ is the combined entity score, P is entity precision, and R is entity recall. The numerator uses their product multiplied by 2, as indicated by ×. The denominator is their sum, written with +, and ÷ divides the numerator by that sum. The paper reports the resulting scores as percentages. The combination reflects both how much of the annotation the system recovers and how frequently its proposed mentions are right.

The word-level evaluator is common to both input granularities. For the character system, a majority of correct letters within a name cannot by itself contribute partial credit. The decisions are first turned into word labels, and the resulting mention must pass the same exact-match criterion as a prediction made directly from words. This enables a shared comparison while preserving the fact that the two systems learn from differently formatted labels.

There are two evaluation scopes to keep track of. The corpus has person, organization, location and miscellaneous entities. The workshop comparison described by the paper evaluates person, organization and location. The authors report the latter comparison on the common shared-task training and test data. Thus the headline score on the official comparison and the score in the broader word-architecture analysis answer related questions under different label coverage.

Starting from the annotated data alone

The first comparison places Word-0 and Char-0 on the task without pretrained word embeddings or an external training corpus for the input representations. Word-0 learns from randomly initialized word vectors. Char-0 learns from randomly initialized character vectors and the converted character labels. Both have a bidirectional encoder followed by a CRF, so the comparison examines substantially different inputs in a shared general design.

The paper describes Char-0 as ahead of Word-0 by about 4% in the VLSP test comparison. The authors attribute the advantage to the greater reuse of a smaller inventory. Characters can recur across words, so training evidence for a character vector can come from many forms. A word vector learned from scratch depends on the evidence for that word in the annotated set. The comparison sets a baseline for what the word architecture can gain from expanding the data used to learn its input representations.

Next, the authors leave the recognizer at word level and bring in skip-gram vectors. The switch from Word-0 to Word-1 gives the word system access to representations derived from the unannotated news collection. The paper describes the resulting improvement as about 4%, reaching 80.85% entity F₁ on the VLSP test set. The authors regard this as comparable to the character-stream result. The comparison therefore changes the practical picture of word inputs. Their weaker showing from random initialization is followed by a substantially stronger result once their representation is learned with more data.

Adding spelling to the pretrained word system

The next experiment tests spelling information without switching the sentence encoder to character inputs. Word-2 attaches convolutional spelling features to the pretrained vector, and Word-3 attaches features from a bidirectional recurrent pass over the spelling. Both are compared with Word-1, where the input is the pretrained word vector alone. The decoder and the level at which it predicts labels remain word-based.

Word configurations on the VLSP test set, overall entity F₁

Both spelling encoders improve on pretrained word vectors alone, with the convolutional variant scoring highest.

Word configurations on the VLSP test set, overall entity F₁Word-1, pretrained word embeddings: 80.85Word-1, pretrained word embeddings80.85Word-3, pretrained embeddings with recurrent spelling features: 82.98Word-3, pretrained embeddings withrecurrent spelling features82.98Word-2, pretrained embeddings with convolutional spelling features (this paper): 88.38Word-2, pretrained embeddings withconvolutional spelling features (thispaper)88.38
The numbers
System or settingF₁ %
Word-1, pretrained word embeddings80.85
Word-3, pretrained embeddings with recurrent spelling features82.98
Word-2, pretrained embeddings with convolutional spelling features (this paper)88.38

Word-2 reaches 88.38% overall F₁ in this test comparison. The recurrent spelling configuration reaches 82.98% overall F₁, above the 80.85% of the pretrained-word baseline. Since both augmented variants use spellings, the strongest result involves how spelling information is assembled as well as whether it is present. The experiment identifies the convolutional spelling encoder as the stronger of the two tested choices for this word-based arrangement.

The comparison also helps locate the paper’s main gain within the pipeline. The improvement comes from changing what the word encoder receives, while the recurrent sentence architecture and CRF still play their original roles. The study gives an aggregate measure of the resulting extraction performance. It leaves open which particular mention boundaries, entity types or spellings account for most of the change.

Comparing with the shared-task entries

For comparison with VLSP 2016 participants, the authors report performance on the person, organization and location categories used for that evaluation. The test F₁ of the convolutional word system is 88.59%, against 88.78% F₁ for the first-ranked entry. The reported ordering places the competition winner ahead, with the new system close to it.

Leading VLSP 2016 entry and Word-2 on the shared-task test set, person, organization and location F₁

The convolutional word system approaches the score of the feature-engineered shared-task winner.

Leading VLSP 2016 entry and Word-2 on the shared-task test set, person, organization and location F₁First-ranked VLSP entry: 88.78First-ranked VLSP entry88.78Word-2, convolutional spelling features (this paper): 88.59Word-2, convolutional spelling features(this paper)88.59
The numbers
System or settingF₁ %
First-ranked VLSP entry88.78
Word-2, convolutional spelling features (this paper)88.59

The paper describes the winner as using a maximum entropy classifier with many handcrafted features. It also describes CRF and maximum entropy systems as common among the participants, with strong reliance on feature engineering. The competitive score is therefore evidence for a different way of supplying the information the recognizer needs. The authors obtain it with segmented word sequences, pretrained representations and learned spelling features, without feeding the annotated syntactic information into the entity recognizer.

The workshop also included a neural entry that used the implementation by Lample and colleagues. That software offered a bidirectional LSTM with a CRF and a Stack-LSTM architecture. The paper identifies the former as the closest to its own approach and gives the neural entry’s performance as 83.25% in the shared-task comparison. It calls this figure accuracy in the comparison prose, while defining the study’s evaluation in terms of exact-match entity F₁. The described entry used randomly initialized word vectors updated during training and recurrently generated spelling features. Those setup differences are important when interpreting the comparison. The result compares whole systems, with more than one plausible source of the performance difference.

What the ablations show

The value of external embeddings depends on what the system reads

The paper’s comparisons largely vary the representations going into a recurring architecture. The first experiment is a control on access to an external corpus. By putting Word-0 and Char-0 in the task-data-only setting, the authors ask which granularity works better when the vectors have to be learned alongside the recognizer from those annotations. The character stream wins under that condition. The authors’ interpretation is consistent with the smaller character inventory and the fact that a recurring character can collect evidence across many words.

That comparison changes several things inherent in the choice of input unit. The length of the recurrent sequence changes, and the prediction targets change from word IOB tags to coarser character categories. The character system also needs a conversion after decoding. As a consequence, the result establishes that the authors’ character pipeline is stronger than their baseline word pipeline in the annotated-data-only setting. Attributing the whole improvement to the size of the embedding vocabulary would require isolating that cause from the other changes. The paper offers the inventory explanation as the authors’ account of the result, without a separate intervention on inventory size.

The next comparison is narrower. Word-0 and Word-1 both read word sequences and use the same kind of sentence encoder and CRF. Their principal experimental difference is access to the pretrained skip-gram vectors. The improved test score shows that the word baseline is sensitive to where its input representations come from. Here the authors have a direct comparison for adding pretraining to their word setup. The comparison concerns the entire choice to use the news-trained vectors. It gives no separate test of which aspects of the collection, preprocessing or skip-gram training contribute to the gain.

Taken together, these experiments give the reported word-versus-character result its proper scope. The word system learned from the annotated corpus is the one the character stream beats. Once news-trained embeddings enter the word architecture, the authors describe the scores as comparable. After the word input also gets a strong spelling representation, the best result comes from a system that makes its sentence-level decisions over words. That progression is the relevant evidence for interpreting granularity. The answer changes with how the units are represented and which data can be used to learn those representations.

Spelling helps through both encoders, with different results

Comparing Word-1 with either augmented system tests the addition of a trainable spelling vector to the pretrained word input. Both augmented configurations improve the overall test F₁ relative to Word-1. The spelling branch therefore contributes useful information in the tested pipeline even when the underlying token has a vector learned from news. Because its features are trained alongside the entity recognizer, that contribution can reflect distinctions relevant to the supervised task.

Comparing Word-2 to Word-3 asks a more specific question. Both receive the skip-gram vectors, both construct a separate vector from the same kind of spelling input, and both make predictions at word level. In one case the auxiliary network reuses filters across local character patterns. In the other it summarizes the character sequence using the final hidden states from its two directions. The convolutional configuration produces the stronger test result. This makes the choice of spelling encoder empirically important within the authors’ tested setup.

The authors relate the convolutional choice to prior work on extracting features such as prefixes and suffixes. That supplies an architectural reason to try it. The experiments measure the effect of training and using its output, and they leave the learned filters uninterpreted. A reader can therefore draw a conclusion about the relative utility of the two encoders here. Assigning the gain to a particular kind of affix, or to names whose forms were absent from pretraining, would require evidence grouped by those properties.

The experiments also leave the combination of pretraining and spelling features only partly decomposed. The authors measure adding spelling features when pretrained word vectors are available. A comparison that supplied the same spelling component alongside random word vectors would address how much it helps under stricter data conditions. The reported set of configurations instead establishes that the components work well together. It also shows that a better character-derived feature at word level can be valuable even when a separate character-stream system is already competitive with the basic word system.

Which comparisons isolate a cause

The neural workshop comparison is less controlled than the comparisons among the authors’ word variants. The authors propose two reasons their strongest configuration does better than the entry based on Lample and colleagues. Their system has word vectors pretrained on a larger corpus, and it gets spelling features from a convolutional encoder rather than a recurrent one. Their own experiments support the relevance of each decision in their pipeline. The workshop comparison changes both together and uses a different implementation, so it gives a system-level outcome rather than an estimate of either decision’s contribution to the workshop gap.

The paper holds the CRF and bidirectional sentence encoder in common across its own main variants. There is no corresponding experiment that removes joint decoding or restricts the sentence encoder to one direction. The recurrent equations explain why a contextual state might help, and the CRF equations explain how transitions can influence the chosen tag sequence. The test results measure complete systems with those components in place. They cannot partition the final F₁ into a contribution from bidirectionality, a contribution from the CRF, and contributions from the representation choices.

A similar distinction applies to the comparison with the feature-engineered winner. The near match on the shared-task test shows that the authors can reach a similar aggregate score with a different source of features. Neither system is a matched removal of features from the other. Their comparison establishes competitiveness at the benchmark level. Within the authors’ architecture, the closest comparisons to ablations are the ones that change embedding initialization or add and replace the spelling encoder.

Limitations

Scope set by the authors

The authors explicitly restrict the task to flat mentions. The VLSP corpus has an annotation column for nested entities, which their recognizer leaves unused. A nested evaluation can require recording an entity inside another entity. The reported predictions instead give one sequence of flat labels with a single tag at each position. The test scores support claims about that output. They provide no evaluation of recovering both an outer mention and an inner one.

The authors also distinguish the corpus’s label inventory from the one used for the workshop comparison. The headline 88.59% F₁ is for person, organization and location on the standard VLSP test set in that comparison. The broader word-architecture experiment reports 88.38% overall F₁ for the best variant. A reader comparing the figures has to match them to these scopes. They do not constitute a before-and-after test of an architectural change because the best architecture is the same in the two reports and the categories evaluated differ.

The paper notes that the corpus’s part-of-speech and chunk labels come from automatic tools and can contain errors. The authors bypass those columns. That removes a particular input dependency while leaving the segmentation already provided for the word experiment. Pretraining also uses a segmentation procedure to make full words available to word2vec. The claim about omitting syntactic and handcrafted features is therefore compatible with using pre-defined normalization and segmented tokens. The authors evaluate recognition from those tokens. They do not claim to have measured recognition from raw text jointly with the task of finding Vietnamese words.

The authors’ explanation of the character baseline is also scoped to the size and composition of the task data. They argue that the character set is small enough to be learned effectively there, while useful distributed representations for words benefit from a larger corpus. This is an explanation of the experimental pattern they observe. The experiments do not trace what happens as annotated training data grow or shrink, so they leave the data conditions at which the preference might change unspecified.

What remains open in the design and reporting

Both the annotated benchmark and the text used for pretraining are drawn from news. Their broad source category is similar, which is relevant to how the results are interpreted. The experiments establish performance on the benchmark, and they offer no test in a different kind of Vietnamese text or a different annotation scheme. They also give no analysis of overlap between the news collection used to learn embeddings and the test material. The score alone cannot establish whether the same system would perform similarly with a different external corpus or on a different genre.

The character comparison would be easier to reproduce and interpret with a fuller account of how predictions are projected to words. Characters inside the same word are trained to carry one category, but independent sequences of scores can still favor mixed labels across that word. The CRF chooses a sequence of character tags and can use learned transitions, yet the scoring procedure ultimately needs a word label and an entity boundary. Different rules for resolving a mixed prediction can affect an exact-match result. The system description specifies the training conversion and the existence of the reverse conversion, while leaving that decision rule unclear.

The word experiments demonstrate performance differences across several inputs without tracing them to examples of errors. Aggregate F₁ cannot say whether the convolutional spelling vector largely improves finding the ends of names, distinguishing organizations from places, or recovering mentions that the baseline misses altogether. A comparison on words that do and do not have a pretrained lookup would help assess the relationship between spelling and vocabulary coverage. The reported experiment provides the overall gain when spelling information is appended and leaves that finer attribution open.

The results also give point estimates for the compared configurations. The paper reports random initialization in several parts of the experiments, and its reported comparisons do not quantify run-to-run variation or uncertainty in the scores. The close scores in the workshop comparison consequently support the descriptive claim that the new system is competitive on the test set. They give no estimate of how stable the small ordering would be across repeated training, alternative validation choices or a new sample of news. The same qualification applies to interpreting the observed gains as fixed quantities beyond the reported experiments.

Finally, the strongest result combines substantial unannotated news data with supervised task learning. The task-data-only comparisons show what the tested character and word pipelines can do under that stricter condition. The headline word result answers a different question about replacing feature engineering while allowing external pretraining. That distinction defines the resource tradeoff the paper actually measures. It demonstrates a competitive route that uses large quantities of text and learned representations in place of manually selected linguistic cues for the recognizer.

What came after

Yadav’s survey of recent advances in deep learning for named entity recognition cites the Vietnamese study. Its relationship to the paper is a survey citation. The topic it surveys is the broader line of research to which Pham and colleagues contribute an empirical comparison in Vietnamese. That comparison gives a concrete instance of choices that recur in the paper’s own account of the field, including learning from spellings, training word representations on unannotated text and decoding labels jointly.

The citation establishes that the Vietnamese study entered that broader review literature. It gives no basis for attributing a new Vietnamese benchmark result, a reimplementation or a modification of the architecture to the survey. The connection is to the documented experiment and its place within work on learned approaches to entity recognition.

Cite

Cite as Thai-Hoang Pham and Phuong Le-Hong. 2018. End-to-End Recurrent Neural Network Models for Vietnamese Named Entity Recognition: Word-Level Vs. Character-Level. Communications in computer and information science.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.1007/978-981-10-8438-6_18 · arXiv 1705.04044

@inproceedings{pham2018end,
  title = {{End-to-End Recurrent Neural Network Models for Vietnamese Named Entity Recognition: Word-Level Vs. Character-Level}},
  author = {Thai-Hoang Pham and Phuong Le-Hong},
  booktitle = {Communications in computer and information science},
  year = {2018},
  doi = {10.1007/978-981-10-8438-6\_18},
  eprint = {1705.04044},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1007/978-981-10-8438-6_18}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/pham-2018-end-end-recurrent-neural-network/

References

24 references, from the paper's own bibliography.

  1. Bengio, Y., Simard, P., Frasconi, P.: Learning long-term dependencies with gradient descent is difficult. IEEE transactions on neural networks 5(2), 157–166 (1994) OpenAlex ↗ · Scholar ↗
  2. Chiu, J.P., Nichols, E.: Named entity recognition with bidirectional lstm-cnns. Transactions of the Association for Computational Linguistics 4, 357–370 (2016) our card
  3. Collobert, R., Weston, J., Bottou, L., Karlen, M., Kavukcuoglu, K., Kuksa, P.: Natural language processing (almost) from scratch. Journal of Machine Learning Research 12, 2493–2537 (2011) our card
  4. Durrett, G., Klein, D.: A joint model for entity analysis: Coreference, typing, and linking. Transactions of the Association for Computational Linguistics 2, 477–490 (2014) our card
  5. Florian, R., Ittycheriah, A., Jing, H., Zhang, T.: Named entity recognition through classifier combination. In: Daelemans, W., Osborne, M. (eds.) Proceedings of CoNLL-2003. pp. 168–171. Edmonton, Canada (2003) our card
  6. Graves, A., rahmand Mohamed, A., Hinton, G.: Speech recognition with deep recurrent neural networks. In: Proceedings of 2013 IEEE international conference on acoustics, speech and signal processing. pp. 6645–6649. IEEE, Vancouver, BC, Canada (2013) our card
  7. Graves, A., Schmidhuber, J.: Framewise phoneme classification with bidirectional lstm networks. In: Proceedings of 2005 IEEE International Joint Conference on Neural Networks. vol. 4, pp. 2047–2052. IEEE, Montreal, QC, Canada (2005) OpenAlex ↗ · Scholar ↗
  8. Hammerton, J.: Named entity recognition with long short-term memory. In: Proceedings of the seventh conference on Natural language learning at HLT-NAACL. vol. 4, pp. 172–175. Association for Computational Linguistics (2003) OpenAlex ↗ · Scholar ↗
  9. Hochreiter, S., Schmidhuber, J.: Long short-term memory. Neural computation 9(8), 1735–1780 (1997) OpenAlex ↗ · Scholar ↗
  10. Huang, Z., Xu, W., Yu, K.: Bidirectional lstm-crf models for sequence tagging. arXiv preprint arXiv:1508.01991 (2015) our card
  11. Kuru, O., Can, O.A., Yuret, D.: Charner: Character-level named entity recognition. In: Proceedings of The 26th International Conference on Computational Linguistics. pp. 911–921 (2016) OpenAlex ↗ · Scholar ↗
  12. Lafferty, J., McCallum, A., Pereira, F.: Conditional random fields: Probabilistic models for segmenting and labeling sequence data. In: Proceedings of The Eighteenth International Conference on Machine Learning. vol. 1, pp. 282–289 (2001) OpenAlex ↗ · Scholar ↗
  13. Lample, G., Ballesteros, M., Subramanian, S., Kawakami, K., Dyer, C.: Neural architectures for named entity recognition. arXiv preprint arXiv:1603.01360 (2016) our card
  14. Le, T.H., Nguyen, T.T.T., Do, T.H., Nguyen, X.T.: Named entity recognition in vietnamese text. In: Proceedings of The Fourth International Workshop on Vietnamese Language and Speech Processing. Hanoi, Vietnam (2016) OpenAlex ↗ · Scholar ↗
  15. Le-Hong, P.: Vietnamese named entity recognition using token regular expressions and bidirectional inference. In: Proceedings of The Fourth International Workshop on Vietnamese Language and Speech Processing. Hanoi, Vietnam (2016) OpenAlex ↗ · Scholar ↗
  16. Le-Hong, P., Nguyen, T.M.H., Roussanaly, A., Ho, T.V.: A hybrid approach to word segmentation of Vietnamese texts. In: Language and Automata Theory and Applications, Lecture Notes in Computer Science, vol. 5196, pp. 240–249. Springer Berlin Heidelberg (2008) OpenAlex ↗ · Scholar ↗
  17. Lin, D., Wu, X.: Phrase clustering for discriminative learning. In: Proceedings of the Joint Conference of the 47th Annual Meeting of the ACL and the 4th International Joint Conference on Natural Language Processing of the AFNLP. vol. 2, pp. 1030–1038. Association for Computational Linguistics (2009) our card
  18. Luo, G., Xiaojiang Huang, Chin-Yew Lin, Z.N.: Joint entity recognition and disambiguation. In: Proceedings of the 2015 Conference on Empirical Methods on Natural Language Processing. pp. 879–888. Association for Computational Linguistics (2015) our card
  19. Ma, X., Hovy, E.: End-to-end sequence labeling via bi-directional lstm-cnns-crf. arXiv preprint arXiv:1603.01354 (2016) our card
  20. Nguyen, T.C.V., Pham, T.S., Vuong, T.H., Nguyen, N.V., Tran, M.V.: Dsktlab-ner: Nested named entity recognition in vietnamese text. In: Proceedings of The Fourth International Workshop on Vietnamese Language and Speech Processing. Hanoi, Vietnam (2016) our card
  21. Nguyen, T.S., Nguyen, L.M., Tran, X.C.: Vietnamese named entity recognition at vlsp 2016 evaluation campaign. In: Proceedings of The Fourth International Workshop on Vietnamese Language and Speech Processing. Hanoi, Vietnam (2016) OpenAlex ↗ · Scholar ↗
  22. Pascanu, R., Mikolov, T., Bengio, Y.: On the difficulty of training recurrent neural networks. In: The 30th International Conference on Machine Learning. vol. 28, pp. 1310–1318. Atlanta, USA (2013) OpenAlex ↗ · Scholar ↗
  23. Petasis, G., Petridis, S., Paliouras, G., Karkaletsis, V., Perantonis, S., Spyropoulos, C.: Symbolic and neural learning for named-entity recognition. In: Symposium on Computational Intelligence and Learning. pp. 58–66. Citeseer, Chios, Greece (2000) OpenAlex ↗ · Scholar ↗
  24. dos Santos, C., Guimaraes, V., RJ Niterói, a.R.d.J.: Boosting named entity recognition with neural character embeddings. In: Proceedings of NEWS 2015 The Fifth Named Entities Workshop. pp. 25–33 (2015) our card