arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.14565cs.CLcs.AI
收藏

基于对比学习的命名实体识别双编码器优化

Optimizing Bi-Encoder for Named Entity Recognition via Contrastive Learning

Microsoft Research(微软研究院)

Sheng Zhang, Hao Cheng, Jianfeng Gao, Hoifung Poon

摘要:

我们提出了一个双编码器框架命名实体识别(NER),它适用于对比学习映射候选文本跨度和实体类型到同一个向量表示空间。以前的工作主要是接近NER序列标记或跨度分类。相反,我们框架NER作为一个表示学习的问题,最大限度地提高了实体提及和其类型的向量表示之间的相似性。这使得它很容易处理嵌套和平坦的NER,并且可以更好地利用嘈杂的自我监督信号。这种用于NER的双编码器公式化的主要挑战在于将非实体跨度与实体提及分开。而不是显式地标记为同一类$\texttt{Outside}$($\texttt{O}$)的所有非实体跨度在大多数现有的方法,我们引入了一种新的动态阈值损失。实验表明,我们的方法在监督和远程监督设置中表现良好,对于嵌套和平面NER一样,在一般领域的标准数据集上建立了新的技术水平(例如,ACE 2004,ACE 2005)和高价值的垂直行业,如生物医药(例如,GENIA,NCBI,BC5CDR,JNLPBA)。我们在github.com/microsoft/binder上发布代码。

英文摘要:

We present a 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 representation 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 $\texttt{Outside}$ ($\texttt{O}$) as in most prior methods, we introduce a novel dynamic thresholding 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). We release the code at github.com/microsoft/binder.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑