Type-supervised sequence labeling based on the heterogeneous star graph for named entity recognition

Xueru Wen, Changjiang Zhou, Haotian Tang, Luguang Liang, Yu Jiang, Hong QiarXiv 2022

Abstract

Named entity recognition (NER) is a fundamental task in natural language processing, identifying the span and category of entities in unstructured texts. Traditional sequence labeling methodology often ignores nested entities—those contained within other entity mentions. This paper investigates representation learning using a heterogeneous star graph consisting of text nodes and type nodes. We introduce a hybrid graph attention mechanism to address topological limitations and perform type-supervised sequence labeling after node updates. This approach effectively handles both flat and nested entities, achieving state-of-the-art performance on multiple benchmarks.

Introduction: The Challenge of Nested Entities

Named Entity Recognition is a cornerstone of information extraction, yet it faces a significant hurdle: the "nesting" problem. Standard sequence labeling schemes, such as BIO (Begin, Inside, Outside), assume a token belongs to at most one entity. However, in specialized domains like medicine or biology, entities are frequently nested. For instance, in the phrase "vitamin D receptor gene," the segment "vitamin D receptor" is a protein, while the entire phrase is a gene.

Examples of nested entities across different categories illustrating the limitations of standard sequence labeling.

Existing solutions typically rely on layered models or exhaustive span enumeration. Layered models recognize entities depth-by-depth but are prone to error propagation between layers. Exhaustive enumeration checks every possible text span, leading to high computational costs and a massive imbalance of negative samples. This research proposes a middle ground: a model that manages complex nesting without excessive computational overhead or fragile layering.

Methodology: Heterogeneous Star Graphs

The core innovation of this work is the Heterogeneous Star Graph. Unlike fully connected graphs where every word attends to every other word ($O(n^2)$ complexity), this topology utilizes:

  • Type Nodes: Central hubs representing each entity category (e.g., Protein, DNA).
  • Text Nodes: Individual words acting as "planetary" nodes.

Text nodes connect to all type nodes for global context and to their immediate neighbors for local context. This structure reduces complexity to $O(tn)$, where $t$ is the number of types and $n$ is the number of tokens.

The overall architecture of the proposed model, showing the flow from input embeddings to the heterogeneous star graph and final decoding.

Key Technical Components

  1. Hybrid Graph Attention: Standard Graph Attention Networks (GAT) can struggle with bipartite-like topologies. The authors developed a hybrid mechanism combining GAT with Query-Key-Value (QKV) attention to better capture relationships between specific words and entity types.
  2. Type-Supervised Labeling: Instead of layering by depth, the model performs sequence labeling for each entity type individually. This allows a single span of text to be associated with multiple categories simultaneously.
  3. Refined CRF: A Conditional Random Field (CRF) with hard-coded constraints ensures the model produces valid BIOES sequences by penalizing impossible transitions.

Experimental Evaluation

The model was evaluated on three distinct benchmarks: GENIA (biological domain), CoNLL-2003 (news domain), and Weibo NER (social media).

Key Results

The model achieved state-of-the-art (SOTA) or highly competitive results:

  • GENIA: Reached an F1 score of 80.71%, outperforming models like BARTNER.
  • CoNLL-2003: Achieved 93.25% F1, proving that the specialized architecture does not degrade performance on flat entities.
  • Weibo NER: Achieved 70.06% F1, demonstrating strength in informal, non-English text.
  • Efficiency: The model successfully reduced theoretical computational complexity from $O(n^2)$ to approximately $O(n)$, enhancing scalability for long documents.

Discussion and Conclusion

By grouping entities by category rather than nesting depth, the model avoids the error propagation inherent in previous layered approaches. The star graph topology mimics human reading patterns—scanning for specific types of information globally while maintaining local context. While the model handles most nesting cases, extremely deep nesting remains a challenge. Future work will focus on improving decoding for overlapping nesting and incorporating additional linguistic features into the graph nodes.

Summary updated

BibTeX
@misc{wen2022type,
  author = {Xueru Wen and Changjiang Zhou and Haotian Tang and Luguang Liang and Yu Jiang and Hong Qi},
  title = {{Type-supervised sequence labeling based on the heterogeneous star graph for named entity recognition}},
  year = {2022},
  eprint = {2210.10240},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.10240},
}
Figure