Introduction
Named Entity Recognition (NER) has traditionally been framed as a sequence labeling task (SeqLab), where models assign tags to individual tokens. However, the emergence of span-based prediction offers a compelling alternative. This paper introduces SPANNER, a framework that not only reimagines NER as span prediction but also serves as a powerful meta-system for ensembling diverse NER models. By treating the outputs of multiple base systems as candidate spans, SPANNER achieves state-of-the-art results through a process of "re-recognition."
Methodology
SPANNER operates in two primary modes: as a standalone base NER system and as a system combiner.
1. SPANNER as a Base NER System
As a base system, the model follows a three-step pipeline:
- Token Representation: Utilizes standard encoders like BERT or BiLSTM to generate word vectors.
- Span Representation: Enumerates all possible spans in a sentence. Each span is represented by concatenating the vectors of its start and end tokens (Boundary Embedding) and adding a learnable Span Length Embedding.
- Prediction & Decoding: A softmax layer predicts the entity type for each span. To handle the "flat" NER task where entities should not overlap, a heuristic decoding method selects the span with the highest probability and discards overlapping candidates.
2. SPANNER as a System Combiner (Re-Recognition)
This is the framework's most novel contribution. Instead of processing raw text alone, SPANNER can ingest the outputs of $m$ different "base" NER systems. It treats these outputs as candidates and uses its span-prediction logic to "re-recognize" the best entities. This allows it to act as a meta-model that learns which base systems are most trustworthy for specific types of spans.
Experimental Setup
The researchers conducted an extensive evaluation involving 154 systems across 11 datasets and 3 languages (English, Dutch, Spanish, Chinese, and Arabic). Key datasets included CoNLL-2003, OntoNotes 5.0, and the challenging WNUT-2016/2017 social media corpora, which are known for rare and emerging entities.
Analysis and Insights
The authors conducted a fine-grained diagnosis to understand the architectural biases of span-based models versus sequence labeling. They found that while SeqLab models often handle very long entities better, span-based models excel at medium-length entities and are more robust to out-of-vocabulary (OOV) words.
Key findings include:
- Length Matters: Simply adding a "length embedding" to the span representation significantly improved performance, suggesting that the physical size of a span is a strong signal for its entity type.
- The Power of Diversity: The best results were achieved by combining models with diverse internal structures rather than just combining the top-performing individual models. This provides the meta-model with richer complementary information.
Results
SPANNER consistently outperformed traditional ensembling techniques like Majority Voting and Stacking (using SVM, Random Forest, or XGBoost) across almost all datasets. On CoNLL-2003 (EN), the SPANNER ensemble pushed the F1-score to 93.80, compared to the best single model's 93.02. The gains were most pronounced on noisy datasets like WNUT and Web Data, where traditional voting methods often struggle with inconsistent predictions.
Conclusion
While highly effective, span-based models still face challenges with exceptionally long entities and the $O(n^2)$ computational complexity of span enumeration. However, the success of the "re-recognition" framework suggests it could be extended beyond NER to other structured prediction tasks like syntactic parsing or relation extraction, potentially serving as a general-purpose engine for NLP system combination.
Summary updated