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

一种用于序列标注的全局上下文机制

A Global Context Mechanism for Sequence Labeling

Department of Computer Science, Aalborg University(奥尔堡大学计算机科学系);Department of Electronic information Engineering,Rizhao Polytechnic(日照职业技术学院电子信息工程系);School of Information Science and Technology, Northeast Normal University(东北师范大学信息科学与技术学院);Customer Service Research and Development Division, China Unicom Software Research Institute(中国联合软件研究院客户服务研发部)

Conglei Xu, Kun Shen, Hongguang Sun, Yang Xu

AI总结:

本文提出一种简单高效的全局上下文机制,可同时为BiLSTM和transformer模型补充全局句子信息,在七个序列标注基准上显著提升F1分数,并保持较快的推理与训练速度。

摘要:

全局句子信息对于序列标注任务至关重要,因为句子中的每个词都必须被赋予一个标签。虽然BiLSTM模型被广泛使用,但它们往往无法为内部词捕获足够的全局上下文。先前的工作提出了各种RNN变体,以将全局句子信息整合到词表示中。然而,这些方法存在三个关键局限:(1)与原始BiLSTM相比,它们在推理和训练上都更慢;(2)它们无法有效地为基于transformer的模型补充全局信息;(3)重新实现这些定制RNN并将其集成到现有架构中的时间成本很高。在本研究中,我们提出了一种简单而有效的机制来解决这些局限。我们的方法能够高效地为BiLSTM和基于transformer的模型补充全局句子信息,且推理和训练速度的下降极小,并且易于插入当前架构中。我们在七个流行基准上展示了F1分数的显著提升,包括命名实体识别(NER)任务如Conll2003、Wnut2017和中文命名实体识别任务Weibo,以及端到端方面级情感分析(E2E-ABSA)基准如Laptop14、Restaurant14、Restaurant15和Restaurant16。在没有任何额外策略的情况下,我们在Weibo NER基准上取得了第三高的分数。与CRF这一最流行的序列标注框架之一相比,我们的机制在取得有竞争力的F1分数的同时,提供了更优的推理和训练速度。代码可在以下地址获取:https://github.com/conglei2XU/Global-Context-Mechanism

英文摘要:

Global sentence information is crucial for sequence labeling tasks, where each word in a sentence must be assigned a label. While BiLSTM models are widely used, they often fail to capture sufficient global context for inner words. Previous work has proposed various RNN variants to integrate global sentence information into word representations. However, these approaches suffer from three key limitations: (1) they are slower in both inference and training compared to the original BiLSTM, (2) they cannot effectively supplement global information for transformer-based models, and (3) the high time cost associated with reimplementing and integrating these customized RNNs into existing architectures. In this study, we introduce a simple yet effective mechanism that addresses these limitations. Our approach efficiently supplements global sentence information for both BiLSTM and transformer-based models, with minimal degradation in inference and training speed, and is easily pluggable into current architectures. We demonstrate significant improvements in F1 scores across seven popular benchmarks, including Named Entity Recognition (NER) tasks such as Conll2003, Wnut2017 , and the Chinese named-entity recognition task Weibo, as well as End-to-End Aspect-Based Sentiment Analysis (E2E-ABSA) benchmarks such as Laptop14, Restaurant14, Restaurant15, and Restaurant16. With out any extra strategy, we achieve third highest score on weibo NER benchmark. Compared to CRF, one of the most popular frameworks for sequence labeling, our mechanism achieves competitive F1 scores while offering superior inference and training speed. Code is available at: https://github.com/conglei2XU/Global-Context-Mechanism

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

↑