Deep Span Representations for Named Entity Recognition

Enwei Zhu, Yiyang Liu, Jinpeng Li
10/9/2022
cs.CLcs.LG
transformer-attention

Official code: syuoni/eznlp (145 stars, Python, Apache-2.0, PyTorch, last commit 2025-04-05).

Abstract

Span-based models are one of the most straightforward methods for named entity recognition (NER). Existing span-based NER systems shallowly aggregate the token representations to span representations.

Show full abstract

However, this typically results in significant ineffectiveness for long-span entities, a coupling between the representations of overlapping spans, and ultimately a performance degradation. In this study, we propose DSpERT (Deep Span Encoder Representations from Transformers), which comprises a standard Transformer and a span Transformer. The latter uses low-layered span representations as queries, and aggregates the token representations as keys and values, layer by layer from bottom to top. Thus, DSpERT produces span representations of deep semantics. With weight initialization from pretrained language models, DSpERT achieves performance higher than or competitive with recent state-of-the-art systems on eight NER benchmarks. Experimental results verify the importance of the depth for span representations, and show that DSpERT performs particularly well on long-span entities and nested structures. Further, the deep span representations are well structured and easily separable in the feature space.

View on arXivView PDF

Code Implementations(1)

syuoni/eznlpOfficial100%
PyTorchApache-2.0

Easy Natural Language Processing

14523Python, SchemeOct 12, 20201 years agoApache-2.0
information-extractionnamed-entity-recognitionnatural-language-processingnlppytorch

Similar Papers

Cite this paper

@article{zhu2022deep,
  title  = {Deep Span Representations for Named Entity Recognition},
  author = {Enwei Zhu and Yiyang Liu and Jinpeng Li},
  year   = {2022},
  eprint = {2210.04182},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.04182}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.04182.svg)](https://codeofpaper.com/paper/2210.04182)

Discussion