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

Lattice-BERT:在中文预训练语言模型中利用多粒度表示

Lattice-BERT: Leveraging Multi-Granularity Representations in Chinese Pre-trained Language Models

Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所);Alibaba Group(阿里巴巴集团);Alibaba DAMO Academy(阿里巴巴达摩院)

Yuxuan Lai, Yijia Liu, Yansong Feng, Songfang Huang, Dongyan Zhao

摘要:

中文预训练的语言模型通常将文本处理为字符序列,而忽略更粗的粒度,例如,话在这项工作中,我们提出了一种新的预训练范式为中国-格BERT,明确地将词表示与字符,从而可以在多粒度的方式建模的句子。具体来说,我们从一个句子中的字符和单词构建一个格图,并将所有这些文本单元送入Transformers。我们设计了一个格子位置注意力机制来利用自注意层中的格子结构。我们进一步提出了一个掩码段预测任务,以推动模型从格中固有的丰富但冗余的信息中学习,同时避免学习意想不到的技巧。在11个中文自然语言理解任务上的实验表明,在12层的设置下,该模型的平均性能提高了1.5%,在CLUE基准测试中达到了基本模型的最新水平。进一步的分析表明,Lattice-BERT可以利用格结构,改进来自于冗余信息和多粒度表示的探索。我们的代码将在https://github.com/alibaba/pretrained-language-models/LatticeBERT上提供。

英文摘要:

Chinese pre-trained language models usually process text as a sequence of characters, while ignoring more coarse granularity, e.g., words. In this work, we propose a novel pre-training paradigm for Chinese -- Lattice-BERT, which explicitly incorporates word representations along with characters, thus can model a sentence in a multi-granularity manner. Specifically, we construct a lattice graph from the characters and words in a sentence and feed all these text units into transformers. We design a lattice position attention mechanism to exploit the lattice structures in self-attention layers. We further propose a masked segment prediction task to push the model to learn from rich but redundant information inherent in lattices, while avoiding learning unexpected tricks. Experiments on 11 Chinese natural language understanding tasks show that our model can bring an average increase of 1.5% under the 12-layer setting, which achieves new state-of-the-art among base-size models on the CLUE benchmarks. Further analysis shows that Lattice-BERT can harness the lattice structures, and the improvement comes from the exploration of redundant information and multi-granularity representations. Our code will be available at https://github.com/alibaba/pretrained-language-models/LatticeBERT.

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

↑