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

ZEN:基于N-gram表示的预训练中文文本编码器

ZEN: Pre-training Chinese Text Encoder Enhanced by N-gram Representations

The Hong Kong University of Science and Technology(香港科技大学);Sinovation Ventures(创新工场)

Shizhe Diao, Jiaxin Bai, Yan Song, Tong Zhang, Yonggang Wang

摘要:

文本编码器的预训练通常将文本处理为对应于小文本单元的令牌序列,例如英语中的单词片段和中文中的字符。它忽略了较大文本粒度所携带的信息,因此编码器无法轻松适应某些字符组合。这导致重要语义信息的丢失,这对于中文来说尤其成问题,因为该语言没有明确的词边界。在本文中,我们提出了ZEN,一个基于BERT的中文(Z)文本编码器增强的N-gram表示,在训练过程中考虑不同的字符组合。因此,潜在的字或相位边界被明确地预先训练并使用字符编码器(BERT)进行微调。因此,ZEN包含了字符序列和它所包含的单词或短语的综合信息。实验结果表明ZEN在一系列中文NLP任务上的有效性。我们表明,ZEN使用比其他已发布的编码器更少的资源,可以在大多数任务上实现最先进的性能。此外,它表明,合理的性能时,ZEN是在一个小的语料库,这是很重要的应用预训练技术的情况下,有限的数据进行训练,可以获得。ZEN的代码和预训练模型可以在https://github.com/sinovation/zen上找到。

英文摘要:

The pre-training of text encoders normally processes text as a sequence of tokens corresponding to small text units, such as word pieces in English and characters in Chinese. It omits information carried by larger text granularity, and thus the encoders cannot easily adapt to certain combinations of characters. This leads to a loss of important semantic information, which is especially problematic for Chinese because the language does not have explicit word boundaries. In this paper, we propose ZEN, a BERT-based Chinese (Z) text encoder Enhanced by N-gram representations, where different combinations of characters are considered during training. As a result, potential word or phase boundaries are explicitly pre-trained and fine-tuned with the character encoder (BERT). Therefore ZEN incorporates the comprehensive information of both the character sequence and words or phrases it contains. Experimental results illustrated the effectiveness of ZEN on a series of Chinese NLP tasks. We show that ZEN, using less resource than other published encoders, can achieve state-of-the-art performance on most tasks. Moreover, it is shown that reasonable performance can be obtained when ZEN is trained on a small corpus, which is important for applying pre-training techniques to scenarios with limited data. The code and pre-trained models of ZEN are available at https://github.com/sinovation/zen.

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

↑