HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Parallel Instance Query Network for Named Entity Recognition

Yongliang Shen; Xiaobin Wang; Zeqi Tan; Guangwei Xu; Pengjun Xie; Fei Huang; Weiming Lu; Yueting Zhuang

Parallel Instance Query Network for Named Entity Recognition

Abstract

Named entity recognition (NER) is a fundamental task in natural language processing. Recent works treat named entity recognition as a reading comprehension task, constructing type-specific queries manually to extract entities. This paradigm suffers from three issues. First, type-specific queries can only extract one type of entities per inference, which is inefficient. Second, the extraction for different types of entities is isolated, ignoring the dependencies between them. Third, query construction relies on external knowledge and is difficult to apply to realistic scenarios with hundreds of entity types. To deal with them, we propose Parallel Instance Query Network (PIQN), which sets up global and learnable instance queries to extract entities from a sentence in a parallel manner. Each instance query predicts one entity, and by feeding all instance queries simultaneously, we can query all entities in parallel. Instead of being constructed from external knowledge, instance queries can learn their different query semantics during training. For training the model, we treat label assignment as a one-to-many Linear Assignment Problem (LAP) and dynamically assign gold entities to instance queries with minimal assignment cost. Experiments on both nested and flat NER datasets demonstrate that our proposed method outperforms previous state-of-the-art models.

Code Repositories

tricktreat/piqn
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
chinese-named-entity-recognition-on-msraPIQN
F1: 93.48
named-entity-recognition-ner-on-conll-2003PIQN
F1: 92.87
named-entity-recognition-ner-on-ontonotes-v5PIQN
F1: 90.96
named-entity-recognition-on-ace-2004PIQN
F1: 88.14
Multi-Task Supervision: n
named-entity-recognition-on-ace-2005PIQN
F1: 87.42
named-entity-recognition-on-few-nerd-supPIQN
F1-Measure: 69.67
Precision: 70.16
Recall: 69.18
named-entity-recognition-on-few-nerd-supLocate and Label
F1-Measure: 67.64
Precision: 64.69
Recall: 70.87
named-entity-recognition-on-few-nerd-supSequence-to-Set
F1-Measure: 68.23
Precision: 67.37
Recall: 69.12
nested-named-entity-recognition-on-ace-2004PIQN
F1: 88.14
nested-named-entity-recognition-on-ace-2005PIQN
F1: 87.42
nested-named-entity-recognition-on-geniaPIQN
F1: 81.77
nested-named-entity-recognition-on-nnePIQN
Micro F1: 94.04
nested-named-entity-recognition-on-tac-kbpPIQN
F1: 84.5

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Parallel Instance Query Network for Named Entity Recognition | Papers | HyperAI