Global Pointer: Novel Efficient Span-based Approach for Named Entity Recognition

Jianlin Su, Ahmed Murtadha, Shengfeng Pan, Jing Hou, Jun Sun, Wanwei Huang, Bo Wen, Yunfeng Liu · DOI · OpenReview

Named Entity Recognition (NER) has traditionally been framed as a sequence labeling task. However, this paradigm struggles with nested entities and computational efficiency. This paper introduces Global Pointer (GP), a span-based framework that treats NER as a global multi-label classification problem. By leveraging multiplicative attention and rotary position embeddings, GP achieves state-of-the-art performance on both flat and nested NER tasks while maintaining high inference speeds.

The Challenge of Nested NER

Standard NER approaches often use BIO tagging, which assigns a single label to each token. While effective for "flat" entities, this method fails when entities overlap or are nested (e.g., "Academy of Sciences" within "University of Chinese Academy of Sciences"). Existing span-based alternatives often suffer from three main issues: poor boundary detection, high computational overhead when evaluating all possible spans, and severe class imbalance between entity and non-entity spans.

The Global Pointer Framework

The core of the Global Pointer approach is to treat NER as a multi-label classification of spans. For each entity type, the model generates a score matrix where each entry $(i, j)$ represents the likelihood that a span starting at token $i$ and ending at token $j$ belongs to that category.

The Global Pointer architecture uses BERT for input representation followed by type-specific prediction heads and a specialized loss function.

Key Innovations

  1. Multiplicative Attention & RoPE: GP utilizes Rotary Position Embeddings (RoPE) to inject relative position information into the "head" and "tail" representations of tokens. This multiplicative mechanism allows the model to explicitly capture the distance and order between span boundaries, which is crucial for identifying entities.
  2. Global View: Unlike sequence labeling, GP considers the entire span at once. A nested entity is simply another positive entry in the global score matrix.
  3. Class Imbalance Loss: To address the sparsity of entities compared to the total number of possible spans, the authors adapted a loss function inspired by "Circle Loss." This ensures that true entity spans are scored higher than a zero threshold and significantly higher than non-entity spans.

Experimental Evaluation

The model was tested across eight diverse benchmarks covering news, medical, and web domains in both Chinese and English. These include flat datasets like The People's Daily and CLUENER, and nested datasets like CMeEE and Genia.

Results and Discussion

Global Pointer consistently outperformed traditional Bert-CRF baselines and other competitive models like PFN across all evaluated datasets.

Performance comparison of Global Pointer against Bert-CRF and PFN across five major NER benchmarks.

Beyond accuracy, GP demonstrates significant efficiency gains. On The People's Daily dataset, GP achieved a 1.56x faster training speed and a 1.11x faster inference speed compared to CRF-based models. The model's unified architecture handles both flat and nested NER naturally, making it a versatile tool for various NLP applications.

Conclusion

Global Pointer represents a significant step forward in NER by reimagining the task through a global span-based lens. By effectively integrating relative position information and addressing class imbalance, it provides a robust, efficient, and high-performing solution for complex entity recognition tasks. Future work may extend this framework to document-level NER and joint relation extraction.

Summary updated

BibTeX
@misc{su2022global,
  author = {Jianlin Su and Ahmed Murtadha and Shengfeng Pan and Jing Hou and Jun Sun and Wanwei Huang and Bo Wen and Yunfeng Liu},
  title = {{Global Pointer: Novel Efficient Span-based Approach for Named Entity Recognition}},
  year = {2022},
  eprint = {2208.03054},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.03054},
}
Figure