Introduction
Named Entity Recognition (NER) is a fundamental task in natural language processing. While Bi-directional LSTMs (BiLSTMs) have become the standard for encoding sequences, they suffer from two primary limitations: localism and isolation. Localism refers to the sequential nature of BiLSTMs, which often fails to capture the relative importance of words within a single sentence. Isolation describes the tendency of models to treat each sentence as an independent unit, ignoring global patterns of word usage across a document or dataset. For example, how a word like "Apple" is tagged in one part of a document is a significant clue for its tagging elsewhere, yet standard models fail to leverage this global context.
Methodology
To address these limitations, this paper proposes a hierarchical architecture that augments the standard BiLSTM-CRF model with two specialized encoders: a sentence-level encoder and a document-level encoder.
Sentence-level Encoder
The sentence-level encoder utilizes label embedding attention. By projecting entity labels (e.g., PER, LOC) into the same vector space as word embeddings, the model calculates similarity scores between words and potential labels. Words that align more closely with entity labels are weighted more heavily, creating an "entity-aware" representation of the sentence context.
Document-level Encoder
The document-level encoder employs a Key-Value Memory Network. It stores word embeddings as keys and their corresponding BiLSTM hidden states as values. When processing a token, the model queries this memory to retrieve global contextual information from other occurrences of the word across the dataset. This mechanism helps resolve local ambiguities by leveraging consistent global patterns.
Experimental Results
The model was evaluated on three major benchmarks: CoNLL-2003 (English), Ontonotes 5.0 (English), and CoNLL-2002 (Spanish). It established new state-of-the-art performance across all three. On CoNLL-2003, the model achieved an F1 score of 91.96 without external knowledge and 93.37 when integrated with BERT.
Ablation studies highlighted the complementary nature of these components. Sentence-level information proved most beneficial for Out-of-Vocabulary (OOV) words by using context to guess labels, while document-level information significantly improved performance for In-Vocabulary (IV) words by leveraging remembered global patterns.
Discussion and Limitations
While the hierarchical approach yields significant gains, it introduces a trade-off between performance and computational efficiency. As shown in the analysis of memory size, training time increases by approximately 20% as the memory capacity grows. Furthermore, performance can plateau or slightly decline if the memory size becomes too large (e.g., beyond 500 unique words), likely due to "noise" introduced by frequent stop words. Future research may focus on more sophisticated memory filtering techniques to mitigate this overhead and noise.
Summary updated