Abstract
Nested Named Entity Recognition (NER) is a challenging task where entities can overlap or be contained within one another. Traditional flat NER models struggle with these structures, while existing nested models often suffer from error propagation or computational inefficiency. We propose the Bipartite Flat-Graph Network (BiFlaG), a novel architecture that splits the task into two interacting modules: a flat NER module for outermost entities and a graph module for inner entities. By facilitating bidirectional information exchange between these modules, BiFlaG captures complex structural dependencies. Our model achieves state-of-the-art results on ACE2005, GENIA, and KBP2017 benchmarks, demonstrating both superior accuracy and high inference efficiency.
Introduction
Named Entity Recognition (NER) is a fundamental task in natural language processing. While standard NER assumes entities are "flat" and non-overlapping, real-world data frequently contains nested entities. For instance, in the phrase "third president of the United States," the entity "United States" (GPE) is nested within the larger entity "third president of the United States" (PER).
Previous approaches to nested NER generally fall into two categories: layered models and region-based models. Layered models stack multiple flat NER layers but are prone to error propagation and data sparsity at deeper levels. Region-based models exhaustively classify all possible spans, often ignoring the structural relationships between boundaries. BiFlaG addresses these limitations by modeling the bidirectional interaction between outer and inner entities, ensuring that information about internal structures informs the identification of outer boundaries and vice versa.
Methodology: The BiFlaG Architecture
The Bipartite Flat-Graph Network (BiFlaG) consists of two primary interacting components: a Flat NER Module and a Graph Module.
Flat NER Module
The flat module utilizes a standard BiLSTM-CRF architecture. Its primary role is to identify the "outermost" entities—those that cover the maximum span of text without being contained by another entity.
Graph Module
The graph module treats individual words as nodes and constructs two types of graphs:
- Entity Graph ($G^1$): This graph connects the start and end nodes of entities identified by the flat module, capturing global span information.
- Adjacent Graph ($G^2$): This graph connects neighboring words to preserve local contextual dependencies.
A Bidirectional Graph Convolutional Network (Bi-GCN) processes these graphs to learn refined representations for inner entities.
Bidirectional Feedback Loop
The core innovation of BiFlaG is the feedback mechanism. Unlike sequential models where information flows only from inner to outer layers (or vice versa), BiFlaG allows the refined representations from the graph module to be fed back into the flat module. This iterative process enables the model to update its predictions for outermost entities based on the discovered internal dependencies.
Experimental Results
The model was evaluated on three major nested NER benchmarks: ACE2005, GENIA, and KBP2017. These datasets vary in their domain (news, biomedical) and the density of nested entities.
BiFlaG established new state-of-the-art F1 scores across all three datasets, as shown in the table above. Notably, it achieved a 1.3-point improvement on GENIA and a significant 2.8-point gain on KBP2017.
Efficiency and Inference Speed
Beyond accuracy, BiFlaG is highly efficient. By utilizing only two main modules rather than $N$ sequential layers (where $N$ is the nesting depth), it avoids the computational overhead of deep stacking. BiFlaG achieves an inference speed of approximately 6,708 tokens per second, nearly doubling the speed of previous layered CRF models.
Discussion and Conclusion
While BiFlaG shows strong performance, it faces challenges with very long entities (over 6 words), where the Bi-GCN's ability to propagate information across long spans diminishes. Additionally, recall for inner entities in sparse datasets like GENIA remains an area for improvement.
In conclusion, BiFlaG demonstrates that bidirectional interaction between flat and graph-based modules is a powerful paradigm for nested NER. Future work may involve integrating pre-trained transformers like BERT more deeply into the bipartite structure or exploring more complex graph construction techniques to further enhance entity boundary detection.
Summary updated