Abstract
Nested Named Entity Recognition (NER) presents a significant challenge in natural language processing due to overlapping entity boundaries and the prevalence of low-frequency terms. Researchers from Shanghai Jiao Tong University have introduced a novel framework that leverages retrieval-based, span-level graphs to address these issues. By connecting candidate spans to similar entities across the training set via n-gram similarity, the model effectively utilizes global knowledge to improve recognition accuracy, particularly for long and unfamiliar entities.
Introduction
Standard NER typically focuses on identifying "flat" entities, such as locations or names, that do not overlap. However, many real-world applications require Nested NER, where entities exist within one another. For example, in the phrase "Mayor Warren Beck," "Warren Beck" is a Person entity, while the entire phrase may represent a Job Title or a broader organizational reference.
Current span-based models, which classify every possible sequence of words, struggle with two primary hurdles:
- Boundary Confusion: High overlap between positive and negative instances makes it difficult for models to distinguish exact entity boundaries.
- The "Unfamiliar" Entity Problem: In standard benchmarks like ACE2005 or GENIA, nearly half of the entities in validation sets appear fewer than three times in the training data. This lack of examples hinders the model's ability to generalize to new or rare terms.
Methodology
The proposed framework moves beyond local sentence context by constructing Span-level Graphs that act as a "global memory" queried during inference.
Retrieval-based Graphs
The model constructs two types of graphs based on n-gram similarity at the Byte Pair Encoding (BPE) level:
- Entity-Entity Graph: Connects known entities within the training set that share lexical similarities.
- Span-Entity Graph: Connects a candidate span from the current sentence to similar "known entities" found in the training data.
Model Architecture
As shown in the architecture diagram below, the system utilizes a standard encoder stack (Char-BiLSTM, Word Embeddings, and a pre-trained Language Model like BERT) to initialize span representations. These representations are then refined by a Graph Convolutional Network (GCN) that performs message passing across the retrieved graphs. This allows a candidate span to "borrow" semantic information and label cues from its similar neighbors in the training set.
Multitask Learning
To ensure robust representations, the model employs multitask learning. During training, it predicts the labels of both the target span and its graph neighbors, forcing the GCN to learn more discriminative features that correlate lexical similarity with semantic categories.
Experimental Results
The model was evaluated on three standard nested NER benchmarks: ACE2004, ACE2005, and GENIA (a specialized biomedical dataset).
Performance Gains
The proposed method achieved state-of-the-art results, boosting Micro-F1 scores by +0.30 to +0.85 over strong baselines like SpERT. Notably, the model showed a significant recall boost (+0.56 to +2.08) for low-frequency entities, proving that global retrieval helps mitigate the data sparsity problem.
Impact of Entity Length
A key finding was the model's exceptional performance on long entities. Longer spans possess richer n-gram features, leading to more accurate graph connections. On the ACE2005 dataset, the model improved F1 scores for entities of length 8 by 13.11 points compared to the baseline.
Discussion and Future Work
While the retrieval-based approach provides substantial accuracy gains, it introduces computational overhead. Inference speed is approximately half that of the baseline, and the model requires an additional 100–500 MB of GPU memory. Furthermore, the reliance on n-gram similarity means the model may struggle to connect entities that are semantically related but lexically distinct (e.g., "The Big Apple" and "New York City").
Future research will focus on exploring more sophisticated retrieval metrics beyond n-grams and optimizing the graph module to reduce latency for real-time applications. Despite these limitations, the use of span-level graphs represents a significant step forward in enabling NER models to utilize global dataset knowledge for local classification tasks.
Summary updated