Optimizing Bi-Encoder for Named Entity Recognition via Contrastive Learning

08/30/2022
by   Sheng Zhang, et al.
0

We present an efficient bi-encoder framework for named entity recognition (NER), which applies contrastive learning to map candidate text spans and entity types into the same vector representation space. Prior work predominantly approaches NER as sequence labeling or span classification. We instead frame NER as a metric learning problem that maximizes the similarity between the vector representations of an entity mention and its type. This makes it easy to handle nested and flat NER alike, and can better leverage noisy self-supervision signals. A major challenge to this bi-encoder formulation for NER lies in separating non-entity spans from entity mentions. Instead of explicitly labeling all non-entity spans as the same class Outside (O) as in most prior methods, we introduce a novel dynamic thresholding loss, which is learned in conjunction with the standard contrastive loss. Experiments show that our method performs well in both supervised and distantly supervised settings, for nested and flat NER alike, establishing new state of the art across standard datasets in the general domain (e.g., ACE2004, ACE2005) and high-value verticals such as biomedicine (e.g., GENIA, NCBI, BC5CDR, JNLPBA).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
06/02/2021

A Unified Generative Framework for Various NER Subtasks

Named Entity Recognition (NER) is the task of identifying spans that rep...
research
10/25/2019

A Unified MRC Framework for Named Entity Recognition

The task of named entity recognition (NER) is normally divided into nest...
research
10/10/2022

A dynamic programming algorithm for span-based nested named-entity recognition in O(n^2)

Span-based nested named-entity recognition (NER) has a cubic-time comple...
research
12/02/2022

Few-Shot Nested Named Entity Recognition

While Named Entity Recognition (NER) is a widely studied task, making in...
research
02/13/2023

Type-Aware Decomposed Framework for Few-Shot Named Entity Recognition

Despite the recent success achieved by several two-stage prototypical ne...
research
05/29/2023

ContrastNER: Contrastive-based Prompt Tuning for Few-shot NER

Prompt-based language models have produced encouraging results in numero...
research
05/22/2023

Taxonomy Expansion for Named Entity Recognition

Training a Named Entity Recognition (NER) model often involves fixing a ...

Please sign up or login with your details

Forgot password? Click here to reset