Paper commentary
Neural Architectures for Named Entity Recognition
Character and word vectors let an LSTM-CRF tag names with little labeled data
- Problem Earlier NER systems relied on hand-built features and gazetteers, which are costly to build for each new language.
- Method LSTM-CRF runs a bidirectional LSTM over the sentence and a CRF layer scores whole tag sequences, using character-based and pretrained word vectors.
- Results On English it comes very near the state-of-the-art, and it reaches state-of-the-art in Dutch, German, and Spanish.
Why NER stalls without hand-built features
Named entity recognition labels every word in a sentence, yet labeled data for most languages and domains is very small. Because almost any word can be a name, a small sample tells the model little about which words to trust. Researchers have therefore leaned on orthographic features such as capitalization patterns and character classes, along with gazetteers.
Those resources are costly to build for each new language or domain, so NER becomes a challenge to adapt.
Unlabeled corpora offer a way to generalize from small amounts of supervision. Earlier systems that used unsupervised features, however, used them to augment hand-engineered features rather than replace them. The paper asks whether NER can work with only a small labeled corpus and unlabeled text, without language-specific resources. The authors answer with models that rely on character-based word representations learned from the supervised corpus and unsupervised word representations learned from unannotated corpora.
Their models aim to capture two intuitions about names. First, a name often spans multiple tokens, so reasoning jointly over tagging decisions matters.
Two intuitions behind the design
The paper's design rests on two intuitions about what makes a token look like a name. Names often consist of multiple tokens, so reasoning jointly over tagging decisions for each token matters. Token-level evidence for being a name has two parts: orthographic evidence from the spelling and distributional evidence from where the word occurs in a corpus.
The models capture orthographic sensitivity with a character-based word representation model from Ling et al. (2015b). They capture distributional sensitivity by combining these representations with distributional representations from Mikolov et al. (2013b).
The authors compare two architectures that both reason jointly over tags. The first is a bidirectional LSTM with a sequential conditional random layer above it, called LSTM-CRF. The second is a new model called S-LSTM, which constructs and labels chunks of input sentences with a transition-based algorithm. The LSTM is a recurrent network with memory cells and gates, so it can capture long-range dependencies that plain RNNs miss.
A bidirectional LSTM runs a second network over the sentence in reverse, so each word gets both left and right context.
Experiments in English, Dutch, German, and Spanish test whether these intuitions hold in practice. The LSTM-CRF model reaches state-of-the-art NER performance in Dutch, German, and Spanish. In English it comes very near the state-of-the-art without hand-engineered features or gazetteers.
How the LSTM-CRF scores a tag sequence
An LSTM keeps a memory cell across the sentence, so information from far back can survive. Gates decide how much of the new input to write into the memory cell and how much of the previous state to forget. A bidirectional LSTM runs one LSTM left to right and a second one right to left, with distinct parameters. It concatenates the two states, so each word gets a representation that covers both its left and right context.
The network then projects each concatenated state linearly onto a layer sized to the number of distinct tags. The authors add a hidden layer between that concatenated state and the CRF layer, which marginally improved their results.
Independent per-word decisions can't respect hard constraints, such as I-PER never following B-LOC. So the model scores whole sequences instead of single tags. The score of a sequence adds the transition score A for each adjacent pair of tags to the per-word score P. Start and end tags, y0 and yn, are added to the set of possible tags, so A is a square matrix of size k + 2.
A softmax over all candidate tag sequences turns these scores into a probability for the sequence y.
Because the model uses only bigram interactions between outputs, the sum over all sequences can be computed with dynamic programming. The same dynamic programming finds the maximum a posteriori sequence at decoding time. Decoding returns the sequence with the highest score, as in Eq. 2.
Choosing the tag format
NER output is usually written in IOB, where each token gets B- for a beginning, I- for the inside of an entity, or O for outside. With IOB, tagging a word as I- label only narrows the next choice to I- label or E-label, so the scheme can only rule out that the next word is interior to another label. Ratinov and Roth (2009) and Dai et al. (2015) reported that a more expressive scheme like IOBES improves model performance marginally.
The authors didn't see a significant improvement from IOBES over IOB in their own runs, so the tag format changed little for their LSTM-CRF. The transition-based chunking model sidesteps the choice entirely, because it directly predicts labeled chunks rather than per-token tags. Its Stack-LSTM uses a stack pointer, so it adds and removes objects with push and pop operations.
That design lets the model keep a summary embedding of its contents, which is why the tag scheme doesn't limit it.
Building word vectors from characters and corpora
A word-level lookup table alone struggles on a small NER training set, because learning independent vectors for word types needs too many parameters. The authors instead build each word's vector from the characters it is composed of, so spelling evidence that something is a name stays available. Each character gets an embedding from a lookup table initialized at random, and a forward and a backward LSTM read those character embeddings in direct and reverse order.
The concatenation of the forward and backward final states forms the character-based vector, with 25 dimensions per LSTM and 50 in total. That character vector is concatenated with a word-level vector from the word lookup table, so the model sees both sources at once.
Words missing from the lookup table at test time map to a UNK vector. During training, the authors replace singletons with the UNK vector with a probability of 0.5, which teaches the UNK embedding. The authors chose LSTMs over convolutional networks because convnets look for position-invariant features, while prefixes and suffixes carry position-dependent information.
Under this view, the final forward state captures the suffix of a word and the final backward state captures its prefix.
The lookup table starts from pretrained embeddings, because the authors observed significant improvements over randomly initialized vectors. These skip-n-gram embeddings extend word2vec by accounting for word order, and they are fine-tuned during training. The English vectors have dimension 100, while the vectors for the other languages have dimension 64.
Early experiments showed that character-level embeddings didn't improve performance when combined with pretrained word vectors. To push the model to rely on both representations, the authors apply dropout to the final embedding layer just before the bidirectional LSTM. The authors report a significant gain in performance after adding dropout.
Stack-LSTM chunk construction
The second model builds labeled chunks directly, so it never tags each word on its own. It uses two stacks and a buffer, with the output stack holding completed chunks and the stack holding scratch space. The design is inspired by the arc-standard parser of Nivre (2004), adapted to chunking. A Stack-LSTM adds a stack pointer to the LSTM, so items can be pushed onto the stack and popped from it.
Because of this, the Stack-LSTM keeps a summary embedding of whatever the stack currently contains.
The SHIFT transition moves the next word from the buffer onto the stack. The model defines a probability distribution over actions at each step, conditioned on the stack, buffer, output and action history. Each token takes either one action (OUT) or two (SHIFT then REDUCE or later output), so a sentence of length n needs at most 2n actions.
The model is trained to maximize the probability of reference actions extracted from a labeled training corpus. At test time it picks the most probable action greedily until it reaches a termination state. Greedy decoding is not guaranteed to find a global optimum, but the authors found it effective in practice. To embed a chunk, a bidirectional LSTM runs over its token embeddings together with a learned embedding of its label type.
As a result, the output buffer holds one vector per labeled chunk, regardless of the chunk's length.
Figure 3 traces the transitions for Mark Watney visited Mars. The model shifts Mark and Watney, then reduces them to a PER chunk. It outputs visited directly, then shifts Mars and reduces it to a LOC chunk. Because the model predicts labeled chunks directly, it doesn't depend on a tagging scheme such as IOB or IOBES.
Training and settings behind the reported NER scores
Both models train with stochastic gradient descent, updating the parameters after every training example. The learning rate is 0.01 and the gradient clipping is 5.0. Adadelta and Adam converged faster in the authors' runs, but neither matched plain SGD with gradient clipping. The authors' reasoning is that the faster methods didn't reach the same final scores.
The LSTM-CRF uses a single layer for each of its forward and backward LSTMs, with 100 units per direction. Changing this dimension didn't significantly affect model performance. The LSTM-CRF sets its dropout rate to 0.5, because higher rates hurt results and smaller rates led to longer training time. The Stack-LSTM uses two layers of dimension 100 for each stack.
Its action embeddings have 16 dimensions each, and its output embedding has dimension 20.
The reported scores use the best dropout rate for each language, selected from several tried rates. The English rate is 0.2, while German, Spanish and Dutch use 0.3. Because the Stack-LSTM is greedy, it applies locally optimal actions until the whole sentence is processed. Beam search or training with exploration could improve it, but the authors didn't test either.
The experiments use the CoNLL-2002 and CoNLL-2003 datasets, covering English, Spanish, German and Dutch. Every dataset has four entity types, and the authors left out the POS tags. The only preprocessing replaces every digit with a zero in the English data.
English results on CoNLL-2003
On the English CoNLL-2003 test set, LSTM-CRF reaches an F1 of 90.94 and sits above every other compared system. The authors compare this against systems trained with and without external labeled data such as gazetteers. The best score in their table is 91.2 for Luo et al., obtained by jointly modeling NER and entity linking. That system relies on many hand-engineered features, including spelling features, WordNet clusters, Brown clusters, and POS tags.
It also uses stemming and external knowledge bases such as Freebase and Wikipedia. Luo et al. with gazetteers alone reaches 89.9, so LSTM-CRF at 90.94 beats that setting without any gazetteer. Stack-LSTM reaches 90.33 on the same test set, which is also above all previous models without external features except Chiu and Nichols (2015).
Removing character-based vectors drops LSTM-CRF to 90.20 and S-LSTM to 87.96. So the character representations carry real weight in both architectures, and the Stack-LSTM depends on them more. The authors hypothesize that LSTM-CRF needs less orthographic information because its bidirectional LSTMs supply more context. Stack-LSTM consumes words one by one and relies on word representations when it chunks them.
Which components mattered in English
The authors compared configurations with pretraining, the CRF layer, dropout and character-level embeddings switched on or off. The CRF layer added +1.79, dropout added +1.17, and character-level embeddings added about +0.74.
The full LSTM-CRF with pretraining, dropout and characters reached 90.94, compared to 88.39 for pretraining alone. Stack-LSTM followed the same pattern, with 90.33 when pretraining, dropout and characters were combined, compared to 86.67 for pretraining alone.
German, Dutch and Spanish results
On German, the LSTM-CRF reaches 78.76, ahead of Gillick et al. (2015) at 76.22, which used external labeled data. On Spanish, the LSTM-CRF scores 85.75, above Santos and Guimarães (2015) at 82.21 on the same CoNLL-2002 test set. The LSTM-CRF also beats the starred Carreras et al. (2002) entry at 81.39 on Spanish, which relied on external data.
Dutch is the exception, where the LSTM-CRF scores 81.74 and Gillick et al. (2015) reaches 82.84 with external labeled data. Gillick et al. (2015) performs better there by leveraging information from other NER datasets. Without external data, the LSTM-CRF still tops the Dutch entries, beating Nothman et al. (2013) at 78.6 and Gillick et al.
(2015) at 78.08.
The Stack-LSTM scores 75.66 on German, 79.88 on Dutch and 83.93 on Spanish. Against systems that use no external data, the Stack-LSTM stays state-of-the-art or close to it. Without character-based representations, the Stack-LSTM falls to 65.87 on German, while LSTM-CRF without them scores 75.06. On Dutch, the Stack-LSTM drops to 69.90 without characters, against 73.14 for LSTM-CRF without them.
On Spanish, the Stack-LSTM falls to 79.46 without characters, while LSTM-CRF without them keeps 83.44. The authors hypothesize that LSTM-CRF needs less orthographic information because its bidirectional LSTMs gather more context. The Stack-LSTM, in contrast, consumes words one by one and relies only on word representations when it chunks words.
So the Stack-LSTM leans on character-based representations more heavily than the LSTM-CRF does.
Limitations of the NER results
The Stack-LSTM decodes greedily, choosing the locally optimal action at each step until the sentence is processed. The authors say beam search or training with exploration might yield further improvements. They didn't evaluate either beam search or training with exploration, so those gains remain untested.
The experiments cover only English, Dutch, German and Spanish, all drawn from the CoNLL-2002 and CoNLL-2003 datasets. Each dataset contains four entity types: locations, persons, organizations, and miscellaneous entities. The authors didn't test other domains or datasets, so their generalization beyond these corpora isn't measured.
The comparison tables mix systems trained with external labeled data and systems trained without it. Dutch is the one case where Gillick et al. (2015) with external data scored 82.84, above LSTM-CRF at 81.74. So the gaps between systems need that external-data split to be read correctly.
How this design differs from earlier NER systems
Collobert et al. (2011) used a CNN over a sequence of word embeddings with a CRF layer on top. The authors describe this as their first model without character-level embeddings, with the bidirectional LSTM replaced by a CNN. Huang et al. (2015) presented a model similar to the LSTM-CRF, but it used hand-crafted spelling features. Lin and Wu (2009) used a linear chain CRF with L2 regularization, adding phrase cluster features from web data and spelling features.
Cucerzan and Yarowsky present semi-supervised bootstrapping that co-trains character-level and token-level features. Eisenstein et al. (2011) used Bayesian nonparametrics to build a database of named entities in an almost unsupervised setting. Gillick et al. (2015) treated sequence labeling as sequence to sequence learning and put character-based representations into their encoder.
Chiu and Nichols (2015) used an architecture similar to theirs, but they learned character-level features with CNNs.
The authors' models keep the bidirectional LSTM and learn character features with LSTMs rather than convolutions. Their key claim is that the models capture output label dependencies, either through a CRF or through a transition-based chunker. They combine pre-trained word representations with learned character-based representations, and they use no external resources such as gazetteers.
Paper info
- Authors
- Guillaume Lample, Miguel Ballesteros, Sandeep Subramanian, Kazuya Kawakami, Chris Dyer
- Venue
- Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · Published
- Added
- 2026-11-12
- DOI
- 10.18653/v1/n16-1030
- Original paper terms
- Check in the original ↗
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Guillaume Lample, Miguel Ballesteros, Sandeep Subramanian, Kazuya Kawakami, Chris Dyer (2016). Neural Architectures for Named Entity Recognition. Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. https://doi.org/10.18653/v1/n16-1030
BibTeX
@article{lample2016neural,
title = {{Neural Architectures for Named Entity Recognition}},
author = {Guillaume Lample and Miguel Ballesteros and Sandeep Subramanian and Kazuya Kawakami and Chris Dyer},
year = {2016},
journal = {Proceedings of the 2016 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies},
doi = {10.18653/v1/n16-1030},
url = {https://aclanthology.org/N16-1030/}
}