arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.04362cs.CL
收藏

计算效率高的命名实体识别标记器的约束解码

Constrained Decoding for Computationally Efficient Named Entity Recognition Taggers

Interactions(交互公司)

Brian Lester, Daniel Pressel, Amy Hemmeter, Sagnik Ray Choudhury, Srinivas Bangalore

摘要:

当前用于命名实体识别(NER)的最新模型是以条件随机场(CRF)作为最终层的神经模型。实体被表示为具有特殊结构的每个令牌标签,以便将它们解码为span。目前的工作回避了如何跨度编码方案的工作原理的先验知识,并依赖于CRF学习的过渡是非法的,这是不是促进全球的一致性。我们发现,通过限制输出,以抑制非法的过渡,我们可以训练一个标记器的交叉熵损失的两倍快的CRF的差异F1是统计上不显著的,有效地消除了对CRF的需要。我们分析了标签共现的动态,以解释这些约束何时最有效,并在PyTorch和TensorFlow中提供了我们的tagger的开源实现。

英文摘要:

Current state-of-the-art models for named entity recognition (NER) are neural models with a conditional random field (CRF) as the final layer. Entities are represented as per-token labels with a special structure in order to decode them into spans. Current work eschews prior knowledge of how the span encoding scheme works and relies on the CRF learning which transitions are illegal and which are not to facilitate global coherence. We find that by constraining the output to suppress illegal transitions we can train a tagger with a cross-entropy loss twice as fast as a CRF with differences in F1 that are statistically insignificant, effectively eliminating the need for a CRF. We analyze the dynamics of tag co-occurrence to explain when these constraints are most effective and provide open source implementations of our tagger in both PyTorch and TensorFlow.

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

↑