arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.05928cs.CL
收藏

利用词汇语义丰富汉语预训练模型的字符表示

Exploiting Word Semantics to Enrich Character Representations of Chinese Pre-trained Models

Peking University(北京大学)

Wenbiao Li, Rui Sun, Yunfang Wu

摘要:

大多数中文预训练模型采用字符作为下游任务的基本单元。然而,这些模型忽略了词所携带的信息,从而导致一些重要语义的丢失。在本文中,我们提出了一种新的方法来利用单词结构,并将词汇语义集成到预训练模型的字符表示中。具体地说,我们根据相似性权重将单词的嵌入映射到其内部字符的嵌入中。为了增强词边界信息,我们混合了词内部字符的表示。之后,我们应用一个字到字对齐注意力机制,通过掩盖不重要的字符来强调重要的字符。此外,为了减少分词引起的错误传播,我们提出了一种集成方法来组合不同标记器给出的分割结果。实验结果表明,在不同的中文NLP任务:情感分类、句对匹配、自然语言推理和机器阅读理解上,我们的方法取得了优于基本预训练模型BERT、BERT-wwm和ERNIE的性能。并进一步分析了模型各组成部分的有效性。

英文摘要:

Most of the Chinese pre-trained models adopt characters as basic units for downstream tasks. However, these models ignore the information carried by words and thus lead to the loss of some important semantics. In this paper, we propose a new method to exploit word structure and integrate lexical semantics into character representations of pre-trained models. Specifically, we project a word's embedding into its internal characters' embeddings according to the similarity weight. To strengthen the word boundary information, we mix the representations of the internal characters within a word. After that, we apply a word-to-character alignment attention mechanism to emphasize important characters by masking unimportant ones. Moreover, in order to reduce the error propagation caused by word segmentation, we present an ensemble approach to combine segmentation results given by different tokenizers. The experimental results show that our approach achieves superior performance over the basic pre-trained models BERT, BERT-wwm and ERNIE on different Chinese NLP tasks: sentiment classification, sentence pair matching, natural language inference and machine reading comprehension. We make further analysis to prove the effectiveness of each component of our model.

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

↑